Showing
5 changed files
with
65 additions
and
47 deletions
| ... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
| 9 | }" | 9 | }" |
| 10 | > | 10 | > |
| 11 | <logo v-if="showLogo" :collapse="isCollapse" /> | 11 | <logo v-if="showLogo" :collapse="isCollapse" /> |
| 12 | - <!-- <el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper"> --> | 12 | + <el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper"> |
| 13 | <el-menu | 13 | <el-menu |
| 14 | :default-active="activeMenu" | 14 | :default-active="activeMenu" |
| 15 | :collapse="isCollapse" | 15 | :collapse="isCollapse" |
| ... | @@ -36,7 +36,7 @@ | ... | @@ -36,7 +36,7 @@ |
| 36 | /> | 36 | /> |
| 37 | </el-menu> | 37 | </el-menu> |
| 38 | <div class="version">{{ version }}</div> | 38 | <div class="version">{{ version }}</div> |
| 39 | - <!-- </el-scrollbar> --> | 39 | + </el-scrollbar> |
| 40 | </div> | 40 | </div> |
| 41 | </template> | 41 | </template> |
| 42 | 42 | ... | ... |
| ... | @@ -62,7 +62,7 @@ export const constantRoutes = [ | ... | @@ -62,7 +62,7 @@ export const constantRoutes = [ |
| 62 | path: 'index', | 62 | path: 'index', |
| 63 | component: (resolve) => require(['@/views/index'], resolve), | 63 | component: (resolve) => require(['@/views/index'], resolve), |
| 64 | name: '首页', | 64 | name: '首页', |
| 65 | - meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true } | 65 | + meta: { title: '首页', icon: 'home', noCache: true, affix: true } |
| 66 | } | 66 | } |
| 67 | ] | 67 | ] |
| 68 | }, | 68 | }, | ... | ... |
| ... | @@ -454,6 +454,15 @@ export default { | ... | @@ -454,6 +454,15 @@ export default { |
| 454 | }, | 454 | }, |
| 455 | { | 455 | { |
| 456 | type: "", | 456 | type: "", |
| 457 | + name: "服务代码", | ||
| 458 | + value: "serviceCode", | ||
| 459 | + width: "150", | ||
| 460 | + align: "center", | ||
| 461 | + sorTable: false, | ||
| 462 | + fixed:false, | ||
| 463 | + }, | ||
| 464 | + { | ||
| 465 | + type: "", | ||
| 457 | name: "URSA", | 466 | name: "URSA", |
| 458 | value: "ursa", | 467 | value: "ursa", |
| 459 | width: "150", | 468 | width: "150", |
| ... | @@ -823,26 +832,47 @@ export default { | ... | @@ -823,26 +832,47 @@ export default { |
| 823 | }; | 832 | }; |
| 824 | }, | 833 | }, |
| 825 | created() { | 834 | created() { |
| 835 | + this.seleData() | ||
| 836 | + this.select() | ||
| 837 | + }, | ||
| 838 | + mounted() { | ||
| 839 | + window.addEventListener("keydown", (code) => { | ||
| 840 | + if (code.keyCode === 16 && code.shiftKey) { | ||
| 841 | + this.shiftKey = true; | ||
| 842 | + } | ||
| 843 | + }); | ||
| 844 | + window.addEventListener("keyup", (code) => { | ||
| 845 | + if (code.keyCode === 16) { | ||
| 846 | + this.shiftKey = false; | ||
| 847 | + } | ||
| 848 | + }); | ||
| 849 | + }, | ||
| 850 | + methods: { | ||
| 826 | //查询条件 | 851 | //查询条件 |
| 827 | - new Promise((resolve, reject) => { | 852 | + async seleData() { |
| 828 | - let obj = {}; | 853 | + // findFltConditionDataApi() |
| 829 | - findFltConditionDataApi() | 854 | + // .then((res) => { |
| 830 | - .then((res) => { | 855 | + // if (res.code === 200) { |
| 831 | - if (res.code === 200) { | 856 | + // this.selectData.fltTypes = res.data.flightType; |
| 832 | - obj.flightType = res.data.flightType; | 857 | + // }else{ |
| 833 | - } else { | 858 | + // this.$message({ |
| 834 | - reject(res.msg); | 859 | + // message: "查询条件不存在", |
| 835 | - } | 860 | + // type: "warning", |
| 836 | - }) | 861 | + // }); |
| 837 | - .catch(() => {}); | 862 | + // } |
| 863 | + // }) | ||
| 864 | + // .catch(() => {}); | ||
| 838 | 865 | ||
| 839 | allDictData() | 866 | allDictData() |
| 840 | .then((res) => { | 867 | .then((res) => { |
| 841 | if (res.code === 200) { | 868 | if (res.code === 200) { |
| 842 | - obj.HandlingCode = res.data.handlingCode; | 869 | + this.selectData.HandlingCode = res.data.handlingCode; |
| 843 | - obj.SubCategory = res.data.subCategory; | 870 | + this.selectData.SubCategory = res.data.subCategory; |
| 844 | - } else { | 871 | + }else{ |
| 845 | - reject(res.msg); | 872 | + this.$message({ |
| 873 | + message: "查询条件不存在", | ||
| 874 | + type: "warning", | ||
| 875 | + }); | ||
| 846 | } | 876 | } |
| 847 | }) | 877 | }) |
| 848 | .catch(() => {}); | 878 | .catch(() => {}); |
| ... | @@ -850,36 +880,16 @@ export default { | ... | @@ -850,36 +880,16 @@ export default { |
| 850 | findConditionData() | 880 | findConditionData() |
| 851 | .then((res) => { | 881 | .then((res) => { |
| 852 | if (res.code == 200) { | 882 | if (res.code == 200) { |
| 853 | - obj.findConditionData = res.data; | 883 | + this.selectData.findConditionData = res.data; |
| 854 | - } else { | 884 | + }else{ |
| 855 | - reject(res.msg); | 885 | + this.$message({ |
| 886 | + message: "查询条件不存在", | ||
| 887 | + type: "warning", | ||
| 888 | + }); | ||
| 856 | } | 889 | } |
| 857 | - resolve(obj) | ||
| 858 | }) | 890 | }) |
| 859 | .catch(() => {}); | 891 | .catch(() => {}); |
| 860 | - this.select(); | 892 | + }, |
| 861 | - }).then(res=>{ | ||
| 862 | - this.selectData = res | ||
| 863 | - }).catch((err) => { | ||
| 864 | - this.$message({ | ||
| 865 | - message: "查询条件不存在", | ||
| 866 | - type: "warning", | ||
| 867 | - }); | ||
| 868 | - }); | ||
| 869 | - }, | ||
| 870 | - mounted() { | ||
| 871 | - window.addEventListener("keydown", (code) => { | ||
| 872 | - if (code.keyCode === 16 && code.shiftKey) { | ||
| 873 | - this.shiftKey = true; | ||
| 874 | - } | ||
| 875 | - }); | ||
| 876 | - window.addEventListener("keyup", (code) => { | ||
| 877 | - if (code.keyCode === 16) { | ||
| 878 | - this.shiftKey = false; | ||
| 879 | - } | ||
| 880 | - }); | ||
| 881 | - }, | ||
| 882 | - methods: { | ||
| 883 | //查询 | 893 | //查询 |
| 884 | select() { | 894 | select() { |
| 885 | this.loading = true; | 895 | this.loading = true; | ... | ... |
| ... | @@ -395,6 +395,15 @@ export default { | ... | @@ -395,6 +395,15 @@ export default { |
| 395 | }, | 395 | }, |
| 396 | { | 396 | { |
| 397 | type: "", | 397 | type: "", |
| 398 | + name: "服务代码", | ||
| 399 | + value: "serviceCode", | ||
| 400 | + width: "150", | ||
| 401 | + align: "center", | ||
| 402 | + sorTable: false, | ||
| 403 | + fixed:false, | ||
| 404 | + }, | ||
| 405 | + { | ||
| 406 | + type: "", | ||
| 398 | name: "URSA", | 407 | name: "URSA", |
| 399 | value: "ursa", | 408 | value: "ursa", |
| 400 | width: "150", | 409 | width: "150", | ... | ... |
-
Please register or login to post a comment