| | |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | <!-- <div class="message-kind"> |
| | | <span>消息分类:</span> |
| | | <el-select v-model="messageKind" placeholder="请选择消息分类"> |
| | | <el-option v-for="item in kindList" :key="item.id" :label="item.columnName" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> --> |
| | | <div class="find"> |
| | | <el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button> |
| | | <el-button icon="el-icon-delete-solid" @click="handleReset">重置</el-button> |
| | |
| | | :before-close="handleConfirmClose"> |
| | | <MyCreate @closeMyDialog="closeDialog"></MyCreate> |
| | | </el-dialog> |
| | | <!-- 消息详情 --> |
| | | <!-- <el-dialog title="消息详情" :visible.sync="dialogView" v-if="dialogView" width="45%" |
| | | :before-close="handleClose"> |
| | | <MyView @closeDialog="closeDialog" :myinfo="info">></MyView> |
| | | </el-dialog> --> |
| | | <!-- 编辑页面 --> |
| | | <!-- <el-dialog title="编辑消息" :visible.sync="dialogEdit" v-if="dialogEdit" width="80%" |
| | | :before-close="handleClose"> |
| | | <MyEdit @closeDialog="closeDialog" :myDataRow="info"></MyEdit> |
| | | </el-dialog> --> |
| | | <!-- tools --> |
| | | <div class="tools"> |
| | | <div class="funs"> |
| | | <div class="funsItem funs-sp"> |
| | |
| | | <script> |
| | | import helper from '@/utils/mydate' |
| | | import MyCreate from './createSms' |
| | | import SMS from "@/api/operate/SMS"; |
| | | |
| | | export default { |
| | | components: { |
| | | MyCreate |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | const {setTableData} = this |
| | | setTableData(); |
| | | this.getTableData(); |
| | | }, |
| | | methods: { |
| | | // 查询 |
| | | handleSearch(){ |
| | | this.setTableData(); |
| | | this.getTableData(); |
| | | }, |
| | | // 重置 |
| | | handleReset(){ |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | // 设置表格数据 |
| | | async setTableData() { |
| | | const arr = await this.getMessageList(); |
| | | this.tableData = arr.records; |
| | | this.totalNum = arr.total |
| | | }, |
| | | // 获取消息数据 |
| | | async getMessageList() { |
| | | let arr = []; |
| | | const { currentPage, pageSize,context,messageStatus,messageKind } = this; |
| | | await this.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/message/list', |
| | | data: { |
| | | body: "", |
| | | channelCode: '03', |
| | | createUser: '', |
| | | current: currentPage, |
| | | head: context, |
| | | messageType: "", |
| | | pageSize: pageSize, |
| | | randomCode: "", |
| | | remark: "", |
| | | sendTime: "", |
| | | status: messageStatus === 2 ? '':messageStatus, |
| | | targetFrom: "", |
| | | targetTo: "" |
| | | } |
| | | }) |
| | | .then(res => { |
| | | arr = res.data; |
| | | }) |
| | | return arr; |
| | | getTableData() { |
| | | SMS.getSMSTemplateList() |
| | | .then(({ records, total }) => { |
| | | this.tableData = records; |
| | | this.totalNum = total; |
| | | }) |
| | | .catch(err => { |
| | | this.$message({ type: 'error', message: err }); |
| | | }) |
| | | }, |
| | | // 批量下拉框操作 |
| | | async selectChange(list) { |