This commit is contained in:
2024-04-19 10:38:35 +08:00
parent 710f38f07d
commit cf88299bd0

View File

@ -360,12 +360,19 @@ export default {
},
methods: {
info() {
const loading = this.$loading({
lock: true,
text: '数据加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.lists = []
if (this.$route.query) {
this.updata.suitRange = this.$route.query.suitRange
this.updata.routeName = this.$route.query.routeName
this.updata.specialDiseaseRouteId = this.$route.query.id
selectSpecialDisease(this.$route.query.id).then(res => {
loading.close();
this.agreeNumber = res.data.agreeNumber
this.totalNumber = res.data.totalNumber
res.data.specialDiseaseNodeList.forEach(e => {
@ -380,6 +387,7 @@ export default {
}
})
} else {
loading.close();
this.lists.push({
routeNodeName: "",
routeNodeDay: '',
@ -452,6 +460,12 @@ export default {
//
TemporaryStorage() {
this.$refs.wangeditor.emit()
const loading = this.$loading({
lock: true,
text: '暂存中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.updata.specialDiseaseNodeList = []
this.lists.forEach(e => {
e.list.length > 0 ? e.list.forEach(el => {
@ -462,6 +476,7 @@ export default {
})
specialDiseaseNode(this.updata).then(res => {
this.info();
loading.close();
this.$modal.msgSuccess("暂存成功!");
})
},