标签属性类型编辑禁用

This commit is contained in:
caoyang
2022-03-30 22:43:57 +08:00
parent d2df718e52
commit 732c9ad8a2
@@ -35,7 +35,7 @@
<!-- 属性类型-->
<a-col :span="24">
<a-form-model-item :label="$t('AttributeType')" prop="fieldShowType" >
<j-dict-select-tag type="list" v-model="form.fieldShowType" dictCode="field_show_type" :placeholder="$t('PleaseSelectAttributeType')" />
<j-dict-select-tag type="list" v-model="form.fieldShowType" dictCode="field_show_type" :placeholder="$t('PleaseSelectAttributeType')" :disabled="disabledEdit" />
</a-form-model-item>
</a-col>
<a-col :span="24" v-if="isTagContent">
@@ -231,6 +231,7 @@
isSearch:true,
isLength:true,
flag:false, //表单提交标识
disabledEdit:false
}
},
watch:{
@@ -255,6 +256,9 @@
this.isLength=false
}
},
submitEdit(){
}
},
computed: {
changeType(val){
@@ -285,6 +289,12 @@
mounted() {
this.loadContent()
this.loadShowArea()
// console.log('edit',this.submitEdit)
if(this.submitEdit==='add'){
this.disabledEdit=false
}else if(this.submitEdit==='edit'){
this.disabledEdit=true
}
this.form={...this.editData}
// console.log('drawerVisible',this.drawerVisible)
},