修改导入

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

View File

@ -193,7 +193,7 @@
</el-form-item> </el-form-item>
<el-form-item label="所属机构" prop="hospitalAgencyName"> <el-form-item label="所属机构" prop="hospitalAgencyName">
<el-cascader <el-cascader
class="custom-cascader" class="custom-cascader"
clearable clearable
:props="{ checkStrictly: true }" :props="{ checkStrictly: true }"
:options="treeOptions" :options="treeOptions"
@ -458,7 +458,7 @@ export default {
type: String, type: String,
default: 'false' default: 'false'
}, },
query:{ query: {
type: Object, type: Object,
default: () => ({}) default: () => ({})
@ -468,7 +468,7 @@ export default {
}, },
data() { data() {
return { return {
querlist:{},// querlist: {},//
departmentsshow: false,// departmentsshow: false,//
loading: false, loading: false,
patientInfoList: [], patientInfoList: [],
@ -550,6 +550,9 @@ export default {
}, },
} }
}, },
created(){
this.gettreelist();
},
mounted() { mounted() {
// / // /
this.minShowCtrol() this.minShowCtrol()
@ -559,14 +562,14 @@ export default {
}, },
watch: { watch: {
query:{ query: {
handler(val) { handler(val) {
console.log(val, 'val') console.log(val, 'val')
this.querlist=val this.querlist = val
}, },
deep: true, deep: true,
immediate: true, immediate: true,
}, },
'$store.state.app.sidebar.opened'(newVal, Val) { '$store.state.app.sidebar.opened'(newVal, Val) {
if (newVal) { if (newVal) {
@ -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 => {