修改导入

This commit is contained in:
shidongli 2024-12-25 17:54:09 +08:00
parent 9c03aff80f
commit 23b069d757

View File

@ -550,6 +550,9 @@ export default {
}, },
} }
}, },
created(){
this.gettreelist();
},
mounted() { mounted() {
// / // /
this.minShowCtrol() this.minShowCtrol()
@ -617,7 +620,6 @@ export default {
submitUpload() { submitUpload() {
if (this.isDistinct == true) { if (this.isDistinct == true) {
this.action.data.isDistinct = 1 this.action.data.isDistinct = 1
} else { } else {
this.action.data.isDistinct = 0 this.action.data.isDistinct = 0
} }
@ -697,7 +699,6 @@ export default {
additem(item, index) { additem(item, index) {
this.indexadd = index this.indexadd = index
this.reset(); this.reset();
this.gettreelist();
this.infocompare(); this.infocompare();
this.getinfolist(); this.getinfolist();
this.getinfo(); this.getinfo();
@ -707,8 +708,6 @@ export default {
this.openadd = true this.openadd = true
if (localStorage.getItem('roleKey') != 'admin') { if (localStorage.getItem('roleKey') != 'admin') {
this.getLeafIds(this.treeOptions) this.getLeafIds(this.treeOptions)
this.formadd.hospitalAgencyIdtwo = JSON.parse(localStorage.getItem('user')).hospitalAgencyId;
this.formadd.hospitalAgencyName=JSON.parse(localStorage.getItem('user')).nickName;
} }
console.log(item, index, 'item') console.log(item, index, 'item')
// this.$emit('additem',item,index) // this.$emit('additem',item,index)
@ -728,6 +727,7 @@ export default {
}, },
getLeafIds(nodes) { getLeafIds(nodes) {
console.log(nodes, ';node') console.log(nodes, ';node')
this.formadd.hospitalAgencyIdtwo = JSON.parse(localStorage.getItem('user')).hospitalAgencyId;
let leafIds = []; let leafIds = [];
nodes.forEach(node => { nodes.forEach(node => {