技术文档提示---高级搜索条件编辑---基础设施dec不要

This commit is contained in:
gaoyuanwei 2022-07-20 16:18:18 +08:00
parent 2330dd5680
commit b2d51e12eb
5 changed files with 42 additions and 17 deletions

View File

@ -280,7 +280,7 @@
message.config({ message.config({
top: '100px', // top: '100px', //
}) })
message.error('暂未上传技术文档') message.error('暂未开放技术文档.png')
} }
} }
function technicalNew() { function technicalNew() {

View File

@ -214,7 +214,7 @@
message.config({ message.config({
top: '100px', // top: '100px', //
}) })
message.error('暂未上传技术文档') message.error('暂未开放技术文档.png')
} }
} }
function technicalNew() { function technicalNew() {

View File

@ -47,6 +47,8 @@
import DetalsTitle from '@/views/detailsAll/components/DetalsTitle' import DetalsTitle from '@/views/detailsAll/components/DetalsTitle'
import { ref, defineProps, watch } from 'vue' import { ref, defineProps, watch } from 'vue'
import { pinyin } from 'pinyin-pro' import { pinyin } from 'pinyin-pro'
import { message } from 'ant-design-vue'
let flag = ref(true) let flag = ref(true)
let dataFrom = ref({ let dataFrom = ref({
title: '使用方式', title: '使用方式',
@ -137,23 +139,42 @@
let obj = props.dataList.infoList.filter( let obj = props.dataList.infoList.filter(
(item) => item.attrType === '技术文档' (item) => item.attrType === '技术文档'
)[0] )[0]
console.log('dataFrom.value.link', obj.attrValue) if (obj) {
window.open( window.open(window.SITE_CONFIG.frontUrl + obj.attrValue)
window.SITE_CONFIG.frontUrl + } else {
'hisense_office/onlinePreview?url=' + message.config({
btoa(encodeURI(obj.attrValue)) top: '100px', //
) })
message.error('暂未开放技术文档.png')
}
// window.open(
// window.SITE_CONFIG.frontUrl +
// 'hisense_office/onlinePreview?url=' +
// btoa(encodeURI(obj.attrValue))
// )
} }
function technicaltow() { function technicaltow() {
let obj = props.dataList.infoList.filter( let obj = props.dataList.infoList.filter(
(item) => item.attrType === '使用手册' (item) => item.attrType === '使用手册'
)[0] )[0]
console.log('dataFrom.value.link', obj.attrValue) // console.log('dataFrom.value.link', obj.attrValue)
// window.open(
// window.SITE_CONFIG.previewUrl +
// 'hisense_office/onlinePreview?url=' +
// btoa(encodeURI(obj.attrValue))
// )
if (obj) {
window.open( window.open(
window.SITE_CONFIG.previewUrl + window.SITE_CONFIG.previewUrl +
'hisense_office/onlinePreview?url=' + 'hisense_office/onlinePreview?url=' +
btoa(encodeURI(obj.attrValue)) btoa(encodeURI(obj.attrValue))
) )
} else {
message.config({
top: '100px', //
})
message.error('暂未上传使用手册')
}
} }
watch( watch(
() => props.dataList, () => props.dataList,

View File

@ -162,7 +162,11 @@
> >
<span>{{ item.shareType || '--' }}</span> <span>{{ item.shareType || '--' }}</span>
</div> --> </div> -->
<div v-if="selectCardsname !== '融合服务'"> <div
v-if="
selectCardsname !== '融合服务' && selectCardsname !== '基础设施'
"
>
<span>{{ item.deptName || '--' }}</span> <span>{{ item.deptName || '--' }}</span>
</div> </div>
</div> </div>

View File

@ -56,7 +56,7 @@
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="技术领域"> <!-- <a-form-item label="技术领域">
<a-select <a-select
ref="select" ref="select"
style="width: 1.8rem; height: 0.4rem" style="width: 1.8rem; height: 0.4rem"
@ -72,7 +72,7 @@
{{ item.dict_label }} {{ item.dict_label }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item> -->
</div> </div>
<div class="qushi-class-father"> <div class="qushi-class-father">
<!-- <div class="qushi-class"> <!-- <div class="qushi-class">