master
lion 2 months ago
parent cb47d97c32
commit 2a74c56add

@ -57,7 +57,7 @@
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>资讯链接
</div>
<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%;">
<el-option v-for="item in zixunList" :key="item.id" :label="item.title" :value="item.titleurl">
</el-option>
@ -397,7 +397,7 @@
publicize_ids: [],
content: '',
applylabel: '',
url_title:''
},
rules: {
name: [{
@ -447,6 +447,17 @@
this.getZxList()
},
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) {
if (query !== '') {
this.loading = true;
@ -774,6 +785,7 @@
image_id: '',
publicize_ids: [],
content: '',
url_title:''
}
this.$refs['dialog'].reset()

Loading…
Cancel
Save