|
|
|
@ -186,12 +186,12 @@ export default { |
|
|
|
type: 'select', |
|
|
|
type: 'select', |
|
|
|
dicUrl: '/blade-system/dict/dictionary?code=InspectionItem-ItemType', |
|
|
|
dicUrl: '/blade-system/dict/dictionary?code=InspectionItem-ItemType', |
|
|
|
props: { label: 'dictValue', value: 'dictKey' }, |
|
|
|
props: { label: 'dictValue', value: 'dictKey' }, |
|
|
|
formatter: (row, value) => { |
|
|
|
// formatter: (row, value) => { |
|
|
|
if (value === 0 || value === '0') { |
|
|
|
// if (value == 0 || value === '0') { |
|
|
|
return ''; |
|
|
|
// return ''; |
|
|
|
} |
|
|
|
// } |
|
|
|
return value; |
|
|
|
// return value + ''; |
|
|
|
}, |
|
|
|
// }, |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: false, |
|
|
|
required: false, |
|
|
|
@ -304,6 +304,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
rowUpdate(form, index, done, loading) { |
|
|
|
rowUpdate(form, index, done, loading) { |
|
|
|
|
|
|
|
form.itemType = form.itemType ? form.itemType : '' |
|
|
|
editItem(form).then(res => { |
|
|
|
editItem(form).then(res => { |
|
|
|
if (res.data.code == 200) { |
|
|
|
if (res.data.code == 200) { |
|
|
|
this.$message.success('修改成功'); |
|
|
|
this.$message.success('修改成功'); |
|
|
|
|