BUG修改

This commit is contained in:
a0049873 2022-06-30 18:18:10 +08:00
parent 814ed5ff92
commit ecd5c76998
11 changed files with 125 additions and 73 deletions

View File

@ -1,8 +1,8 @@
<!--
* @Author: hisense.wuhongjian
* @Date: 2022-03-29 16:45:25
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-06-29 19:38:31
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-30 18:01:54
* @Description: 告诉大家这是什么
-->
<!DOCTYPE html>
@ -47,7 +47,7 @@
window.SITE_CONFIG['backUrl'] = 'http://15.2.21.238:9797';
window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.238:9796/';
window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/document/#/devModelFile/';
window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
window.SITE_CONFIG['apiURL'] = 'http://15.2.21.239:8888/renren-admin';
window.SITE_CONFIG['POI_URL'] = 'http://15.2.21.238:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address';
// 穿透版本
// window.SITE_CONFIG['backUrl'] = 'http://124.222.94.39:9797';

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-04-01 19:19:40
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-29 14:34:24
* @LastEditTime: 2022-06-30 18:03:17
* @Description: 告诉大家这是什么
*/
import request from '@/utils/request'
@ -314,3 +314,11 @@ export function queryPartAppByKeyId2(params) {
})
}
//
export function selectInfrastructureList(params) {
return request({
url: 'resource/selectInfrastructureList',
method: 'get',
params,
})
}

View File

@ -287,6 +287,12 @@
}
//
const funnelPlot = (dataList) => {
let arr = ['0-5', '5-10', '10-15', '15-20', '20以上']
dataList.sort((a, b) => {
console.log(arr.indexOf(a.fanwei), arr.indexOf(b.fanwei))
return arr.indexOf(b.fanwei) - arr.indexOf(a.fanwei)
})
console.log('============》', dataList)
echarts.init(document.getElementById('right')).dispose()
let chartDom = document.getElementById('right')
let myChart = echarts.init(chartDom)
@ -334,7 +340,7 @@
max: 100,
minSize: '0%',
maxSize: '100%',
sort: 'ascending',
sort: 'none',
gap: 2,
label: {
show: true,

View File

@ -27,7 +27,7 @@
</div>
<div class="right">
<div @click="technical()">技术文档</div>
<div>新手指引</div>
<!-- <div>新手指引</div> -->
</div>
</div>
<div class="content-right">
@ -152,7 +152,6 @@
}
)
function technical() {
//
const type = pinyin(props.dataList.type, {
pattern: 'initial',

View File

@ -183,11 +183,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

@ -1152,7 +1152,8 @@
})
mybus.on('changePage', (page) => {
paramsGetResources.pageNum = page
getAppResources()
console.log('changePage', paramsGetResources.pageNum)
getAppResources('分页查询')
console.log('paramsGetResources', paramsGetResources)
})
mybus.on('changeSelcted', () => {
@ -1246,11 +1247,11 @@
let newQuery = JSON.parse(
JSON.stringify(router.currentRoute.value.query)
)
if (Cardsname.value == name) {
Cardsname.value = ''
} else {
Cardsname.value = name
}
// if (Cardsname.value == name) {
// Cardsname.value = ''
// } else {
Cardsname.value = name
// }
console.log(
'更改前url中的select=====================>',
router.currentRoute.value.query.select

View File

@ -172,7 +172,7 @@
router.push({
path: '/DetailsPageconetent',
query: {
select: '',
select: '组件服务',
},
})
break

View File

@ -157,15 +157,6 @@
v-if="item.isCollect == 'true'"
@click="addCollect(item)"
></span>
<a-button
style="margin-left: 10px"
v-show="
cardType == '组件服务' &&
findComponentName(item, '智能算法')
"
>
免费试用
</a-button>
</div>
<div
class="shopping pk"
@ -183,10 +174,24 @@
>
查看详情
</a-button>
<a-button
style="margin-left: 10px"
v-show="
cardType == '组件服务' && findComponentName(item, '智能算法')
"
>
免费试用
</a-button>
<a-button
type="primary"
@click="toView('apply', item)"
v-show="cardType !== '数据资源'"
v-show="
cardType !== '数据资源' &&
!(
cardType == '组件服务' &&
findComponentName(item, '智能算法')
)
"
>
{{
item.shareCondition == '免批申请' ? '免批申请' : '立即申请'

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-21 11:55:07
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-22 12:20:59
* @LastEditTime: 2022-06-30 18:17:40
* @Description: 告诉大家这是什么
-->
<template>
@ -79,7 +79,7 @@
<a-list-item>
<a-list-item-meta description="">
<template #title>
<div class="left">
<div class="left" @click="read(item)">
{{ item.content }}
</div>
<div class="right">{{ '发布时间:' + item.senderDate }}</div>
@ -209,28 +209,43 @@
path: url,
})
}
const read = () => {
const read = (item) => {
// console.log(item)
if (selectData.value.length === 0) {
message.error('未选择消息!')
return
}
console.log(selectData.value)
let str = ''
selectData.value.forEach((val, index) => {
str += val
if (index < selectData.value.length - 1) {
str += ';'
}
})
mynoticeRead(str).then((res) => {
if (res.data.code == 0) {
message.success('操作成功!')
mybus.emit('getMynotice')
init()
} else {
message.error('操作失败!')
}
})
// let str = ''
// selectData.value.forEach((val, index) => {
// str += val
// if (index < selectData.value.length - 1) {
// str += ';'
// }
// })
if (item) {
mynoticeRead(item.id).then((res) => {
if (res.data.code == 0) {
message.success('操作成功!')
mybus.emit('getMynotice')
init()
} else {
message.error('操作失败!')
}
})
} else {
selectData.value.map((val) => {
mynoticeRead(val).then((res) => {
if (res.data.code == 0) {
// message.success('')
mybus.emit('getMynotice')
init()
} else {
message.error('操作失败!')
}
})
})
}
}
const init = () => {
// from readStatus 0 1

View File

@ -38,10 +38,9 @@
class="name"
v-for="(item, index) in jcList"
:key="item.id"
:class="index == 4 ? 'name-last' : ''"
@click="selectOne(item.id)"
:class="index == 2 ? 'name-last' : ''"
>
{{ index + 1 }}-{{ item.name }}
{{ item.name + '-' + item.num + '个' }}
</div>
<div class="btn" @click="jumpPage('基础设施')">查看更多</div>
</div>
@ -76,7 +75,11 @@
</div>
</template>
<script setup>
import { pageWithAttrs, getDataResource } from '@/api/home.js'
import {
pageWithAttrs,
getDataResource,
selectInfrastructureList,
} from '@/api/home.js'
import { ref, reactive } from 'vue'
import { useRouter } from 'vue-router'
import { useStore } from 'vuex'
@ -157,24 +160,36 @@
})
} else {
let type = paramsGetResources.type
pageWithAttrs(paramsGetResources).then((res) => {
console.log('object个数======>', type)
obj.value = res.data.data.records
switch (type) {
case '组件服务':
assignmentMethod('zjNum', res)
break
case '应用资源':
assignmentMethod('yyNum', res)
break
case '基础设施':
assignmentMethod('jcNum', res)
break
case '知识库':
assignmentMethod('zsNum', res)
break
}
})
if (type == '基础设施') {
selectInfrastructureList().then((res) => {
console.log('基础设施==========>', res.data.data)
for (const key in res.data.data) {
jcList.value.push({
name: key,
num: res.data.data[key],
})
}
})
} else {
pageWithAttrs(paramsGetResources).then((res) => {
console.log('object个数======>', type)
obj.value = res.data.data.records
switch (type) {
case '组件服务':
assignmentMethod('zjNum', res)
break
case '应用资源':
assignmentMethod('yyNum', res)
break
case '基础设施':
assignmentMethod('jcNum', res)
break
case '知识库':
assignmentMethod('zsNum', res)
break
}
})
}
}
}
const assignmentMethod = (type, res) => {

View File

@ -157,7 +157,7 @@
'数据资源',
'知识库',
])
const select = ref('')
const select = ref('组件服务')
let applicationDataList = ref([])
let technosphereDataList = ref([])
const fabubumen = ref([
@ -219,11 +219,11 @@
appLiCation: '',
})
const changeCard = (name) => {
if (select.value == name) {
select.value = ''
} else {
select.value = name
}
// if (select.value == name) {
// select.value = ''
// } else {
select.value = name
// }
snum.value.select = select.value
}
function selectCard(value) {