fix : 修复首页点击费用分摊的查看跳转问题
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
|
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
|
||||||
<fvTable ref="tableIns" :tableConfig="tableConfig" :data="detailList" style="width: 100%">
|
<fvTable ref="tableIns" :tableConfig="tableConfig" :data="detailList.formData">
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<el-empty description="暂无数据"/>
|
<el-empty description="暂无数据"/>
|
||||||
</template>
|
</template>
|
||||||
@@ -108,8 +108,14 @@ const search = (val) => {
|
|||||||
tableConfig.params = {...val}
|
tableConfig.params = {...val}
|
||||||
tableIns.value.refresh()
|
tableIns.value.refresh()
|
||||||
}
|
}
|
||||||
|
watch(() => props.loading, (val) => {
|
||||||
|
props.loading=val
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
:deep(.el-table--fit ){
|
||||||
|
width: 100%;
|
||||||
|
height: 400px!important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -26,15 +26,26 @@
|
|||||||
<!-- </fvTable>-->
|
<!-- </fvTable>-->
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
<div v-if="shareData.taskId">
|
||||||
|
<baseTitle title="审核意见"></baseTitle>
|
||||||
|
<el-form-item prop="auditOpinion">
|
||||||
|
<el-input
|
||||||
|
v-model="auditOpinion"
|
||||||
|
:rows="3"
|
||||||
|
type="textarea"
|
||||||
|
placeholder="请输入审核意见"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
<div class="approval-record">
|
<div class="approval-record">
|
||||||
<baseTitle title="审批记录"></baseTitle>
|
<baseTitle title="审批记录"></baseTitle>
|
||||||
<div class="process">
|
<div class="process">
|
||||||
<operation-render v-if="shareProcessViewer" :operation-list="shareData.operationList"
|
<operation-render v-if="shareProcessViewer" :operation-list="shareData.operationList"
|
||||||
:state="data.state"/>
|
:state="shareData.state"/>
|
||||||
<process-diagram-viewer v-if="shareProcessViewer" id-name="fundProcess"/>
|
<process-diagram-viewer v-if="shareProcessViewer" id-name="shareProcess"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<opinion v-if="shareData.taskId" :formData="shareData.formData" :taskId="shareData.taskId"></opinion>
|
<opinion v-if="shareData.taskId" :formData="shareData.formData" :taskId="shareData.taskId" v-model:value="auditOpinion"></opinion>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
@@ -49,6 +60,7 @@ const route = useRoute()
|
|||||||
const shareData = ref({})
|
const shareData = ref({})
|
||||||
const detailList = ref([])
|
const detailList = ref([])
|
||||||
const formData = ref({})
|
const formData = ref({})
|
||||||
|
const auditOpinion = ref('')
|
||||||
const shareProcessViewer = ref(true)
|
const shareProcessViewer = ref(true)
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const activeName = ref('first')
|
const activeName = ref('first')
|
||||||
@@ -59,14 +71,15 @@ const getDetail = async () => {
|
|||||||
if (code === 1000) {
|
if (code === 1000) {
|
||||||
shareData.value = data
|
shareData.value = data
|
||||||
formData.value = data.formData
|
formData.value = data.formData
|
||||||
|
loading.value = false
|
||||||
} else {
|
} else {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: msg,
|
message: msg,
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
|
loading.value = false
|
||||||
}
|
}
|
||||||
loading.value = false
|
|
||||||
}
|
}
|
||||||
const getDetailList = async () => {
|
const getDetailList = async () => {
|
||||||
let params = {
|
let params = {
|
||||||
@@ -94,7 +107,7 @@ const getDetailList = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
getDetail()
|
getDetail()
|
||||||
getDetailList()
|
// getDetailList()
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
:deep(.el-tabs__nav-scroll) {
|
:deep(.el-tabs__nav-scroll) {
|
||||||
|
|||||||
@@ -206,8 +206,7 @@ const handleView = (row) => {
|
|||||||
router.push({
|
router.push({
|
||||||
name: 'Phase/detail',
|
name: 'Phase/detail',
|
||||||
query: {
|
query: {
|
||||||
id: row.targetId,
|
projectId: row.targetId,
|
||||||
state: row.state,
|
|
||||||
source: 'home'
|
source: 'home'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user