Browse Source

提交日报周报页面

newStyle
douzhuo 2 years ago
parent
commit
d90082aa64
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      src/views/admin/role/index.vue

+ 5
- 6
src/views/admin/role/index.vue View File

@@ -467,19 +467,18 @@ export default {


// 确认添加 // 确认添加
addPush() { addPush() {
if (this.checkList.length == 0) {
this.$message.info("请选择需要推送的权限");
return;
}
console.log(this.checkList)
if (this.checkList.length > 0) { if (this.checkList.length > 0) {
this.form.messageType = this.checkList.join(","); this.form.messageType = this.checkList.join(",");
} else {
this.form.messageType = ''
} }

putObj(this.form).then((res) => { putObj(this.form).then((res) => {
console.log(res); console.log(res);
this.cancelAddPush(); this.cancelAddPush();
if (res.data) {
if (res.code == 0) {
this.$message.success("编辑成功"); this.$message.success("编辑成功");
this.findMyOrg();
} else { } else {
this.$message.error(res.msg); this.$message.error(res.msg);
} }


Loading…
Cancel
Save