lion 4 months ago
parent cb47d97c32
commit 2a74c56add

@ -57,7 +57,7 @@
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>资讯链接 <span style="color: red;font-weight: bold;padding-right: 4px;"></span>资讯链接
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-select filterable remote v-model="form.url" :remote-method="remoteMethod" :loading="loading" <el-select @change="changeUrl" filterable remote v-model="form.url" :remote-method="remoteMethod" :loading="loading"
placeholder="请输入关键词查询资讯" clearable style="width: 100%;"> placeholder="请输入关键词查询资讯" clearable style="width: 100%;">
<el-option v-for="item in zixunList" :key="item.id" :label="item.title" :value="item.titleurl"> <el-option v-for="item in zixunList" :key="item.id" :label="item.title" :value="item.titleurl">
</el-option> </el-option>
@ -397,7 +397,7 @@
publicize_ids: [], publicize_ids: [],
content: '', content: '',
applylabel: '', applylabel: '',
url_title:''
}, },
rules: { rules: {
name: [{ name: [{
@ -447,6 +447,17 @@
this.getZxList() this.getZxList()
}, },
methods: { methods: {
changeUrl(e){
if(e){
this.zixunList.map(item=>{
if(item.titleurl===e){
this.form.url_title = item.title
}
})
}else{
this.form.url_title = ''
}
},
remoteMethod(query) { remoteMethod(query) {
if (query !== '') { if (query !== '') {
this.loading = true; this.loading = true;
@ -774,6 +785,7 @@
image_id: '', image_id: '',
publicize_ids: [], publicize_ids: [],
content: '', content: '',
url_title:''
} }
this.$refs['dialog'].reset() this.$refs['dialog'].reset()

Loading…
Cancel
Save