[update] 52708
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
</a-form-model-item>
|
||||
<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-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}}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
@@ -131,6 +131,7 @@
|
||||
editPId:'',
|
||||
tabletreeDataSource:[],
|
||||
flag:false, //提交表单标识
|
||||
parentDataPid: []
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -249,23 +250,17 @@
|
||||
this.parentVisible=true
|
||||
this.editPId=''
|
||||
//
|
||||
// this.getAllTree()
|
||||
this.getAllTree()
|
||||
}
|
||||
},
|
||||
// getAllTree() {
|
||||
// postAction(`sys/category/queryPageList`,{
|
||||
// sysDictId:this.record.id,
|
||||
// isTagDict:1
|
||||
// }).then(res=>{
|
||||
// console.log(res,'res,,,')
|
||||
// // 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
|
||||
// })
|
||||
// },
|
||||
getAllTree() {
|
||||
getAction(`sys/category/queryPid`,{
|
||||
sysDictId:this.record.id,
|
||||
isTagDict:1
|
||||
}).then(res=>{
|
||||
this.parentDataPid = res.result
|
||||
})
|
||||
},
|
||||
//保存
|
||||
hideModal(){
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
|
||||
Reference in New Issue
Block a user