通知公告
Showing
4 changed files
with
22 additions
and
3 deletions
| ... | @@ -15,6 +15,13 @@ | ... | @@ -15,6 +15,13 @@ |
| 15 | </el-col> | 15 | </el-col> |
| 16 | </el-row> | 16 | </el-row> |
| 17 | <el-row> | 17 | <el-row> |
| 18 | <el-col :span="24"> | ||
| 19 | <el-form-item label="有效时长:"> | ||
| 20 | <el-input v-model="ruleForm.validDays" class="width100"></el-input> | ||
| 21 | </el-form-item> | ||
| 22 | </el-col> | ||
| 23 | </el-row> | ||
| 24 | <el-row> | ||
| 18 | <el-form-item label="通知内容:" prop="noticeContent"> | 25 | <el-form-item label="通知内容:" prop="noticeContent"> |
| 19 | <quill-editor v-model="ruleForm.noticeContent" class="editor ql-editor" ref="myQuillEditor" | 26 | <quill-editor v-model="ruleForm.noticeContent" class="editor ql-editor" ref="myQuillEditor" |
| 20 | :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" | 27 | :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" |
| ... | @@ -65,6 +72,7 @@ export default { | ... | @@ -65,6 +72,7 @@ export default { |
| 65 | noticeContent: "", | 72 | noticeContent: "", |
| 66 | noticeFileUrl: "", | 73 | noticeFileUrl: "", |
| 67 | noticeSource: "", | 74 | noticeSource: "", |
| 75 | validDays: 14, | ||
| 68 | noticeType: "1" | 76 | noticeType: "1" |
| 69 | }, | 77 | }, |
| 70 | rules: { | 78 | rules: { |
| ... | @@ -140,7 +148,10 @@ export default { | ... | @@ -140,7 +148,10 @@ export default { |
| 140 | false | 148 | false |
| 141 | ) | 149 | ) |
| 142 | }) | 150 | }) |
| 143 | if (this.formData) { | 151 | if (!this.formData.isButtonFlag) { |
| 152 | this.getDetailInfo(this.formData) | ||
| 153 | } | ||
| 154 | if (this.formData.edit) { | ||
| 144 | this.getDetailInfo(this.formData) | 155 | this.getDetailInfo(this.formData) |
| 145 | } | 156 | } |
| 146 | }, | 157 | }, |
| ... | @@ -166,6 +177,8 @@ export default { | ... | @@ -166,6 +177,8 @@ export default { |
| 166 | }, | 177 | }, |
| 167 | //新增通知 | 178 | //新增通知 |
| 168 | addNotice () { | 179 | addNotice () { |
| 180 | // 解决报错 | ||
| 181 | // this.ruleForm.noticeType = "1" | ||
| 169 | addSysNotice(this.ruleForm).then(res => { | 182 | addSysNotice(this.ruleForm).then(res => { |
| 170 | if (res.code == 200) { | 183 | if (res.code == 200) { |
| 171 | this.$message.success("保存成功"); | 184 | this.$message.success("保存成功"); |
| ... | @@ -197,6 +210,7 @@ export default { | ... | @@ -197,6 +210,7 @@ export default { |
| 197 | noticeContent: "", | 210 | noticeContent: "", |
| 198 | noticeFileUrl: "", | 211 | noticeFileUrl: "", |
| 199 | noticeSource: "", | 212 | noticeSource: "", |
| 213 | validDays: 14, | ||
| 200 | noticeType: "1" | 214 | noticeType: "1" |
| 201 | } | 215 | } |
| 202 | }, | 216 | }, | ... | ... |
| ... | @@ -164,7 +164,7 @@ export default { | ... | @@ -164,7 +164,7 @@ export default { |
| 164 | }, | 164 | }, |
| 165 | //编辑通知 | 165 | //编辑通知 |
| 166 | editNotice (item) { | 166 | editNotice (item) { |
| 167 | this.$popupDialog("系统通知详情", "system/xttz/components/addDialog", { ...item, "isButtonFlag": true }, "50%") | 167 | this.$popupDialog("系统通知详情", "system/xttz/components/addDialog", { ...item, "isButtonFlag": true, "edit": true }, "50%") |
| 168 | }, | 168 | }, |
| 169 | downloadFile (item) { | 169 | downloadFile (item) { |
| 170 | const href = item.noticeFileUrl | 170 | const href = item.noticeFileUrl | ... | ... |
| ... | @@ -55,6 +55,11 @@ class data extends filter { | ... | @@ -55,6 +55,11 @@ class data extends filter { |
| 55 | width: '140' | 55 | width: '140' |
| 56 | }, | 56 | }, |
| 57 | { | 57 | { |
| 58 | prop: "failureTime", | ||
| 59 | label: "失效时间", | ||
| 60 | width: '140' | ||
| 61 | }, | ||
| 62 | { | ||
| 58 | prop: "creater", | 63 | prop: "creater", |
| 59 | width: '120', | 64 | width: '120', |
| 60 | label: "创建人", | 65 | label: "创建人", | ... | ... |
-
Please register or sign in to post a comment