修改搜索中心的跳转

This commit is contained in:
qq787203167
2022-03-23 21:47:21 +08:00
parent b0391e43a1
commit 89fa71d7c1
2 changed files with 26 additions and 10 deletions
@@ -95,10 +95,10 @@
<a @click="handleCompare(record)" class="text-operation"> {{$t('Push')}}</a>
</span>
<span slot="serial_number" slot-scope="text,record">
<span v-html="record.serial_number"></span>
<span style="cursor: pointer;color:#21c9cc" v-html="record.serial_number" @click="titleClick(record)"></span>
</span>
<span slot="titleName" slot-scope="text,record">
<span v-html="record.title"></span>
<span style="cursor: pointer;color:#21c9cc" v-html="record.title" @click="titleClick(record)"></span>
</span>
<span slot="file_name" slot-scope="text,record">
<a style="color:#21c9cc" @click="fileNameClick(record)">
@@ -478,6 +478,13 @@
} else {
downloadFile('/sys/common/download', fileQuery.fileName, { id: fileQuery.id })
}
},
titleClick(item) {
let newUrl = this.$router.resolve({
path: '/docManage/library/detail',
query: item
})
window.open(newUrl.href, '_blank')
}
}
}
@@ -541,7 +548,7 @@
}
.text-right {
width: 100%;
width: calc(100% - 358px);
position: relative;
padding: 26px 0 22px 24px;
box-sizing: border-box;
@@ -9,25 +9,27 @@
<div style="margin-bottom: 10px;position: relative">
<a-checkbox :value="item.id" class="checkbox-left"></a-checkbox>
<div class="text-text-right"
@click="checkedClick(item)"
:class="{ 'null-input':item.checked }">
<div class="text-header">
<span :title="item.module_type">{{item.module_type}}</span>
<span :title="item.serial_number">{{item.serial_number}}</span>
<span :title="item.title">{{item.title}}</span>
<span style="cursor: pointer" :title="item.serial_number"
@click="titleClick(item)">{{item.serial_number}}</span>
<span style="cursor: pointer" :title="item.title" @click="titleClick(item)">{{item.title}}</span>
</div>
<div class="text-content" :title="item.content" v-html="item.content" v-if="!queryParam.selectValue">
<div class="text-content" @click="checkedClick(item)" :title="item.content" v-html="item.content"
v-if="!queryParam.selectValue">
</div>
<div class="text-content" :title="item.content" v-html="item.content"
<div class="text-content" @click="checkedClick(item)" :title="item.content" v-html="item.content"
v-else-if="(item.file_text instanceof Array) && queryParam.selectValue">
</div>
<div class="text-content" :title="item.content" v-html="item.content"
<div class="text-content" @click="checkedClick(item)" :title="item.content" v-html="item.content"
v-else-if="!item.file_text && queryParam.selectValue">
</div>
<div class="text-content" :title="item.file_text" v-html="item.file_text" v-else>
<div class="text-content" @click="checkedClick(item)" :title="item.file_text" v-html="item.file_text"
v-else>
</div>
</div>
@@ -137,6 +139,13 @@
this.loading = false
}
})
},
titleClick(item) {
let newUrl = this.$router.resolve({
path: '/docManage/library/detail',
query: item
})
window.open(newUrl.href, '_blank')
}
}
}