Commit 8caca8bf authored by zhangyichen's avatar zhangyichen

修改bug

parent 950801b4
...@@ -295,6 +295,7 @@ ...@@ -295,6 +295,7 @@
<el-col :span="24" :xs="24"> <el-col :span="24" :xs="24">
<div style="float: right;margin: 10px" v-show="materType === '1'"> <div style="float: right;margin: 10px" v-show="materType === '1'">
<el-button <el-button
:disabled="addMaterDisabled"
class="redBtn" class="redBtn"
type="danger" type="danger"
size="small" size="small"
...@@ -497,6 +498,16 @@ export default { ...@@ -497,6 +498,16 @@ export default {
}) })
}) })
return num return num
},
addMaterDisabled() {
console.log(this.form.modelType, 'this.form.modelType')
console.log(this.configuringList, 'this.configuringList')
if (this.form.modelType === '2') {
if (this.configuringList.length > 0) {
return true
}
}
return false
} }
}, },
watch: { watch: {
...@@ -879,7 +890,7 @@ export default { ...@@ -879,7 +890,7 @@ export default {
}, },
// 禁用 // 禁用
handleSelectionMaterial(selection, row) { handleSelectionMaterial(selection, row) {
if (this.type !== '3' && this.form.modelType === '1') { if (this.type !== '3' && (this.form.modelType === '1' || this.form.modelType === '' || this.form.modelType === null)) {
if (!selection.some(item => item.businessId === row.businessId)) { if (!selection.some(item => item.businessId === row.businessId)) {
delete this.addMaterialMap[row.businessId] delete this.addMaterialMap[row.businessId]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment