| | |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | <span class="message-add" @click="dialogCreate = true"> |
| | | <span class="message-add button-addition" @click="dialogCreate = true"> |
| | | 添加栏目</span |
| | | > |
| | | </div> |
| | |
| | | async getColumnList() { |
| | | await this.$axios({ |
| | | method: "get", |
| | | url: "sccg/message_column/getAllColumn", |
| | | url: "sccg/message_column/getShowColumn", |
| | | }).then((res) => { |
| | | this.colList = res.data; |
| | | }); |
| | |
| | | targetTo: this.checkedList.join(","), |
| | | status: mystatus, |
| | | }; |
| | | if (this.role.channelCode === '03') { |
| | | delete params.messageType; |
| | | } |
| | | if (this.type === "create") { |
| | | sendMessage(params) |
| | | .then(() => { |
| | |
| | | }) |
| | | ); |
| | | } else { |
| | | updateMessage(params) |
| | | updateMessage({ id: this.myDataRow.id, ...params }) |
| | | .then(() => { |
| | | this.$emit("closeMyDialog"); |
| | | this.$message({ type: "success", message: "操作成功" }); |
| | |
| | | |
| | | // 消息预览 |
| | | handleView() { |
| | | this.role.body = this.$refs.edit.editor.txt.html(); |
| | | this.$refs.user.validate((valid) => { |
| | | if (valid) { |
| | | const { body, head, channelCode } = this.role; |