添加api
This commit is contained in:
@@ -204,7 +204,7 @@ export default {
|
|||||||
if (this.lock) return this.$message.error("请勿多次提交!")
|
if (this.lock) return this.$message.error("请勿多次提交!")
|
||||||
this.lock = true
|
this.lock = true
|
||||||
let areaFullName = this.dialogForm.areaName
|
let areaFullName = this.dialogForm.areaName
|
||||||
this.instance.post("/user/empower", {...this.dialogForm, areaFullName}).then(res => {
|
this.instance.post("/app/user/empower", {...this.dialogForm, areaFullName}).then(res => {
|
||||||
this.lock = false
|
this.lock = false
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.dialog = false;
|
this.dialog = false;
|
||||||
@@ -224,7 +224,7 @@ export default {
|
|||||||
this.$refs.addAccountForm.validate(v => {
|
this.$refs.addAccountForm.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
let {account} = this
|
let {account} = this
|
||||||
this.instance.post("/user/add", account).then(res => {
|
this.instance.post("/app/user/add", account).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$message.success("提交成功!")
|
this.$message.success("提交成功!")
|
||||||
this.accountDialog = false
|
this.accountDialog = false
|
||||||
@@ -236,7 +236,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleDelete(ids) {
|
handleDelete(ids) {
|
||||||
this.$confirm("是否要删除该账号?").then(() => {
|
this.$confirm("是否要删除该账号?").then(() => {
|
||||||
this.instance.post("/user/del", null, {
|
this.instance.post("/app/user/del", null, {
|
||||||
params: {ids}
|
params: {ids}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user