[update] 52708

This commit is contained in:
zhaomeijing
2022-05-26 09:29:12 +08:00
parent 3481927cb0
commit 86c3443c61
@@ -52,7 +52,7 @@
</a-form-model-item> </a-form-model-item>
<a-form-model-item :label="$t('ParentName')" prop="pid" v-if="parentVisible"> <a-form-model-item :label="$t('ParentName')" prop="pid" v-if="parentVisible">
<a-select v-model="form.pid" @change="handleChange" :placeholder="$t('pleaseSelect')" allowClear> <a-select v-model="form.pid" @change="handleChange" :placeholder="$t('pleaseSelect')" allowClear>
<a-select-option :value="item.id" v-for="(item, index) in parentData" :key="item.id"> <a-select-option :value="item.id" v-for="(item, index) in parentDataPid" :key="item.id">
{{item.name}} {{item.name}}
</a-select-option> </a-select-option>
</a-select> </a-select>
@@ -131,6 +131,7 @@
editPId:'', editPId:'',
tabletreeDataSource:[], tabletreeDataSource:[],
flag:false, //提交表单标识 flag:false, //提交表单标识
parentDataPid: []
} }
}, },
watch: { watch: {
@@ -249,23 +250,17 @@
this.parentVisible=true this.parentVisible=true
this.editPId='' this.editPId=''
// //
// this.getAllTree() this.getAllTree()
} }
}, },
// getAllTree() { getAllTree() {
// postAction(`sys/category/queryPageList`,{ getAction(`sys/category/queryPid`,{
// sysDictId:this.record.id, sysDictId:this.record.id,
// isTagDict:1 isTagDict:1
// }).then(res=>{ }).then(res=>{
// console.log(res,'res,,,') this.parentDataPid = res.result
// // this.tabletreeDataSource=[...res.result.records] })
// // this.total=res.result.total },
// // let data = this.toTree(this.tabletreeDataSource)
// // this.tabletreeData=data
// // this.parentData=this.getParents
// // this.dataFlag=true
// })
// },
//保存 //保存
hideModal(){ hideModal(){
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {