修复搜索中心跳转知识分享

This commit is contained in:
高嵩
2023-03-22 09:17:49 +08:00
parent 658f1ded2f
commit 810eaf8173
2 changed files with 255 additions and 251 deletions
@@ -36,7 +36,8 @@
<template slot="title"> <template slot="title">
<span v-html="item.file_name"></span> <span v-html="item.file_name"></span>
</template> </template>
<span class="text-header-text" v-if="item.file_name && item.module_type_flag == 'WDK'" style="cursor: pointer" <span class="text-header-text" v-if="item.file_name && item.module_type_flag == 'WDK'"
style="cursor: pointer"
v-html="item.file_name"></span> v-html="item.file_name"></span>
</a-tooltip> </a-tooltip>
<!-- <a-tooltip placement="topLeft" :mouseEnterDelay="0.5">--> <!-- <a-tooltip placement="topLeft" :mouseEnterDelay="0.5">-->
@@ -261,13 +262,13 @@
if (item.module_type_flag == 'FGYB') { if (item.module_type_flag == 'FGYB') {
this.monthlyReportClick(item) this.monthlyReportClick(item)
} else if (item.module_type_flag == 'WTZSK') { } else if (item.module_type_flag == 'WTZSK') {
let newUrl = this.$router.resolve({ let id = item.id.slice(0, item.id.length - 4)
path: '/problemKnowledgeBaseView', this.$router.push({
path: '/problemknowledgeBase',
query: { query: {
id: item.id id: id
} }
}) })
window.open(newUrl.href, '_blank')
} else { } else {
let newUrl = this.$router.resolve({ let newUrl = this.$router.resolve({
path: '/docManage/library/detail', path: '/docManage/library/detail',
@@ -290,10 +291,12 @@
.tooltip-index { .tooltip-index {
max-width: calc(100% - 300px) !important; max-width: calc(100% - 300px) !important;
.ant-tooltip-inner { .ant-tooltip-inner {
color: #333; color: #333;
background-color: #fff !important; background-color: #fff !important;
} }
.ant-tooltip-arrow::before { .ant-tooltip-arrow::before {
background-color: #fff; background-color: #fff;
} }
@@ -19,7 +19,8 @@
</div> </div>
<a-form-model-item class="itemModel" prop="projectVersion"> <a-form-model-item class="itemModel" prop="projectVersion">
<a-input class="box-input" <a-input class="box-input"
:disabled="true" oninput="javascript:this.value=this.value.replace(/[^\d]$/g,'')"
:maxLength="2"
v-model="formInline.projectVersion" v-model="formInline.projectVersion"
:placeholder="$t('PleaseEnter')+$t('projectVersion')"/> :placeholder="$t('PleaseEnter')+$t('projectVersion')"/>
</a-form-model-item> </a-form-model-item>