+
当前节点:{{ item.currentTaskList[0].taskName }}
diff --git a/front/public/index.html b/front/public/index.html index 184e2fb1..43013a4e 100644 --- a/front/public/index.html +++ b/front/public/index.html @@ -1,8 +1,8 @@ diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index b63b09da..8329cebe 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-30 11:05:52 + * @LastEditTime: 2022-07-01 17:40:37 * @Description: 数据资源参数配置 */ const newLocation = 'qingdao' @@ -30,7 +30,7 @@ if (newLocation === 'qingdao') { { name: '能力集市', key: 'DetailsPageconetent' }, { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, - { name: '开发指南', key: 'developmentGuide' }, + // { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, { name: '区市站点', key: 'mapTest' }, @@ -116,7 +116,7 @@ else if (newLocation === 'baotou') { { name: '能力集市', key: 'DetailsPageconetent' }, { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, - { name: '开发指南', key: 'developmentGuide' }, + // { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, // { name: '区市站点', key: 'mapTest' }, @@ -152,7 +152,7 @@ else if (newLocation === 'xihaian') { { name: '能力集市', key: 'DetailsPageconetent' }, { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, - { name: '开发指南', key: 'developmentGuide' }, + // { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, // { name: '区市站点', key: 'mapTest' }, diff --git a/front/src/assets/home/kfzj_square.png b/front/src/assets/home/kfzj_square.png new file mode 100644 index 00000000..fc76f630 Binary files /dev/null and b/front/src/assets/home/kfzj_square.png differ diff --git a/front/src/assets/home/sjzy_square.png b/front/src/assets/home/sjzy_square.png new file mode 100644 index 00000000..7489004e Binary files /dev/null and b/front/src/assets/home/sjzy_square.png differ diff --git a/front/src/assets/home/sxt_square.png b/front/src/assets/home/sxt_square.png new file mode 100644 index 00000000..502f0eef Binary files /dev/null and b/front/src/assets/home/sxt_square.png differ diff --git a/front/src/assets/home/tcfw_square.png b/front/src/assets/home/tcfw_square.png new file mode 100644 index 00000000..a463a096 Binary files /dev/null and b/front/src/assets/home/tcfw_square.png differ diff --git a/front/src/assets/home/ywzj_square.png b/front/src/assets/home/ywzj_square.png new file mode 100644 index 00000000..38acb4da Binary files /dev/null and b/front/src/assets/home/ywzj_square.png differ diff --git a/front/src/assets/home/yyzy_square.png b/front/src/assets/home/yyzy_square.png new file mode 100644 index 00000000..060b4e33 Binary files /dev/null and b/front/src/assets/home/yyzy_square.png differ diff --git a/front/src/assets/home/znsf_square.png b/front/src/assets/home/znsf_square.png new file mode 100644 index 00000000..bb6cd33f Binary files /dev/null and b/front/src/assets/home/znsf_square.png differ diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue index 121718e2..ebd3e428 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue @@ -161,18 +161,22 @@ ) function technical() { // 拼接路径 - const type = pinyin(props.dataList.type, { - pattern: 'initial', - }).replace(/\s*/g, '') - // 打开文档 - const id = props.dataList.id - window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') + // const type = pinyin(props.dataList.type, { + // pattern: 'initial', + // }).replace(/\s*/g, '') + // // 打开文档 + // const id = props.dataList.id + // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') // console.log('dataFrom.value.link', dataFrom.value.link) - // window.open( - // window.SITE_CONFIG.previewUrl + - // 'hisense_office/onlinePreview?url=' + - // btoa(encodeURI(dataFrom.value.link)) - // ) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '技术文档' + )[0] + console.log('dataFrom.value.link', obj.attrValue) + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) } diff --git a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue index 8ae5dd57..6ddc28fe 100644 --- a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue +++ b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue @@ -192,18 +192,22 @@ ) function technical() { // 拼接路径 - const type = pinyin(props.dataList.type, { - pattern: 'initial', - }).replace(/\s*/g, '') - // 打开文档 - const id = props.dataList.id - window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') + // const type = pinyin(props.dataList.type, { + // pattern: 'initial', + // }).replace(/\s*/g, '') + // // 打开文档 + // const id = props.dataList.id + // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') // console.log('dataFrom.value.link', dataFrom.value.link) - // window.open( - // window.SITE_CONFIG.previewUrl + - // 'hisense_office/onlinePreview?url=' + - // btoa(encodeURI(dataFrom.value.link)) - // ) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '技术文档' + )[0] + console.log('dataFrom.value.link', obj.attrValue) + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) } function technicalNew() { // 拼接路径 diff --git a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue index fba86c5c..0c6e298e 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue @@ -113,18 +113,22 @@ //技术文档 function technical() { // 拼接路径 - const type = pinyin(props.dataList.type, { - pattern: 'initial', - }).replace(/\s*/g, '') - // 打开文档 - const id = props.dataList.id - window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') + // const type = pinyin(props.dataList.type, { + // pattern: 'initial', + // }).replace(/\s*/g, '') + // // 打开文档 + // const id = props.dataList.id + // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') // console.log('dataFrom.value.link', dataFrom.value.link) - // window.open( - // window.SITE_CONFIG.previewUrl + - // 'hisense_office/onlinePreview?url=' + - // btoa(encodeURI(dataFrom.value.link)) - // ) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '技术文档' + )[0] + console.log('dataFrom.value.link', obj.attrValue) + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) } function technicaltow() { let obj = props.dataList.infoList.filter( diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue index 4e100f80..89c9a973 100644 --- a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue +++ b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue @@ -194,18 +194,22 @@ ) function technical() { // 拼接路径 - const type = pinyin(props.dataList.type, { - pattern: 'initial', - }).replace(/\s*/g, '') - // 打开文档 - const id = props.dataList.id - window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') + // const type = pinyin(props.dataList.type, { + // pattern: 'initial', + // }).replace(/\s*/g, '') + // // 打开文档 + // const id = props.dataList.id + // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') // console.log('dataFrom.value.link', dataFrom.value.link) - // window.open( - // window.SITE_CONFIG.previewUrl + - // 'hisense_office/onlinePreview?url=' + - // btoa(encodeURI(dataFrom.value.link)) - // ) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '技术文档' + )[0] + console.log('dataFrom.value.link', obj.attrValue) + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) } function technicalNew() { // 拼接路径 @@ -215,11 +219,14 @@ // // 打开文档 // const id = props.dataList.id // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') - console.log('dataFrom.value.link', dataFrom.value.link) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '使用手册' + )[0] + console.log('dataFrom.value.link', obj.attrValue) window.open( window.SITE_CONFIG.previewUrl + 'hisense_office/onlinePreview?url=' + - btoa(encodeURI(dataFrom.value.link)) + btoa(encodeURI(obj.attrValue)) ) } diff --git a/front/src/views/home/algorithmCompare.vue b/front/src/views/home/algorithmCompare.vue index dbfa5141..d9bb13f6 100644 --- a/front/src/views/home/algorithmCompare.vue +++ b/front/src/views/home/algorithmCompare.vue @@ -296,17 +296,13 @@ text: '是否支持试用', key: '', }, - { - text: '试用描述', - key: '', - }, { text: '试用地址', }, ], 服务商: [ { - text: '服务商名', + text: '服务商', }, { text: '服务商联系人', @@ -432,6 +428,7 @@ obj.infoList = getInfoList(trName) list.push(obj) } else { + console.log(titleKey, trName) _newObj.groupList = getGroupList(titleKey, trName) } }) @@ -440,6 +437,8 @@ } tableData.value.push(_newObj) }) + + console.log('11111111111111', tableData.value) } // 基本信息等 @@ -457,18 +456,25 @@ const getGroupList = (titleKey, trName) => { let arr = [] detailArray.value.map((item) => { - if (arrayStr.includes(titleKey)) { - let groupItemObj = {} - let _list = item[titleKey] || [] - let textInfo = textObj[titleKey] - _list.map((v) => { - Object.keys(v).map((d) => { - if (textInfo[d] !== undefined) { - groupItemObj[textInfo[d]] = v[d] - } + if (item) { + if (arrayStr.includes(titleKey)) { + let groupItemObj = {} + let _list = item[titleKey] || [] + let textInfo = textObj[titleKey] + _list.map((v) => { + // console.log(v) + Object.keys(v).map((d) => { + console.log(textInfo[d]) + if (textInfo[d]) { + if (!groupItemObj[textInfo[d]]) { + groupItemObj[textInfo[d]] = '' + } + groupItemObj[textInfo[d]] += v[d] + ';' + } + }) }) - }) - arr.push(groupItemObj) + arr.push(groupItemObj) + } } }) let _arr = translateArray(arr) diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index f56b499c..af30afdb 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -601,7 +601,7 @@ } }) } - }, 500) + }, 2000) } const handleBlur = () => { diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 935c1d5f..8e7b0bff 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -31,15 +31,27 @@ v-for="(item, index) in resourceList.data" :key="item.index" > -
+
当前节点:{{ item.currentTaskList[0].taskName }}