diff --git a/src/manifest.json b/src/manifest.json index fb13a662..9822fcd0 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -29,7 +29,8 @@ "open": true, "proxy": { "/lan": { - "target": "http://192.168.1.87:9000", + // "target": "http://192.168.1.87:9000", + "target": "http://test87tpweb.cunwuyun.cn", "changeOrigin": true, "pathRewrite": { "^/lan": "/" diff --git a/src/sass/AppSpecialPeople/detail.vue b/src/sass/AppSpecialPeople/detail.vue index 96401d77..f6143165 100644 --- a/src/sass/AppSpecialPeople/detail.vue +++ b/src/sass/AppSpecialPeople/detail.vue @@ -7,12 +7,12 @@
- +
@@ -96,14 +96,15 @@ export default { }, computed: { ...mapState(['user']) }, created() { - this.areaId = this.user.areaId - this.areaName = this.user.areaName - this.getStatistic() - this.getStatisticMon() - this.getUserList() + this.$dict.load('appSpecialTypeFive').then(() => { + this.areaId = this.user.areaId + this.areaName = this.user.areaName + this.getStatistic() + this.getUserList() + }) + uni.$on('specialPeopleList', () => { this.getStatistic() - this.getStatisticMon() this.getUserList() }) }, @@ -115,7 +116,6 @@ export default { areaSelect(e) { this.areaId = e this.getStatistic() - this.getStatisticMon() this.getUserList() }, tabClick(index) { @@ -123,45 +123,45 @@ export default { }, getStatistic() { this.statisticsList = [] - this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=0`).then((res) => { - if (res.code == 0) { - for(let i in res.data){ - var obj = { - label: i, - value: res.data[i] - } - this.statisticsList.push(obj) - } - } + this.$http.post(`/app/appspecialadjustment/statistic?type=0&range=0`).then((res) => { + // if (res.code == 0) { + // for(let i in res.data){ + // var obj = { + // label: i, + // value: res.data[i] + // } + // this.statisticsList.push(obj) + // } + // } }) }, getStatisticMon() { - this.statisticsListMon = [] - this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=1`).then((res) => { - if (res.code == 0) { - for(let i in res.data){ - var obj = { - label: i, - value: res.data[i] - } - this.statisticsListMon.push(obj) - } - } - }) + // this.statisticsListMon = [] + // this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=1`).then((res) => { + // if (res.code == 0) { + // for(let i in res.data){ + // var obj = { + // label: i, + // value: res.data[i] + // } + // this.statisticsListMon.push(obj) + // } + // } + // }) }, getUserList() { this.userList = [] - this.$http.post(`/app/appapplicationinfo/queryPeople?areaId=${this.areaId}&type=0&name=${this.name}`).then((res) => { - if (res.code == 0) { - for(let i in res.data){ - var obj = { - label: i, - value: res.data[i], - check: false - } - this.userList.push(obj) - } - } + this.$http.post(`/app/appspecialadjustment/allList?type=0&name=${this.name}`).then((res) => { + // if (res.code == 0) { + // for(let i in res.data){ + // var obj = { + // label: i, + // value: res.data[i], + // check: false + // } + // this.userList.push(obj) + // } + // } }) }, toAdd() {