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

This commit is contained in:
wuhongjian 2022-07-18 17:29:30 +08:00
commit 665484d30c
5 changed files with 154 additions and 92 deletions

View File

@ -1,8 +1,8 @@
/*
* @Author: hisense.wuhongjian
* @Date: 2022-04-01 19:19:40
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-06-30 19:36:48
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-18 16:24:44
* @Description: 告诉大家这是什么
*/
import request from '@/utils/request'
@ -119,6 +119,14 @@ export function submitApply(data) {
data,
})
}
//
export function applyAllApplication(data) {
return request({
url: '/ability/center/v2/applyAllApplication',
method: 'post',
data,
})
}
export function tabilityapplication(data) {
return request({
url: '/processForm/tabilityapplication',
@ -342,7 +350,7 @@ export function getIntegrationServicesList(params) {
return request({
url: '/fuse/page',
method: 'get',
params
params,
})
}
@ -359,6 +367,6 @@ export function getDevelopDocTree(params) {
return request({
url: '/resource/selectDevelopDoc',
method: 'get',
params
params,
})
}

View File

@ -39,6 +39,14 @@
class="resultListSearchInput"
/>
<button class="button-reset" @click="chongzhi()">重置</button>
<button
v-if="Cardsname == '应用资源'"
class="button-reset"
@click="applyAll()"
style="margin-left: 0.1rem"
>
全部申请
</button>
<div class="hengxian"></div>
</div>
</div>
@ -96,7 +104,7 @@
/>
</div>
</div>
<div
<!-- <div
class="top-content"
v-if="Cardsname == '组件服务' || Cardsname == '应用资源'"
>
@ -119,7 +127,7 @@
</a-checkable-tag>
</div>
</div>
</div>
</div> -->
</div>
</template>
</div>
@ -316,7 +324,7 @@
/>
</div>
</div>
<div class="top-content" v-if="Cardsname == '组件服务'">
<!-- <div class="top-content" v-if="Cardsname == '组件服务'">
<span class="top-content-title">共享条件</span>
<div class="leixingsumfather">
<div class="leixingsum">
@ -336,7 +344,7 @@
</a-checkable-tag>
</div>
</div>
</div>
</div> -->
</div>
</template>
</div>
@ -514,7 +522,7 @@
/>
</div>
</div>
<div class="top-content" v-if="Cardsname == '组件服务'">
<!-- <div class="top-content" v-if="Cardsname == '组件服务'">
<span class="top-content-title">共享条件</span>
<div class="leixingsumfather">
<div class="leixingsum">
@ -534,7 +542,7 @@
</a-checkable-tag>
</div>
</div>
</div>
</div> -->
</div>
</template>
</div>
@ -1095,7 +1103,15 @@
getAppResources()
}
})
//
const applyAll = () => {
router.push({
path: '/apply',
query: {
applyAll: true,
},
})
}
//
const onShowSizeChange = (current, pageSize) => {
currentPage.value = current
@ -1193,6 +1209,7 @@
loading,
getShoppingCartList,
whoShow1,
applyAll,
}
},
components: {

View File

@ -6,7 +6,7 @@
<aside-menu></aside-menu>
</aside> -->
<article>
<div class="from-card" v-if="applySuccess">
<div class="from-card" v-if="applySuccess && !applyAll">
<AbilityToApplyFor :dataList="list"></AbilityToApplyFor>
</div>
<div class="form-container">
@ -243,6 +243,7 @@
startOfBusinessKey,
updateInstanceId,
submitApply,
applyAllApplication,
getUser,
getUserInfo,
relaunch,
@ -269,7 +270,8 @@
const disabled = ref(false)
const flag = ref(false)
const list = ref(JSON.parse(localStorage.getItem('applyList')))
const num = ref(0)
const applyAll = router.currentRoute.value.query.applyAll
if (!applyAll) {
list.value.map((item) => {
item.arr.map((val) => {
console.log(item, '组件===========================')
@ -288,6 +290,8 @@
num.value += Number(item.checkedList.length)
}
})
}
const num = ref(0)
console.log(
'list',
list.value
@ -299,7 +303,9 @@
let record = ref('1')
const text = ref('')
const formName = reactive({
title: list.value[0].children
title: applyAll
? '全部应用资源申请'
: list.value[0].children
? list.value[0].children
.filter((val) => val.id == list.value[0].checkedList[0])[0]
.resourceName.concat(
@ -412,6 +418,7 @@
if (!formName) {
return message.error('请设置表单名称')
}
if (!applyAll) {
let ids = []
formName.system = []
console.log('list==================', list.value)
@ -456,14 +463,13 @@
console.log('提交数据==========================>', formName, ids)
if (formName.system.length !== 0) {
submitApply(formName).then((res) => {
applySuccess.value = false
message.success('操作成功')
// applySuccess.value = false
message.success('申请提交成功,请到消息中心查看')
console.log('能力申请================>', res)
if (ids && ids.length > 0) {
sgcDel({ ids: ids }).then((res) => {
if (res.data.msg === 'success') {
mybus.emit('getSgcNum')
router.push({
path: '/DetailsPageconetent',
query: {
@ -482,6 +488,22 @@
}
})
}
} else {
formName.applicationSystem = ''
applyAllApplication(formName).then((res) => {
if (res.data.code == 0) {
message.success('申请提交成功,请到消息中心查看!')
router.push({
path: '/DetailsPageconetent',
query: {
select: '组件服务',
},
})
} else {
message.error('申请失败!')
}
})
}
})
}
}
@ -668,6 +690,7 @@
systemOptions,
applicationSceneOpthion,
flag,
applyAll,
}
},
}

View File

@ -289,7 +289,7 @@
"
>
{{
item.shareCondition == '免批申请' ? '免批申请' : '立即申请'
item.shareCondition == '免批申请' ? '立即申请' : '立即申请'
}}
</a-button>
</div>
@ -551,8 +551,8 @@
type: item.type,
componentType:
(item.infoList.filter(
(val) => (val.attrType == '组件类型')[0]
) &&
(val) => val.attrType == '组件类型'
)[0] &&
item.infoList.filter(
(val) => val.attrType == '组件类型'
)[0].attrValue) ||

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-07-12 09:42:44
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-13 15:56:51
* @LastEditTime: 2022-07-18 17:25:03
* @Description:我的申请 能力申请 查看详情
-->
<template>
@ -34,7 +34,7 @@
申请单附件
<span class="enclosure">
{{ props.refObj.enclosureName || '--' }}
<span class="btn">预览</span>
<span class="btn" @click="showThis()">预览</span>
</span>
</span>
</p>
@ -139,6 +139,13 @@
const props = defineProps({
refObj: { type: Object, default: null },
})
const showThis = () => {
window.open(
window.SITE_CONFIG.previewUrl +
'hisense_office/onlinePreview?url=' +
btoa(encodeURI(props.refObj.enclosure))
)
}
const showArr = ref([])
console.log(props.refObj, '=====================================')
if (props.refObj.resourceApplication) {
@ -286,6 +293,13 @@
justify-content: space-between;
align-items: center;
.name {
width: 6rem;
height: 0.2rem;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
.type {
background: #0087ff;
color: #fff;