From 7f5fcdadb66ce178f913bd80c20638ac9b914a01 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 3 Nov 2022 10:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E5=BA=9C=E6=98=9F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tianfuxing/AppLevelList/AppLevelList.vue | 5 ++--- .../AppTaskReview/AppTaskReview.vue | 20 +++++++++---------- .../tianfuxing/AppUserList/AppUserList.vue | 2 +- vue.config.js | 2 +- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/project/tianfuxing/AppLevelList/AppLevelList.vue b/project/tianfuxing/AppLevelList/AppLevelList.vue index 5742bf89..29467995 100644 --- a/project/tianfuxing/AppLevelList/AppLevelList.vue +++ b/project/tianfuxing/AppLevelList/AppLevelList.vue @@ -32,7 +32,6 @@ - @@ -93,7 +92,7 @@ export default { if(Number(this.dialogInfo.beginIntegral) >= Number(this.dialogInfo.endIntegral)) { return this.$message.error('请输入正确的积分范围') } - this.instance.post(`/appintegrallevel/addOrUpdate`, {...this.dialogInfo}).then(res => { + this.instance.post(`api/appintegrallevel/addOrUpdate`, {...this.dialogInfo}).then(res => { if (res?.code == 0) { this.$message.success('等级修改成功') this.visible = false @@ -104,7 +103,7 @@ export default { }) }, getList() { - this.instance.post(`/appintegrallevel/list`, null, { + this.instance.post(`api/appintegrallevel/list`, null, { params: { ...this.page, }, diff --git a/project/tianfuxing/AppTaskReview/AppTaskReview.vue b/project/tianfuxing/AppTaskReview/AppTaskReview.vue index c7bea8a4..13086e07 100644 --- a/project/tianfuxing/AppTaskReview/AppTaskReview.vue +++ b/project/tianfuxing/AppTaskReview/AppTaskReview.vue @@ -30,12 +30,12 @@ width="720px" @onConfirm="onConfirm" @closed="form={}"> - - - - - - + + + + + + @@ -80,7 +80,7 @@ export default { {prop: "createTime", label: "上传时间", align: "center"}, {prop: "status", label: "状态", align: "center"}, {prop: "auditUserName", label: "处理人", align: "center"}, - {slot: "options", }, + {slot: "options"}, ] }, rules() { @@ -95,7 +95,7 @@ export default { this.$refs.form.validate((valid)=> { if(valid) { this.flag = true - this.instance.post(`/appwechatescalation/examine?id=${this.form.id}&pass=1&integral=${this.form.integral}`).then(res => { + this.instance.post(`api/appwechatescalation/examine?id=${this.form.id}&pass=1&integral=${this.form.integral}`).then(res => { if(res?.code == 0) { this.$message.success('审核成功') setTimeout(() =>{ @@ -117,7 +117,7 @@ export default { }, refuse(row) { this.$confirm('确定拒绝该任务?').then(() => { - this.instance.post(`/appwechatescalation/examine?id=${row.id}&pass=0`).then(res => { + this.instance.post(`api/appwechatescalation/examine?id=${row.id}&pass=0`).then(res => { if (res.code == 0) { this.$message.success('审核成功') this.getList() @@ -126,7 +126,7 @@ export default { }) }, getList() { - this.instance.post(`/appwechatescalation/list`,null,{ + this.instance.post(`api/appwechatescalation/list`,null,{ params: { ...this.page, ...this.search, diff --git a/project/tianfuxing/AppUserList/AppUserList.vue b/project/tianfuxing/AppUserList/AppUserList.vue index 41786716..363565cb 100644 --- a/project/tianfuxing/AppUserList/AppUserList.vue +++ b/project/tianfuxing/AppUserList/AppUserList.vue @@ -130,7 +130,7 @@ export default { }, getList() { - this.instance.post(`/appwechatuser/list`,null,{ + this.instance.post(`api/appwechatuser/list`,null,{ params: { ...this.page, ...this.search, diff --git a/vue.config.js b/vue.config.js index 0abff547..09607d77 100644 --- a/vue.config.js +++ b/vue.config.js @@ -125,7 +125,7 @@ module.exports = { changeOrigin: true, pathRewrite: { //地址重写 - '^/tfx': '/api' + '^/tfx': '/' } } },