|
@@ -335,12 +335,13 @@
|
|
|
:max="99"
|
|
|
class="item"
|
|
|
style="margin-right: 20px"
|
|
|
+ :hidden="badgeshow"
|
|
|
>
|
|
|
<el-button type="text" size="small" @click="goMyTaskPage"
|
|
|
>待办任务</el-button
|
|
|
>
|
|
|
</el-badge>
|
|
|
- <div class="Web_Notice" v-show="socketshow">
|
|
|
+ <div class="Web_Notice" v-show="socketshow" style="z-index: 1 ; overflow-y: scroll">
|
|
|
<div class="workspace_row-grid_mytask">
|
|
|
<div
|
|
|
class="workspace_message"
|
|
@@ -360,6 +361,8 @@
|
|
|
<div class="workspace_message-from">
|
|
|
来自: {{ item.insertusername }}
|
|
|
</div>
|
|
|
+ <div style="height: 20px"></div>
|
|
|
+ <el-divider></el-divider>
|
|
|
</div>
|
|
|
<div class="workspace_replace_item"></div>
|
|
|
</div>
|
|
@@ -656,6 +659,27 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ //通知弹窗
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="centerDialogVisible"
|
|
|
+ >
|
|
|
+ <div style="margin-left: 300px;font-size: 20px">
|
|
|
+ <h1>{{noticedata1.noticetitle}}</h1>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 30px">
|
|
|
+ <i class="el-icon-document"></i>{{noticedata1.noticecontent}}
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 30px">
|
|
|
+ <i class="el-icon-user-solid"></i>
|
|
|
+ {{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>
|
|
|
+ </el-dialog>
|
|
|
<!--通知-->
|
|
|
<!-- <div class="Web_Notice">
|
|
|
<span class="margin_R10">
|
|
@@ -737,6 +761,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ centerDialogVisible:false,
|
|
|
+ badgeshow: '',
|
|
|
dutyName: '',
|
|
|
regular: '', // 密码策略校验正则表达式
|
|
|
regularType: '',
|
|
@@ -911,11 +937,19 @@ export default {
|
|
|
taskAllNum: '', //任务数目
|
|
|
socketshow: false, //通知框的显示
|
|
|
orgcodezs: '', //cookie中的orgcode
|
|
|
- noticedata: [] //通知的数据
|
|
|
+ userId: '',//cookie中的userId
|
|
|
+ noticedata:[],
|
|
|
+ noticedata1: {
|
|
|
+ noticeTitle:'ceshi',
|
|
|
+ noticecontent:'ceshi',
|
|
|
+ insertusername:'ceshi',
|
|
|
+ inserttime:'ceshi'
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.orgcodezs = getCookie('orgCode')
|
|
|
+ this.userId = getCookie('userId')
|
|
|
this.current_theme = window.top.localStorage.getItem('current_theme')
|
|
|
? window.top.localStorage.getItem('current_theme')
|
|
|
: 'deepBlue_theme'
|
|
@@ -1116,6 +1150,14 @@ export default {
|
|
|
that.getOrgDutyList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //弹框删除
|
|
|
+ makeSure(){
|
|
|
+ this.noticedata1=[] ;
|
|
|
+ this.centerDialogVisible=false;
|
|
|
+ this.badgeshow=true;
|
|
|
+ this.axios.post("/api/v1/ams/updateNoticeStatus",
|
|
|
+ {userId:this.userId})
|
|
|
+ },
|
|
|
// 判断是否为公司其他平台模块且处于开发模式
|
|
|
isDev(url) {
|
|
|
let isDevModule = false
|
|
@@ -2584,28 +2626,56 @@ export default {
|
|
|
},
|
|
|
updatecss() {
|
|
|
this.socketshow = true
|
|
|
- let height = document.body.clientHeight - 125
|
|
|
- this.$nextTick(() => {
|
|
|
+ //let height = document.body.clientHeight - 125
|
|
|
+ /*this.$nextTick(() => {
|
|
|
$('.Web_Notice')[0].style.height = height + 'px;'
|
|
|
- })
|
|
|
+ })*/
|
|
|
},
|
|
|
leave() {
|
|
|
this.socketshow = false
|
|
|
},
|
|
|
getinformation() {
|
|
|
- console.log('获取到的orgCode----------------' + this.orgcodezs)
|
|
|
+ console.log('获取到的userId----------------' + this.userId)
|
|
|
this.axios
|
|
|
- .post('/api/v1/ams/getNotice', { orgcodezs: this.orgcodezs })
|
|
|
+ .post('/api/v1/ams/getNotice',
|
|
|
+ { orgcodezs: this.orgcodezs ,
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ console.log("进入了标记值为null的值")
|
|
|
+ this.taskAllNum=null
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
// 查看待办任务详情
|
|
|
seeTaskContent(item) {
|
|
|
- this.$refs.defaultpage.seeTaskContent(item)
|
|
|
+ console.log("点击后的事件")
|
|
|
+ console.log(item)
|
|
|
+ let data={
|
|
|
+ noticetitle:item.noticetitle,
|
|
|
+ noticecontent:item.noticecontent,
|
|
|
+ insertusername:item.insertusername,
|
|
|
+ inserttime:item.inserttime
|
|
|
+ }
|
|
|
+ this.noticedata1=data
|
|
|
+ this.centerDialogVisible=true;
|
|
|
+ console.log(this.noticedata1)
|
|
|
+ console.log(this.centerDialogVisible)
|
|
|
+ console.log(this.noticedata1.noticetitle)
|
|
|
+ //this.$refs.defaultpage.seeTaskContent(item)
|
|
|
// // this.dialogVisible = true;
|
|
|
// this.itemTask = item;
|
|
|
}
|
|
@@ -2616,9 +2686,10 @@ export default {
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
.Web_Notice {
|
|
|
- width: 300px;
|
|
|
+ width: 500px;
|
|
|
position: absolute;
|
|
|
- left: -100px;
|
|
|
+ left: -150px;
|
|
|
+ height: 500px;
|
|
|
background-color: #f1f6fd;
|
|
|
}
|
|
|
/deep/ .privilegeArea {
|