Merge branch 'hi-ucs-dev' of http://192.168.124.50:3000/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
gongjiale 2022-11-28 15:33:35 +08:00
commit 827d871e8d
3 changed files with 218 additions and 164 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-29 15:59:51 * @Date: 2022-06-29 15:59:51
* @LastEditors: Light * @LastEditors: Light
* @LastEditTime: 2022-11-24 20:45:45 * @LastEditTime: 2022-11-28 11:28:43
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<!-- 流程业务表单 --> <!-- 流程业务表单 -->
@ -531,7 +531,7 @@ export default {
// //
taskHandleErrorCallback (data) { }, taskHandleErrorCallback (data) { },
download (data) { download (data) {
this.downloadFile(data.attachment, '附件') this.downloadFile(data.attachment, '感知资源申请表')
// const alink = document.createElement('a') // const alink = document.createElement('a')
// alink.download = '' // ,,IE10 // alink.download = '' // ,,IE10
// // alink.href = data.attachment // url // // alink.href = data.attachment // url

View File

@ -17,9 +17,17 @@
<div <div
v-for="item in navList" v-for="item in navList"
:key="item.key" :key="item.key"
@click="jumpPage(item,'headerClick')" @click="jumpPage(item, 'headerClick')"
class="nav" class="nav"
:class="[{'select':item.key == select},{'select-inner':(item.key == 'DetailsPageconetent' && item.innerKey && props.targetFlag)}]" :class="[
{ select: item.key == select },
{
'select-inner':
item.key == 'DetailsPageconetent' &&
item.innerKey &&
props.targetFlag,
},
]"
> >
{{ item.name }} {{ item.name }}
</div> </div>
@ -54,6 +62,7 @@
p-id="2187" p-id="2187"
width="0.35rem" width="0.35rem"
height="0.35rem" height="0.35rem"
@click="goToView()"
> >
<path <path
d="M544 161.536a330.666667 330.666667 0 0 1 298.666667 329.130667h-0.341334c0.213333 1.493333 0.341333 2.986667 0.341334 4.565333v219.434667h39.68a32 32 0 0 1 0 64h-212.053334a160 160 0 0 1-316.586666 0H141.909333a32 32 0 1 1 0-64h39.424v-219.434667c0-1.578667 0.128-3.072 0.341334-4.565333H181.333333a330.666667 330.666667 0 0 1 298.666667-329.130667V128a32 32 0 1 1 64 0v33.536z m-298.666667 553.130667h533.333334v-219.434667c0-1.578667 0.128-3.072 0.341333-4.565333h-0.341333a266.666667 266.666667 0 1 0-533.333334 0h-0.341333c0.213333 1.493333 0.341333 2.986667 0.341333 4.565333v219.434667z m359.765334 64H418.901333a96 96 0 0 0 186.197334 0z" d="M544 161.536a330.666667 330.666667 0 0 1 298.666667 329.130667h-0.341334c0.213333 1.493333 0.341333 2.986667 0.341334 4.565333v219.434667h39.68a32 32 0 0 1 0 64h-212.053334a160 160 0 0 1-316.586666 0H141.909333a32 32 0 1 1 0-64h39.424v-219.434667c0-1.578667 0.128-3.072 0.341334-4.565333H181.333333a330.666667 330.666667 0 0 1 298.666667-329.130667V128a32 32 0 1 1 64 0v33.536z m-298.666667 553.130667h533.333334v-219.434667c0-1.578667 0.128-3.072 0.341333-4.565333h-0.341333a266.666667 266.666667 0 1 0-533.333334 0h-0.341333c0.213333 1.493333 0.341333 2.986667 0.341333 4.565333v219.434667z m359.765334 64H418.901333a96 96 0 0 0 186.197334 0z"
@ -90,14 +99,18 @@
</template> </template>
<span <span
class="name" class="name"
@click="jumpPage({ name: '个人中心', key: 'personalCenter' },'headerClick')" @click="
jumpPage({ name: '个人中心', key: 'personalCenter' }, 'headerClick')
"
> >
{{ user.realName }} {{ user.realName }}
</span> </span>
</a-tooltip> </a-tooltip>
<span @click="logout" class="out">退出</span> <span @click="logout" class="out">退出</span>
<i <i
@click="jumpPage({ name: '后台管理', key: 'houtaiguanli' },'headerClick')" @click="
jumpPage({ name: '后台管理', key: 'houtaiguanli' }, 'headerClick')
"
class="iconTo" class="iconTo"
v-show="backFlag" v-show="backFlag"
></i> ></i>
@ -135,19 +148,19 @@
const mynoticeFlag = ref(false) const mynoticeFlag = ref(false)
const mynoticeData = ref([]) const mynoticeData = ref([])
const navList = ref(navListManagement.navList) const navList = ref(navListManagement.navList)
const targetRouter= ref('') const targetRouter = ref('')
const backFlag = ref(false) const backFlag = ref(false)
getUserInfo().then((res) => { getUserInfo().then((res) => {
if(res.data.data.superAdmin =='1'){ if (res.data.data.superAdmin == '1') {
backFlag.value = true backFlag.value = true
} else { } else {
res.data.data.roleIdList.map((val) => { res.data.data.roleIdList.map((val) => {
getRole(val).then((role) => { getRole(val).then((role) => {
if (role.data.data.name === '后台管理员') { if (role.data.data.name === '后台管理员') {
backFlag.value = true backFlag.value = true
} }
})
}) })
})
} }
}) })
console.log('navList------------>', navList) console.log('navList------------>', navList)
@ -188,140 +201,145 @@
window.open('http://15.72.177.175:18460/analystrunner/tonglan', '_blank') window.open('http://15.72.177.175:18460/analystrunner/tonglan', '_blank')
} }
// //
const jumpPage = (item,type) => { const jumpPage = (item, type) => {
if(type == 'headerClick'){ if (type == 'headerClick') {
// 西 // 西
if (itShowXiHaiAn.value) { if (itShowXiHaiAn.value) {
let _arr = ['共享门户', '能力云图', '能力统计', '需求中心', '赋能案例'] let _arr = ['共享门户', '能力云图', '能力统计', '需求中心', '赋能案例']
if ( if (
_arr.includes(item.name) && _arr.includes(item.name) &&
!xhaHasPermissionUser.list.includes(user.value.username) !xhaHasPermissionUser.list.includes(user.value.username)
) { ) {
return message.warn('暂无权限') return message.warn('暂无权限')
}
}
select.value = item.key
switch (item.name) {
case '个人中心':
window.sessionStorage.setItem(
'type',
JSON.stringify('PurchaseVehicle')
)
router.push({
path: '/personalCenter',
})
break
case '能力统计':
router.push({
path: '/abilityStatistics',
})
break
case '能力集市':
router.push({
path: '/DetailsPageconetent',
query: {
select: DETAIL_PAGE_CONTENT_DEFAULT_TAB,
},
})
break
case '能力云图':
router.push({
path: '/capabilityCloud',
})
break
// case '':
// router.push({
// path: '/developmentGuide',
// })
// break
case '新手指南':
router.push({
path: '/instructionManual',
})
break
case '需求中心':
router.push({
path: '/demandCenter',
})
break
case '区市站点':
router.push({
path: '/mapTest',
})
break
case '后台管理':
Cookies.remove('JSESSIONID')
window.open(window.SITE_CONFIG.backUrl + '/#/workBench-workBench')
// window.reload('http://15.2.21.238:9797')
break
case '赋能案例':
router.push({
path: '/assignCase',
})
break
case '典型赋能案例':
router.push({
path: '/assignCase',
})
break
case '融合服务':
router.push({
path: '/integrationServices',
})
break
case 'CIM专区':
router.push({
path: '/cimSpecialArea',
})
break
default:
router.push('/home')
break
}
} else if (type == 'innerClick') {
//select.value = item.key
switch (item.name) {
case '个人中心':
window.sessionStorage.setItem(
'type',
JSON.stringify('PurchaseVehicle')
)
router.push({
path: '/personalCenter',
})
break
case '能力统计':
router.push({
path: '/abilityStatistics',
})
break
case '能力集市':
router.push({
path: targetRouter.value.path,
query: {
id: targetRouter.value.id,
},
})
break
case '能力云图':
router.push({
path: '/capabilityCloud',
})
break
case '后台管理':
Cookies.remove('JSESSIONID')
window.open(window.SITE_CONFIG.backUrl + '/#/workBench-workBench')
// window.reload('http://15.2.21.238:9797')
break
case '融合服务':
router.push({
path: '/integrationServices',
})
break
case 'CIM专区':
router.push({
path: '/cimSpecialArea',
})
break
default:
router.push('/home')
break
} }
}
select.value = item.key
switch (item.name) {
case '个人中心':
window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle'))
router.push({
path: '/personalCenter',
})
break
case '能力统计':
router.push({
path: '/abilityStatistics',
})
break
case '能力集市':
router.push({
path: '/DetailsPageconetent',
query: {
select: DETAIL_PAGE_CONTENT_DEFAULT_TAB,
},
})
break
case '能力云图':
router.push({
path: '/capabilityCloud',
})
break
// case '':
// router.push({
// path: '/developmentGuide',
// })
// break
case '新手指南':
router.push({
path: '/instructionManual',
})
break
case '需求中心':
router.push({
path: '/demandCenter',
})
break
case '区市站点':
router.push({
path: '/mapTest',
})
break
case '后台管理':
Cookies.remove('JSESSIONID')
window.open(window.SITE_CONFIG.backUrl + '/#/workBench-workBench')
// window.reload('http://15.2.21.238:9797')
break
case '赋能案例':
router.push({
path: '/assignCase',
})
break
case '典型赋能案例':
router.push({
path: '/assignCase',
})
break
case '融合服务':
router.push({
path: '/integrationServices',
})
break
case 'CIM专区':
router.push({
path: '/cimSpecialArea',
})
break
default:
router.push('/home')
break
}
}else if(type == 'innerClick'){
//select.value = item.key
switch (item.name) {
case '个人中心':
window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle'))
router.push({
path: '/personalCenter',
})
break
case '能力统计':
router.push({
path: '/abilityStatistics',
})
break
case '能力集市':
router.push({
path: targetRouter.value.path,
query: {
id: targetRouter.value.id,
},
});
break
case '能力云图':
router.push({
path: '/capabilityCloud',
})
break
case '后台管理':
Cookies.remove('JSESSIONID')
window.open(window.SITE_CONFIG.backUrl + '/#/workBench-workBench')
// window.reload('http://15.2.21.238:9797')
break
case '融合服务':
router.push({
path: '/integrationServices',
})
break
case 'CIM专区':
router.push({
path: '/cimSpecialArea',
})
break
default:
router.push('/home')
break
}
} }
} }
const scrollTop = ref(0) const scrollTop = ref(0)
@ -403,24 +421,32 @@
mybus.on('changeMenuStyle', (data) => { mybus.on('changeMenuStyle', (data) => {
debugger debugger
targetRouter.value = data; targetRouter.value = data
if(data.path=='/algorithmCompare'){ if (data.path == '/algorithmCompare') {
jumpPage({ jumpPage(
"name": "能力集市", {
"key": "DetailsPageconetent", name: '能力集市',
"innerKey":"algorithmCompare" key: 'DetailsPageconetent',
},'innerClick'); innerKey: 'algorithmCompare',
} else if(data.path =='/DetailsPageconetent'){ },
jumpPage({ name: '能力集市', key: 'DetailsPageconetent' },'headerClick') 'innerClick'
} else if(data.path =='/details'){ )
jumpPage({ } else if (data.path == '/DetailsPageconetent') {
"name": "能力集市", jumpPage(
"key": "DetailsPageconetent", { name: '能力集市', key: 'DetailsPageconetent' },
"innerKey":"details" 'headerClick'
},'innerClick'); )
} else if (data.path == '/details') {
jumpPage(
{
name: '能力集市',
key: 'DetailsPageconetent',
innerKey: 'details',
},
'innerClick'
)
} }
}) })
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {
mybus.off('getSgcNum') mybus.off('getSgcNum')
@ -507,7 +533,7 @@
background: #0058e1; background: #0058e1;
color: #fff !important; color: #fff !important;
} }
.select-inner { .select-inner {
background: #0058e1; background: #0058e1;
color: #fff !important; color: #fff !important;
} }

