| | |
| | | @row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot-scope="{ row, size, index }" slot="menu"> |
| | | <el-button :size="size" type="text" icon="el-icon-circle-check" @click.stop="handleEnable(row)">复制 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getList, getDetail, add, update, remove, enable, sendEmail } from "@/api/system/email" |
| | | import { getMessageUserPage } from "@/api/system/email" |
| | | import { mapGetters } from "vuex" |
| | | |
| | | export default { |
| | |
| | | border: true, |
| | | index: true, |
| | | viewBtn: false, |
| | | addBtn: false, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | menuWidth: 350, |
| | | // menuWidth: 350, |
| | | menu: false, |
| | | column: [ |
| | | { |
| | | label: "主题", |
| | | prop: "remark", |
| | | label: "标题", |
| | | prop: "title", |
| | | type: "input", |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "正文内容", |
| | | prop: "remark", |
| | | prop: "content", |
| | | type: "input", |
| | | align: 'center' |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | }, |
| | | onLoad (page, params = {}) { |
| | | this.loading = true |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | getMessageUserPage(page.currentPage, page.pageSize, Object.assign(params, {})).then(res => { |
| | | const data = res.data.data |
| | | this.page.total = data.total |
| | | this.data = data.records |