修改首页政策公告添加更多跳转(接口暂未对接)
This commit is contained in:
@ -4,9 +4,10 @@
|
||||
<div class="padding-top content min_h_241">
|
||||
<div class="search">
|
||||
<div class="search_input" style="display:flex">
|
||||
<span v-if="type == 'policy'">政策画像检索</span>
|
||||
<span v-if="type == 'policy'">企业画像检索</span>
|
||||
<span v-if="type == 'policyRead'">政策解读检索</span>
|
||||
<span v-if="type == 'information'">资讯快报检索</span>
|
||||
<span v-if="type == 'policyNotice'">政策公告检索</span>
|
||||
<el-input
|
||||
v-model="queryParams.title"
|
||||
placeholder="请输入搜索关键字"
|
||||
@ -41,13 +42,28 @@
|
||||
>{{ item.label }}</el-radio
|
||||
>
|
||||
</div>
|
||||
<div class="header" v-else-if="type == 'policyNotice'">
|
||||
<span class="span">{{ val }}:</span>
|
||||
<el-radio
|
||||
v-model="queryParams.labelId"
|
||||
v-for="item in policyNoticeOptions"
|
||||
:key="item.value"
|
||||
:label="item.value"
|
||||
border
|
||||
@change="handleClick"
|
||||
>{{ item.label }}</el-radio
|
||||
>
|
||||
</div>
|
||||
<div class="screen_l_b" v-for="item in portraitData" :key="item.id">
|
||||
<div class="title text_hidden_one pointer">
|
||||
<router-link
|
||||
target="_blank"
|
||||
:to="{
|
||||
path: '/result',
|
||||
query: { key: type, id: item.id }
|
||||
query: {
|
||||
key: type == 'policyNotice' ? 'policy' : type,
|
||||
id: item.id
|
||||
}
|
||||
}"
|
||||
>
|
||||
{{ item.title }}
|
||||
@ -88,7 +104,7 @@
|
||||
import { getPolicyMatch } from '@/api/home/notice';
|
||||
import { mapGetters } from 'vuex';
|
||||
import { userInfo, getLabelSetting } from '@/api/home/info';
|
||||
import { getPolicyRead2, getInformation2 } from '@/api/home/home';
|
||||
import { getPolicy, getPolicyRead2, getInformation2 } from '@/api/home/home';
|
||||
import footerPage from './components/footer';
|
||||
import headerPage from './components/header';
|
||||
export default {
|
||||
@ -106,6 +122,28 @@ export default {
|
||||
},
|
||||
total: 0,
|
||||
portraitList: [], // 企业画像
|
||||
policyNoticeOptions: [
|
||||
{
|
||||
value: '1415156808053559296',
|
||||
label: '政策法规'
|
||||
},
|
||||
{
|
||||
value: '1415156963146338304',
|
||||
label: '申报通知'
|
||||
},
|
||||
{
|
||||
value: '1415157002090450944',
|
||||
label: '政府公示'
|
||||
},
|
||||
{
|
||||
value: '1415157026115424256',
|
||||
label: '公告'
|
||||
},
|
||||
{
|
||||
value: '1415157049267982336',
|
||||
label: '其他'
|
||||
}
|
||||
],
|
||||
// 归口选项
|
||||
attributeOptions: [
|
||||
{
|
||||
@ -150,6 +188,11 @@ export default {
|
||||
this.portraitData = data.list;
|
||||
this.total = data.total;
|
||||
});
|
||||
} else if (this.type == 'policyNotice') {
|
||||
getPolicy(this.queryParams).then(({ data }) => {
|
||||
this.portraitData = data.list;
|
||||
this.total = data.total;
|
||||
});
|
||||
}
|
||||
},
|
||||
handleClick() {
|
||||
@ -191,6 +234,9 @@ export default {
|
||||
this.getPortraitList();
|
||||
} else if (key == 'information') {
|
||||
this.getPortraitList();
|
||||
} else if (key == 'policyNotice') {
|
||||
this.queryParams.labelId = this.policyNoticeOptions[0].value;
|
||||
this.getPortraitList();
|
||||
} else {
|
||||
this.msgError('非法进入');
|
||||
}
|
||||
|
Reference in New Issue
Block a user