bugfix
This commit is contained in:
@ -174,8 +174,8 @@ export default {
|
|||||||
.footer_right {
|
.footer_right {
|
||||||
display: flex;
|
display: flex;
|
||||||
.item:nth-child(1) {
|
.item:nth-child(1) {
|
||||||
font-size: 18px;
|
// font-size: 18px;
|
||||||
color: #333;
|
// color: #000;
|
||||||
margin-right: 40px;
|
margin-right: 40px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -128,8 +128,15 @@
|
|||||||
@mouseover="
|
@mouseover="
|
||||||
(queryParams.labelId = '1415156808053559296'), handleClick()
|
(queryParams.labelId = '1415156808053559296'), handleClick()
|
||||||
"
|
"
|
||||||
@click="jumpToDetails('1415156808053559296')"
|
>
|
||||||
>政策转发</span>
|
<router-link
|
||||||
|
target="_blank"
|
||||||
|
:to="{
|
||||||
|
path: '/portrait',
|
||||||
|
query: { key: 'policyNotice', val: '公示公告', labelId: '1415156808053559296' },
|
||||||
|
}"
|
||||||
|
>政策转发</router-link>
|
||||||
|
</span>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane name="1415156963146338304">
|
<el-tab-pane name="1415156963146338304">
|
||||||
<span
|
<span
|
||||||
@ -137,8 +144,15 @@
|
|||||||
@mouseover="
|
@mouseover="
|
||||||
(queryParams.labelId = '1415156963146338304'), handleClick()
|
(queryParams.labelId = '1415156963146338304'), handleClick()
|
||||||
"
|
"
|
||||||
@click="jumpToDetails('1415156963146338304')"
|
>
|
||||||
>申报通知</span>
|
<router-link
|
||||||
|
target="_blank"
|
||||||
|
:to="{
|
||||||
|
path: '/portrait',
|
||||||
|
query: { key: 'policyNotice', val: '公示公告', labelId: '1415156963146338304' },
|
||||||
|
}"
|
||||||
|
>申报通知</router-link>
|
||||||
|
</span>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="政府公示" name="1415157002090450944">
|
<el-tab-pane label="政府公示" name="1415157002090450944">
|
||||||
<span
|
<span
|
||||||
@ -146,8 +160,15 @@
|
|||||||
@mouseover="
|
@mouseover="
|
||||||
(queryParams.labelId = '1415157002090450944'), handleClick()
|
(queryParams.labelId = '1415157002090450944'), handleClick()
|
||||||
"
|
"
|
||||||
@click="jumpToDetails('1415157002090450944')"
|
>
|
||||||
>公示转发</span>
|
<router-link
|
||||||
|
target="_blank"
|
||||||
|
:to="{
|
||||||
|
path: '/portrait',
|
||||||
|
query: { key: 'policyNotice', val: '公示公告', labelId: '1415157002090450944' },
|
||||||
|
}"
|
||||||
|
>公示转发</router-link>
|
||||||
|
</span>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="公告" name="1415157026115424256">
|
<el-tab-pane label="公告" name="1415157026115424256">
|
||||||
<span
|
<span
|
||||||
@ -155,8 +176,15 @@
|
|||||||
@mouseover="
|
@mouseover="
|
||||||
(queryParams.labelId = '1415157026115424256'), handleClick()
|
(queryParams.labelId = '1415157026115424256'), handleClick()
|
||||||
"
|
"
|
||||||
@click="jumpToDetails('1415157026115424256')"
|
>
|
||||||
>公告转发</span>
|
<router-link
|
||||||
|
target="_blank"
|
||||||
|
:to="{
|
||||||
|
path: '/portrait',
|
||||||
|
query: { key: 'policyNotice', val: '公示公告', labelId: '1415157026115424256' },
|
||||||
|
}"
|
||||||
|
>公告转发</router-link>
|
||||||
|
</span>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!-- <el-tab-pane label="其他" name="1415157049267982336">
|
<!-- <el-tab-pane label="其他" name="1415157049267982336">
|
||||||
<span
|
<span
|
||||||
@ -489,10 +517,10 @@ export default {
|
|||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
},
|
},
|
||||||
|
|
||||||
jumpToDetails(labelId) {
|
// jumpToDetails(labelId) {
|
||||||
// this.$router.push('/portrait?key=policyNotice&val=policyNotice')
|
// // this.$router.push('/portrait?key=policyNotice&val=policyNotice')
|
||||||
this.$router.push({ path: '/portrait', query: { key: 'policyNotice', val: 'policyNotice', labelId } })
|
// this.$router.push({ path: '/portrait', query: { key: 'policyNotice', val: '公示公告', labelId } })
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
getRotationList({ pageNum: 1, pageSize: 50 }).then(({ data }) => {
|
getRotationList({ pageNum: 1, pageSize: 50 }).then(({ data }) => {
|
||||||
|
@ -8,10 +8,18 @@
|
|||||||
v-show="item.status == 1"
|
v-show="item.status == 1"
|
||||||
>
|
>
|
||||||
<div class="couplet-close pointer" @click="item.status = 0">
|
<div class="couplet-close pointer" @click="item.status = 0">
|
||||||
<img src="../assets/image/close.gif" alt="" />
|
<img src="../assets/image/close.gif" alt />
|
||||||
</div>
|
</div>
|
||||||
<div class="c_content">
|
<div class="c_content">
|
||||||
<img :src="item.pic" alt="" />
|
<img
|
||||||
|
:src="item.pic"
|
||||||
|
alt
|
||||||
|
@load="setLink(item)"
|
||||||
|
:data-text="`advimg${item.id}`"
|
||||||
|
:ref="`advimg${item.id}`"
|
||||||
|
:usemap="`#advimg${item.id}`"
|
||||||
|
/>
|
||||||
|
<map :name="`advimg${item.id}`" :id="`advimg${item.id}`"></map>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 右侧悬浮 -->
|
<!-- 右侧悬浮 -->
|
||||||
@ -19,7 +27,7 @@
|
|||||||
<div class="item-box">
|
<div class="item-box">
|
||||||
<el-tooltip class="item" effect="dark" placement="left-start">
|
<el-tooltip class="item" effect="dark" placement="left-start">
|
||||||
<div class="tip_img" slot="content">
|
<div class="tip_img" slot="content">
|
||||||
<img src="@/assets/image/wx.jpg" alt="" />
|
<img src="@/assets/image/wx.jpg" alt />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<img src="@/assets/image/weixin.png" />
|
<img src="@/assets/image/weixin.png" />
|
||||||
@ -30,7 +38,7 @@
|
|||||||
<div class="item-box">
|
<div class="item-box">
|
||||||
<el-tooltip class="item" effect="dark" placement="left-start">
|
<el-tooltip class="item" effect="dark" placement="left-start">
|
||||||
<div class="tip_img" slot="content">
|
<div class="tip_img" slot="content">
|
||||||
<img src="@/assets/image/qq.jpg" alt="" />
|
<img src="@/assets/image/qq.jpg" alt />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<img src="@/assets/image/qq.png" />
|
<img src="@/assets/image/qq.png" />
|
||||||
@ -47,7 +55,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- <div class="img_box">
|
<!-- <div class="img_box">
|
||||||
<img src="@/assets/image/toubu.png" alt="" />
|
<img src="@/assets/image/toubu.png" alt="" />
|
||||||
</div> -->
|
</div>-->
|
||||||
<headerPage />
|
<headerPage />
|
||||||
|
|
||||||
<!-- ul li 列表 -->
|
<!-- ul li 列表 -->
|
||||||
@ -64,7 +72,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div>-->
|
||||||
<!-- 路由站位 -->
|
<!-- 路由站位 -->
|
||||||
<div class="content" style="padding: 10px 0">
|
<div class="content" style="padding: 10px 0">
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
@ -133,6 +141,27 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
|
setLink(item) {
|
||||||
|
if (!item.url) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const imgEl = this.$refs[`advimg${item.id}`][0]
|
||||||
|
console.log(imgEl.offsetHeight);
|
||||||
|
const imgHeight = imgEl.offsetHeight
|
||||||
|
const imgWidth = imgEl.offsetWidth
|
||||||
|
const mapEl = document.querySelector(`#advimg${item.id}`)
|
||||||
|
const urls = item.url.split(',')
|
||||||
|
// console.log(imgEl);
|
||||||
|
urls.forEach((url, index) => {
|
||||||
|
const areaEl = document.createElement('area')
|
||||||
|
areaEl.href = url
|
||||||
|
areaEl.coords = `0 ${imgHeight / urls.length * index} ${imgWidth} ${imgHeight / (urls.length - index)}`
|
||||||
|
mapEl.appendChild(areaEl)
|
||||||
|
})
|
||||||
|
// console.log(urls);
|
||||||
|
// console.log(mapEl);
|
||||||
|
// console.log(item);
|
||||||
|
},
|
||||||
toSearch() {
|
toSearch() {
|
||||||
if (!this.input.length) return this.msgError('请输入搜索关键字');
|
if (!this.input.length) return this.msgError('请输入搜索关键字');
|
||||||
this.$router.push({ path: '/search', query: { val: this.input } });
|
this.$router.push({ path: '/search', query: { val: this.input } });
|
||||||
@ -187,8 +216,9 @@ export default {
|
|||||||
// }
|
// }
|
||||||
.couplet {
|
.couplet {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
z-index: 999;
|
||||||
top: 30%;
|
top: 30%;
|
||||||
width: 100px;
|
width: 120px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
.couplet-close {
|
.couplet-close {
|
||||||
width: 43px;
|
width: 43px;
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
id: item.id
|
id: item.id
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
>{{ item.title }}</router-link>
|
>{{ removeBr(item.title) }}</router-link>
|
||||||
<span class="info">
|
<span class="info">
|
||||||
<span v-if="type != 'information'">{{ item.listDate }}</span>
|
<span v-if="type != 'information'">{{ item.listDate }}</span>
|
||||||
<span v-else>{{ item.createTime }}</span>
|
<span v-else>{{ item.createTime }}</span>
|
||||||
@ -176,6 +176,9 @@ export default {
|
|||||||
...mapGetters(['token'])
|
...mapGetters(['token'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
removeBr(str) {
|
||||||
|
return str && str.replaceAll('<br>', '')
|
||||||
|
},
|
||||||
// 获取企业画像数据列表
|
// 获取企业画像数据列表
|
||||||
getPortraitList() {
|
getPortraitList() {
|
||||||
if (this.type == 'policy') {
|
if (this.type == 'policy') {
|
||||||
@ -240,8 +243,11 @@ export default {
|
|||||||
} else if (key == 'information') {
|
} else if (key == 'information') {
|
||||||
this.getPortraitList();
|
this.getPortraitList();
|
||||||
} else if (key == 'policyNotice') {
|
} else if (key == 'policyNotice') {
|
||||||
// this.queryParams.labelId = this.policyNoticeOptions[0].value;
|
if (this.$route.query.labelId) {
|
||||||
this.queryParams.labelId = this.$route.query.labelId
|
this.queryParams.labelId = this.$route.query.labelId
|
||||||
|
} else {
|
||||||
|
this.queryParams.labelId = this.policyNoticeOptions[0].value;
|
||||||
|
}
|
||||||
this.getPortraitList();
|
this.getPortraitList();
|
||||||
} else {
|
} else {
|
||||||
this.msgError('非法进入');
|
this.msgError('非法进入');
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
<div class="my_main content p0-100 min_h_285" style="display: flex">
|
<div class="my_main content p0-100 min_h_285" style="display: flex">
|
||||||
<div class="l" style="width: 77%; background-color: #fff; padding: 30px">
|
<div class="l" style="width: 77%; background-color: #fff; padding: 30px">
|
||||||
<h2 style="text-align:center">{{ formData.title }}</h2>
|
<h2 style="text-align:center">{{ removeBr(formData.title) }}</h2>
|
||||||
<div class="info" v-if="type != 'information'">
|
<div class="info" v-if="type != 'information'">
|
||||||
<span v-if="type != 'companyNeed' && type != 'scienceResult'">来源:{{ formData.source }}</span>
|
<span v-if="type != 'companyNeed' && type != 'scienceResult'">来源:{{ formData.source }}</span>
|
||||||
<span v-if="type == 'companyNeed'">价格:{{ setNumber(formData.price) }}</span>
|
<span v-if="type == 'companyNeed'">价格:{{ setNumber(formData.price) }}</span>
|
||||||
@ -196,6 +196,10 @@ export default {
|
|||||||
this.formData.collected = 0;
|
this.formData.collected = 0;
|
||||||
this.msgSuccess('操作成功');
|
this.msgSuccess('操作成功');
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
removeBr(str) {
|
||||||
|
console.log(str);
|
||||||
|
return str && str.replaceAll('<br>', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -227,6 +231,11 @@ export default {
|
|||||||
this.formData = data;
|
this.formData = data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// this.$nextTick(() => {
|
||||||
|
// this.formData.title = this.formData.title.replaceAll('<br>', '')
|
||||||
|
// })
|
||||||
|
|
||||||
|
// console.log(this.formData);
|
||||||
getRead({ id }).then(({ data }) => {
|
getRead({ id }).then(({ data }) => {
|
||||||
this.total = data;
|
this.total = data;
|
||||||
});
|
});
|
||||||
|
@ -18,31 +18,23 @@
|
|||||||
<router-link
|
<router-link
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:to="{ path: '/result', query: { key, id: item.id } }"
|
:to="{ path: '/result', query: { key, id: item.id } }"
|
||||||
>{{ item.title }}</router-link
|
>{{ item.title }}</router-link>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="info" v-if="key == 'policy' || key == 'policyRead'">
|
<div class="info" v-if="key == 'policy' || key == 'policyRead'">
|
||||||
<div>来源:{{ item.source }}</div>
|
<div>来源:{{ item.source }}</div>
|
||||||
<div>发布:{{ item.listDate }}</div>
|
<div>发布:{{ item.listDate }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="info" style="justify-content: flex-end" v-if="key == 'information'">
|
||||||
class="info"
|
|
||||||
style="justify-content: flex-end"
|
|
||||||
v-if="key == 'information'"
|
|
||||||
>
|
|
||||||
<div>发布:{{ parseTime(item.listDate, '{y}-{m}-{d}') }}</div>
|
<div>发布:{{ parseTime(item.listDate, '{y}-{m}-{d}') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="info" v-else-if="key == 'companyNeed' || key == 'scienceResult'">
|
||||||
class="info"
|
|
||||||
v-else-if="key == 'companyNeed' || key == 'scienceResult'"
|
|
||||||
>
|
|
||||||
<div>
|
<div>
|
||||||
<el-tag type="warning" size="mini" effect="dark">
|
<el-tag type="warning" size="mini" effect="dark">{{ item.fieldName }}</el-tag>
|
||||||
{{ item.fieldName }}
|
<el-tag
|
||||||
</el-tag>
|
type="warning"
|
||||||
<el-tag type="warning" size="mini" effect="dark">
|
size="mini"
|
||||||
{{ item.typeName || item.labelName }}
|
effect="dark"
|
||||||
</el-tag>
|
>{{ item.typeName || item.labelName }}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div>发布:{{ parseTime(item.createTime, '{y}-{m}-{d}') }}</div>
|
<div>发布:{{ parseTime(item.createTime, '{y}-{m}-{d}') }}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -53,10 +45,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-show="JSON.stringify(list) == '{}'">
|
<div v-show="JSON.stringify(list) == '{}'">
|
||||||
<p style="color: #333;">
|
<p style="color: #333;">
|
||||||
抱歉,没有找到您查询的“<span style="color:red">{{
|
抱歉,没有找到您查询的“
|
||||||
$route.query.val
|
<span style="color:red">
|
||||||
}}</span
|
{{
|
||||||
>”信息
|
$route.query.val
|
||||||
|
}}
|
||||||
|
</span>”信息
|
||||||
</p>
|
</p>
|
||||||
<ol style="padding:0;color:#666;line-height: 2;">
|
<ol style="padding:0;color:#666;line-height: 2;">
|
||||||
<td>建议:</td>
|
<td>建议:</td>
|
||||||
@ -73,7 +67,7 @@
|
|||||||
:type="type"
|
:type="type"
|
||||||
:formData="formData"
|
:formData="formData"
|
||||||
@close="dialogVisible = false"
|
@close="dialogVisible = false"
|
||||||
/> -->
|
/>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -107,7 +101,7 @@ export default {
|
|||||||
if (!a) this.formData = {};
|
if (!a) this.formData = {};
|
||||||
},
|
},
|
||||||
formData: {
|
formData: {
|
||||||
handler: function() {
|
handler: function () {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formatRichText(this.formData.downloadUrl);
|
this.formatRichText(this.formData.downloadUrl);
|
||||||
});
|
});
|
||||||
@ -119,7 +113,11 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
let { val: param } = this.$route.query;
|
let { val: param } = this.$route.query;
|
||||||
search({ param }).then(({ data }) => {
|
search({ param }).then(({ data }) => {
|
||||||
this.list = data;
|
data.policy = data.policy.map(item => {
|
||||||
|
item.title = item.title.replaceAll('<br>', '')
|
||||||
|
return item
|
||||||
|
})
|
||||||
|
this.list = data
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user