style:系统通知
Showing
2 changed files
with
29 additions
and
16 deletions
| ... | @@ -54,10 +54,11 @@ | ... | @@ -54,10 +54,11 @@ | 
| 54 | </el-form> | 54 | </el-form> | 
| 55 | </template> | 55 | </template> | 
| 56 | <script> | 56 | <script> | 
| 57 | import { addSysNotice, updateSysNotice } from "@/api/sysNotice.js"; | 57 | import { addSysNotice, updateSysNotice } from "@/api/sysNotice.js"; | 
| 58 | import { upload } from "@/api/file.js"; | 58 | import { upload } from "@/api/file.js"; | 
| 59 | import { quillEditor } from "vue-quill-editor"; | 59 | import store from '@/store' | 
| 60 | export default { | 60 | import { quillEditor } from "vue-quill-editor"; | 
| 61 | export default { | ||
| 61 | props: { | 62 | props: { | 
| 62 | formData: { | 63 | formData: { | 
| 63 | type: Object, | 64 | type: Object, | 
| ... | @@ -194,9 +195,9 @@ export default { | ... | @@ -194,9 +195,9 @@ export default { | 
| 194 | addSysNotice(this.ruleForm).then(res => { | 195 | addSysNotice(this.ruleForm).then(res => { | 
| 195 | if (res.code == 200) { | 196 | if (res.code == 200) { | 
| 196 | this.$message.success("保存成功"); | 197 | this.$message.success("保存成功"); | 
| 198 | store.dispatch("user/refreshPage", true); | ||
| 197 | this.$popupCacel() | 199 | this.$popupCacel() | 
| 198 | this.resetRuleForm(); | 200 | this.resetRuleForm(); | 
| 199 | this.$parent.queryClick(); | ||
| 200 | } else { | 201 | } else { | 
| 201 | this.$message.error(res.message); | 202 | this.$message.error(res.message); | 
| 202 | } | 203 | } | 
| ... | @@ -213,13 +214,12 @@ export default { | ... | @@ -213,13 +214,12 @@ export default { | 
| 213 | this.$message.success("编辑成功"); | 214 | this.$message.success("编辑成功"); | 
| 214 | this.$popupCacel() | 215 | this.$popupCacel() | 
| 215 | this.resetRuleForm(); | 216 | this.resetRuleForm(); | 
| 216 | this.$parent.queryClick(); | 217 | store.dispatch("user/refreshPage", true); | 
| 217 | } else { | 218 | } else { | 
| 218 | this.$message.error(res.message); | 219 | this.$message.error(res.message); | 
| 219 | } | 220 | } | 
| 220 | }); | 221 | }); | 
| 221 | }, | 222 | }, | 
| 222 | //重置表单 | ||
| 223 | /** | 223 | /** | 
| 224 | * @description: 重置表单 | 224 | * @description: 重置表单 | 
| 225 | * @author: renchao | 225 | * @author: renchao | 
| ... | @@ -349,22 +349,23 @@ export default { | ... | @@ -349,22 +349,23 @@ export default { | 
| 349 | //this.content = html; | 349 | //this.content = html; | 
| 350 | } | 350 | } | 
| 351 | } | 351 | } | 
| 352 | }; | 352 | }; | 
| 353 | </script> | 353 | </script> | 
| 354 | <style scoped lang="scss"> | 354 | <style scoped lang="scss"> | 
| 355 | @import "~@/styles/dialogBoxheader.scss"; | 355 | @import "~@/styles/dialogBoxheader.scss"; | 
| 356 | 356 | ||
| 357 | .quill-editor { | 357 | .quill-editor { | 
| 358 | padding: 0; | 358 | padding: 0; | 
| 359 | } | 359 | } | 
| 360 | 360 | ||
| 361 | .ql-editor { | 361 | .ql-editor { | 
| 362 | height: auto !important; | 362 | height: auto !important; | 
| 363 | } | 363 | } | 
| 364 | 364 | ||
| 365 | /deep/.ql-container { | 365 | /deep/.ql-container { | 
| 366 | padding: 0; | 366 | padding: 0; | 
| 367 | max-height: 400px; | 367 | max-height: 400px; | 
| 368 | min-height: 160px; | 368 | min-height: 160px; | 
| 369 | overflow-y: scroll; | 369 | overflow-y: scroll; | 
| 370 | }</style> | 370 | } | 
| 371 | </style> | ... | ... | 
| ... | @@ -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