Browse Source

通知管理 设备类型通知修改bug

master
x_ying 2 years ago
parent
commit
82ce14eb6c
  1. 8
      src/views/system/notifyManage/index.vue

8
src/views/system/notifyManage/index.vue

@ -11,10 +11,10 @@
<!--表格渲染--> <!--表格渲染-->
<el-table <el-table
ref="table" ref="table"
:default-sort="{prop: 'create_time', order: 'descending'}"
:data="tableData" :data="tableData"
style="width: 100%;" style="width: 100%;"
height="calc(100vh - 294px)" height="calc(100vh - 294px)"
:default-sort="{prop: 'create_time', order: 'descending'}"
@row-click="clickRowHandler" @row-click="clickRowHandler"
@selection-change="selectionChangeHandler" @selection-change="selectionChangeHandler"
> >
@ -173,7 +173,8 @@ export default {
getParams() { getParams() {
const params = { const params = {
page: null, page: null,
size: null
size: null,
sort: 'createTime,desc'
} }
params.page = this.page.page - 1 params.page = this.page.page - 1
params.size = this.page.size params.size = this.page.size
@ -206,7 +207,7 @@ export default {
// pushArr = item.noticeDevices // pushArr = item.noticeDevices
if (item.noticeUsers.length === this.userOptions.length - 1) { if (item.noticeUsers.length === this.userOptions.length - 1) {
item.pushTo = '全部用户' item.pushTo = '全部用户'
item.pushVal = this.sendObjOptions.map(i => { return i.value })
item.pushVal = this.userOptions.map(i => { return i.value })
} else { } else {
item.pushVal = item.noticeUsers.map(i => { return i.userId }) item.pushVal = item.noticeUsers.map(i => { return i.userId })
item.pushTo = item.noticeUsers.map(i => { item.pushTo = item.noticeUsers.map(i => {
@ -320,6 +321,7 @@ export default {
if (this.isEdit) { if (this.isEdit) {
params.id = this.selections[0].id params.id = this.selections[0].id
} }
console.log(params, '参数')
return params return params
}, },
// //

Loading…
Cancel
Save