From f350a7b75d736a483f15b423046a71393d5b142b Mon Sep 17 00:00:00 2001
From: zhangyongzhangyong <2012005003@qq.coom>
Date: Thu, 28 May 2020 18:35:07 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E7=AE=A1=E7=90=86=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=20=E4=BF=AE=E6=94=B9-=20=E5=A2=9E=E5=8A=A0=E9=80=9A?=
=?UTF-8?q?=E7=9F=A5=E4=B8=BB=E5=9B=BE=E3=80=81=E9=80=9A=E7=9F=A5=E5=88=86?=
=?UTF-8?q?=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/news/notice-add-or-update.vue | 82 ++++++++++++++++++-
1 file changed, 80 insertions(+), 2 deletions(-)
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