Compare commits

...

2 Commits

Author SHA1 Message Date
a0049873 ae80f57dcc Merge branch 'hi-ucs-dev' of http://15.2.21.221:3000/wuhongjian/hi-ucs into hi-ucs-dev
# Conflicts:
#	front/src/views/home/infrastructurePage.vue
2022-07-01 18:24:43 +08:00
a0049873 2fdfa22266 BUG修改 2022-07-01 18:23:43 +08:00
20 changed files with 236 additions and 104 deletions

View File

@ -1,8 +1,8 @@
<!--
* @Author: hisense.wuhongjian
* @Date: 2022-03-29 16:45:25
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-06-30 21:21:10
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-01 17:06:39
* @Description: 告诉大家这是什么
-->
<!DOCTYPE html>

View File

@ -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' },

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -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))
)
}
</script>

View File

@ -176,18 +176,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() {
//

View File

@ -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(

View File

@ -162,18 +162,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() {
//
@ -183,11 +187,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))
)
}
</script>

View File

@ -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)

View File

@ -601,7 +601,7 @@
}
})
}
}, 500)
}, 2000)
}
const handleBlur = () => {

View File

@ -31,15 +31,27 @@
v-for="(item, index) in resourceList.data"
:key="item.index"
>
<div class="item">
<div class="item" :key="showKey">
<div
class="left"
:class="
item.type == '应用资源'
? 'yyzy'
: item.applicationType == '智能算法'
: item.type == '数据资源'
? 'sjzy'
: item.infoList.filter((val) => val.attrType == '组件类型')[0]
.attrValue == '智能算法'
? 'znsf'
: 'gis'
: item.infoList.filter((val) => val.attrType == '组件类型')[0]
.attrValue == '图层服务'
? 'tcfw'
: item.infoList.filter((val) => val.attrType == '组件类型')[0]
.attrValue == '开发组件'
? 'kfzj'
: item.infoList.filter((val) => val.attrType == '组件类型')[0]
.attrValue == '业务组件'
? 'ywzj'
: ''
"
v-if="selectCardsname !== '基础设施'"
></div>
@ -139,12 +151,17 @@
<div class="btn">
<div class="right" v-if="selectCardsname !== '基础设施'">
<div class="shopping" :key="shoppingKey">
<span class="shopping-down" v-if="item.isInShoppingCart"></span>
<span
class="shopping-on"
v-else
@click="addShoppingCart(item, index)"
></span>
<template v-if="selectCardsname == '组件服务'">
<span
class="shopping-down"
v-if="item.isInShoppingCart"
></span>
<span
class="shopping-on"
v-else
@click="addShoppingCart(item, index)"
></span>
</template>
</div>
<div class="sc">
<span
@ -328,6 +345,7 @@
setup(props) {
// eslint-disable-next-line no-undef
const whoShow1 = whoShow
const showKey = ref(0)
let shoppingKey = ref(1)
// id
const selList = ref([
@ -353,6 +371,32 @@
})
}
}
console.log('this.resourceList', props.resourceList.data)
props.resourceList.data.map((val) => {
if (val.infoList) {
let obj = val.infoList.filter(
(item) => item.attrType == '组件类型'
)[0]
if (obj) {
switch (obj.attrValue) {
case '智能算法':
val.applicationType = 'znsf'
break
case '图层服务':
val.applicationType = 'tcfw'
break
case '开发组件':
val.applicationType = 'kfzj'
break
case '业务组件':
val.applicationType = 'ywzj'
break
}
console.log('obj', val.applicationType)
}
}
})
showKey.value++
const selData = ref('total')
const flag = ref(true)
// userId
@ -548,6 +592,7 @@
visible,
goComparePk,
whoShow1,
showKey,
}
},
beforeUnmount() {
@ -654,6 +699,7 @@
width: 100%;
margin-top: 10px;
display: flex;
align-items: center;
.left {
display: inline-block;
@ -667,22 +713,28 @@
}
.yyzy {
background: url('~@/assets/home/yyzy-bg.png') no-repeat;
background-size: 120px 110px;
background: url('~@/assets/home/yyzy_square.png') no-repeat;
background-size: 100%;
}
.sjzy {
background: url('~@/assets/home/sjzy_square.png') no-repeat;
background-size: 100%;
}
.znsf {
background: url('~@/assets/home/znsf-bg.png') no-repeat;
background-size: 120px 110px;
background: url('~@/assets/home/znsf_square.png') no-repeat;
background-size: 100%;
}
.gis {
background: url('~@/assets/home/gis-bg.png') no-repeat;
background-size: 120px 110px;
.tcfw {
background: url('~@/assets/home/tcfw_square.png') no-repeat;
background-size: 100%;
}
.jcss {
background: url('~@/assets/home/jcss-bg.png') no-repeat;
.kfzj {
background: url('~@/assets/home/kfzj_square.png') no-repeat;
background-size: 100%;
}
.ywzj {
background: url('~@/assets/home/ywzj_square.png') no-repeat;
background-size: 100%;
}

View File

@ -156,7 +156,7 @@
], //,
})
let visible = ref(false)
const jjssType = ref(router.currentRoute.value.query.type)
const jcssType = ref(router.currentRoute.value.query.type)
const pagination = ref({
total: 0,
current: 1,
@ -178,13 +178,16 @@
})
const showMap = ref(true)
onMounted(() => {
if (jjssType.value) {
tabClick(0, jjssType.value)
if (jcssType.value) {
tabClick(0, jcssType.value)
if (jcssType.value == '视频资源') {
getCamera()
}
} else {
tabClick(0, '视频资源')
getCamera()
}
getCamera()
mybus.off('getListByParentId')
mybus.on('getListByParentId', (parentId) => {
mapSearchParam.value.parentId = parentId
@ -250,7 +253,6 @@
let tableHeight = ref('600')
//tab
const tabClick = (indexFather, name) => {
debugger
if (clickList.value[indexFather].content.indexOf(name) != -1) {
if (name == '视频资源') {
tableHeight.value = 330
@ -327,6 +329,19 @@
clickList.value[indexFather].content.push(name)
}
}
// labelCode
mapSearchParam.value.labelCodes = []
clickList.value[1].content.map((item) => {
mapSearchParam.value.labelCodes.push(item.labelCode)
})
console.log('选中的标签code', mapSearchParam.value)
mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + ''
if (name == '视频资源') {
getCamera()
} else {
dataSource.value = []
pagination.value.total = 0
}
}
//
const nullClick = () => {

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-21 11:55:07
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-30 18:18:57
* @LastEditTime: 2022-07-01 17:03:24
* @Description: 告诉大家这是什么
-->
<template>
@ -211,7 +211,7 @@
}
const read = (item) => {
// console.log(item)
if (selectData.value.length === 0) {
if (selectData.value.length === 0 && !item) {
message.error('未选择消息!')
return
}

View File

@ -71,7 +71,7 @@
</p>
</div>
<div class="content-body-content" v-if="item.currentTaskList">
<p class="content-body-content-son">
<p class="content-body-content-son" v-if="!item.backToFirst">
当前节点{{ item.currentTaskList[0].taskName }}
</p>
</div>
@ -136,13 +136,7 @@
<div></div>
</div>
<div class="button-box">
<div
class="button"
@click="showDetail(item)"
v-if="!(item.processDefinitionName == '能力申请')"
>
查看流程
</div>
<div class="button" @click="showDetail(item)">查看流程</div>
<!-- <div class="button" @click="showAdd(item)" v-if="item.backToFirst">
修改
</div> -->

View File

@ -159,6 +159,22 @@
:checked="item.checked"
@click.stop="checkedItem(val, item)"
></a-checkbox>
<div
class="tx"
:class="
item.type == '基础设施'
? 'sxt'
: item.componentType == '智能算法'
? 'znsf'
: item.componentType == '图层服务'
? 'tcfw'
: item.componentType == '开发组件'
? 'kfzj'
: item.componentType == '业务组件'
? 'ywzj'
: ''
"
></div>
</template>
</a-list-item-meta>
</a-skeleton>
@ -870,7 +886,37 @@
}
}
}
:deep(.ant-list-item-meta-avatar) {
display: flex;
align-items: center;
}
.ant-pagination {
margin-bottom: 0.2rem;
}
.tx {
display: inline-block;
width: 0.8rem;
height: 0.8rem;
margin-left: 0.1rem;
}
.sxt {
background: url('~@/assets/home/sxt_square.png') no-repeat;
background-size: 100%;
}
.znsf {
background: url('~@/assets/home/znsf_square.png') no-repeat;
background-size: 100%;
}
.tcfw {
background: url('~@/assets/home/tcfw_square.png') no-repeat;
background-size: 100%;
}
.kfzj {
background: url('~@/assets/home/kfzj_square.png') no-repeat;
background-size: 100%;
}
.ywzj {
background: url('~@/assets/home/ywzj_square.png') no-repeat;
background-size: 100%;
}
</style>