From 460dfb7ba827abf3e29a77131310efb26955a389 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 7 May 2024 16:06:17 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=99=BA=E8=83=BD=E6=8F=90=E9=86=92?=
=?UTF-8?q?=E6=96=B0=E5=8A=A0=E7=89=88=E6=9C=AC=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main.js | 5 ++++-
src/router/index.js | 10 ++++++++++
src/views/modules/home/notice.vue | 12 ++++++++++--
3 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/src/main.js b/src/main.js
index 7a6b88143..06b3688d0 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,7 +2,7 @@
* @Author: mk 2403457699@qq.com
* @Date: 2022-12-16 09:05:10
* @LastEditors: mk 2403457699@qq.com
- * @LastEditTime: 2023-08-10 16:49:19
+ * @LastEditTime: 2024-05-07 15:54:09
* @Description: 全局挂载提示信息,避免同时出现多条信息
*
*
@@ -38,6 +38,9 @@ import util from "@js/util";
import Moment from "moment";
import getQueryPara from "dai-js/modules/getQueryPara";
import NodeWrap from "@/components/Tree/nodeWrap.vue";
+import 'quill/dist/quill.core.css'
+import 'quill/dist/quill.snow.css'
+import 'quill/dist/quill.bubble.css'
// import AddNode from "@/components/Tree/addNode.vue";
import NodeWrapJw from "@/components/JwTree/nodeWrap.vue";
import NodeWrapGrid from "@/components/GridTree/nodeWrap.vue";
diff --git a/src/router/index.js b/src/router/index.js
index 66f344e46..e06a7a6f3 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -98,6 +98,16 @@ export const moduleRoutes = {
],
},
},
+ {
+ path: "notice-version",
+ props: true,
+ name: "notice-version",
+ component: () => import("@/views/modules/home/cpts/notice_version_update"),
+ meta: {
+ isTab: true,
+ title: "版本更新",
+ },
+ },
{
path: "base-nonIntResi",
props: true,
diff --git a/src/views/modules/home/notice.vue b/src/views/modules/home/notice.vue
index 01bc6b973..7bf0079bd 100644
--- a/src/views/modules/home/notice.vue
+++ b/src/views/modules/home/notice.vue
@@ -188,10 +188,18 @@ export default {
this.$router.push({
path: obj[item.category],
});
+ } else if(item.msgType == "sys_version_upgrade_publish"){
+ let { targetId } = item
+ this.$router.push({ path: `notice-version`, query: { version_id: targetId } });
+ this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => {
+ if (item.name === "notice-version") {
+ return { ...item };
+ }
+ return item;
+ });
}
- this.getNoticeData()
},
-
+
async read(item, index) {
if (item && item.readFlag == 1) return;
From 324485795dd15dcf0bb6e019ac9dc1eedd5a24f5 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 7 May 2024 16:12:06 +0800
Subject: [PATCH 2/2] =?UTF-8?q?sourceTree=E6=A3=80=E6=B5=8B=E4=B8=8D?=
=?UTF-8?q?=E5=88=B0=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../home/cpts/notice_version_update.vue | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 src/views/modules/home/cpts/notice_version_update.vue
diff --git a/src/views/modules/home/cpts/notice_version_update.vue b/src/views/modules/home/cpts/notice_version_update.vue
new file mode 100644
index 000000000..e24a736fb
--- /dev/null
+++ b/src/views/modules/home/cpts/notice_version_update.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+