修改
This commit is contained in:
parent
710f38f07d
commit
cf88299bd0
@ -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("暂存成功!");
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user