Elements-SY

Merge branch 'et86-black' into uat

1 <template> 1 <template>
2 - <div class="form-header"> 2 + <div class="form-header" v-loading="loading">
3 <el-row style="padding-bottom: 20px"> 3 <el-row style="padding-bottom: 20px">
4 <el-col> 4 <el-col>
5 <el-divider content-position="left">ET86配舱航班顺位</el-divider> 5 <el-divider content-position="left">ET86配舱航班顺位</el-divider>
...@@ -445,6 +445,7 @@ export default { ...@@ -445,6 +445,7 @@ export default {
445 mixins: [indexMixins, inputBlurValidate], 445 mixins: [indexMixins, inputBlurValidate],
446 data() { 446 data() {
447 return { 447 return {
448 + loading: false,
448 queryForm: { 449 queryForm: {
449 // ET86配舱航班顺位维度 450 // ET86配舱航班顺位维度
450 // 表单参数 451 // 表单参数
...@@ -488,7 +489,7 @@ export default { ...@@ -488,7 +489,7 @@ export default {
488 getRouter() { 489 getRouter() {
489 if (this.$route.query.name == "add" || this.$route.query.name == "edit") { 490 if (this.$route.query.name == "add" || this.$route.query.name == "edit") {
490 return "保存"; 491 return "保存";
491 - }else { 492 + } else {
492 return false; 493 return false;
493 } 494 }
494 }, 495 },
...@@ -535,8 +536,10 @@ export default { ...@@ -535,8 +536,10 @@ export default {
535 }, 536 },
536 // ET86详情 537 // ET86详情
537 queryFindEtesRuleById({ id, status, name }) { 538 queryFindEtesRuleById({ id, status, name }) {
539 + this.loading = true;
538 findEtesRuleById({ id: id, status: status }) 540 findEtesRuleById({ id: id, status: status })
539 .then((res) => { 541 .then((res) => {
542 + this.loading = false;
540 const { code, data, msg } = res; 543 const { code, data, msg } = res;
541 if (code == 200) { 544 if (code == 200) {
542 data.list.flightRankDtoList.map((item) => { 545 data.list.flightRankDtoList.map((item) => {
...@@ -589,7 +592,9 @@ export default { ...@@ -589,7 +592,9 @@ export default {
589 this.msgError(msg || "获取查看失败"); 592 this.msgError(msg || "获取查看失败");
590 } 593 }
591 }) 594 })
592 - .catch(() => {}); 595 + .catch(() => {
596 + this.loading = false;
597 + });
593 }, 598 },
594 // ET86编辑 599 // ET86编辑
595 postUpdate(parmas) { 600 postUpdate(parmas) {
......