|
|
@ -21,8 +21,18 @@ |
|
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
|
<el-table-column type="index" label="序号" width="100" align="center" /> |
|
|
|
<el-table-column prop="noticeContent" :show-overflow-tooltip="true" label="通知内容" min-width="200" align="center" /> |
|
|
|
<el-table-column prop="noticeType" label="消息类型" align="center" min-width="150" /> |
|
|
|
<el-table-column prop="pushTo" label="推送对象" align="center" min-width="150" /> |
|
|
|
<el-table-column prop="noticeType" label="消息类型" align="center" min-width="150"> |
|
|
|
<!-- <span v-if="scope.row.noticeType===1">系统消息</span> --> |
|
|
|
<span>系统消息</span> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="pushTo" label="推送对象" align="center" min-width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="typeof(scope.row.pushTo)==='string'">{{ scope.row.pushTo }}</span> |
|
|
|
<div v-if="!(typeof(scope.row.pushTo)==='string')"> |
|
|
|
<el-tag v-for="(item,i) in scope.row.pushTo" :key="i" style="margin-left:3px">{{ item }}</el-tag> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="update_by" label="推送人" align="center" min-width="150" /> |
|
|
|
<el-table-column prop="create_time" sortable label="推送时间" align="center" min-width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -196,7 +206,7 @@ export default { |
|
|
|
} |
|
|
|
} else if (item.noticeUsers.length > 0) { // 推送对象为用户 |
|
|
|
// pushArr = item.noticeDevices |
|
|
|
if (item.noticeUsers.length === this.devOptions.length - 1) { |
|
|
|
if (item.noticeUsers.length === this.userOptions.length - 1) { |
|
|
|
item.pushTo = '全部用户' |
|
|
|
item.pushVal = this.sendObjOptions.map(i => { return i.value }) |
|
|
|
} else { |
|
|
@ -269,6 +279,7 @@ export default { |
|
|
|
}, |
|
|
|
selectionChangeHandler(val) { |
|
|
|
this.selections = val |
|
|
|
console.log(val) |
|
|
|
}, |
|
|
|
// 发布 |
|
|
|
handleSend() { |
|
|
|