liujq vor 4 Jahren
Ursprung
Commit
1d7cfcc640

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/index.html


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/css/chunk-fbde2912.1f80faf3.css


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/app.ab64b2de.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/chunk-4eae5434.b64d4a0a.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/static/js/chunk-fbde2912.5ae42e59.js


+ 22 - 2
src/views/news/components/popup/IndexEditSelf.vue

@@ -54,6 +54,7 @@ export default {
           })
         } else {
           this.cObj = this.curObj
+          this.content = '<p><img class=\"wscnph\" src=\"https://img2.honglounews.com/20210603030231-9876.gif\" /></p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>'
           this.getDef()
         }
       }
@@ -75,10 +76,11 @@ export default {
       // if (params.id) disabled = true
       this.formData = [
         { label: '标题', key: 'title' },
-        { 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: 'pri_image', type: 'uploads', class: 'c-2' },
+        { label: '状态', key: 'hide_status', type: 'select', class: 'c-2', options: this.$dictData.hide_status },
+        { label: '时间', key: 'create_at', type: 'datePicker', type2: 'date'},
         { label: '楼盘', key: 'estate_id_list', type: 'selectRemote', multiple: true, changeHandle: this.deviceChange,
           remoteParams: { skey: 'estate_name', api: `house.admestatelist?search_EQ_status=1`, opKey: 'estate_name', opVal: 'id' },
           remoteOptions: remoteOptionsIds
@@ -86,6 +88,24 @@ export default {
       ]
       this.setDefaultValue(params)
     },
+    cateChange (val) {
+      let params = {...this.$refs.ruleForm.baseForm}
+      let imgURL= ''
+      if (val === 'hlzt') imgURL= 'http://icon.honglounews.com/news_hlzt.jpg'
+      if (val === 'hljy' || val === 'xqsc') imgURL= 'http://icon.honglounews.com/news_hljy.jpg'
+      if (val === 'bkfx') imgURL= 'http://icon.honglounews.com/news_bkfx.jpg'
+      if (val === 'lppc') imgURL= 'http://icon.honglounews.com/news_lppc.jpg'
+      if (val === 'lpwd') imgURL= 'http://icon.honglounews.com/news_lpwd.jpg'
+
+      if (val === 'hlpd') imgURL= 'http://icon.honglounews.com/news_hlpd.jpg'
+      if (val === 'lszt') imgURL= 'http://icon.honglounews.com/news_lszt.jpg'
+      if (val === 'zcjd') imgURL= 'http://icon.honglounews.com/news_zcjd.jpg'
+      if (val === 'esf') imgURL= 'http://icon.honglounews.com/news_esf.jpg'
+      if (val === 'lsdt') imgURL= 'http://icon.honglounews.com/news_lsdt.jpg'
+      if (val === 'scfx') imgURL= 'http://icon.honglounews.com/news_scfx.jpg'
+      params.pri_image = imgURL
+      this.setDefaultValue(params)
+    },
     close(str) {
       if (str === 'confirm') {
         this.$refs['ruleForm'].$refs['baseForm'].validate((valid) => {

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.