|
@@ -341,7 +341,11 @@
|
|
|
>通知信息</el-button
|
|
|
>
|
|
|
</el-badge>
|
|
|
- <div class="Web_Notice" v-show="socketshow" style="z-index: 1 ; overflow-y: scroll">
|
|
|
+ <div
|
|
|
+ class="Web_Notice"
|
|
|
+ v-show="socketshow"
|
|
|
+ style="z-index: 1 ; overflow-y: scroll"
|
|
|
+ >
|
|
|
<div class="workspace_row-grid_mytask">
|
|
|
<div
|
|
|
class="workspace_message"
|
|
@@ -660,24 +664,20 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!--通知弹窗-->
|
|
|
- <el-dialog
|
|
|
- :visible.sync="centerDialogVisible"
|
|
|
- >
|
|
|
+ <el-dialog :visible.sync="centerDialogVisible">
|
|
|
<div style="margin-left: 30px; font-size: 20px">
|
|
|
- <h1>{{noticedata1.noticetitle}}</h1>
|
|
|
+ <h1>{{ noticedata1.noticetitle }}</h1>
|
|
|
</div>
|
|
|
<div style="height: 20px"></div>
|
|
|
<div style="margin-left: 30px">
|
|
|
- <i class="el-icon-document"></i>{{noticedata1.noticecontent}}
|
|
|
+ <i class="el-icon-document"></i>{{ noticedata1.noticecontent }}
|
|
|
</div>
|
|
|
<el-divider></el-divider>
|
|
|
<div style="margin-left: 30px">
|
|
|
<i class="el-icon-user-solid"></i>
|
|
|
- {{noticedata1.insertusername}}
|
|
|
- </div>
|
|
|
- <div style="margin-left: 30px">
|
|
|
- <i></i>{{noticedata1.inserttime}}
|
|
|
+ {{ noticedata1.insertusername }}
|
|
|
</div>
|
|
|
+ <div style="margin-left: 30px"><i></i>{{ noticedata1.inserttime }}</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="makeSure">确 定</el-button>
|
|
|
</span>
|
|
@@ -763,7 +763,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
- centerDialogVisible:false,
|
|
|
+ centerDialogVisible: false,
|
|
|
badgeshow: '',
|
|
|
dutyName: '',
|
|
|
regular: '', // 密码策略校验正则表达式
|
|
@@ -939,13 +939,13 @@ export default {
|
|
|
taskAllNum: '', //任务数目
|
|
|
socketshow: false, //通知框的显示
|
|
|
orgcodezs: '', //cookie中的orgcode
|
|
|
- userId: '',//cookie中的userId
|
|
|
- noticedata:[],
|
|
|
+ userId: '', //cookie中的userId
|
|
|
+ noticedata: [],
|
|
|
noticedata1: {
|
|
|
- noticeTitle:'ceshi',
|
|
|
- noticecontent:'ceshi',
|
|
|
- insertusername:'ceshi',
|
|
|
- inserttime:'ceshi'
|
|
|
+ noticeTitle: 'ceshi',
|
|
|
+ noticecontent: 'ceshi',
|
|
|
+ insertusername: 'ceshi',
|
|
|
+ inserttime: 'ceshi'
|
|
|
},
|
|
|
allowed: []
|
|
|
}
|
|
@@ -1154,22 +1154,25 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
//弹框删除
|
|
|
- async makeSure(){
|
|
|
- let noticeid=this.noticedata1.noticeid
|
|
|
+ async makeSure() {
|
|
|
+ let noticeid = this.noticedata1.noticeid
|
|
|
console.log(this.noticedata1)
|
|
|
- this.noticedata1=[] ;
|
|
|
- this.centerDialogVisible=false;
|
|
|
- await this.axios.post("/api/v1/ams/updateNoticeStatus",
|
|
|
- {userId:this.userId,
|
|
|
- noticeId:noticeid}).then((res)=>{
|
|
|
+ this.noticedata1 = []
|
|
|
+ this.centerDialogVisible = false
|
|
|
+ await this.axios
|
|
|
+ .post('/api/v1/ams/updateNoticeStatus', {
|
|
|
+ userId: this.userId,
|
|
|
+ noticeId: noticeid
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
console.log(res.data)
|
|
|
- if (res.data.data ===0){
|
|
|
- this.badgeshow=true;
|
|
|
- }else {
|
|
|
+ if (res.data.data === 0) {
|
|
|
+ this.badgeshow = true
|
|
|
+ } else {
|
|
|
console.log('进入了小红点标记区')
|
|
|
- this.taskAllNum=res.data.data;
|
|
|
+ this.taskAllNum = res.data.data
|
|
|
}
|
|
|
- })
|
|
|
+ })
|
|
|
},
|
|
|
// 判断是否为公司其他平台模块且处于开发模式
|
|
|
isDev(url) {
|
|
@@ -2650,41 +2653,39 @@ export default {
|
|
|
getinformation() {
|
|
|
console.log('获取到的userId----------------' + this.userId)
|
|
|
this.axios
|
|
|
- .post('/api/v1/ams/getNotice',
|
|
|
- { userId: this.userId})
|
|
|
+ .post('/api/v1/ams/getNotice', { userId: this.userId })
|
|
|
.then(res => {
|
|
|
this.noticedata = res.data.data
|
|
|
this.taskAllNum = res.data.data[0].taskAllNum
|
|
|
console.log(this.noticedata)
|
|
|
console.log(this.taskAllNum)
|
|
|
- if (this.taskAllNum !=null){
|
|
|
- if (this.taskAllNum==0){
|
|
|
- console.log("进入了标记为0")
|
|
|
- this.badgeshow=true
|
|
|
- }else{
|
|
|
- console.log("进入了标记不为0")
|
|
|
- this.badgeshow=false
|
|
|
+ if (this.taskAllNum != null) {
|
|
|
+ if (this.taskAllNum == 0) {
|
|
|
+ console.log('进入了标记为0')
|
|
|
+ this.badgeshow = true
|
|
|
+ } else {
|
|
|
+ console.log('进入了标记不为0')
|
|
|
+ this.badgeshow = false
|
|
|
}
|
|
|
- }else {
|
|
|
- console.log("进入了标记值为null的值")
|
|
|
- this.taskAllNum=null
|
|
|
+ } else {
|
|
|
+ console.log('进入了标记值为null的值')
|
|
|
+ this.taskAllNum = null
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
},
|
|
|
// 查看待办任务详情
|
|
|
seeTaskContent(item) {
|
|
|
- console.log("点击后的事件")
|
|
|
+ console.log('点击后的事件')
|
|
|
console.log(item)
|
|
|
- let data={
|
|
|
- noticetitle:item.noticetitle,
|
|
|
- noticecontent:item.noticecontent,
|
|
|
- insertusername:item.insertusername,
|
|
|
- inserttime:item.inserttime,
|
|
|
- noticeid:item.noticeId
|
|
|
+ let data = {
|
|
|
+ noticetitle: item.noticetitle,
|
|
|
+ noticecontent: item.noticecontent,
|
|
|
+ insertusername: item.insertusername,
|
|
|
+ inserttime: item.inserttime,
|
|
|
+ noticeid: item.noticeId
|
|
|
}
|
|
|
- this.noticedata1=data
|
|
|
- this.centerDialogVisible=true;
|
|
|
+ this.noticedata1 = data
|
|
|
+ this.centerDialogVisible = true
|
|
|
console.log(this.noticedata1)
|
|
|
console.log(this.centerDialogVisible)
|
|
|
console.log(this.noticedata1.noticetitle)
|
|
@@ -2821,7 +2822,7 @@ export default {
|
|
|
::-webkit-scrollbar {
|
|
|
//滚动条宽高,如果不需要显示滚动条可设置宽高为0
|
|
|
width: 0px;
|
|
|
- // height: 0px;
|
|
|
+ height: 0px;
|
|
|
}
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
//滚动条颜色和圆角
|