|
@@ -77,7 +77,8 @@
|
|
|
append-to-body
|
|
|
>
|
|
|
<el-card style="margin-top: -20px">
|
|
|
- <el-row :gutter="10" v-if="activeMsg !== null">
|
|
|
+ <!-- v-if="activeMsg !== null" -->
|
|
|
+ <el-row :gutter="10" >
|
|
|
<el-col :span="24">
|
|
|
<div style="padding: 0 0 22px 0">
|
|
|
<el-alert
|
|
@@ -85,9 +86,10 @@
|
|
|
show-icon
|
|
|
center
|
|
|
class="my-el-alert"
|
|
|
- :title="activeMsg.module"
|
|
|
- :type="activeMsg.sys_type === 'VER' ? 'success' : 'warning'"
|
|
|
+ title="停服通知"
|
|
|
+ :type=" 'warning'"
|
|
|
></el-alert>
|
|
|
+ <!-- activeMsg.sys_type === 'VER' ? 'success' : -->
|
|
|
</div>
|
|
|
<el-form
|
|
|
:size="'mini'"
|
|
@@ -97,28 +99,36 @@
|
|
|
style="padding-left: 25px"
|
|
|
>
|
|
|
<el-row>
|
|
|
- <el-col :span="12" v-if="activeMsg.sys_type === 'VER'">
|
|
|
+ <!-- <el-col :span="12" v-if="activeMsg.sys_type === 'VER'">
|
|
|
<el-form-item label="版本编号:">
|
|
|
<p style="margin: 0">{{ activeMsg.version }}</p>
|
|
|
</el-form-item></el-col
|
|
|
- >
|
|
|
- <el-col :span="activeMsg.sys_type === 'VER' ? 12 : 24">
|
|
|
- <el-form-item
|
|
|
- :label="activeMsg.sys_type === 'VER' ? '更新时间:' : '预计时间:'"
|
|
|
- >
|
|
|
+ > -->
|
|
|
+ <!-- <el-col :span="activeMsg.sys_type === 'VER' ? 12 : 24">-->
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="停服时间:">
|
|
|
<p style="margin: 0">
|
|
|
- {{ activeMsg.addtime }}
|
|
|
+ 2023-12-31 23:59:59
|
|
|
+ <!-- {{ activeMsg.addtime }} -->
|
|
|
</p></el-form-item
|
|
|
></el-col
|
|
|
>
|
|
|
<el-col :span="24"
|
|
|
- ><el-form-item label="更新内容:">
|
|
|
- <p style="margin: 0" v-html="activeMsg.system"></p></el-form-item
|
|
|
- ></el-col>
|
|
|
+ ><el-form-item label="各位用户:">
|
|
|
+ <!-- v-html="activeMsg.system" -->
|
|
|
+ <p style="margin: 0 0 10px 0">您好!</p>
|
|
|
+ <p style="margin: 0 0 10px 0;text-indent: 30px;">
|
|
|
+ 万宇采销结算系统计划于2023年12月31日23时59分59秒暂停服务,后续所有账号将无法登录,如有相关业务请于停服时间前尽快处理,特此通知。
|
|
|
+ </p>
|
|
|
+ <!-- <p style="margin: 0;text-indent: 30px;">
|
|
|
+ 如有特殊情况请在2023年12月28日前和信息部沟通处,感谢各位领导合作。
|
|
|
+ </p> -->
|
|
|
+ </el-form-item></el-col
|
|
|
+ >
|
|
|
<el-col :span="24" style="text-align: right">
|
|
|
- <el-checkbox v-model="checked" class="fl" style="padding-top: 5px"
|
|
|
+ <!-- <el-checkbox v-model="checked" class="fl" style="padding-top: 5px"
|
|
|
>我已知晓,后续不再提示!</el-checkbox
|
|
|
- >
|
|
|
+ > -->
|
|
|
<el-button @click="submit" type="primary" plain>关闭 </el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -231,56 +241,57 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async openNotice(type) {
|
|
|
- if (getNotice() && getNotice().length > 0) {
|
|
|
- this.lastNotice = JSON.parse(getNotice());
|
|
|
- } else {
|
|
|
- this.lastNotice = null;
|
|
|
- }
|
|
|
- // console.log(this.lastNotice);
|
|
|
- this.loading = true;
|
|
|
- const res = await asyncRequest.list(this.parmValue);
|
|
|
- if (
|
|
|
- res &&
|
|
|
- res.code === 0 &&
|
|
|
- res.data &&
|
|
|
- res.data.list &&
|
|
|
- res.data.list.length > 0
|
|
|
- ) {
|
|
|
- this.activeMsg = res.data.list[0];
|
|
|
- this.isShow = true;
|
|
|
- if (this.lastNotice + "" !== "null") {
|
|
|
- // console.log(this.lastNotice.addtime);
|
|
|
- if (this.activeMsg.addtime === this.lastNotice.addtime) {
|
|
|
- if (this.lastNotice.type === "1") {
|
|
|
- this.checked = true;
|
|
|
- } else {
|
|
|
- this.checked = false;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.checked = false;
|
|
|
- }
|
|
|
- } else {
|
|
|
- let model = {
|
|
|
- type: this.checked ? "1" : "0",
|
|
|
- addtime: this.activeMsg.addtime,
|
|
|
- };
|
|
|
- setNotice(JSON.stringify(model));
|
|
|
- this.checked = false;
|
|
|
- }
|
|
|
- if (type === 1) {
|
|
|
- this.typeShow();
|
|
|
- } else {
|
|
|
- this.showModel = true;
|
|
|
- }
|
|
|
+ // if (getNotice() && getNotice().length > 0) {
|
|
|
+ // this.lastNotice = JSON.parse(getNotice());
|
|
|
+ // } else {
|
|
|
+ // this.lastNotice = null;
|
|
|
+ // }
|
|
|
+ // // console.log(this.lastNotice);
|
|
|
+ // this.loading = true;
|
|
|
+ // const res = await asyncRequest.list(this.parmValue);
|
|
|
+ // if (
|
|
|
+ // res &&
|
|
|
+ // res.code === 0 &&
|
|
|
+ // res.data &&
|
|
|
+ // res.data.list &&
|
|
|
+ // res.data.list.length > 0
|
|
|
+ // ) {
|
|
|
+ // this.activeMsg = res.data.list[0];
|
|
|
+ // this.isShow = true;
|
|
|
+ // if (this.lastNotice + "" !== "null") {
|
|
|
+ // // console.log(this.lastNotice.addtime);
|
|
|
+ // if (this.activeMsg.addtime === this.lastNotice.addtime) {
|
|
|
+ // if (this.lastNotice.type === "1") {
|
|
|
+ // this.checked = true;
|
|
|
+ // } else {
|
|
|
+ // this.checked = false;
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.checked = false;
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // let model = {
|
|
|
+ // type: this.checked ? "1" : "0",
|
|
|
+ // addtime: this.activeMsg.addtime,
|
|
|
+ // };
|
|
|
+ // setNotice(JSON.stringify(model));
|
|
|
+ // this.checked = false;
|
|
|
+ // }
|
|
|
+ // if (type === 1) {
|
|
|
+ // this.typeShow();
|
|
|
+ // } else {
|
|
|
+ // this.showModel = true;
|
|
|
+ // }
|
|
|
|
|
|
- // console.log(this.activeMsg);
|
|
|
- } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
- await this.logout();
|
|
|
- } else {
|
|
|
- this.activeMsg = null;
|
|
|
- this.isShow = false;
|
|
|
- }
|
|
|
- this.loading = false;
|
|
|
+ // // console.log(this.activeMsg);
|
|
|
+ // } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
+ // await this.logout();
|
|
|
+ // } else {
|
|
|
+ // this.activeMsg = null;
|
|
|
+ // this.isShow = false;
|
|
|
+ // }
|
|
|
+ // this.loading = false;
|
|
|
+ this.showModel = true;
|
|
|
},
|
|
|
typeShow() {
|
|
|
let nowtime = new Date().valueOf();
|
|
@@ -317,11 +328,11 @@ export default {
|
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`);
|
|
|
},
|
|
|
submit() {
|
|
|
- let model = {
|
|
|
- type: this.checked ? "1" : "0",
|
|
|
- addtime: this.activeMsg.addtime,
|
|
|
- };
|
|
|
- setNotice(JSON.stringify(model));
|
|
|
+ // let model = {
|
|
|
+ // type: this.checked ? "1" : "0",
|
|
|
+ // addtime: this.activeMsg.addtime,
|
|
|
+ // };
|
|
|
+ // setNotice(JSON.stringify(model));
|
|
|
this.showModel = false;
|
|
|
},
|
|
|
},
|