修改
This commit is contained in:
parent
710f38f07d
commit
cf88299bd0
@ -360,12 +360,19 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
info() {
|
info() {
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '数据加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
this.lists = []
|
this.lists = []
|
||||||
if (this.$route.query) {
|
if (this.$route.query) {
|
||||||
this.updata.suitRange = this.$route.query.suitRange
|
this.updata.suitRange = this.$route.query.suitRange
|
||||||
this.updata.routeName = this.$route.query.routeName
|
this.updata.routeName = this.$route.query.routeName
|
||||||
this.updata.specialDiseaseRouteId = this.$route.query.id
|
this.updata.specialDiseaseRouteId = this.$route.query.id
|
||||||
selectSpecialDisease(this.$route.query.id).then(res => {
|
selectSpecialDisease(this.$route.query.id).then(res => {
|
||||||
|
loading.close();
|
||||||
this.agreeNumber = res.data.agreeNumber
|
this.agreeNumber = res.data.agreeNumber
|
||||||
this.totalNumber = res.data.totalNumber
|
this.totalNumber = res.data.totalNumber
|
||||||
res.data.specialDiseaseNodeList.forEach(e => {
|
res.data.specialDiseaseNodeList.forEach(e => {
|
||||||
@ -380,6 +387,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
loading.close();
|
||||||
this.lists.push({
|
this.lists.push({
|
||||||
routeNodeName: "",
|
routeNodeName: "",
|
||||||
routeNodeDay: '',
|
routeNodeDay: '',
|
||||||
@ -452,6 +460,12 @@ export default {
|
|||||||
//暂存
|
//暂存
|
||||||
TemporaryStorage() {
|
TemporaryStorage() {
|
||||||
this.$refs.wangeditor.emit()
|
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.updata.specialDiseaseNodeList = []
|
||||||
this.lists.forEach(e => {
|
this.lists.forEach(e => {
|
||||||
e.list.length > 0 ? e.list.forEach(el => {
|
e.list.length > 0 ? e.list.forEach(el => {
|
||||||
@ -462,6 +476,7 @@ export default {
|
|||||||
})
|
})
|
||||||
specialDiseaseNode(this.updata).then(res => {
|
specialDiseaseNode(this.updata).then(res => {
|
||||||
this.info();
|
this.info();
|
||||||
|
loading.close();
|
||||||
this.$modal.msgSuccess("暂存成功!");
|
this.$modal.msgSuccess("暂存成功!");
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user