标签属性类型编辑禁用
This commit is contained in:
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user