Compare commits

...

2 Commits

Author SHA1 Message Date
gongjiale 412ef09be8 11 2022-11-11 16:59:50 +08:00
gongjiale 27a8de9a93 能力上架回滚 2022-11-11 16:48:58 +08:00
7 changed files with 1609 additions and 2168 deletions

View File

@ -7,20 +7,6 @@ export function getMyProcessInstancePage(params) {
params, params,
}) })
} }
export function yaweiApproveStatus(params) {
return request({
url: 'resource/ZywMessage/yaweiApproveStatus',
method: 'get',
params,
})
}
export function yaweiApproveDetails(params) {
return request({
url: 'resource/ZywMessage/yaweiApproveDetails',
method: 'get',
params,
})
}
export function getTabilityapplication(params) { export function getTabilityapplication(params) {
return request({ return request({
url: '/processForm/tabilityapplication/my_page', url: '/processForm/tabilityapplication/my_page',

View File

@ -7,19 +7,18 @@
--> -->
<template> <template>
<div class="box"> <div class="box">
<!-- <div class="header">能力上架申请</div> --> <div class="header">能力上架申请</div>
<div class="top"> <div class="top">
<div <div
v-for="(nav, index) in navList" v-for="(nav, index) in navList"
:key="nav" :key="nav"
:class="[index <= navList2.indexOf(showView) ? 'finish' : 'ff']" :class="[index <= navList2.indexOf(showView) ? 'finish' : '']"
> >
<div class="wai">
<span class="bg-box"> <span class="bg-box">
<span>{{ index + 1 }}</span> <span>{{ index + 1 }}</span>
</span> </span>
<span class="bg-name">{{ nav.name }}</span> <span>{{ nav.name }}</span>
</div>
<div class="line" v-if="index !== navList.length - 1"></div> <div class="line" v-if="index !== navList.length - 1"></div>
</div> </div>
</div> </div>
@ -81,10 +80,37 @@
:required="required" :required="required"
:notFilled="notFilled" :notFilled="notFilled"
></put-on-the-shelf> ></put-on-the-shelf>
<!-- <algorithm-essential-information
v-if="showView === '基本信息' && refData.name"
:refData="refData"
:dataFrom="dataFrom"
:videoList="videoList"
></algorithm-essential-information>
<algorithm-advantage
v-else-if="showView === '算法优势'"
:refData="refData"
:dataFrom="dataFrom"
></algorithm-advantage>
<algorithm-scenarios
v-else-if="showView === '应用场景'"
:refData="refData"
:dataFrom="dataFrom"
></algorithm-scenarios> -->
<!-- <algorithm-scenarios
v-else-if="showView === '应用场景'"
:refData="refData"
:dataFrom="dataFrom"
></algorithm-scenarios> -->
<!-- <algorithm-deployment-use
v-else-if="showView === '部署与使用'"
:refData="refData"
:dataFrom="dataFrom"
:fileList="fileList"
:imgList="imgList"
></algorithm-deployment-use> -->
</div> </div>
<div class="btn" :class="showView === '基本信息' ? 'first' : ''"> <div class="btn" :class="showView === '基本信息' ? 'first' : ''">
<button @click="close()">取消</button>
<a-popconfirm <a-popconfirm
v-if=" v-if="
showView == '算法优势' && showView == '算法优势' &&
@ -98,7 +124,7 @@
@confirm="changeSfys('上一步')" @confirm="changeSfys('上一步')"
@cancel="cancel" @cancel="cancel"
> >
<button class="buzhou">上一步</button> <button>上一步</button>
</a-popconfirm> </a-popconfirm>
<button <button
v-else-if=" v-else-if="
@ -107,7 +133,6 @@
sfys[0].list.length sfys[0].list.length
" "
@click="changeSfys('上一步')" @click="changeSfys('上一步')"
class="buzhou"
> >
上一步 上一步
</button> </button>
@ -124,7 +149,7 @@
@confirm="changeYycj('上一步')" @confirm="changeYycj('上一步')"
@cancel="cancel" @cancel="cancel"
> >
<button class="buzhou">上一步</button> <button>上一步</button>
</a-popconfirm> </a-popconfirm>
<button <button
v-else-if=" v-else-if="
@ -133,11 +158,10 @@
yycj[0].list.length yycj[0].list.length
" "
@click="changeYycj('上一步')" @click="changeYycj('上一步')"
class="buzhou"
> >
上一步 上一步
</button> </button>
<button class="buzhou" v-else-if="showView !== '基本信息'" @click="back()"> <button v-else-if="showView !== '基本信息'" @click="back()">
上一步 上一步
</button> </button>
<a-popconfirm <a-popconfirm
@ -154,9 +178,9 @@
@confirm="changeBs('预览')" @confirm="changeBs('预览')"
@cancel="cancel" @cancel="cancel"
> >
<button class="buzhou">预览</button> <button>预览</button>
</a-popconfirm> </a-popconfirm>
<button v-else-if="showView === '部署与使用'" @click="preview()" class="buzhou"> <button v-else-if="showView === '部署与使用'" @click="preview()">
预览 预览
</button> </button>
<a-popconfirm <a-popconfirm
@ -172,7 +196,7 @@
@confirm="changeSfys('下一步')" @confirm="changeSfys('下一步')"
@cancel="cancel" @cancel="cancel"
> >
<button class="buzhou">下一步</button> <button>下一步</button>
</a-popconfirm> </a-popconfirm>
<button <button
v-else-if=" v-else-if="
@ -181,7 +205,6 @@
sfys[0].list.length sfys[0].list.length
" "
@click="changeSfys('下一步')" @click="changeSfys('下一步')"
class="buzhou"
> >
下一步 下一步
</button> </button>
@ -198,7 +221,7 @@
@confirm="changeYycj('下一步')" @confirm="changeYycj('下一步')"
@cancel="cancel" @cancel="cancel"
> >
<button class="buzhou">下一步</button> <button>下一步</button>
</a-popconfirm> </a-popconfirm>
<button <button
v-else-if=" v-else-if="
@ -207,11 +230,10 @@
yycj[0].list.length yycj[0].list.length
" "
@click="changeYycj('下一步')" @click="changeYycj('下一步')"
class="buzhou"
> >
下一步 下一步
</button> </button>
<button class="buzhou" v-else-if="showView !== '部署与使用'" @click="next()"> <button v-else-if="showView !== '部署与使用'" @click="next()">
下一步 下一步
</button> </button>
<a-popconfirm <a-popconfirm
@ -228,37 +250,36 @@
@confirm="changeBs('提交')" @confirm="changeBs('提交')"
@cancel="cancel" @cancel="cancel"
> >
<button class="buzhou">提交</button> <button>提交</button>
</a-popconfirm> </a-popconfirm>
<button class="buzhou" v-else-if="服务商联系电话 === '部署与使用'" @click="submit()"> <button v-else-if="showView === '部署与使用'" @click="submit()">
提交 提交
</button> </button>
<button class="quxiao" @click="close()">取消</button>
</div> </div>
</div> </div>
</template> </template>
<script setup> <script setup>
// import AlgorithmEssentialInformation from '@/views/capacityOnTheShelf/components/AlgorithmEssentialInformation.vue' // import AlgorithmEssentialInformation from '@/views/capacityOnTheShelf/components/AlgorithmEssentialInformation.vue'
// import AlgorithmAdvantage from '@/views/capacityOnTheShelf/components/AlgorithmAdvantage.vue' // import AlgorithmAdvantage from '@/views/capacityOnTheShelf/components/AlgorithmAdvantage.vue'
// import AlgorithmScenarios from '@/views/capacityOnTheShelf/components/AlgorithmScenarios.vue' // import AlgorithmScenarios from '@/views/capacityOnTheShelf/components/AlgorithmScenarios.vue'
import PutOnTheShelf from '@/views/capacityOnTheShelf/components/PutOnTheShelf.vue' import PutOnTheShelf from '@/views/capacityOnTheShelf/components/PutOnTheShelf.vue'
// import AlgorithmDeploymentUse from '@/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.vue' // import AlgorithmDeploymentUse from '@/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.vue'
import { ref, onBeforeUnmount } from 'vue' import { ref, onBeforeUnmount } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { getCategoryTree } from '@/api/personalCenter' import { getCategoryTree } from '@/api/personalCenter'
import { shangjiainsert, shangjiaapply } from '@/api/personalCenter' import { shangjiainsert, shangjiaapply } from '@/api/personalCenter'
import { import {
getUser, getUser,
getUserInfo, getUserInfo,
selectOne, selectOne,
updateRes, updateRes,
relaunch, relaunch,
} from '@/api/home' } from '@/api/home'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
const router = useRouter() const router = useRouter()
const showView = ref('基本信息') const showView = ref('基本信息')
const sfys = ref([ const sfys = ref([
{ {
name: '算法优势', name: '算法优势',
list: [ list: [
@ -276,8 +297,8 @@ const sfys = ref([
}, },
], ],
}, },
]) ])
const yycj = ref([ const yycj = ref([
{ {
name: '应用场景', name: '应用场景',
list: [ list: [
@ -301,8 +322,8 @@ const yycj = ref([
}, },
], ],
}, },
]) ])
const bs = ref([ const bs = ref([
{ {
name: '计费标准信息', name: '计费标准信息',
list: [ list: [
@ -345,19 +366,19 @@ const bs = ref([
}, },
], ],
}, },
]) ])
let shiyongshouce = ref({}) let shiyongshouce = ref({})
const navList = ref([]) const navList = ref([])
const navList2 = ref([]) const navList2 = ref([])
const fileList = ref({}) const fileList = ref({})
const packageList = ref({}) const packageList = ref({})
const accessoryList = ref({}) const accessoryList = ref({})
const imgList = ref({}) const imgList = ref({})
const videoList = ref({}) const videoList = ref({})
const data = ref({}) const data = ref({})
const refData = ref({}) const refData = ref({})
const submitFlag = ref(true) const submitFlag = ref(true)
const dataFrom = ref({ const dataFrom = ref({
infoList: [ infoList: [
{ {
attrType: '组件类型', attrType: '组件类型',
@ -368,8 +389,8 @@ const dataFrom = ref({
delFlag: 0, delFlag: 0,
type: '组件服务', type: '组件服务',
deptId: '', deptId: '',
}) })
const required = ref([ const required = ref([
'归属部门', '归属部门',
'部门联系人', '部门联系人',
'部门联系人电话', '部门联系人电话',
@ -386,15 +407,15 @@ const required = ref([
'服务接口', '服务接口',
'接口请求方式', '接口请求方式',
'算法类别', '算法类别',
]) ])
const notFilled = ref([]) const notFilled = ref([])
getUser().then((res) => { getUser().then((res) => {
dataFrom.value.deptId = res.data.data.deptId dataFrom.value.deptId = res.data.data.deptId
}) })
const close = () => { const close = () => {
window.close() window.close()
} }
const back = () => { const back = () => {
navList.value.forEach((val, index) => { navList.value.forEach((val, index) => {
if (val.key === showView.value && index > 0) { if (val.key === showView.value && index > 0) {
showView.value = navList2.value[index - 1] showView.value = navList2.value[index - 1]
@ -404,8 +425,8 @@ const back = () => {
console.log('表单数据=============>', dataFrom.value) console.log('表单数据=============>', dataFrom.value)
} }
}) })
} }
const next = () => { const next = () => {
notFilled.value = [] notFilled.value = []
console.log(dataFrom.value, 'dataFrom.value.name') console.log(dataFrom.value, 'dataFrom.value.name')
if (!dataFrom.value.name) { if (!dataFrom.value.name) {
@ -427,14 +448,18 @@ const next = () => {
notFilled.value.push('部门联系人电话') notFilled.value.push('部门联系人电话')
} }
if ( if (
!dataFrom.value.infoList.filter((val) => val.attrType === '算法类别')[0] || !dataFrom.value.infoList.filter(
(val) => val.attrType === '算法类别'
)[0] ||
!dataFrom.value.infoList.filter((val) => val.attrType === '算法类别')[0] !dataFrom.value.infoList.filter((val) => val.attrType === '算法类别')[0]
.attrValue .attrValue
) { ) {
notFilled.value.push('算法类别') notFilled.value.push('算法类别')
} }
if ( if (
!dataFrom.value.infoList.filter((val) => val.attrType === '应用领域')[0] || !dataFrom.value.infoList.filter(
(val) => val.attrType === '应用领域'
)[0] ||
!dataFrom.value.infoList.filter((val) => val.attrType === '应用领域')[0] !dataFrom.value.infoList.filter((val) => val.attrType === '应用领域')[0]
.attrValue .attrValue
) { ) {
@ -459,9 +484,9 @@ const next = () => {
console.log('表单数据=============>', dataFrom.value, refData.value) console.log('表单数据=============>', dataFrom.value, refData.value)
} }
} }
} }
// //
const preview = () => { const preview = () => {
notFilled.value = [] notFilled.value = []
console.log(dataFrom.value, 'dataFrom.value.name') console.log(dataFrom.value, 'dataFrom.value.name')
if ( if (
@ -496,8 +521,8 @@ const preview = () => {
}) })
window.open(newpage.href, '_blank') window.open(newpage.href, '_blank')
} }
} }
const submit = () => { const submit = () => {
notFilled.value = [] notFilled.value = []
console.log(dataFrom.value, 'dataFrom.value.name') console.log(dataFrom.value, 'dataFrom.value.name')
if ( if (
@ -587,8 +612,8 @@ const submit = () => {
} }
} }
} }
} }
const init = () => { const init = () => {
getCategoryTree().then((res) => { getCategoryTree().then((res) => {
// console.clear() // console.clear()
res.data.data = res.data.data res.data.data = res.data.data
@ -704,14 +729,16 @@ const init = () => {
} }
}) })
data.value = res.data.data.children data.value = res.data.data.children
refData.value = data.value.filter((item) => item.name === showView.value)[0] refData.value = data.value.filter(
(item) => item.name === showView.value
)[0]
console.log('所有编目结构==============>', data.value) console.log('所有编目结构==============>', data.value)
}) })
} }
const resourceId = router.currentRoute.value.query.id const resourceId = router.currentRoute.value.query.id
const taskId = router.currentRoute.value.query.taskId const taskId = router.currentRoute.value.query.taskId
const echoData = ref({}) const echoData = ref({})
if (resourceId) { if (resourceId) {
// //
selectOne(resourceId).then((res) => { selectOne(resourceId).then((res) => {
echoData.value = res.data.data echoData.value = res.data.data
@ -719,25 +746,25 @@ if (resourceId) {
init() init()
// console.log('===================>', echoData.value) // console.log('===================>', echoData.value)
}) })
} else { } else {
init() init()
} }
// //
const refPutOnTheShelf = ref(null) const refPutOnTheShelf = ref(null)
const changeSfys = (type) => { const changeSfys = (type) => {
console.log(refPutOnTheShelf, sfys.value) console.log(refPutOnTheShelf, sfys.value)
refPutOnTheShelf.value.add('算法优势', true, type) refPutOnTheShelf.value.add('算法优势', true, type)
} }
const changeYycj = (type) => { const changeYycj = (type) => {
console.log(refPutOnTheShelf) console.log(refPutOnTheShelf)
refPutOnTheShelf.value.add('应用场景', true, type) refPutOnTheShelf.value.add('应用场景', true, type)
} }
const changeBs = (type) => { const changeBs = (type) => {
console.log(refPutOnTheShelf) console.log(refPutOnTheShelf)
refPutOnTheShelf.value.add('计费标准信息', true) refPutOnTheShelf.value.add('计费标准信息', true)
refPutOnTheShelf.value.add('常见问题', true, type) refPutOnTheShelf.value.add('常见问题', true, type)
} }
mybus.on('chageDataFrom', (obj) => { mybus.on('chageDataFrom', (obj) => {
if (obj.attrType == '技术文档' && obj.attrValue != null) { if (obj.attrType == '技术文档' && obj.attrValue != null) {
shiyongshouce.value = obj shiyongshouce.value = obj
} }
@ -756,24 +783,24 @@ mybus.on('chageDataFrom', (obj) => {
}) })
} }
console.log('数据变更=================》', obj, dataFrom.value.infoList) console.log('数据变更=================》', obj, dataFrom.value.infoList)
}) })
mybus.on('chageFileList', (obj) => { mybus.on('chageFileList', (obj) => {
fileList.value = obj fileList.value = obj
}) })
mybus.on('chagePackageList', (obj) => { mybus.on('chagePackageList', (obj) => {
packageList.value = obj packageList.value = obj
}) })
mybus.on('chageAccessory', (obj) => { mybus.on('chageAccessory', (obj) => {
accessoryList.value = obj accessoryList.value = obj
}) })
mybus.on('chageImgList', (obj) => { mybus.on('chageImgList', (obj) => {
imgList.value = obj imgList.value = obj
}) })
mybus.on('chageVideoList', (obj) => { mybus.on('chageVideoList', (obj) => {
videoList.value = obj videoList.value = obj
}) })
//datafrom //datafrom
mybus.on('chageDataFromDwon', (obj) => { mybus.on('chageDataFromDwon', (obj) => {
switch (obj.attrType) { switch (obj.attrType) {
case '算法名称': case '算法名称':
dataFrom.value.name = obj.attrValue dataFrom.value.name = obj.attrValue
@ -807,8 +834,8 @@ mybus.on('chageDataFromDwon', (obj) => {
break break
} }
// console.log('dataFrom.value', dataFrom.value) // console.log('dataFrom.value', dataFrom.value)
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {
mybus.off('chageDataFrom') mybus.off('chageDataFrom')
mybus.off('chageFileList') mybus.off('chageFileList')
mybus.off('chageImgList') mybus.off('chageImgList')
@ -816,13 +843,13 @@ onBeforeUnmount(() => {
mybus.off('chageVideoList') mybus.off('chageVideoList')
mybus.off('chagePackageList') mybus.off('chagePackageList')
mybus.off('chageAccessory') mybus.off('chageAccessory')
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.box { .box {
position: relative; position: relative;
top: 0.64rem; top: 0.64rem;
// margin: 0.15rem 3rem; margin: 0.15rem 4rem;
padding: 0.1rem; padding: 0.1rem;
background: #fff; background: #fff;
.header { .header {
@ -833,87 +860,57 @@ onBeforeUnmount(() => {
padding: 0 1rem; padding: 0 1rem;
} }
.top { .top {
font-size: 16px; margin: 0.1rem 0.2rem 0;
margin: 0.32px 0.4px 0; padding: 0.15rem 0.3rem;
padding: 24px 24pxs; background: #edf4fc;
display: flex;
justify-content: space-between;
div {
font-size: 0.18rem;
color: #999;
display: flex; display: flex;
justify-content: center; justify-content: center;
.ff {
color: #b3b3b3;
display: inline-flex;
justify-content: center;
align-items: center; align-items: center;
.wai {
margin-top: 14px;
.bg-box { .bg-box {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 32px; width: 0.45rem;
height: 32px; height: 0.45rem;
border-radius: 50%; border-radius: 50%;
// border: 0.01rem solid rgb(214, 214, 214); border: 0.01rem solid rgb(214, 214, 214);
margin: 0px 16px; margin-right: 0.1rem;
transition: all 0.3s ease; transition: all 0.3s ease;
span { span {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 32px; width: 0.3rem;
height: 32px; height: 0.3rem;
border-radius: 50%; border-radius: 50%;
border: 1px solid #d9d9d9; border: 0.01rem solid #999;
}
}
.bg-name {
color: #b3b3b3;
} }
} }
.line { .line {
// margin-left: 16px; margin-left: 0.1rem;
width: 326px; width: 1.3rem;
height: 2px; height: 0.01rem;
background: #d9d9d9; background: #999;
} }
} }
.finish { .finish {
color: #fff; color: #0087ff;
display: inline-flex;
justify-content: center;
align-items: center;
.wai {
margin-top: 14px;
.bg-box { .bg-box {
display: flex; background: #9ccefa;
justify-content: center; color: #fff;
align-items: center; border: 0.01rem solid #9ccefa;
width: 32px;
height: 32px;
border-radius: 50%;
// border: 0.01rem solid rgb(214, 214, 214);
margin: 0px 16px;
transition: all 0.3s ease;
span { span {
background: #0058e1; background: #0087ff;
display: flex; border: 0.01rem solid #0087ff;
justify-content: center;
align-items: center;
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid solid #0058e1;
}
}
.bg-name {
color: #212121;
font-weight: bold;
} }
} }
.line { .line {
// margin-left: 16px; background: #0087ff;
width: 326px;
height: 2px;
background: #0058e1;
} }
} }
.btn { .btn {
@ -945,55 +942,34 @@ onBeforeUnmount(() => {
} }
} }
.first { .first {
justify-content: center; justify-content: space-around;
} }
} }
.btn { .btn {
display: flex; display: flex;
justify-content: center; justify-content: space-between;
padding: 0.1rem 3.5rem 0; padding: 0.1rem 3.5rem 0;
// button { button {
// cursor: pointer;
// font-size: 14px;
// text-align: center;
// color: #fff;
// border: none;
// border-radius: 0.06rem;
// background: #0087ff;
// margin-right:12px;
// margin-right:12px;
.quxiao{
margin-right:12px;
cursor: pointer; cursor: pointer;
width: 90px; font-size: 0.14rem;
height: 32px; width: 0.8rem;
background: #ffffff; height: 0.35rem;
color:#0058e1; text-align: center;
border-radius: 2px; color: #fff;
border: 1px #0058e1 solid; border: none;
border-radius: 0.06rem;
background: #0087ff;
} }
// .quxiao:hover{ button:nth-of-type(1) {
// background: #0058e1; color: #0087ff;
// color:#ffffff; background: #e1edfa;
// } }
.buzhou{ button:nth-of-type(2) {
margin-right:12px; background: #01c5dc;
cursor: pointer;
background: #0058e1;
color:#ffffff;
width: 90px;
height: 32px;
border-radius: 2px;
border: 1px #0058e1 solid;
} }
// .buzhou:hover{
// background: #ffffff;
// color:#0058e1;
// }
} }
.first { .first {
justify-content: center; justify-content: space-around;
}
} }
}
</style> </style>

View File

@ -53,9 +53,6 @@
let dataList = ref([]) let dataList = ref([])
const getList = () => { const getList = () => {
selectRecommend().then((res) => { selectRecommend().then((res) => {
if (res.data.data.records.length > 9) {
res.data.data.records.length = 9
}
dataList.value = res.data.data.records dataList.value = res.data.data.records
dataList.value.map((item, index) => { dataList.value.map((item, index) => {
// debugger // debugger
@ -98,7 +95,7 @@
router.push({ router.push({
path: '/DetailsPageconetent', path: '/DetailsPageconetent',
query: { query: {
select: DETAIL_PAGE_CONTENT_DEFAULT_TAB, select: DETAIL_PAGE_CONTENT_DEFAULT_TAB
}, },
}) })
} }

View File

@ -18,21 +18,12 @@
></OffTheShelf> ></OffTheShelf>
<Demand :refObj="refObj" v-else-if="showType === '能力需求'"></Demand> <Demand :refObj="refObj" v-else-if="showType === '能力需求'"></Demand>
<Comment :refObj="refObj" v-else-if="showType === '需求评论'"></Comment> <Comment :refObj="refObj" v-else-if="showType === '需求评论'"></Comment>
<dataResourceApplication
:refObj="refObj"
v-else-if="showType === '数据资源申请'"
></dataResourceApplication>
<OtherApplications :refObj="refObj" v-else></OtherApplications> <OtherApplications :refObj="refObj" v-else></OtherApplications>
<div> <div>
<div class="title">审批详情</div> <div class="title">审批详情</div>
<template v-for="item in dataSource.data" :key="item"> <template v-for="item in dataSource.data" :key="item">
<div class="oddNumbers">子单号:{{ item[0] }}</div> <div class="oddNumbers">子单号:{{ item[0] }}</div>
<a-table <a-table :dataSource="item[1]" :columns="columns">
:dataSource="item[1]"
:columns="dataSourceColumns"
v-if="showType === '数据资源申请'"
></a-table>
<a-table :dataSource="item[1]" :columns="columns" v-else>
<template #bodyCell="{ column, text }"> <template #bodyCell="{ column, text }">
<template v-if="column.dataIndex === 'name'"> <template v-if="column.dataIndex === 'name'">
<a>{{ text }}</a> <a>{{ text }}</a>
@ -49,7 +40,6 @@
import OffTheShelf from './OffTheShelf.vue' import OffTheShelf from './OffTheShelf.vue'
import Demand from './Demand.vue' import Demand from './Demand.vue'
import Comment from './Comment.vue' import Comment from './Comment.vue'
import dataResourceApplication from './dataResourceApplication.vue'
import DeviceApplyDetail from './DeviceApplyDetail.vue' import DeviceApplyDetail from './DeviceApplyDetail.vue'
import OtherApplications from '@/views/personalCenter/components/OtherApplications ' import OtherApplications from '@/views/personalCenter/components/OtherApplications '
import { onMounted, reactive, defineProps, ref } from 'vue' import { onMounted, reactive, defineProps, ref } from 'vue'
@ -169,33 +159,8 @@
width: '180px', width: '180px',
}, },
] ]
const dataSourceColumns = [
{
title: '操作',
dataIndex: 'cz',
key: 'cz',
width: '180px',
},
{
title: '处理用户',
dataIndex: 'czyh',
key: 'czyh',
width: '180px',
},
{
title: '处理时间',
dataIndex: 'clsj',
key: 'clsj',
width: '180px',
},
{
title: '备注',
dataIndex: 'remark',
key: 'remark',
width: '180px',
},
]
const getInfo = () => { const getInfo = () => {
console.log(props.processInstanceId, '============================')
if (props.processDefinitionName == '能力申请') { if (props.processDefinitionName == '能力申请') {
// getTaskVariables({ taskId: props.processInstanceId }).then((res) => { // getTaskVariables({ taskId: props.processInstanceId }).then((res) => {
// console.log('====================>', res.data.data) // console.log('====================>', res.data.data)
@ -240,6 +205,7 @@
shifoushizujian.value = false shifoushizujian.value = false
console.log(res.data.data.resourceDTO) console.log(res.data.data.resourceDTO)
res.data.data.resourceDTO.infoList.forEach((val) => { res.data.data.resourceDTO.infoList.forEach((val) => {
console.log(val, '111111111111111111111111')
if (val.attrValue === '智能算法') { if (val.attrValue === '智能算法') {
nameNotShow.value = true nameNotShow.value = true
algorithmShow.value = false algorithmShow.value = false
@ -247,6 +213,7 @@
} }
}) })
} }
console.log('222222222222', dataForm.data)
}) })
} }
if (props.processDefinitionName == '能力资源下架') { if (props.processDefinitionName == '能力资源下架') {
@ -288,6 +255,7 @@
}) })
const getResourceURL = () => { const getResourceURL = () => {
console.log('111111111111111111111111111111', Cookies.get('token'))
const params = qs.stringify({ const params = qs.stringify({
token: Cookies.get('token'), token: Cookies.get('token'),
// processInstanceId: this.dataForm.processInstanceId // processInstanceId: this.dataForm.processInstanceId

View File

@ -12,7 +12,7 @@
{{ item }} {{ item }}
</div> </div>
</div> </div>
<div class="tab" v-show="typeIndex != 5"> <div class="tab">
<span>申请状态</span> <span>申请状态</span>
<div <div
:class="tabIndex == index ? 'tabclass' : ' '" :class="tabIndex == index ? 'tabclass' : ' '"
@ -39,49 +39,32 @@
:key="item.index" :key="item.index"
> >
<div class="content-body-title"> <div class="content-body-title">
<span>申请单号{{ item.applyNumber || item.GUID || '--' }}</span> <span>申请单号{{ item.applyNumber || '--' }}</span>
<div></div> <div></div>
</div> </div>
<a-tooltip> <a-tooltip>
<template #title> <template #title>
{{ {{ item.cameraList ? item.system : (item.title|| item.name) }}
item.cameraList
? item.system
: item.title || item.name || item.title
}}
</template> </template>
<div class="content-body-title"> <div class="content-body-title">
<span> <span>
名称{{ 名称{{
item.cameraList item.cameraList ? item.system : (item.title || item.name)
? item.system
: item.title || item.name || item.title
}} }}
</span> </span>
<div></div> <div></div>
</div> </div>
</a-tooltip> </a-tooltip>
<div class="content-body-content"> <div class="content-body-content">
<p <p class="content-body-content-son" v-if="typeName !== '设备申请'">
class="content-body-content-son"
v-if="typeName !== '设备申请' && typeName !== '数据资源申请'"
>
审核结果{{ item.ended ? '审核完成' : '审核中' }} 审核结果{{ item.ended ? '审核完成' : '审核中' }}
</p> </p>
<p
class="content-body-content-son"
v-else-if="typeName == '设备申请'"
>
审核结果{{ item.state === 0 ? '审核中' : '审核完成' }}
</p>
<p class="content-body-content-son" v-else> <p class="content-body-content-son" v-else>
审核结果{{ item.bmyijian ? '审核完成' : '审核中' }} 审核结果{{ item.state === 0 ? '审核中' : '审核完成' }}
</p> </p>
</div> </div>
<div class="content-body-bottom"> <div class="content-body-bottom">
<div> <div>申请日期{{ item.createDate || item.startTime }}</div>
申请日期{{ item.createDate || item.startTime || item.tbsj }}
</div>
<!-- 西海岸--增加过期时间显示 --> <!-- 西海岸--增加过期时间显示 -->
<div v-if="isXiHaiAn">过期时间{{ item.expireDate || '' }}</div> <div v-if="isXiHaiAn">过期时间{{ item.expireDate || '' }}</div>
</div> </div>
@ -236,8 +219,6 @@
demandComment, demandComment,
deviceApplylist, deviceApplylist,
getDeviceDetail, getDeviceDetail,
yaweiApproveStatus,
yaweiApproveDetails,
} from '@/api/personalCenter' } from '@/api/personalCenter'
import { import {
updateRes, updateRes,
@ -262,7 +243,6 @@
'能力下架', '能力下架',
'能力需求', '能力需求',
'需求评论', '需求评论',
'数据资源申请',
// '', // '',
]) ])
// 西- // 西-
@ -273,17 +253,17 @@
typeList.value.push('设备申请') typeList.value.push('设备申请')
} }
const typeStrObj = { const typeStrObj = {
能力上架: 'resourcemountapply', '能力上架': 'resourcemountapply',
能力下架: 'resourcundercarriageapply', '能力下架': 'resourcundercarriageapply',
能力需求: 'abilitydemandapply', '能力需求': 'abilitydemandapply',
需求评论: 'comment_review', '需求评论': 'comment_review',
} }
let tabList = ref(['全部', '审核中', '审核完成']) let tabList = ref(['全部', '审核中', '审核完成'])
const contentList = reactive({ data: [] }) const contentList = reactive({ data: [] })
let tabIndex = ref(0) let tabIndex = ref(0)
let typeIndex = ref(0) let typeIndex = ref(0)
let typeName = ref(typeList.value[0]) let typeName = ref(typeList.value[0])
if (router.currentRoute.value.query.tabTypeName) { if(router.currentRoute.value.query.tabTypeName) {
typeName.value = router.currentRoute.value.query.tabTypeName typeName.value = router.currentRoute.value.query.tabTypeName
} }
const videoVisible = ref(false) const videoVisible = ref(false)
@ -322,7 +302,6 @@
// //
const changeType = (item, index) => { const changeType = (item, index) => {
contentList.data = []
console.log('item, index-----选择类型------->', item, index) console.log('item, index-----选择类型------->', item, index)
numFlag.value = true numFlag.value = true
num.value = [] num.value = []
@ -331,7 +310,7 @@
ended.value = '' ended.value = ''
page.value = 1 page.value = 1
typeIndex.value = index typeIndex.value = index
typeName.value = item typeName.value = item;
getApplyList() getApplyList()
} }
@ -382,33 +361,6 @@
message.error('数据请求失败!') message.error('数据请求失败!')
} }
}) })
} else if (typeName.value == '数据资源申请') {
yaweiApproveDetails({ applyGuid: item.GUID })
.then((res) => {
console.log('详情===========>', res.data.data)
res.data.data.map((val) => {
val.clsj = moment(val.clsj).format('YYYY-MM-DD HH:mm:ss')
})
refObj.value.description = '数据资源'
refObj.value.sqbm = item.sqbm //
refObj.value.title = item.title //
refObj.value.ywlxr = item.ywlxr //
refObj.value.ywlxrdh = item.ywlxrdh //
refObj.value.jslxr = item.jslxr //
refObj.value.jslxrdh = item.jslxrdh //
refObj.value.miaoshu = item.miaoshu //
refObj.value.zt = item.zt //
refObj.value.resourceApplication = {
dataSource: [
{
instanceId: item.GUID,
taskHandleDetailInfo: res.data.data,
},
],
} //
detailsVisible.value = true
})
.catch((err) => {})
} else if (typeName.value == '设备申请') { } else if (typeName.value == '设备申请') {
getDeviceDetailInfo(item.deviceId) getDeviceDetailInfo(item.deviceId)
.then((res) => { .then((res) => {
@ -589,16 +541,6 @@
showType.value = '能力申请' showType.value = '能力申请'
initNum2() initNum2()
}) })
} else if (typeName.value == '数据资源申请') {
yaweiApproveStatus({ page: page.value, size: 4, title: '' }).then(
(res) => {
console.log('数据资源申请===============>', res.data.data)
contentList.data = res.data.data.data
num.value = []
total.value = res.data.data.cos
showType.value = '数据资源申请'
}
)
} else if (typeName.value == '能力评价') { } else if (typeName.value == '能力评价') {
contentList.data = [] contentList.data = []
num.value = [] num.value = []

View File

@ -1,220 +0,0 @@
<!--
* @Author: hisense.liangjunhua
* @Date: 2022-07-12 09:42:44
* @LastEditors: Light
* @LastEditTime: 2022-11-11 14:38:06
* @Description:我的申请 能力申请 查看详情
-->
<template>
<div class="top">
<div class="title">基本信息</div>
<div class="main" v-if="props.refObj">
<div>
<p class="item">
<span>申请部门{{ props.refObj.sqbm || '--' }}</span>
<span>需求标题{{ props.refObj.title }}</span>
</p>
<p class="item">
<span>业务联系人{{ props.refObj.ywlxr }}</span>
<span>业务联系人电话{{ props.refObj.ywlxrdh }}</span>
</p>
<p class="item">
<span>技术联系人{{ props.refObj.jslxr }}</span>
<span>技术联系人电话{{ props.refObj.jslxrdh }}</span>
</p>
<p>
<span>共享数据必要性法分析{{ props.refObj.miaoshu }}</span>
</p>
<p class="item">
<span>办结结果{{ props.refObj.zt }}</span>
</p>
</div>
</div>
</div>
</template>
<script setup>
import { ref, defineProps } from 'vue'
const props = defineProps({
refObj: { type: Object, default: null },
})
console.log(props.refObj, '=====================================')
// if (props.refObj.resourceApplication) {
// showArr.value = []
// for (const key in props.refObj.resourceApplication) {
// if (props.refObj.resourceApplication[key].length > 0) {
// let obj = { name: '', instanceId: '', list: [], list2: [] }
// obj.name = key
// props.refObj.resourceApplication[key].map((item) => {
// obj.instanceId = item.instanceId
// if (item.resources.length > 0) {
// item.resources.map((val) => {
// obj.list.push(val)
// })
// } else {
// item.camera.map((val) => {
// obj.list2.push(val)
// })
// }
// })
// showArr.value.push(obj)
// }
// }
// }
</script>
<style lang="less" scoped>
.title {
font-size: 0.18rem;
color: #000;
font-weight: bold;
margin-bottom: 0.2rem;
padding-left: 0.1rem;
border-left: 0.06rem #0058e1 solid;
}
.top {
margin-bottom: 0.1rem;
.main {
background: #eee;
padding: 0.2rem 0.2rem 0.1rem;
p {
display: flex;
justify-content: space-between;
& > span {
width: 100%;
}
.enclosure {
width: 95%;
padding: 0.05rem 0.1rem;
background: #ddd;
display: flex;
justify-content: space-between;
margin-top: 0.05rem;
}
.btn:hover {
color: #0058e1;
cursor: pointer;
}
}
.item {
span {
width: 4.5rem;
}
}
}
}
.bottom {
.main {
.item {
border-top: 1px #eee solid;
.deptName {
color: #0058e1;
font-size: 0.16rem;
margin-top: 0.1rem;
display: flex;
align-items: center;
.img {
width: 0.05rem;
height: 0.05rem;
border-radius: 0.05rem;
background: #0058e1;
margin-right: 0.1rem;
}
}
.oddNumbers {
margin: 0.1rem 0 0 0.15rem;
}
.box {
margin-left: 0.1rem;
.ability {
height: 1.3rem;
display: flex;
border-bottom: 1px #eee solid;
padding: 0.1rem 0;
.left {
display: inline-block;
width: 1.1rem;
height: 1.1rem;
margin-left: 0.1rem;
background: url('~@/assets/home/sxt_square.png') no-repeat;
background-size: 100%;
}
.sxt {
background: url('~@/assets/home/sxt_square.png') no-repeat;
background-size: 100%;
}
.yyzy {
background: url('~@/assets/home/yyzy_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%;
}
.btn {
cursor: pointer;
color: #0087ff;
align-self: flex-end;
padding: 5px 10px;
border: 1px #0087ff solid;
border-radius: 0.2rem;
}
.right {
flex: 1;
margin-left: 0.15rem;
.ability-top {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
.name {
.type {
background: #0087ff;
color: #fff;
padding: 2px 10px;
border-radius: 10px;
margin-left: 0.1rem;
}
}
}
.ability-bottom {
margin-top: 0.15rem;
// display: flex;
// justify-content: space-between;
.dec {
width: 7rem;
height: 0.44rem;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
word-break: break-all;
}
.result:hover {
color: #0058e1;
cursor: pointer;
}
}
}
}
}
}
}
}
</style>