126a7a3c by 赵千

通知公告

1 parent 665825f3
......@@ -7,5 +7,5 @@
// SERVERAPI: 'service-bdcdj-th'
// }
export default {
SERVERAPI: '/bdcdj'
SERVERAPI: '/bdcdj-zq'
}
\ No newline at end of file
......
......@@ -15,6 +15,13 @@
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="有效时长:">
<el-input v-model="ruleForm.validDays" class="width100"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item label="通知内容:" prop="noticeContent">
<quill-editor v-model="ruleForm.noticeContent" class="editor ql-editor" ref="myQuillEditor"
:options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)"
......@@ -65,6 +72,7 @@ export default {
noticeContent: "",
noticeFileUrl: "",
noticeSource: "",
validDays: 14,
noticeType: "1"
},
rules: {
......@@ -140,7 +148,10 @@ export default {
false
)
})
if (this.formData) {
if (!this.formData.isButtonFlag) {
this.getDetailInfo(this.formData)
}
if (this.formData.edit) {
this.getDetailInfo(this.formData)
}
},
......@@ -166,6 +177,8 @@ export default {
},
//新增通知
addNotice () {
// 解决报错
// this.ruleForm.noticeType = "1"
addSysNotice(this.ruleForm).then(res => {
if (res.code == 200) {
this.$message.success("保存成功");
......@@ -197,6 +210,7 @@ export default {
noticeContent: "",
noticeFileUrl: "",
noticeSource: "",
validDays: 14,
noticeType: "1"
}
},
......
......@@ -164,7 +164,7 @@ export default {
},
//编辑通知
editNotice (item) {
this.$popupDialog("系统通知详情", "system/xttz/components/addDialog", { ...item, "isButtonFlag": true }, "50%")
this.$popupDialog("系统通知详情", "system/xttz/components/addDialog", { ...item, "isButtonFlag": true, "edit": true }, "50%")
},
downloadFile (item) {
const href = item.noticeFileUrl
......
......@@ -55,6 +55,11 @@ class data extends filter {
width: '140'
},
{
prop: "failureTime",
label: "失效时间",
width: '140'
},
{
prop: "creater",
width: '120',
label: "创建人",
......