BUG修改

This commit is contained in:
a0049873 2022-07-21 17:58:13 +08:00
parent 0562c702fe
commit 1bdd5c6a1c
2 changed files with 17 additions and 9 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-07-12 09:42:44
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-21 16:54:05
* @LastEditTime: 2022-07-21 17:25:45
* @Description:我的申请 能力申请 查看详情
-->
<template>
@ -113,7 +113,9 @@
<div class="ability-bottom">
<div class="dec">资源描述{{ val.description }}</div>
<div class="result">
申请结果{{ val.ended ? '审核完成' : '审核中' }}
申请结果{{
item.ended ? item.approveStatus || '审核完成' : '审核中'
}}
</div>
</div>
</div>
@ -162,6 +164,8 @@
obj.name = key
props.refObj.resourceApplication[key].map((item) => {
obj.instanceId = item.instanceId
obj.ended = item.ended
obj.approveStatus = item.approveStatus
if (item.resources.length > 0) {
item.resources.map((val) => {
obj.list.push(val)

View File

@ -329,7 +329,7 @@
}
const fileList = ref([])
const subimtFlag = ref(true)
const processStartHandle = () => {
if (id.value) {
updateDemandForm(formName).then((upres) => {
@ -350,13 +350,17 @@
}
})
} else {
formRef.value.validate().then(() => {
demandApply(formName).then((res) => {
applySuccess.value = false
message.success('操作成功!')
console.log('能力申请================>', res)
if (subimtFlag.value) {
subimtFlag.value = false
formRef.value.validate().then(() => {
demandApply(formName).then((res) => {
applySuccess.value = false
message.success('操作成功!')
console.log('能力申请================>', res)
subimtFlag.value = true
})
})
})
}
}
}