修正接口请求

This commit is contained in:
aixianling
2022-08-26 14:24:34 +08:00
parent 44ca30cbf3
commit ce1fd46b7e
53 changed files with 151 additions and 151 deletions

View File

@@ -60,7 +60,7 @@ export default {
methods: {
getDetail() {
let {id} = this.$route.query
this.instance.post("/appportaluser/queryDetailByPortalUserId", null, {
this.instance.post("/app/appportaluser/queryDetailByPortalUserId", null, {
params: {id}
}).then(res => {
if (res?.data) {

View File

@@ -55,7 +55,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appportaluser/listPortalUser", null, {
this.instance.post("/app/appportaluser/listPortalUser", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -67,7 +67,7 @@ export default {
handleEnable(row) {
let status = (Number(row.status) + 1) % 2
this.$confirm(`是否要${this.dict.getLabel('portalUserStatus', status)}账号?`).then(() => {
this.instance.post("/appportaluser/addOrUpdate", {...row, status}).then(res => {
this.instance.post("/app/appportaluser/addOrUpdate", {...row, status}).then(res => {
if (res?.code == 0) {
this.$message.success(this.dict.getLabel('portalUserStatus', status) + "成功!")
this.getTableData()