liujq 4 年 前
コミット
a445f7bbfc

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.html


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/css/chunk-9eaa4c8c.62f819f1.css


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.08bcedb0.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-0be11550.0da5357f.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-87c98c7a.7e3dd6a4.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/chunk-9eaa4c8c.3109f8c2.js


+ 12 - 1
src/views/news/components/popup/IndexEdit.vue

@@ -72,7 +72,7 @@ export default {
       this.formData = [
         { label: '标题', key: 'title' },
         { label: '链接', key: 'link' },
-        { label: '分类', key: 'information_category', type: 'select', class: 'c-2', options: this.$dictData.information_category },
+        { label: '分类', key: 'information_category', type: 'select', class: 'c-2', options: this.$dictData.information_category, changeHandle: this.cateChange },
         { label: '作者', key: 'author', class: 'c-2' },
         { label: '状态', key: 'hide_status', type: 'select', class: 'c-2', options: this.$dictData.hide_status },
         { label: '发布时间', key: 'create_at', class: 'c-2', type: 'datePicker', type2: 'date'},
@@ -84,6 +84,17 @@ export default {
       ]
       this.setDefaultValue(params)
     },
+    cateChange (val) {
+      let params = {...this.$refs.ruleForm.baseForm}
+      let imgURL= ''
+      if (val === 'hlzt') imgURL= 'http://img.honglounews.com/news_hlzt.jpg'
+      if (val === 'hljy') imgURL= 'http://img.honglounews.com/news_hljy.jpg'
+      if (val === 'bkfx') imgURL= 'http://img.honglounews.com/news_bkfx.jpg'
+      if (val === 'lppc') imgURL= 'http://img.honglounews.com/news_lppc.jpg'
+      if (val === 'lpwd') imgURL= 'http://img.honglounews.com/news_lpwd.jpg'
+      params.pri_image = imgURL
+      this.setDefaultValue(params)
+    },
     close(str) {
       if (str === 'confirm') {
         this.$refs['ruleForm'].$refs['baseForm'].validate((valid) => {

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません