隐藏首页解读检索,更多添加不限

This commit is contained in:
熊丽君
2021-11-05 15:28:59 +08:00
parent a098548836
commit 2bc6429156
3 changed files with 22 additions and 11 deletions

View File

@ -31,7 +31,7 @@
<div class="tab_list"> <div class="tab_list">
<!-- @tab-click="handleClick2" --> <!-- @tab-click="handleClick2" -->
<el-tabs v-model="queryParams2.attributeId"> <el-tabs v-model="queryParams2.attributeId">
<el-tab-pane label="科技" name="KJJ"> <!-- <el-tab-pane label="科技" name="KJJ">
<span <span
slot="label" slot="label"
@mouseover=" @mouseover="
@ -66,7 +66,7 @@
" "
>其他</span >其他</span
> >
</el-tab-pane> </el-tab-pane> -->
<div <div
class="tab_item" class="tab_item"
style="position: relative;padding-right:50px" style="position: relative;padding-right:50px"
@ -74,9 +74,7 @@
:key="item.id" :key="item.id"
> >
<span :class="index < 3 ? 'color' : ''"></span> <span :class="index < 3 ? 'color' : ''"></span>
<!-- <span class="text_hidden_one text_18_333 pointer">{{
item.title
}}</span> -->
<span class="text_hidden_one text_18_333 pointer"> <span class="text_hidden_one text_18_333 pointer">
<router-link <router-link
target="_blank" target="_blank"
@ -494,8 +492,8 @@ export default {
pageSize: 7 pageSize: 7
}, },
queryParams2: { queryParams2: {
attributeId: 'KJJ', attributeId: 'OTHER',
pageSize: 7 pageSize: 8
}, },
queryParams3: { queryParams3: {
pageNum: 1, pageNum: 1,

View File

@ -156,6 +156,10 @@ export default {
], ],
// 归口选项 // 归口选项
attributeOptions: [ attributeOptions: [
{
value: '',
label: '不限'
},
{ {
value: 'KJJ', value: 'KJJ',
label: '科技' label: '科技'

View File

@ -77,7 +77,11 @@
<!-- <div v-html="formData.text"></div> --> <!-- <div v-html="formData.text"></div> -->
<div <div
id="text" id="text"
:class="type == 'policy' && formData.method == 1 ? '' : 'ql-editor'" :class="
(type == 'policy' && formData.method == 1) || type == 'policyRead'
? ''
: 'ql-editor'
"
> >
<!-- <editor v-model="formData.text" :min-height="192" /> --> <!-- <editor v-model="formData.text" :min-height="192" /> -->
<div v-html="formData.text" /> <div v-html="formData.text" />
@ -165,9 +169,13 @@ export default {
watch: { watch: {
formData: { formData: {
handler: function() { handler: function() {
if (this.type == 'policy') { if (this.type == 'policy' || this.type == 'policyRead') {
this.$nextTick(() => { this.$nextTick(() => {
this.formatRichText(this.formData.downloadUrl, this.formData.id); this.formatRichText(
this.formData.downloadUrl,
this.formData.id,
this.formData.url
);
}); });
} else { } else {
this.formData.text = this.formData.text.replaceAll('&nbsp;', ' '); this.formData.text = this.formData.text.replaceAll('&nbsp;', ' ');
@ -263,7 +271,8 @@ export default {
/deep/.editor { /deep/.editor {
border: 0; border: 0;
} }
/deep/p { /deep/p,
/deep/#zoom {
img { img {
max-width: 100%; max-width: 100%;
} }