修改搜索中心细节问题
This commit is contained in:
@@ -666,6 +666,11 @@
|
||||
postAction(this.url.getParagraphInfoList, query).then((res) => {
|
||||
if (res.success) {
|
||||
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.loading = false
|
||||
} else {
|
||||
@@ -934,6 +939,11 @@
|
||||
word-break: break-all
|
||||
}
|
||||
|
||||
::v-deep p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*::v-deep .ant-select {*/
|
||||
/* max-width: calc(100% - 126px) !important;*/
|
||||
/*}*/
|
||||
|
||||
@@ -191,6 +191,11 @@
|
||||
postAction(this.url.getInfoList, query).then((res) => {
|
||||
if (res.success) {
|
||||
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.loading = false
|
||||
} else {
|
||||
@@ -305,4 +310,8 @@
|
||||
text-align: center;
|
||||
line-height: 10;
|
||||
}
|
||||
::v-deep p{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -220,7 +220,9 @@
|
||||
return words.replace(/\s/g, '') //这里是去除空格
|
||||
},
|
||||
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))
|
||||
Object.keys(queryParam).forEach(val => {
|
||||
if (queryParam[val] instanceof Array) {
|
||||
@@ -238,6 +240,11 @@
|
||||
postAction(this.url.getParagraphInfoList, query).then((res) => {
|
||||
if (res.success) {
|
||||
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.loading = false
|
||||
} else {
|
||||
@@ -482,4 +489,8 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
::v-deep p{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -213,6 +213,11 @@
|
||||
postAction(this.url.getInfoList, query).then((res) => {
|
||||
if (res.success) {
|
||||
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
|
||||
} else {
|
||||
this.conList = []
|
||||
@@ -351,4 +356,8 @@
|
||||
text-align: center;
|
||||
line-height: 10;
|
||||
}
|
||||
::v-deep p{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -65,10 +65,10 @@
|
||||
<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>
|
||||
<!-- <a-tab-pane :key="$t('problemKnowledgeBase')" :tab="$t('problemKnowledgeBase')" force-render>-->
|
||||
<!-- </a-tab-pane>-->
|
||||
<!-- <a-tab-pane :key="$t('monthlyReportRegulations')" :tab="$t('monthlyReportRegulations')" force-render>-->
|
||||
<!-- </a-tab-pane>-->
|
||||
<a-tab-pane :key="$t('problemKnowledgeBase')" :tab="$t('problemKnowledgeBase')" force-render>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="$t('monthlyReportRegulations')" :tab="$t('monthlyReportRegulations')" force-render>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user