From 77f06c0526787b21fcae81798567c7c98cde815e Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 30 Dec 2022 16:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=94=E8=A5=BF=E5=8D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/axios.js | 2 +- src/manifest.json | 7 +++++ src/pages/login.vue | 2 ++ .../AppResidentsType/AppResidentsType.vue | 27 ++++++++++++++++++- 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/common/axios.js b/src/common/axios.js index 095dbe95..b6298dc0 100644 --- a/src/common/axios.js +++ b/src/common/axios.js @@ -17,7 +17,7 @@ instance.interceptors.request.use(config => { config.url = config.url.replace(/(app|auth|admin)\//, "api/") } else if (!/^App/.test(module) && module) { config.baseURL = `/${module}` - if (['xaxc'].includes(module)) { + if (['xaxc', 'qxn'].includes(module)) { config.url = config.url.replace(/(app|auth|admin)\//, "api/") } } else config.baseURL = "/lan" diff --git a/src/manifest.json b/src/manifest.json index 9f469c97..af93682d 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -85,6 +85,13 @@ "pathRewrite": { "^/xaxc": "/" } + }, + "/qxn": { + "target": "http://192.168.1.87:12001/", + "changeOrigin": true, + "pathRewrite": { + "^/qxn": "/" + } } } }, diff --git a/src/pages/login.vue b/src/pages/login.vue index 750742a3..6661f5fe 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -75,6 +75,8 @@ export default { module = 'online' } else if (/\/project\/xincheng\//.test(libPath)) { module = 'xaxc' + } else if (/\/project\/qianxinan\//.test(libPath)) { + module = 'qxn' } else if (/\/project\/beta\//.test(libPath)) { corpId = 'ww2a667717a70164f1' module = 'wangge' diff --git a/src/project/qianxinan/AppResidentsType/AppResidentsType.vue b/src/project/qianxinan/AppResidentsType/AppResidentsType.vue index 1c6fc0eb..b90fc9c7 100644 --- a/src/project/qianxinan/AppResidentsType/AppResidentsType.vue +++ b/src/project/qianxinan/AppResidentsType/AppResidentsType.vue @@ -109,6 +109,8 @@ // this.current = 1 // this.getList() // }) + this.getTotal() + this.getListInit() }, onShow() { @@ -118,6 +120,7 @@ methods: { getListInit() { this.current = 1 + this.getList() }, areaSelect(e) { this.areaId =e @@ -129,7 +132,29 @@ clearDept() { this.deptList = [] this.getListInit() - } + }, + getTotal() { + this.$http.post(`/appwxuserfamiliarityrate/wxTopStatistics`).then(res=> { + if(res?.data) { + + } + }) + }, + getList() { + this.$http.post(`/appwxuserfamiliarityrate/list`, null, { + params: { + current: this.current, + // taskTitle: this.taskTitle, + // startTime: this.start, + // endTime: this.end, + // createUserId: this.createUserId, + } + }).then(res=> { + if(res?.data) { + this.list = this.current == 1? res.data.records : [...this.list,...res.data.records] + } + }) + }, }, }