Commit 65ded863 by caoyanzhi

接口联调

parent 171965ec
......@@ -136,14 +136,14 @@ export default {
const { authItemId, authItemName, operationItemIds } = this.editAuth;
const params = {
authItemName,
operationItemIds: operationItemIds.join(',')
operationItemIds: operationItemIds.join(','),
menuId: this.menuId
}
this.editAuth.loading = true;
if (authItemId) {
params.authItemId = authItemId;
editAuthItem(params).then(succ.bind(this, '保存成功!')).finally(() => this.editAuth.loading = false);
} else {
params.menuId = this.menuId;
addAuthItem(params).then(succ.bind(this, '新建成功!')).finally(() => this.editAuth.loading = false);
}
function succ(msg) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment