| @@ -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); | ||||
| } | } | ||||