优化我的申请js,删除多余注释代码
This commit is contained in:
parent
4296677fcd
commit
b1f17ca5bb
|
@ -1,46 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="on-the-right-side-of-the-list">
|
<div class="on-the-right-side-of-the-list">
|
||||||
<div class="title" style="margin-bottom: 0.2rem">我的申请</div>
|
<div class="title" style="margin-bottom: 0.2rem">我的申请</div>
|
||||||
<!-- <div class="sousuokuang">
|
|
||||||
<a-input-search
|
|
||||||
v-model:value="name"
|
|
||||||
placeholder="请输入关键词"
|
|
||||||
enter-button="搜索"
|
|
||||||
size="large"
|
|
||||||
@change="onSearch"
|
|
||||||
@search="getApplyList(name)"
|
|
||||||
/>
|
|
||||||
<a-button
|
|
||||||
type="primary"
|
|
||||||
style="width: 90px; height: 36px; margin-left: 10px"
|
|
||||||
@click="replacement"
|
|
||||||
>
|
|
||||||
重置
|
|
||||||
</a-button>
|
|
||||||
</div> -->
|
|
||||||
<div class="tab" style="margin-bottom: 0.1rem">
|
<div class="tab" style="margin-bottom: 0.1rem">
|
||||||
<span>类型</span>
|
<span>类型</span>
|
||||||
<div
|
<div :class="typeIndex == index ? 'tabclass' : ' '" @click="changeType(item, index)"
|
||||||
:class="typeIndex == index ? 'tabclass' : ' '"
|
v-for="(item, index) in typeList" :key="index">
|
||||||
@click="changeType(item, index)"
|
|
||||||
v-for="(item, index) in typeList"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
{{ item }}
|
{{ item }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
<span>申请状态</span>
|
<span>申请状态</span>
|
||||||
<div
|
<div :class="tabIndex == index ? 'tabclass' : ' '" @click="changeApplyState(item, index)"
|
||||||
:class="tabIndex == index ? 'tabclass' : ' '"
|
v-for="(item, index) in tabList" :key="index">
|
||||||
@click="tabqiehuan(item, index)"
|
<a-badge :count="item === '审核中' ? num.unfinished : num.finished" v-if="item !== '全部'">
|
||||||
v-for="(item, index) in tabList"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
<a-badge
|
|
||||||
:count="item === '审核中' ? num.unfinished : num.finished"
|
|
||||||
v-if="item !== '全部'"
|
|
||||||
>
|
|
||||||
{{ item }}
|
{{ item }}
|
||||||
</a-badge>
|
</a-badge>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
@ -50,11 +22,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-if="contentList.data.length > 0">
|
<div v-if="contentList.data.length > 0">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div
|
<div class="content-body" v-for="item in contentList.data" :key="item.index">
|
||||||
class="content-body"
|
|
||||||
v-for="item in contentList.data"
|
|
||||||
:key="item.index"
|
|
||||||
>
|
|
||||||
<div class="content-body-title">
|
<div class="content-body-title">
|
||||||
<span>申请单号:{{ item.applyNumber || '--' }}</span>
|
<span>申请单号:{{ item.applyNumber || '--' }}</span>
|
||||||
<div></div>
|
<div></div>
|
||||||
|
@ -64,95 +32,17 @@
|
||||||
{{ item.cameraList ? item.system : item.title }}
|
{{ item.cameraList ? item.system : item.title }}
|
||||||
</template>
|
</template>
|
||||||
<div class="content-body-title">
|
<div class="content-body-title">
|
||||||
<!-- <span
|
|
||||||
v-if="item.cameraList && item.ended"
|
|
||||||
@click="showVideoList(item)"
|
|
||||||
>
|
|
||||||
名称:{{ item.cameraList ? item.system : item.title }}
|
|
||||||
</span> -->
|
|
||||||
<span>
|
<span>
|
||||||
名称:{{ item.cameraList ? item.system : item.title }}
|
名称:{{ item.cameraList ? item.system : item.title }}
|
||||||
</span>
|
</span>
|
||||||
<div></div>
|
<div></div>
|
||||||
</div>
|
</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<!-- <div class="content-body-content">
|
|
||||||
<p class="content-body-content-son">
|
|
||||||
流程类型:{{ item.processDefinitionName }}
|
|
||||||
</p>
|
|
||||||
</div> -->
|
|
||||||
<div class="content-body-content">
|
<div class="content-body-content">
|
||||||
<p class="content-body-content-son">
|
<p class="content-body-content-son">
|
||||||
审核结果:{{ item.ended ? '审核完成' : '审核中' }}
|
审核结果:{{ item.ended ? '审核完成' : '审核中' }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="content-body-content" v-if="item.currentTaskList">
|
|
||||||
<p class="content-body-content-son" v-if="!item.backToFirst">
|
|
||||||
当前节点:{{ item.currentTaskList[0].taskName }}
|
|
||||||
</p>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div>
|
|
||||||
<p
|
|
||||||
class="content-body-content-son"
|
|
||||||
v-if="item.name === '申请摄像头列表'"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
申请结果:{{
|
|
||||||
'列表地址:' +
|
|
||||||
backUrl +
|
|
||||||
'resource/getApplyCameraList/' +
|
|
||||||
item.processInstanceId +
|
|
||||||
';' +
|
|
||||||
'视频流地址:' +
|
|
||||||
backUrl +
|
|
||||||
'/resource/hls/getHls/?channelId='
|
|
||||||
}}
|
|
||||||
</span>
|
|
||||||
<a-button
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="
|
|
||||||
copyComment(
|
|
||||||
'列表地址:' +
|
|
||||||
backUrl +
|
|
||||||
'resource/getApplyCameraList/' +
|
|
||||||
item.processInstanceId +
|
|
||||||
';' +
|
|
||||||
'视频流地址:' +
|
|
||||||
backUrl +
|
|
||||||
'/resource/hls/getHls/?channelId='
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
复制
|
|
||||||
</a-button>
|
|
||||||
</p>
|
|
||||||
<template v-else>
|
|
||||||
<p
|
|
||||||
class="content-body-content-son"
|
|
||||||
v-if="item.approveStatus == '通过'"
|
|
||||||
>
|
|
||||||
<span>申请结果:{{ item.comment || '暂无' }}</span>
|
|
||||||
<a-button
|
|
||||||
v-if="item.comment"
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="copyComment(item.comment)"
|
|
||||||
>
|
|
||||||
复制
|
|
||||||
</a-button>
|
|
||||||
</p>
|
|
||||||
</template>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div class="content-body-title"></div>
|
|
||||||
<div class="content-body-content">
|
|
||||||
<p class="content-body-content-son"></p>
|
|
||||||
<div></div>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div class="content-body-bottom" v-if="item.currentTaskList">
|
|
||||||
<div>申请日期:{{ item.currentTaskList[0].createTime }}</div>
|
|
||||||
<div>审批人:{{ item.currentTaskList[0].assigneeName }}</div>
|
|
||||||
</div> -->
|
|
||||||
<div class="content-body-bottom">
|
<div class="content-body-bottom">
|
||||||
<div>申请日期:{{ item.createDate || item.startTime }}</div>
|
<div>申请日期:{{ item.createDate || item.startTime }}</div>
|
||||||
<div></div>
|
<div></div>
|
||||||
|
@ -162,136 +52,44 @@
|
||||||
<div class="button" @click="showAdd(item)" v-if="item.backToFirst">
|
<div class="button" @click="showAdd(item)" v-if="item.backToFirst">
|
||||||
修改
|
修改
|
||||||
</div>
|
</div>
|
||||||
<!-- <div
|
<svg t="1652233950228" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||||
v-if="
|
p-id="5970" data-spm-anchor-id="a313x.7781069.0.i8" width="80" height="80" v-if="
|
||||||
!(
|
|
||||||
(item.processDefinitionName == '能力需求申请' ||
|
|
||||||
item.processDefinitionName == '能力资源上架') &&
|
|
||||||
item.ended == false
|
|
||||||
)
|
|
||||||
"
|
|
||||||
v-show="
|
|
||||||
item.resourceStatusTip == '正常' &&
|
|
||||||
item.ended &&
|
|
||||||
item.processDefinitionName !== '能力申请'
|
|
||||||
"
|
|
||||||
class="button button-details"
|
|
||||||
@click="
|
|
||||||
viewDetail(
|
|
||||||
item.processDefinitionName,
|
|
||||||
item.resourceId,
|
|
||||||
item.ended,
|
|
||||||
item.businessKey
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
查看详情
|
|
||||||
</div> -->
|
|
||||||
<!-- <div
|
|
||||||
class="button button-state"
|
|
||||||
:class="{
|
|
||||||
buttonAgree: item.ended,
|
|
||||||
backToFirst: item.backToFirst,
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
{{
|
|
||||||
item.ended ? '审核完成' : item.backToFirst ? '被驳回' : '审核中'
|
|
||||||
}}
|
|
||||||
</div> -->
|
|
||||||
<svg
|
|
||||||
t="1652233950228"
|
|
||||||
class="icon"
|
|
||||||
viewBox="0 0 1024 1024"
|
|
||||||
version="1.1"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
p-id="5970"
|
|
||||||
data-spm-anchor-id="a313x.7781069.0.i8"
|
|
||||||
width="80"
|
|
||||||
height="80"
|
|
||||||
v-if="
|
|
||||||
item.processDefinitionName != '能力资源下架' &&
|
item.processDefinitionName != '能力资源下架' &&
|
||||||
(item.resourceStatus == 4 || item.resourceStatus == 5)
|
(item.resourceStatus == 4 || item.resourceStatus == 5)
|
||||||
"
|
" style="position: absolute; top: 20px; left: -850px">
|
||||||
style="position: absolute; top: 20px; left: -850px"
|
|
||||||
>
|
|
||||||
<path
|
<path
|
||||||
d="M955.22053 256C813.82053 11.2 500.72053-72.6 255.92053 68.8S-72.67947 523.2 68.72053 768 523.22053 1096.6 768.02053 955.2c244.7-141.2 328.6-454.1 187.4-698.8 0-0.1-0.1-0.3-0.2-0.4zM762.02053 944.7c-239 138.1-544.8 56.2-682.9-182.8S22.92053 217.1 261.92053 79.1s544.8-56.2 682.9 182.8c137.9 239 56.1 544.6-182.8 682.8z"
|
d="M955.22053 256C813.82053 11.2 500.72053-72.6 255.92053 68.8S-72.67947 523.2 68.72053 768 523.22053 1096.6 768.02053 955.2c244.7-141.2 328.6-454.1 187.4-698.8 0-0.1-0.1-0.3-0.2-0.4zM762.02053 944.7c-239 138.1-544.8 56.2-682.9-182.8S22.92053 217.1 261.92053 79.1s544.8-56.2 682.9 182.8c137.9 239 56.1 544.6-182.8 682.8z"
|
||||||
fill="#515151"
|
fill="#515151" opacity=".5" p-id="5971"></path>
|
||||||
opacity=".5"
|
|
||||||
p-id="5971"
|
|
||||||
></path>
|
|
||||||
<path
|
<path
|
||||||
d="M898.12053 289.2C775.02053 76 502.42053 2.9 289.22053 126 76.02053 249.1 3.02053 521.6 126.02053 734.8 249.12053 948 521.62053 1021.1 734.82053 898 947.92053 774.9 1021.02053 502.4 898.12053 289.2zM731.62053 892.8C521.32053 1014.3 252.42053 942.2 131.02053 731.9 9.52053 521.6 81.62053 252.7 291.92053 131.3 502.12053 9.9 771.02053 81.8 892.42053 292c121.5 210.3 49.5 479.3-160.8 600.8z"
|
d="M898.12053 289.2C775.02053 76 502.42053 2.9 289.22053 126 76.02053 249.1 3.02053 521.6 126.02053 734.8 249.12053 948 521.62053 1021.1 734.82053 898 947.92053 774.9 1021.02053 502.4 898.12053 289.2zM731.62053 892.8C521.32053 1014.3 252.42053 942.2 131.02053 731.9 9.52053 521.6 81.62053 252.7 291.92053 131.3 502.12053 9.9 771.02053 81.8 892.42053 292c121.5 210.3 49.5 479.3-160.8 600.8z"
|
||||||
fill="#515151"
|
fill="#515151" opacity=".5" p-id="5972"></path>
|
||||||
opacity=".5"
|
|
||||||
p-id="5972"
|
|
||||||
></path>
|
|
||||||
<path
|
<path
|
||||||
d="M323.62053 176.8c3.6-2 6 0.8 8.8 2.8 6 4.4 12.4 8.8 18.8 12.8 7.2-2.4 14.4-5.1 21.6-7.7 3.6-1.2 6-2.8 8.8 0.4 2.4 2.8 0.4 6.4-0.4 8.8-2 6.8-3.6 13.6-5.6 20.8 4.8 6 10 11.6 15.2 17.6 2.4 2.8 4.4 5.6 2.8 8.4-1.2 2.8-5.6 2.4-7.7 2.4l-22.4 0.8c-4.4 6.8-8.4 13.6-12.8 20-1.6 2.4-4 5.1-7.2 4-2.4-1.9-3.9-4.7-4.4-7.7l-7.2-20.5-25.2-6.4c-2.3-1.2-3.6-3.8-3.2-6.4 1.3-1.8 2.9-3.3 4.8-4.4 4-3.2 7.7-6.8 11.6-10 1.9-1.3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-5.6-6.8-2.8-0.4-4.8 3.6-5.6 5.1l-12 19.2-24 1.2c-2.8 0-6.8 0.8-6.8 4.4 0.5 3 2 5.7 4.4 7.7 4.8 5.6 9.2 11.2 14 16.4l-7.2 25.2c-0.3 2.7 1.4 5.2 4 6 2.2-0.3 4.3-0.9 6.4-1.6l14.4-4.8c2.1-0.8 4.2-1.5 6.4-2 5.6 4 11.2 7.7 16.8 11.6 2.2 2.1 4.8 3.6 7.7 4.4 0.5-0.8 1-1.1 1.7-1.1z"
|
||||||
fill="#515151"
|
fill="#515151" opacity=".5" p-id="5973"></path>
|
||||||
opacity=".5"
|
|
||||||
p-id="5973"
|
|
||||||
></path>
|
|
||||||
<path
|
<path
|
||||||
d="M386.42053 590.4l-43.8-75.9L207.02053 592.7l10.2 17.7L334.02053 543l23.4 40.4-90.5 52.2-13.5-23.4-18.7 10.8 53.1 92c9.1 15.8 21.2 19.5 36.4 10.7l98.8-57c6.2-3.6 11-9.3 13.4-16.1-1.4-15.9-6.2-31.2-14.2-45l-21.4 4.8c6.7 10.3 11 21.9 12.8 34-1 3.3-3.2 6-6.1 7.8l-88.3 51c-6.2 3.6-11.1 2.1-14.8-4.3l-27.3-47.4 109.3-63.1z m2.9-103.2l10.4 18.1 65.6-37.9 79.9 138.4 18.6-10.8-55.9-96.9c18.8-0.9 43.2-0.6 73 0.7l1.5-23.1c-29.8-0.3-58.4 0.4-86 2.6l-12.5-21.6 74.9-43.2-10.4-18.1-159.1 91.8zM669.52053 329l38.2 66.2 61.4-35.4-38.1-66.1-61.5 35.3z m72.4 24.2l-26.3 15.2-19-33 26.3-15.2 19 33zM599.02053 356.7l7.9 13.7-23.3 13.5 9.8 17 21.8-12.6c7.5 18.7 6.6 39.6-2.5 57.6l20.7 4.4c10.3-23.1 10.3-49.4 0-72.5l18.8-10.9c6 9.2 10.7 19.2 14.2 29.7 0.3 5-2.6 9.7-7.2 11.7-2.9 1.2-6.4 2.8-10.9 4.9l14.1 14.1c3.7-1.3 7.3-2.9 10.7-4.8 8.6-3.9 14.4-12.2 15.2-21.6-5.4-22.1-14.6-43-27.4-61.8l-36.1 20.8-7.9-13.7-17.9 10.5z m29.9 108.1l10 17.4 53.2-30.7c-7.8 23.7-20.6 45.4-37.5 63.6l20.6 11.1c18.6-24.2 30-53.1 33-83.4l29.8 51.5 18.4-10.7-29.8-51.5c27.4 11.5 57.2 16.3 86.9 14.1l3.5-23.5c-24.7 5.1-50.1 5-74.8-0.1l53.5-30.9-10-17.3-69.3 40-7.3-12.6-18.4 10.7L698.02053 425l-69.1 39.8z"
|
d="M386.42053 590.4l-43.8-75.9L207.02053 592.7l10.2 17.7L334.02053 543l23.4 40.4-90.5 52.2-13.5-23.4-18.7 10.8 53.1 92c9.1 15.8 21.2 19.5 36.4 10.7l98.8-57c6.2-3.6 11-9.3 13.4-16.1-1.4-15.9-6.2-31.2-14.2-45l-21.4 4.8c6.7 10.3 11 21.9 12.8 34-1 3.3-3.2 6-6.1 7.8l-88.3 51c-6.2 3.6-11.1 2.1-14.8-4.3l-27.3-47.4 109.3-63.1z m2.9-103.2l10.4 18.1 65.6-37.9 79.9 138.4 18.6-10.8-55.9-96.9c18.8-0.9 43.2-0.6 73 0.7l1.5-23.1c-29.8-0.3-58.4 0.4-86 2.6l-12.5-21.6 74.9-43.2-10.4-18.1-159.1 91.8zM669.52053 329l38.2 66.2 61.4-35.4-38.1-66.1-61.5 35.3z m72.4 24.2l-26.3 15.2-19-33 26.3-15.2 19 33zM599.02053 356.7l7.9 13.7-23.3 13.5 9.8 17 21.8-12.6c7.5 18.7 6.6 39.6-2.5 57.6l20.7 4.4c10.3-23.1 10.3-49.4 0-72.5l18.8-10.9c6 9.2 10.7 19.2 14.2 29.7 0.3 5-2.6 9.7-7.2 11.7-2.9 1.2-6.4 2.8-10.9 4.9l14.1 14.1c3.7-1.3 7.3-2.9 10.7-4.8 8.6-3.9 14.4-12.2 15.2-21.6-5.4-22.1-14.6-43-27.4-61.8l-36.1 20.8-7.9-13.7-17.9 10.5z m29.9 108.1l10 17.4 53.2-30.7c-7.8 23.7-20.6 45.4-37.5 63.6l20.6 11.1c18.6-24.2 30-53.1 33-83.4l29.8 51.5 18.4-10.7-29.8-51.5c27.4 11.5 57.2 16.3 86.9 14.1l3.5-23.5c-24.7 5.1-50.1 5-74.8-0.1l53.5-30.9-10-17.3-69.3 40-7.3-12.6-18.4 10.7L698.02053 425l-69.1 39.8z"
|
||||||
fill="#515151"
|
fill="#515151" opacity=".5" p-id="5974"></path>
|
||||||
opacity=".5"
|
|
||||||
p-id="5974"
|
|
||||||
></path>
|
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<a-pagination
|
<a-pagination size="small" pageSize="4" :total="total" :current="page" @change="handleCurrentChange"
|
||||||
size="small"
|
@showSizeChange="handlePageSizeChange" :showSizeChanger="false" />
|
||||||
pageSize="4"
|
|
||||||
:total="total"
|
|
||||||
:current="page"
|
|
||||||
@change="handleCurrentChange"
|
|
||||||
@showSizeChange="handlePageSizeChange"
|
|
||||||
:showSizeChanger="false"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-empty v-else />
|
<a-empty v-else />
|
||||||
<a-modal
|
<a-modal bodyStyle="padding:0.1rem 0" v-model:visible="detailsVisible" title="申请详情" style="width: 900px"
|
||||||
bodyStyle="padding:0.1rem 0"
|
:footer="null" destroyOnClose="true" :maskClosable="false">
|
||||||
v-model:visible="detailsVisible"
|
<apply-details :processDefinitionName="processDefinitionName" :businessKey="businessKey"
|
||||||
title="申请详情"
|
:processInstanceId="processInstanceId" :resourceId="resourceId" :refObj="refObj" :showType="showType">
|
||||||
style="width: 900px"
|
</apply-details>
|
||||||
:footer="null"
|
|
||||||
destroyOnClose="true"
|
|
||||||
:maskClosable="false"
|
|
||||||
>
|
|
||||||
<apply-details
|
|
||||||
:processDefinitionName="processDefinitionName"
|
|
||||||
:businessKey="businessKey"
|
|
||||||
:processInstanceId="processInstanceId"
|
|
||||||
:resourceId="resourceId"
|
|
||||||
:refObj="refObj"
|
|
||||||
:showType="showType"
|
|
||||||
></apply-details>
|
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<a-modal
|
<a-modal v-model:visible="visible" title="下架原因" @ok="del()" @cancel="reason = ''">
|
||||||
v-model:visible="visible"
|
|
||||||
title="下架原因"
|
|
||||||
@ok="del()"
|
|
||||||
@cancel="reason = ''"
|
|
||||||
>
|
|
||||||
<a-input v-model:value="reason" placeholder="请输入下架原因" />
|
<a-input v-model:value="reason" placeholder="请输入下架原因" />
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<a-modal
|
<a-modal v-model:visible="videoVisible" title="已申请摄像头列表" @ok="videoVisible = false">
|
||||||
v-model:visible="videoVisible"
|
<a-table :columns="columns" :data-source="xVideoList" bordered :pagination="{ defaultPageSize: 6 }">
|
||||||
title="已申请摄像头列表"
|
|
||||||
@ok="videoVisible = false"
|
|
||||||
>
|
|
||||||
<a-table
|
|
||||||
:columns="columns"
|
|
||||||
:data-source="xVideoList"
|
|
||||||
bordered
|
|
||||||
:pagination="{ defaultPageSize: 6 }"
|
|
||||||
>
|
|
||||||
<template #bodyCell="{ column, text }">
|
<template #bodyCell="{ column, text }">
|
||||||
<!-- <template>
|
<!-- <template>
|
||||||
<a>{{ text }}</a>
|
<a>{{ text }}</a>
|
||||||
|
@ -303,55 +101,58 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
// import qs from 'qs'
|
import { onMounted, reactive, ref, onBeforeUnmount } from 'vue'
|
||||||
import { onMounted, reactive, ref, onBeforeUnmount } from 'vue'
|
import {
|
||||||
import {
|
|
||||||
getMyProcessInstancePage,
|
getMyProcessInstancePage,
|
||||||
// getTaskHandleDetailInfo,
|
|
||||||
getTabilityapplication,
|
getTabilityapplication,
|
||||||
getByApplyFlag,
|
getByApplyFlag,
|
||||||
nengliziyuanshangjiaapply,
|
nengliziyuanshangjiaapply,
|
||||||
getDemandForm,
|
getDemandForm,
|
||||||
demandComment,
|
demandComment,
|
||||||
// getProcDefBizRoute,
|
} from '@/api/personalCenter'
|
||||||
} from '@/api/personalCenter'
|
import {
|
||||||
import {
|
|
||||||
updateRes,
|
updateRes,
|
||||||
relaunch,
|
relaunch,
|
||||||
selectOne,
|
selectOne,
|
||||||
getApplyCameraList,
|
getApplyCameraList,
|
||||||
selectOneDel,
|
selectOneDel,
|
||||||
} from '@/api/home'
|
} from '@/api/home'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { message } from 'ant-design-vue'
|
import { message } from 'ant-design-vue'
|
||||||
import ApplyDetails from '@/views/personalCenter/components/ApplyDetails'
|
import ApplyDetails from '@/views/personalCenter/components/ApplyDetails'
|
||||||
import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
let typeList = ref([
|
let typeList = ref([
|
||||||
'能力申请',
|
'能力申请',
|
||||||
'能力评价',
|
'能力评价',
|
||||||
'能力上架',
|
'能力上架',
|
||||||
'能力下架',
|
'能力下架',
|
||||||
'能力需求',
|
'能力需求',
|
||||||
'需求评论',
|
'需求评论',
|
||||||
])
|
'设备申请'
|
||||||
let tabList = ref(['全部', '审核中', '审核完成'])
|
])
|
||||||
const contentList = reactive({ data: [] })
|
const typeStrObj = {
|
||||||
// const contentListClone = reactive({ data: [] })
|
'能力上架': 'resourcemountapply',
|
||||||
// let contentListLength = contentList.length
|
'能力下架': 'resourcundercarriageapply',
|
||||||
let tabIndex = ref(0)
|
'能力需求': 'abilitydemandapply',
|
||||||
let typeIndex = ref(0)
|
'需求评论': 'comment_review',
|
||||||
const videoVisible = ref(false)
|
}
|
||||||
const numFlag = ref(true)
|
let tabList = ref(['全部', '审核中', '审核完成'])
|
||||||
const columns = ref([
|
const contentList = reactive({ data: [] })
|
||||||
|
let tabIndex = ref(0)
|
||||||
|
let typeIndex = ref(0)
|
||||||
|
const videoVisible = ref(false)
|
||||||
|
const numFlag = ref(true)
|
||||||
|
const columns = ref([
|
||||||
{
|
{
|
||||||
title: '摄像头名称',
|
title: '摄像头名称',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
const xVideoList = ref([])
|
const xVideoList = ref([])
|
||||||
function tabqiehuan(item, index) {
|
|
||||||
// debugger
|
// 申请状态切换
|
||||||
|
function changeApplyState(item, index) {
|
||||||
tabIndex.value = index
|
tabIndex.value = index
|
||||||
switch (item) {
|
switch (item) {
|
||||||
case '审核中':
|
case '审核中':
|
||||||
|
@ -370,33 +171,33 @@
|
||||||
getApplyList()
|
getApplyList()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 选择类型
|
// 选择类型
|
||||||
const changeType = (item, index) => {
|
const changeType = (item, index) => {
|
||||||
|
console.log('item, index-----选择类型------->', item, index);
|
||||||
numFlag.value = true
|
numFlag.value = true
|
||||||
num.value = []
|
num.value = []
|
||||||
showType.value = ''
|
showType.value = ''
|
||||||
console.log(item, index)
|
|
||||||
tabIndex.value = 0
|
tabIndex.value = 0
|
||||||
ended.value = ''
|
ended.value = ''
|
||||||
page.value = 1
|
page.value = 1
|
||||||
typeIndex.value = index
|
typeIndex.value = index
|
||||||
getApplyList()
|
getApplyList()
|
||||||
}
|
}
|
||||||
let name = ref('')
|
let name = ref('')
|
||||||
const detailsVisible = ref(false)
|
const detailsVisible = ref(false)
|
||||||
const detailsVisible2 = ref(false)
|
const detailsVisible2 = ref(false)
|
||||||
const businessKey = ref('')
|
const businessKey = ref('')
|
||||||
const processInstanceId = ref('')
|
const processInstanceId = ref('')
|
||||||
const processDefinitionName = ref('')
|
const processDefinitionName = ref('')
|
||||||
const resourceId = ref('')
|
const resourceId = ref('')
|
||||||
const reason = ref('')
|
const reason = ref('')
|
||||||
const visible = ref(false)
|
const visible = ref(false)
|
||||||
const delObj = ref({})
|
const delObj = ref({})
|
||||||
const taskId = ref('')
|
const taskId = ref('')
|
||||||
const backUrl = ref(window.SITE_CONFIG.apiURL + '/')
|
const backUrl = ref(window.SITE_CONFIG.apiURL + '/')
|
||||||
const refObj = ref({})
|
const refObj = ref({})
|
||||||
const showDetail = (item) => {
|
const showDetail = (item) => {
|
||||||
console.log('showDetail', item)
|
console.log('showDetail', item)
|
||||||
// getProcDefBizRoute(item.processDefinitionId)
|
// getProcDefBizRoute(item.processDefinitionId)
|
||||||
if (typeIndex.value == 0 && item.applyFlag) {
|
if (typeIndex.value == 0 && item.applyFlag) {
|
||||||
|
@ -422,8 +223,8 @@
|
||||||
} else {
|
} else {
|
||||||
message.error('数据请求失败!')
|
message.error('数据请求失败!')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const showVideoList = (item) => {
|
const showVideoList = (item) => {
|
||||||
console.log('显示列表', item)
|
console.log('显示列表', item)
|
||||||
getApplyCameraList(item.processInstanceId).then((res) => {
|
getApplyCameraList(item.processInstanceId).then((res) => {
|
||||||
console.log('res', res)
|
console.log('res', res)
|
||||||
|
@ -433,8 +234,8 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
videoVisible.value = true
|
videoVisible.value = true
|
||||||
}
|
}
|
||||||
const copyComment = (data) => {
|
const copyComment = (data) => {
|
||||||
let url = data
|
let url = data
|
||||||
let oInput = document.createElement('input')
|
let oInput = document.createElement('input')
|
||||||
oInput.value = url
|
oInput.value = url
|
||||||
|
@ -444,12 +245,8 @@
|
||||||
document.execCommand('Copy') // 执行浏览器复制命令
|
document.execCommand('Copy') // 执行浏览器复制命令
|
||||||
message.success('复制成功')
|
message.success('复制成功')
|
||||||
oInput.remove()
|
oInput.remove()
|
||||||
}
|
}
|
||||||
const showAdd = (item) => {
|
const showAdd = (item) => {
|
||||||
// resourcemountapply 上架申请
|
|
||||||
// resourcundercarriageapply 下架申请
|
|
||||||
// abilitydemandapply 需求申请
|
|
||||||
// abilityprocess 能力申请
|
|
||||||
if (item.processDefinitionKey == 'resourcemountapply') {
|
if (item.processDefinitionKey == 'resourcemountapply') {
|
||||||
const data = {
|
const data = {
|
||||||
id: item.resourceId,
|
id: item.resourceId,
|
||||||
|
@ -502,12 +299,12 @@
|
||||||
console.log('能力申请修改=================》', item)
|
console.log('能力申请修改=================》', item)
|
||||||
window.open(newpage.href, '_self')
|
window.open(newpage.href, '_self')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const num = ref({
|
const num = ref({
|
||||||
finished: 0,
|
finished: 0,
|
||||||
unfinished: 0,
|
unfinished: 0,
|
||||||
})
|
})
|
||||||
const initNum = () => {
|
const initNum = () => {
|
||||||
if (numFlag.value) {
|
if (numFlag.value) {
|
||||||
num.value = []
|
num.value = []
|
||||||
getMyProcessInstancePage({
|
getMyProcessInstancePage({
|
||||||
|
@ -532,8 +329,8 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const initNum2 = () => {
|
const initNum2 = () => {
|
||||||
if (numFlag.value) {
|
if (numFlag.value) {
|
||||||
num.value = []
|
num.value = []
|
||||||
getTabilityapplication({
|
getTabilityapplication({
|
||||||
|
@ -556,23 +353,23 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// initNum()
|
// initNum()
|
||||||
const total = ref('')
|
const total = ref('')
|
||||||
const showType = ref('')
|
const showType = ref('')
|
||||||
const page = ref('1')
|
const page = ref('1')
|
||||||
const ended = ref('')
|
const ended = ref('')
|
||||||
const processDefinitionKey = ref('')
|
const processDefinitionKey = ref('')
|
||||||
// 搜索框
|
// 搜索框
|
||||||
const onSearch = (name) => {
|
const onSearch = (name) => {
|
||||||
console.log(name.value)
|
console.log(name.value)
|
||||||
}
|
}
|
||||||
//重置
|
//重置
|
||||||
function replacement() {
|
function replacement() {
|
||||||
name.value = ''
|
name.value = ''
|
||||||
getApplyList(name.value)
|
getApplyList(name.value)
|
||||||
}
|
}
|
||||||
const getApplyList = () => {
|
const getApplyList = () => {
|
||||||
const params = {
|
const params = {
|
||||||
page: page.value,
|
page: page.value,
|
||||||
limit: 4,
|
limit: 4,
|
||||||
|
@ -592,24 +389,9 @@
|
||||||
initNum2()
|
initNum2()
|
||||||
})
|
})
|
||||||
} else if (typeIndex.value !== 1) {
|
} else if (typeIndex.value !== 1) {
|
||||||
switch (typeIndex.value) {
|
let typeName = typeList.value[typeIndex.value]
|
||||||
case 2:
|
processDefinitionKey.value = typeStrObj[typeName]
|
||||||
params.processDefinitionKey = 'resourcemountapply'
|
params.processDefinitionKey = processDefinitionKey.value;
|
||||||
processDefinitionKey.value = 'resourcemountapply'
|
|
||||||
break
|
|
||||||
case 3:
|
|
||||||
params.processDefinitionKey = 'resourcundercarriageapply'
|
|
||||||
processDefinitionKey.value = 'resourcundercarriageapply'
|
|
||||||
break
|
|
||||||
case 4:
|
|
||||||
params.processDefinitionKey = 'abilitydemandapply'
|
|
||||||
processDefinitionKey.value = 'abilitydemandapply'
|
|
||||||
break
|
|
||||||
case 5:
|
|
||||||
params.processDefinitionKey = 'comment_review'
|
|
||||||
processDefinitionKey.value = 'comment_review'
|
|
||||||
break
|
|
||||||
}
|
|
||||||
getMyProcessInstancePage(params).then((res) => {
|
getMyProcessInstancePage(params).then((res) => {
|
||||||
contentList.data = []
|
contentList.data = []
|
||||||
// initNum(name.value)
|
// initNum(name.value)
|
||||||
|
@ -637,7 +419,6 @@
|
||||||
showType.value = '能力下架'
|
showType.value = '能力下架'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// params.processDefinitionKey = 'resourcundercarriageapply'
|
|
||||||
break
|
break
|
||||||
case 4:
|
case 4:
|
||||||
contentList.data.map((val) => {
|
contentList.data.map((val) => {
|
||||||
|
@ -649,7 +430,6 @@
|
||||||
showType.value = '能力需求'
|
showType.value = '能力需求'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// params.processDefinitionKey = 'abilitydemandapply'
|
|
||||||
break
|
break
|
||||||
case 5:
|
case 5:
|
||||||
contentList.data.map((val) => {
|
contentList.data.map((val) => {
|
||||||
|
@ -661,49 +441,26 @@
|
||||||
showType.value = '需求评论'
|
showType.value = '需求评论'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// params.processDefinitionKey = 'comment_review'
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
// if (contentList.data && contentList.data.length > 0) {
|
|
||||||
// contentList.data.map((item) => {
|
|
||||||
// const param = {
|
|
||||||
// page: 1,
|
|
||||||
// limit: 4,
|
|
||||||
// processInstanceId: item.processInstanceId,
|
|
||||||
// }
|
|
||||||
// getTaskHandleDetailInfo(qs.stringify(param)).then((res) => {
|
|
||||||
// console.log('申请结果', res.data.data, res.data.data[0].comment)
|
|
||||||
// const result = res.data.data
|
|
||||||
// if (result && result.length > 2) {
|
|
||||||
// item.comment =
|
|
||||||
// result[0].comment.length > result[1].comment.length
|
|
||||||
// ? result[0].comment
|
|
||||||
// : result[1].comment
|
|
||||||
// } else {
|
|
||||||
// item.comment = result[0].comment
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// return item
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
contentList.data = []
|
contentList.data = []
|
||||||
num.value = []
|
num.value = []
|
||||||
showType.value = ''
|
showType.value = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const handleCurrentChange = (val) => {
|
const handleCurrentChange = (val) => {
|
||||||
page.value = val
|
page.value = val
|
||||||
getApplyList()
|
getApplyList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const handlePageSizeChange = (val) => {
|
const handlePageSizeChange = (val) => {
|
||||||
page.value = val
|
page.value = val
|
||||||
getApplyList()
|
getApplyList()
|
||||||
}
|
}
|
||||||
|
|
||||||
const viewDetail = (processDefinitionName, id, ended, businessKey) => {
|
const viewDetail = (processDefinitionName, id, ended, businessKey) => {
|
||||||
if (processDefinitionName == '能力申请流程') {
|
if (processDefinitionName == '能力申请流程') {
|
||||||
router.push({
|
router.push({
|
||||||
path: '/details',
|
path: '/details',
|
||||||
|
@ -730,10 +487,10 @@
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 下架能力
|
// 下架能力
|
||||||
const del = () => {
|
const del = () => {
|
||||||
console.log('下架================》', delObj.value, reason.value)
|
console.log('下架================》', delObj.value, reason.value)
|
||||||
delObj.value.undercarriageReason = reason.value
|
delObj.value.undercarriageReason = reason.value
|
||||||
updateRes(delObj.value).then((upres) => {
|
updateRes(delObj.value).then((upres) => {
|
||||||
|
@ -755,21 +512,21 @@
|
||||||
message.error('数据更新失败!')
|
message.error('数据更新失败!')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
mybus.on('closeModal', (obj) => {
|
mybus.on('closeModal', (obj) => {
|
||||||
detailsVisible.value = false
|
detailsVisible.value = false
|
||||||
changeType(obj.type, obj.index)
|
changeType(obj.type, obj.index)
|
||||||
})
|
})
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
mybus.off('closeModal')
|
mybus.off('closeModal')
|
||||||
})
|
})
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getApplyList()
|
getApplyList()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.on-the-right-side-of-the-list {
|
.on-the-right-side-of-the-list {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
padding: 20px 0px 30px 20px;
|
padding: 20px 0px 30px 20px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -781,17 +538,21 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
justify-content: left;
|
justify-content: left;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
font-family: 'Alibaba PuHuiTi';
|
font-family: 'Alibaba PuHuiTi';
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sousuokuang {
|
.sousuokuang {
|
||||||
margin: 20px 0px 21px 0px;
|
margin: 20px 0px 21px 0px;
|
||||||
|
|
||||||
.ant-input-search {
|
.ant-input-search {
|
||||||
max-width: 490px;
|
max-width: 490px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.ant-input) {
|
:deep(.ant-input) {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
|
@ -799,9 +560,11 @@
|
||||||
color: #b2b2b2;
|
color: #b2b2b2;
|
||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.ant-input-group-addon) {
|
:deep(.ant-input-group-addon) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
||||||
.ant-input-search-button {
|
.ant-input-search-button {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
|
@ -810,10 +573,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
|
|
||||||
div {
|
div {
|
||||||
// width: 70px;
|
// width: 70px;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
|
@ -826,14 +591,17 @@
|
||||||
color: #666666;
|
color: #666666;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabclass {
|
.tabclass {
|
||||||
border: 1px solid #0087ff;
|
border: 1px solid #0087ff;
|
||||||
color: #0087ff;
|
color: #0087ff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
height: 510px;
|
height: 510px;
|
||||||
|
|
||||||
.content-body {
|
.content-body {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
|
@ -841,6 +609,7 @@
|
||||||
height: 150px;
|
height: 150px;
|
||||||
border-bottom: #cccccc 1px solid;
|
border-bottom: #cccccc 1px solid;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.content-body-title {
|
.content-body-title {
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
|
@ -853,6 +622,7 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-body-content {
|
.content-body-content {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
@ -860,6 +630,7 @@
|
||||||
/* width: 720px; */
|
/* width: 720px; */
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-body-content-son {
|
.content-body-content-son {
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
@ -872,6 +643,7 @@
|
||||||
// -webkit-box-orient: vertical;
|
// -webkit-box-orient: vertical;
|
||||||
display: flex;
|
display: flex;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -883,16 +655,19 @@
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-body-bottom {
|
.content-body-bottom {
|
||||||
display: flex;
|
display: flex;
|
||||||
color: #cccccc;
|
color: #cccccc;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|
||||||
div:first-child {
|
div:first-child {
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom {
|
.bottom {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 30px;
|
bottom: 30px;
|
||||||
|
@ -919,15 +694,18 @@
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonAgree {
|
.buttonAgree {
|
||||||
background-color: #49c988;
|
background-color: #49c988;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backToFirst {
|
.backToFirst {
|
||||||
background-color: rgb(214, 91, 91);
|
background-color: rgb(214, 91, 91);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:deep(.ant-badge-count) {
|
|
||||||
|
:deep(.ant-badge-count) {
|
||||||
top: -5px;
|
top: -5px;
|
||||||
right: -10px;
|
right: -10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue