黔西南

This commit is contained in:
liuye
2022-12-30 16:26:52 +08:00
parent f81ac447f6
commit 77f06c0526
4 changed files with 36 additions and 2 deletions

View File

@@ -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"

View File

@@ -85,6 +85,13 @@
"pathRewrite": {
"^/xaxc": "/"
}
},
"/qxn": {
"target": "http://192.168.1.87:12001/",
"changeOrigin": true,
"pathRewrite": {
"^/qxn": "/"
}
}
}
},

View File

@@ -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'

View File

@@ -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]
}
})
},
},
}
</script>