|
@@ -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> </p>\n<p> </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) => {
|