style:系统通知
Showing
2 changed files
with
13 additions
and
1 deletions
This diff is collapsed.
Click to expand it.
... | @@ -38,6 +38,7 @@ | ... | @@ -38,6 +38,7 @@ |
38 | </template> | 38 | </template> |
39 | <script> | 39 | <script> |
40 | import table from "@/utils/mixin/table"; | 40 | import table from "@/utils/mixin/table"; |
41 | import { mapGetters } from 'vuex' | ||
41 | import { datas, sendThis } from "./xttzdata"; | 42 | import { datas, sendThis } from "./xttzdata"; |
42 | import { getSysNoticeList, deleteSysNotice, publishNotice, unPublishNotice } from "@/api/sysNotice.js" | 43 | import { getSysNoticeList, deleteSysNotice, publishNotice, unPublishNotice } from "@/api/sysNotice.js" |
43 | import addDialog from "./components/addDialog.vue"; | 44 | import addDialog from "./components/addDialog.vue"; |
... | @@ -73,6 +74,17 @@ | ... | @@ -73,6 +74,17 @@ |
73 | isDiglog: false | 74 | isDiglog: false |
74 | } | 75 | } |
75 | }, | 76 | }, |
77 | computed: { | ||
78 | ...mapGetters(['isRefresh']) | ||
79 | }, | ||
80 | watch: { | ||
81 | isRefresh: { | ||
82 | handler (newVal, oldVal) { | ||
83 | if (newVal) this.queryClick() | ||
84 | }, | ||
85 | immediate: true | ||
86 | } | ||
87 | }, | ||
76 | methods: { | 88 | methods: { |
77 | // 列表渲染接口 | 89 | // 列表渲染接口 |
78 | /** | 90 | /** |
... | @@ -90,7 +102,6 @@ | ... | @@ -90,7 +102,6 @@ |
90 | } | 102 | } |
91 | }) | 103 | }) |
92 | }, | 104 | }, |
93 | //打开新增弹窗 | ||
94 | /** | 105 | /** |
95 | * @description: 打开新增弹窗 | 106 | * @description: 打开新增弹窗 |
96 | * @param {*} item | 107 | * @param {*} item |
... | @@ -102,6 +113,7 @@ | ... | @@ -102,6 +113,7 @@ |
102 | } else { | 113 | } else { |
103 | this.$popupDialog("新增系统通知", "system/xttz/components/addDialog", { "isButtonFlag": true }, "50%") | 114 | this.$popupDialog("新增系统通知", "system/xttz/components/addDialog", { "isButtonFlag": true }, "50%") |
104 | } | 115 | } |
116 | this.$store.dispatch("user/refreshPage", false); | ||
105 | }, | 117 | }, |
106 | //删除 | 118 | //删除 |
107 | delNotice (item) { | 119 | delNotice (item) { | ... | ... |
-
Please register or sign in to post a comment