修改搜索中心细节问题

This commit is contained in:
qq787203167
2022-08-22 09:56:17 +08:00
parent fd76418d50
commit bd40e1b6e8
8 changed files with 58 additions and 12 deletions
@@ -6,7 +6,7 @@
<span style="line-height: 66px;display: inline-block;float: left;cursor: pointer" @click="backClick"> <span style="line-height: 66px;display: inline-block;float: left;cursor: pointer" @click="backClick">
<a-icon type="arrow-left" style="margin-right: 6px;"/> <a-icon type="arrow-left" style="margin-right: 6px;"/>
</span> </span>
{{$t('newlyAdded')}} {{this.$route.query.id ? $t('edit') :$t('newlyAdded')}}
</div> </div>
</div> </div>
<div style="padding-top: 68px;background: #fff"> <div style="padding-top: 68px;background: #fff">
@@ -365,14 +365,21 @@
::v-deep .ant-tag { ::v-deep .ant-tag {
padding: 2px 4px; padding: 2px 4px;
background: #9B9DA9; background: #9B9DA9;
color: #fff!important; color: #fff !important;
} }
::v-deep .ant-tag-checkable:not(.ant-tag-checkable-checked):hover{
color: #fff!important; ::v-deep .ant-tag-checkable:not(.ant-tag-checkable-checked):hover {
color: #fff !important;
} }
::v-deep .ant-tag-checkable-checked{
::v-deep .ant-tag-checkable-checked {
background: #21c9cc; background: #21c9cc;
} }
::v-deep p {
margin: 0;
padding: 0;
}
</style> </style>
<style> <style>
.box-content-left .ant-tag { .box-content-left .ant-tag {
@@ -6,7 +6,7 @@
<span style="line-height: 66px;display: inline-block;float: left"> <span style="line-height: 66px;display: inline-block;float: left">
<a-icon type="arrow-left" style="margin-right: 6px;"/> <a-icon type="arrow-left" style="margin-right: 6px;"/>
</span> </span>
{{$t('applicableInstructionsMarketList')}} {{queryForm.title}}
</div> </div>
<div class="doc-detail-right"> <div class="doc-detail-right">
<div @click="forwardClick" class="operator-text-text" :title="$t('forward')"> <div @click="forwardClick" class="operator-text-text" :title="$t('forward')">
@@ -123,7 +123,7 @@
value: 'standNumber' value: 'standNumber'
}, },
{ {
title: this.$t('standardName'), title: this.$t('title'),
value: 'title' value: 'title'
}, },
{ {
@@ -666,6 +666,11 @@
postAction(this.url.getParagraphInfoList, query).then((res) => { postAction(this.url.getParagraphInfoList, query).then((res) => {
if (res.success) { if (res.success) {
this.conList = res.result.records this.conList = res.result.records
if (this.conList && this.conList.length > 0) {
this.conList.forEach(val => {
val.content = val.content.replace(/<img .*?>/g, '')
})
}
this.total = res.result.total this.total = res.result.total
this.loading = false this.loading = false
} else { } else {
@@ -934,6 +939,11 @@
word-break: break-all word-break: break-all
} }
::v-deep p {
margin: 0;
padding: 0;
}
/*::v-deep .ant-select {*/ /*::v-deep .ant-select {*/
/* max-width: calc(100% - 126px) !important;*/ /* max-width: calc(100% - 126px) !important;*/
/*}*/ /*}*/
@@ -191,6 +191,11 @@
postAction(this.url.getInfoList, query).then((res) => { postAction(this.url.getInfoList, query).then((res) => {
if (res.success) { if (res.success) {
this.conList = res.result.records this.conList = res.result.records
if (this.conList && this.conList.length > 0) {
this.conList.forEach(val => {
val.content = val.content.replace(/<img .*?>/g, '')
})
}
this.total = res.result.total this.total = res.result.total
this.loading = false this.loading = false
} else { } else {
@@ -305,4 +310,8 @@
text-align: center; text-align: center;
line-height: 10; line-height: 10;
} }
::v-deep p{
margin: 0;
padding: 0;
}
</style> </style>
@@ -220,7 +220,9 @@
return words.replace(/\s/g, '') //这里是去除空格 return words.replace(/\s/g, '') //这里是去除空格
}, },
getParagraphInfoList() { getParagraphInfoList() {
let queryParamOne = Object.assign(this.queryParam, this.queryParamOne) let queryParamIndex = JSON.parse(JSON.stringify(this.queryParam))
let queryParamAdmin = JSON.parse(JSON.stringify(this.queryParamOne))
let queryParamOne = Object.assign(queryParamIndex, queryParamAdmin)
let queryParam = JSON.parse(JSON.stringify(queryParamOne)) let queryParam = JSON.parse(JSON.stringify(queryParamOne))
Object.keys(queryParam).forEach(val => { Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) { if (queryParam[val] instanceof Array) {
@@ -238,6 +240,11 @@
postAction(this.url.getParagraphInfoList, query).then((res) => { postAction(this.url.getParagraphInfoList, query).then((res) => {
if (res.success) { if (res.success) {
this.conList = res.result.records this.conList = res.result.records
if (this.conList && this.conList.length > 0) {
this.conList.forEach(val => {
val.content = val.content.replace(/<img .*?>/g, '')
})
}
this.total = res.result.total this.total = res.result.total
this.loading = false this.loading = false
} else { } else {
@@ -482,4 +489,8 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
::v-deep p{
margin: 0;
padding: 0;
}
</style> </style>
@@ -213,6 +213,11 @@
postAction(this.url.getInfoList, query).then((res) => { postAction(this.url.getInfoList, query).then((res) => {
if (res.success) { if (res.success) {
this.conList = res.result.records this.conList = res.result.records
if (this.conList && this.conList.length > 0) {
this.conList.forEach(val => {
val.content = val.content.replace(/<img .*?>/g, '')
})
}
this.total = res.result.total this.total = res.result.total
} else { } else {
this.conList = [] this.conList = []
@@ -351,4 +356,8 @@
text-align: center; text-align: center;
line-height: 10; line-height: 10;
} }
::v-deep p{
margin: 0;
padding: 0;
}
</style> </style>
@@ -65,10 +65,10 @@
<a-tab-pane :key="$t('whole')" :tab="$t('whole')"></a-tab-pane> <a-tab-pane :key="$t('whole')" :tab="$t('whole')"></a-tab-pane>
<a-tab-pane :key="$t('DocumentLibrary')" :tab="$t('DocumentLibrary')" force-render> <a-tab-pane :key="$t('DocumentLibrary')" :tab="$t('DocumentLibrary')" force-render>
</a-tab-pane> </a-tab-pane>
<!-- <a-tab-pane :key="$t('problemKnowledgeBase')" :tab="$t('problemKnowledgeBase')" force-render>--> <a-tab-pane :key="$t('problemKnowledgeBase')" :tab="$t('problemKnowledgeBase')" force-render>
<!-- </a-tab-pane>--> </a-tab-pane>
<!-- <a-tab-pane :key="$t('monthlyReportRegulations')" :tab="$t('monthlyReportRegulations')" force-render>--> <a-tab-pane :key="$t('monthlyReportRegulations')" :tab="$t('monthlyReportRegulations')" force-render>
<!-- </a-tab-pane>--> </a-tab-pane>
</a-tabs> </a-tabs>
</div> </div>
</div> </div>