Commit 01767b9a752f6aa3075b1fc68c73e100ba826ba9
1 parent
d9137486
Update Nacos configuration, adjust dependency versions, and refine parent project version
Showing
5 changed files
with
48 additions
and
48 deletions
Too many changes to show.
To preserve performance only 5 of 55 files are displayed.
Readme.md
project-slwl-admin-vue/.env.development
| ... | ... | @@ -5,8 +5,8 @@ NODE_ENV = development |
| 5 | 5 | VUE_APP_NODE_ENV=dev |
| 6 | 6 | |
| 7 | 7 | # base api |
| 8 | -VUE_APP_BASE_URL = 'http://god-express-gateway-t.itheima.net/manager' | |
| 9 | -VUE_APP_URL = 'http://god-express-gateway-t.itheima.net/manager' | |
| 8 | +VUE_APP_BASE_URL = '/manager' | |
| 9 | +VUE_APP_URL = 'http://10.28.3.3:9527/manager' | |
| 10 | 10 | # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, |
| 11 | 11 | # to control whether the babel-plugin-dynamic-import-node plugin is enabled. |
| 12 | 12 | # It only does one thing by converting all import() to require(). | ... | ... |
project-slwl-admin-vue/src/layout/components/Sidebar/SidebarItem.vue
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | " |
| 9 | 9 | > |
| 10 | 10 | <app-link |
| 11 | - v-if="onlyOneChild.meta" | |
| 11 | + v-if="onlyOneChild" | |
| 12 | 12 | :to="resolvePath(onlyOneChild.path)" |
| 13 | 13 | > |
| 14 | 14 | <el-menu-item |
| ... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 | /> |
| 22 | 22 | <item |
| 23 | 23 | |
| 24 | - :title="onlyOneChild.meta.title" | |
| 24 | + :title="onlyOneChild.name" | |
| 25 | 25 | /> |
| 26 | 26 | </el-menu-item> |
| 27 | 27 | </app-link> |
| ... | ... | @@ -37,8 +37,8 @@ |
| 37 | 37 | <!-- <div>图标</div> --> |
| 38 | 38 | <img :src="item.icon" /> |
| 39 | 39 | <item |
| 40 | - v-if="item.meta" | |
| 41 | - :title="item.meta.title" | |
| 40 | + v-if="item" | |
| 41 | + :title="item.name" | |
| 42 | 42 | /> |
| 43 | 43 | </template> |
| 44 | 44 | <sidebar-item | ... | ... |
project-slwl-admin-vue/src/views/dashboard/index.vue
| ... | ... | @@ -737,44 +737,44 @@ export default { |
| 737 | 737 | }, |
| 738 | 738 | // 获取页面数据 |
| 739 | 739 | getPageData () { |
| 740 | - dashboardData().then((res) => { | |
| 741 | - this.organOverview = res.data.organOverview | |
| 742 | - this.todayData = res.data.todayData | |
| 743 | - this.addNumber(0, res.data.todayData.orderAmount, 'my-number1', 25) | |
| 744 | - this.addNumber(0, res.data.todayData.orderNumber, 'my-number2', 2) | |
| 745 | - this.addNumber( | |
| 746 | - 0, | |
| 747 | - res.data.todayData.transportTaskNumber, | |
| 748 | - 'my-number3', | |
| 749 | - 1 | |
| 750 | - ) | |
| 751 | - this.dealWithBacklogChartData(res) | |
| 752 | - this.dealWithTaskingListData(res) | |
| 753 | - this.transportTaskListData = res.data.transportTaskList // 运输任务 | |
| 754 | - this.notChangeTransportTaskListData = res.data.transportTaskList | |
| 755 | - this.orderAccountTitleData = res.data.orderLineChart // 近期订单总量 | |
| 756 | - // 对订单总量折线图Y轴数据接受的数据进行处理,使其显示正确的数据 | |
| 757 | - this.orderAccountChartY = res.data.orderLineChart.monthlyOrderList.map( | |
| 758 | - (item) => { | |
| 759 | - return item.dateTime | |
| 760 | - } | |
| 761 | - ) | |
| 762 | - // 对订单总量折线图X轴数据接受的数据进行处理,使其显示正确的数据 | |
| 763 | - this.orderAccountChartX = res.data.orderLineChart.monthlyOrderList.map( | |
| 764 | - (item) => { | |
| 765 | - return item.orderNumber | |
| 766 | - } | |
| 767 | - ) | |
| 768 | - // 等待数据更新完成后再执行 | |
| 769 | - this.$nextTick(() => { | |
| 770 | - this.$refs.ballChart.initial() | |
| 771 | - this.$refs.ballChartIng.initial() | |
| 772 | - this.$refs.lineManageChart.initial() | |
| 773 | - this.$refs.orderAccountChart.initial() | |
| 774 | - this.$refs.orderDistributeChart.initial() | |
| 775 | - this.tableActionFun() | |
| 776 | - }) | |
| 777 | - }) | |
| 740 | + // dashboardData().then((res) => { | |
| 741 | + // this.organOverview = res.data.organOverview | |
| 742 | + // this.todayData = res.data.todayData | |
| 743 | + // this.addNumber(0, res.data.todayData.orderAmount, 'my-number1', 25) | |
| 744 | + // this.addNumber(0, res.data.todayData.orderNumber, 'my-number2', 2) | |
| 745 | + // this.addNumber( | |
| 746 | + // 0, | |
| 747 | + // res.data.todayData.transportTaskNumber, | |
| 748 | + // 'my-number3', | |
| 749 | + // 1 | |
| 750 | + // ) | |
| 751 | + // this.dealWithBacklogChartData(res) | |
| 752 | + // this.dealWithTaskingListData(res) | |
| 753 | + // this.transportTaskListData = res.data.transportTaskList // 运输任务 | |
| 754 | + // this.notChangeTransportTaskListData = res.data.transportTaskList | |
| 755 | + // this.orderAccountTitleData = res.data.orderLineChart // 近期订单总量 | |
| 756 | + // // 对订单总量折线图Y轴数据接受的数据进行处理,使其显示正确的数据 | |
| 757 | + // this.orderAccountChartY = res.data.orderLineChart.monthlyOrderList.map( | |
| 758 | + // (item) => { | |
| 759 | + // return item.dateTime | |
| 760 | + // } | |
| 761 | + // ) | |
| 762 | + // // 对订单总量折线图X轴数据接受的数据进行处理,使其显示正确的数据 | |
| 763 | + // this.orderAccountChartX = res.data.orderLineChart.monthlyOrderList.map( | |
| 764 | + // (item) => { | |
| 765 | + // return item.orderNumber | |
| 766 | + // } | |
| 767 | + // ) | |
| 768 | + // // 等待数据更新完成后再执行 | |
| 769 | + // this.$nextTick(() => { | |
| 770 | + // this.$refs.ballChart.initial() | |
| 771 | + // this.$refs.ballChartIng.initial() | |
| 772 | + // this.$refs.lineManageChart.initial() | |
| 773 | + // this.$refs.orderAccountChart.initial() | |
| 774 | + // this.$refs.orderDistributeChart.initial() | |
| 775 | + // this.tableActionFun() | |
| 776 | + // }) | |
| 777 | + // }) | |
| 778 | 778 | }, |
| 779 | 779 | // 跳转到运输任务列表 |
| 780 | 780 | handleToTransportTask () { | ... | ... |
project-slwl-admin-vue/vue.config.js
| ... | ... | @@ -34,7 +34,7 @@ module.exports = { |
| 34 | 34 | '/api1/apiLogin': { |
| 35 | 35 | // target: 'http://canzg-wsl.itheima.net/enterpise', |
| 36 | 36 | // target: 'http://172.17.2.120:8080', |
| 37 | - target: 'http://172.17.0.60:8760/api', | |
| 37 | + target: 'http://10.28.3.3:8760/api', | |
| 38 | 38 | ws: true, |
| 39 | 39 | secure: false, |
| 40 | 40 | changeOrigin: true, |
| ... | ... | @@ -42,7 +42,7 @@ module.exports = { |
| 42 | 42 | '^/api1/apiLogin': '' |
| 43 | 43 | } |
| 44 | 44 | }, |
| 45 | - '/api1': { | |
| 45 | + '/manager': { | |
| 46 | 46 | // target: 'http://canzg-wsl.itheima.net/enterpise', |
| 47 | 47 | // target: 'http://172.16.43.24:18093', // 家乐 |
| 48 | 48 | // target: 'http://slwl-geteway-t.itheima.net/manager', // 测试环境 |
| ... | ... | @@ -52,7 +52,7 @@ module.exports = { |
| 52 | 52 | secure: false, |
| 53 | 53 | changeOrigin: true, |
| 54 | 54 | pathRewrite: { |
| 55 | - '^/api1': '' | |
| 55 | + '^/manager': '' | |
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | // '/web-manager': { | ... | ... |