标签属性类型编辑禁用
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
<!-- 属性类型-->
|
<!-- 属性类型-->
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-model-item :label="$t('AttributeType')" prop="fieldShowType" >
|
<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-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" v-if="isTagContent">
|
<a-col :span="24" v-if="isTagContent">
|
||||||
@@ -231,6 +231,7 @@
|
|||||||
isSearch:true,
|
isSearch:true,
|
||||||
isLength:true,
|
isLength:true,
|
||||||
flag:false, //表单提交标识
|
flag:false, //表单提交标识
|
||||||
|
disabledEdit:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
@@ -255,6 +256,9 @@
|
|||||||
this.isLength=false
|
this.isLength=false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
submitEdit(){
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
changeType(val){
|
changeType(val){
|
||||||
@@ -285,6 +289,12 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.loadContent()
|
this.loadContent()
|
||||||
this.loadShowArea()
|
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}
|
this.form={...this.editData}
|
||||||
// console.log('drawerVisible',this.drawerVisible)
|
// console.log('drawerVisible',this.drawerVisible)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user