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

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

View File

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

View File

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