|
@@ -41,7 +41,7 @@
|
|
|
</template>
|
|
|
<template slot="whether" slot-scope="{disabled}">
|
|
|
<!--<el-switch v-model="form.whether" active-text="是" inactive-text="否" active-value="1" inactive-value="0" @change="whetherChange"/>-->
|
|
|
- <el-switch v-model="form.whether" :disabled="disabled " active-text="是" inactive-text="否"
|
|
|
+ <el-switch v-model="form.whether" :disabled="disabled || isWhether" active-text="是" inactive-text="否"
|
|
|
active-value="1" inactive-value="0" />
|
|
|
</template>
|
|
|
<template slot="explosionProof" slot-scope="{disabled}">
|
|
@@ -111,6 +111,7 @@ export default {
|
|
|
loadingBtn: false,
|
|
|
goodsTypeVisible: false,
|
|
|
storageVisible: false,
|
|
|
+ isWhether:false,
|
|
|
form: {},
|
|
|
form2: {},
|
|
|
form3: {},
|
|
@@ -657,11 +658,13 @@ export default {
|
|
|
for (let item of this.option.column) {
|
|
|
this.$set(item,'disabled',true)
|
|
|
}
|
|
|
+ this.isWhether = true
|
|
|
} else if (this.form.modifiable == 1) {
|
|
|
console.log(this.form.modifiable, '1');
|
|
|
for (let item of this.option.column) {
|
|
|
item.disabled = false
|
|
|
}
|
|
|
+ this.isWhether = false
|
|
|
}
|
|
|
if(this.form.enableOrNot == 1){
|
|
|
for (let item of this.option.column) {
|