西海岸:我的申请-能力申请列表增加过期时间的显示
This commit is contained in:
parent
4354abdf25
commit
34ac0b016b
|
@ -48,7 +48,8 @@
|
||||||
</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 v-if="isXiHaiAn">过期时间:{{ item.expireDate || '' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-box">
|
<div class="button-box">
|
||||||
<div class="button" v-if="typeName == '设备申请' && phoneSate.includes(item.state)"
|
<div class="button" v-if="typeName == '设备申请' && phoneSate.includes(item.state)"
|
||||||
|
@ -86,8 +87,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-empty v-else />
|
<a-empty v-else />
|
||||||
<a-modal bodyStyle="padding:0.1rem 0" v-model:visible="detailsVisible" title="申请详情" style="width: 900px"
|
<!-- :title="detailModalTitle" -->
|
||||||
:footer="null" destroyOnClose="true" :maskClosable="false">
|
<a-modal bodyStyle="padding:0.1rem 0" v-model:visible="detailsVisible"
|
||||||
|
style="width: 900px" :footer="null" destroyOnClose="true" :maskClosable="false">
|
||||||
|
<template v-slot:title>{{detailModalTitle}}</template>
|
||||||
<apply-details :processDefinitionName="processDefinitionName" :businessKey="businessKey"
|
<apply-details :processDefinitionName="processDefinitionName" :businessKey="businessKey"
|
||||||
:processInstanceId="processInstanceId" :resourceId="resourceId" :refObj="refObj" :showType="showType">
|
:processInstanceId="processInstanceId" :resourceId="resourceId" :refObj="refObj" :showType="showType">
|
||||||
</apply-details>
|
</apply-details>
|
||||||
|
@ -237,9 +240,17 @@ function changeApplyState(item, index) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const cilckRowData = ref({})
|
||||||
|
let detailModalTitle = '申请详情';
|
||||||
const showDetail = (item) => {
|
const showDetail = (item) => {
|
||||||
|
cilckRowData.value = item;
|
||||||
// 西海岸-申请时间过期,提示
|
// 西海岸-申请时间过期,提示
|
||||||
if (isXiHaiAn) {
|
if (isXiHaiAn) {
|
||||||
|
// 西海岸、单兵无人机设备
|
||||||
|
if (item.tbDeviceDTO) {
|
||||||
|
detailModalTitle = item.tbDeviceDTO.name ? item.tbDeviceDTO.name + '申请详情' : '申请详情'
|
||||||
|
}
|
||||||
|
console.log('detailModalTitle------------>', detailModalTitle);
|
||||||
if (item.expireDate) {
|
if (item.expireDate) {
|
||||||
let diff = moment().diff(moment(item.expireDate), 'seconds')
|
let diff = moment().diff(moment(item.expireDate), 'seconds')
|
||||||
if (diff > 0) {
|
if (diff > 0) {
|
||||||
|
@ -251,7 +262,6 @@ const showDetail = (item) => {
|
||||||
getByApplyFlag(item.applyFlag).then((res) => {
|
getByApplyFlag(item.applyFlag).then((res) => {
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
refObj.value = res.data.data
|
refObj.value = res.data.data
|
||||||
|
|
||||||
detailsVisible.value = true
|
detailsVisible.value = true
|
||||||
processDefinitionName.value = item.processDefinitionName
|
processDefinitionName.value = item.processDefinitionName
|
||||||
businessKey.value = item.businessKey
|
businessKey.value = item.businessKey
|
||||||
|
|
Loading…
Reference in New Issue