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
| @@ -548,7 +548,7 @@ spring: | @@ -548,7 +548,7 @@ spring: | ||
| 548 | nacos: | 548 | nacos: |
| 549 | username: nacos | 549 | username: nacos |
| 550 | password: nacos | 550 | password: nacos |
| 551 | - server-addr: 192.168.150.101:8848 | 551 | + server-addr: nacos.diligrp.com:8848 |
| 552 | discovery: | 552 | discovery: |
| 553 | namespace: ecae68ba-7b43-4473-a980-4ddeb6157bdc | 553 | namespace: ecae68ba-7b43-4473-a980-4ddeb6157bdc |
| 554 | ip: 192.168.150.1 | 554 | ip: 192.168.150.1 |
project-slwl-admin-vue/.env.development
| @@ -5,8 +5,8 @@ NODE_ENV = development | @@ -5,8 +5,8 @@ NODE_ENV = development | ||
| 5 | VUE_APP_NODE_ENV=dev | 5 | VUE_APP_NODE_ENV=dev |
| 6 | 6 | ||
| 7 | # base api | 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 | # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, | 10 | # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, |
| 11 | # to control whether the babel-plugin-dynamic-import-node plugin is enabled. | 11 | # to control whether the babel-plugin-dynamic-import-node plugin is enabled. |
| 12 | # It only does one thing by converting all import() to require(). | 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,7 +8,7 @@ | ||
| 8 | " | 8 | " |
| 9 | > | 9 | > |
| 10 | <app-link | 10 | <app-link |
| 11 | - v-if="onlyOneChild.meta" | 11 | + v-if="onlyOneChild" |
| 12 | :to="resolvePath(onlyOneChild.path)" | 12 | :to="resolvePath(onlyOneChild.path)" |
| 13 | > | 13 | > |
| 14 | <el-menu-item | 14 | <el-menu-item |
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | /> | 21 | /> |
| 22 | <item | 22 | <item |
| 23 | 23 | ||
| 24 | - :title="onlyOneChild.meta.title" | 24 | + :title="onlyOneChild.name" |
| 25 | /> | 25 | /> |
| 26 | </el-menu-item> | 26 | </el-menu-item> |
| 27 | </app-link> | 27 | </app-link> |
| @@ -37,8 +37,8 @@ | @@ -37,8 +37,8 @@ | ||
| 37 | <!-- <div>图标</div> --> | 37 | <!-- <div>图标</div> --> |
| 38 | <img :src="item.icon" /> | 38 | <img :src="item.icon" /> |
| 39 | <item | 39 | <item |
| 40 | - v-if="item.meta" | ||
| 41 | - :title="item.meta.title" | 40 | + v-if="item" |
| 41 | + :title="item.name" | ||
| 42 | /> | 42 | /> |
| 43 | </template> | 43 | </template> |
| 44 | <sidebar-item | 44 | <sidebar-item |
project-slwl-admin-vue/src/views/dashboard/index.vue
| @@ -737,44 +737,44 @@ export default { | @@ -737,44 +737,44 @@ export default { | ||
| 737 | }, | 737 | }, |
| 738 | // 获取页面数据 | 738 | // 获取页面数据 |
| 739 | getPageData () { | 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 | handleToTransportTask () { | 780 | handleToTransportTask () { |
project-slwl-admin-vue/vue.config.js
| @@ -34,7 +34,7 @@ module.exports = { | @@ -34,7 +34,7 @@ module.exports = { | ||
| 34 | '/api1/apiLogin': { | 34 | '/api1/apiLogin': { |
| 35 | // target: 'http://canzg-wsl.itheima.net/enterpise', | 35 | // target: 'http://canzg-wsl.itheima.net/enterpise', |
| 36 | // target: 'http://172.17.2.120:8080', | 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 | ws: true, | 38 | ws: true, |
| 39 | secure: false, | 39 | secure: false, |
| 40 | changeOrigin: true, | 40 | changeOrigin: true, |
| @@ -42,7 +42,7 @@ module.exports = { | @@ -42,7 +42,7 @@ module.exports = { | ||
| 42 | '^/api1/apiLogin': '' | 42 | '^/api1/apiLogin': '' |
| 43 | } | 43 | } |
| 44 | }, | 44 | }, |
| 45 | - '/api1': { | 45 | + '/manager': { |
| 46 | // target: 'http://canzg-wsl.itheima.net/enterpise', | 46 | // target: 'http://canzg-wsl.itheima.net/enterpise', |
| 47 | // target: 'http://172.16.43.24:18093', // 家乐 | 47 | // target: 'http://172.16.43.24:18093', // 家乐 |
| 48 | // target: 'http://slwl-geteway-t.itheima.net/manager', // 测试环境 | 48 | // target: 'http://slwl-geteway-t.itheima.net/manager', // 测试环境 |
| @@ -52,7 +52,7 @@ module.exports = { | @@ -52,7 +52,7 @@ module.exports = { | ||
| 52 | secure: false, | 52 | secure: false, |
| 53 | changeOrigin: true, | 53 | changeOrigin: true, |
| 54 | pathRewrite: { | 54 | pathRewrite: { |
| 55 | - '^/api1': '' | 55 | + '^/manager': '' |
| 56 | } | 56 | } |
| 57 | } | 57 | } |
| 58 | // '/web-manager': { | 58 | // '/web-manager': { |