View File

@ -484,6 +484,10 @@
yaweiApproveDetails({ applyGuid: item.GUID }) yaweiApproveDetails({ applyGuid: item.GUID })
.then((res) => { .then((res) => {
console.log('详情===========>', res.data.data) console.log('详情===========>', res.data.data)
if (res.data.code !== 0) {
message.error('数据请求失败!')
return
}
res.data.data.map((val) => { res.data.data.map((val) => {
val.clsj = moment(val.clsj).format('YYYY-MM-DD HH:mm:ss') val.clsj = moment(val.clsj).format('YYYY-MM-DD HH:mm:ss')
}) })
@ -717,6 +721,14 @@
} else if (typeName.value == '数据资源申请') { } else if (typeName.value == '数据资源申请') {
yaweiApproveStatus({ page: page.value, size: 4, title: '' }).then( yaweiApproveStatus({ page: page.value, size: 4, title: '' }).then(
(res) => { (res) => {
if (res.data.code !== 0) {
num.value = []
total.value = 0
contentList.data = []
contentList2.data = []
showType.value = ''
return
}
console.log('数据资源申请===============>', res.data.data) console.log('数据资源申请===============>', res.data.data)
contentList.data = res.data.data.data contentList.data = res.data.data.data
num.value = [] num.value = []
@ -727,6 +739,14 @@
} else if (typeName.value == '云资源申请') { } else if (typeName.value == '云资源申请') {
getResourceBusinessList({ userAccount: userName.value }).then((res) => { getResourceBusinessList({ userAccount: userName.value }).then((res) => {
console.log('数据资源申请===============>', res.data.data) console.log('数据资源申请===============>', res.data.data)
if (res.data.code !== 0) {
num.value = []
total.value = 0
contentList.data = []
contentList2.data = []
showType.value = ''
return
}
contentList.data = res.data.data contentList.data = res.data.data
contentList2.data = res.data.data contentList2.data = res.data.data
num.value = [] num.value = []
@ -735,6 +755,14 @@
}) })
} else if (typeName.value == '云视频申请') { } else if (typeName.value == '云视频申请') {
getVideoBusinessList({ userAccount: userName.value }).then((res) => { getVideoBusinessList({ userAccount: userName.value }).then((res) => {
if (res.data.code !== 0) {
num.value = []
total.value = 0
contentList.data = []
contentList2.data = []
showType.value = ''
return
}
console.log('数据资源申请===============>', res.data.data) console.log('数据资源申请===============>', res.data.data)
contentList.data = res.data.data contentList.data = res.data.data
contentList2.data = res.data.data contentList2.data = res.data.data