This commit is contained in:
BianLzhaoMin 2024-07-18 16:09:07 +08:00
parent 0b7b53fe06
commit 91ed36b383
2 changed files with 12 additions and 13 deletions

View File

@ -2,7 +2,7 @@
<div class="notice-dialog"> <div class="notice-dialog">
<!-- 消息通知弹框 --> <!-- 消息通知弹框 -->
<el-dialog <el-dialog
:title="noticeTitle" :title="noticeTitleNew"
:width="noticeDialog.outerWidth" :width="noticeDialog.outerWidth"
:visible.sync="noticeDialog.outerVisible" :visible.sync="noticeDialog.outerVisible"
v-if="noticeDialog.outerVisible" v-if="noticeDialog.outerVisible"
@ -15,7 +15,7 @@
custom-class="center-dialog" custom-class="center-dialog"
> >
<el-button class="notice-num" type="primary" <el-button class="notice-num" type="primary"
>重要通知({{ unreadNUm }}/{{ noticeNum }})</el-button >重要通知({{ unreadNum }}/{{ noticeNum }})</el-button
> >
<el-button <el-button
class="notice-known" class="notice-known"
@ -62,20 +62,19 @@ export default {
noticeNum() { noticeNum() {
return this.noticeList.length return this.noticeList.length
}, },
noticeTitleNew() {
noticeTitle() { return this.noticeList[this.unreadNum - 1].noticeTitle
return this.noticeList[this.unreadNUm - 1].noticeTitle
}, },
noticeContent() { noticeContent() {
return this.removeHTMLTags( return this.removeHTMLTags(
this.noticeList[this.unreadNUm - 1].noticeContent, this.noticeList[this.unreadNum - 1].noticeContent,
) )
}, },
releaseTime() { releaseTime() {
return this.noticeList[this.unreadNUm - 1].createTime.slice(0, 10) return this.noticeList[this.unreadNum - 1].createTime.slice(0, 10)
}, },
releaseCreateName() { releaseCreateName() {
return this.noticeList[this.unreadNUm - 1].nickName return this.noticeList[this.unreadNum - 1].nickName
}, },
}, },
@ -97,7 +96,7 @@ export default {
noticeId: [], noticeId: [],
userId: sessionStorage.getItem('userId'), userId: sessionStorage.getItem('userId'),
} }
params.noticeId.push(this.noticeList[this.unreadNUm - 1].noticeId) params.noticeId.push(this.noticeList[this.unreadNum - 1].noticeId)
const res = await setQueryNoticeApi(params) const res = await setQueryNoticeApi(params)
this.loading = false this.loading = false
if (res.code == 200) { if (res.code == 200) {
@ -105,9 +104,9 @@ export default {
this.$emit('closeDialog', false) this.$emit('closeDialog', false)
return return
} }
this.unreadNUm += 1 this.unreadNum += 1
// //
if (this.unreadNUm > this.noticeNum) { if (this.unreadNum > this.noticeNum) {
this.$emit('closeDialog', false) this.$emit('closeDialog', false)
} }
} }

View File

@ -43,10 +43,10 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`, // target: `https://z.csgmall.com.cn`,
target: `http://192.168.2.167:28080`, //超 // target: `http://192.168.2.167:28080`, //超
// target: `http://10.40.92.81:28080`, //韩/ // target: `http://10.40.92.81:28080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/ // target: `http://10.40.92.74:8080`,//旭/
// target: `http://192.168.2.248:28080`, //帅 target: `http://192.168.2.248:28080`, //帅
// target: `http://192.168.2.209:28080`, //福 // target: `http://192.168.2.209:28080`, //福
//******** 注意事项 ********* */ //******** 注意事项 ********* */