This commit is contained in:
2024-04-16 14:20:13 +08:00
parent 6972bc535e
commit 56bc4656b1

View File

@ -190,10 +190,11 @@ export default {
phoneopen: false, phoneopen: false,
propagandaopen: false, propagandaopen: false,
specialDiseaseNodeopen: false, specialDiseaseNodeopen: false,
loading: null,
}; };
}, },
mounted() { mounted() {
this.info(); this.info(0);
}, },
methods: { methods: {
// //
@ -227,19 +228,32 @@ export default {
this.lookitem = {} this.lookitem = {}
}, },
clicknameitem(item, index) { clicknameitem(item, index) {
this.itemindex = index this.loading = this.$loading({
lock: true,
text: '加载数据中',
spinner: 'el-icon-loading',
background: 'rgba(255,255,255,0.7)'
});
if (index == 1) { if (index == 1) {
this.query.taskCreateType = 'MANUAL_CREATE' this.query.taskCreateType = 'MANUAL_CREATE'
} else { } else {
this.query.taskCreateType = 'MANUAL_MATCHE' this.query.taskCreateType = 'MANUAL_MATCHE'
} }
this.info(); this.info(index);
}, },
info() { info(index) {
this.loading = this.$loading({
lock: true,
text: '加载数据中',
spinner: 'el-icon-loading',
background: 'rgba(255,255,255,0.7)'
});
this.query.patientId = this.$route.query.patientId this.query.patientId = this.$route.query.patientId
getList(this.query).then(res => { getList(this.query).then(res => {
if (res.data.length > 0) { if (res.data.length > 0) {
this.categorylist = res.data this.categorylist = res.data
this.itemindex = index
this.loading.close();
} }
}) })
}, },