修正接口请求
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user