|
@@ -91,7 +91,7 @@
|
|
|
size="mini"
|
|
|
@click="operateRole(scope.row)"
|
|
|
v-privilege="activeMenu + 'PUT'"
|
|
|
- >修改</el-button>
|
|
|
+ >详情</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -348,7 +348,7 @@
|
|
|
<span>创建时间:{{noticeRow.createtime}}</span>
|
|
|
</div>
|
|
|
<div class="dialog-content">
|
|
|
- <p>
|
|
|
+ <p style="word-wrap: break-word;word-break:break-all">
|
|
|
{{noticeRow.message}}
|
|
|
</p>
|
|
|
</div>
|
|
@@ -614,32 +614,32 @@ export default {
|
|
|
// 每条页数
|
|
|
pageSizeChange (pageSize) {
|
|
|
this.noticeTable.tableParams.form.pageSize = pageSize;
|
|
|
- this.getNotice(0);
|
|
|
+ this.getNotice('0');
|
|
|
},
|
|
|
//当前页
|
|
|
pageCurrentChange (pageNum) {
|
|
|
this.noticeTable.tableParams.form.pageNum = pageNum;
|
|
|
- this.getNotice(0);
|
|
|
+ this.getNotice('0');
|
|
|
},
|
|
|
// 每条页数
|
|
|
pageSizeChange2 (pageSize) {
|
|
|
this.noticeTable.tableParams2.form.pageSize = pageSize;
|
|
|
- this.getNotice(1);
|
|
|
+ this.getNotice('1');
|
|
|
},
|
|
|
//当前页
|
|
|
pageCurrentChange2 (pageNum) {
|
|
|
this.noticeTable.tableParams2.form.pageNum = pageNum;
|
|
|
- this.getNotice(1);
|
|
|
+ this.getNotice('1');
|
|
|
},
|
|
|
//当前页
|
|
|
pageCurrentChange3 (pageNum) {
|
|
|
- this.noticeTable.tableParams2.form.pageNum = pageNum;
|
|
|
- this.getNotice(2);
|
|
|
+ this.noticeTable.tableParams3.form.pageNum = pageNum;
|
|
|
+ this.getNotice('2');
|
|
|
},
|
|
|
// 每条页数
|
|
|
pageSizeChange3 (pageSize) {
|
|
|
- this.noticeTable.tableParams2.form.pageSize = pageSize;
|
|
|
- this.getNotice(2);
|
|
|
+ this.noticeTable.tableParams3.form.pageSize = pageSize;
|
|
|
+ this.getNotice('2');
|
|
|
},
|
|
|
// 角色table点击
|
|
|
nodeClick (item) {
|
|
@@ -735,6 +735,7 @@ export default {
|
|
|
this.companyName = command.companyName;
|
|
|
this.noticeTable.tableParams.form.companyId = this.companyId;
|
|
|
this.noticeTable.tableParams2.form.companyId = this.companyId;
|
|
|
+ this.noticeTable.tableParams3.form.companyId = this.companyId;
|
|
|
this.getRoles();
|
|
|
},
|
|
|
filterRoleChange (filters) {
|
|
@@ -764,17 +765,25 @@ export default {
|
|
|
getNotice (status) {
|
|
|
let that = this;
|
|
|
let form = {};
|
|
|
+ let pageNum = 1;
|
|
|
+ let pageSize = 20;
|
|
|
if (status === '0') {
|
|
|
that.noticeInfo.loading = true;
|
|
|
+ pageNum = this.noticeTable.tableParams.form.pageNum;
|
|
|
+ pageSize = this.noticeTable.tableParams.form.pageSize;
|
|
|
} else if (status === '1') {
|
|
|
that.noticeInfo.loading2 = true;
|
|
|
+ pageNum = this.noticeTable.tableParams2.form.pageNum;
|
|
|
+ pageSize = this.noticeTable.tableParams2.form.pageSize;
|
|
|
} else {
|
|
|
that.noticeInfo.loading3 = true;
|
|
|
+ pageNum = this.noticeTable.tableParams3.form.pageNum;
|
|
|
+ pageSize = this.noticeTable.tableParams3.form.pageSize;
|
|
|
}
|
|
|
form = {
|
|
|
status: status,
|
|
|
- pageNum: status === '0' ? this.noticeTable.tableParams.form.pageNum : this.noticeTable.tableParams2.form.pageNum,
|
|
|
- pageSize: status === '0' ? this.noticeTable.tableParams.form.pageSize : this.noticeTable.tableParams2.form.pageSize,
|
|
|
+ pageNum: pageNum,
|
|
|
+ pageSize: pageSize,
|
|
|
companyId: this.companyId
|
|
|
},
|
|
|
this.axios.get('pass/ems/v1/emswebsocketlogs/?state='+form.status + '&pageNum=' + form.pageNum + '&pageSize=' + form.pageSize + '&companyId=' + form.companyId).then(res => {
|
|
@@ -806,7 +815,7 @@ export default {
|
|
|
try {
|
|
|
if (user && user !== null && user !== '') {
|
|
|
let userName = that.userMap[user].userName ? that.userMap[user].userName : user;
|
|
|
- userList.push(roleName);
|
|
|
+ userList.push(userName);
|
|
|
}
|
|
|
} catch (err) {
|
|
|
console.log ('错误对象:' + user);
|
|
@@ -846,7 +855,7 @@ export default {
|
|
|
try {
|
|
|
if (user && user !== null && user !== '') {
|
|
|
let userName = that.userMap[user].userName ? that.userMap[user].userName : user;
|
|
|
- userList.push(roleName);
|
|
|
+ userList.push(userName);
|
|
|
}
|
|
|
} catch (err) {
|
|
|
console.log ('错误对象:' + user);
|
|
@@ -897,7 +906,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
that.noticeInfo.loading3 = false;
|
|
|
- that.setFilterDatas(that.$refs.noticeInfo3.columns, that.noticeInfo.list, ['title', 'recRole', 'sendtime', 'sendor']);
|
|
|
+ that.setFilterDatas(that.$refs.noticeInfo3.columns, that.noticeInfo.receiveList, ['title', 'recRole', 'sendtime', 'sendor']);
|
|
|
that.noticeTable.tableParams3.page.total = res.data.total;
|
|
|
}
|
|
|
} else {
|
|
@@ -921,16 +930,16 @@ export default {
|
|
|
this.$confirm('确认关闭?')
|
|
|
.then(_ => {
|
|
|
done();
|
|
|
- if (this.activeName === 'unRead') {
|
|
|
- this.noticeInfo.list.forEach((item, index) => {
|
|
|
- if (this.noticeRow.id === item.id) {
|
|
|
- this.noticeInfo.list.splice(index, 1);
|
|
|
- this.noticeTable.tableParams.page.total -= 1;
|
|
|
- this.noticeInfo.hasReadList.unshift(item);
|
|
|
- this.noticeTable.tableParams2.page.total += 1;
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (this.activeName === 'unRead') {
|
|
|
+ // this.noticeInfo.list.forEach((item, index) => {
|
|
|
+ // if (this.noticeRow.id === item.id) {
|
|
|
+ // this.noticeInfo.list.splice(index, 1);
|
|
|
+ // this.noticeTable.tableParams.page.total -= 1;
|
|
|
+ // this.noticeInfo.hasReadList.unshift(item);
|
|
|
+ // this.noticeTable.tableParams2.page.total += 1;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|