diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index 2a274e0..a283891 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -15,6 +15,35 @@ clearable collapse-tags> + + + + + +
只能上传jpg/png文件,且不超过500kb
+
+
+
+ + + + + + { }) // 1169154711480528897 为市北区部门ID this.getDeptInfoList('street', localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street')) + // 根据数据字典类型notice_category 获取简版数据字典列表,用于页面下拉菜单 + this.getListSimpleByDictType() }, methods: { // 富文本编辑器 @@ -284,8 +320,50 @@ export default { // this.dataForm.grid = choosenItem.name // this.dataForm = Object.assign(this.dataForm, { gridId: item }) console.log(this.dataForm) + }, + handleAvatarActSuccess (res, file) { + this.loading = false + this.dataForm.noticeImageUrl = res.data.url + }, + beforeAvatarUpload (file) { + this.loading = true + }, + handelError () { + this.loading = false + }, + getListSimpleByDictType () { + this.$http.get(`/news/notice/listSimple/notice_category`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.optionNoticeCategoryCode = res.data + }).catch(() => {}) } - } } + \ No newline at end of file