fix : 修复首页点击费用分摊的查看跳转问题
This commit is contained in:
@@ -26,15 +26,26 @@
|
||||
<!-- </fvTable>-->
|
||||
</el-tab-pane>
|
||||
</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">
|
||||
<baseTitle title="审批记录"></baseTitle>
|
||||
<div class="process">
|
||||
<operation-render v-if="shareProcessViewer" :operation-list="shareData.operationList"
|
||||
:state="data.state"/>
|
||||
<process-diagram-viewer v-if="shareProcessViewer" id-name="fundProcess"/>
|
||||
:state="shareData.state"/>
|
||||
<process-diagram-viewer v-if="shareProcessViewer" id-name="shareProcess"/>
|
||||
</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>
|
||||
|
||||
<script setup lang="jsx">
|
||||
@@ -49,6 +60,7 @@ const route = useRoute()
|
||||
const shareData = ref({})
|
||||
const detailList = ref([])
|
||||
const formData = ref({})
|
||||
const auditOpinion = ref('')
|
||||
const shareProcessViewer = ref(true)
|
||||
const loading = ref(false)
|
||||
const activeName = ref('first')
|
||||
@@ -59,14 +71,15 @@ const getDetail = async () => {
|
||||
if (code === 1000) {
|
||||
shareData.value = data
|
||||
formData.value = data.formData
|
||||
loading.value = false
|
||||
} else {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: msg,
|
||||
type: 'error'
|
||||
type: 'error'
|
||||
})
|
||||
loading.value = false
|
||||
}
|
||||
loading.value = false
|
||||
}
|
||||
const getDetailList = async () => {
|
||||
let params = {
|
||||
@@ -94,7 +107,7 @@ const getDetailList = async () => {
|
||||
}
|
||||
}
|
||||
getDetail()
|
||||
getDetailList()
|
||||
// getDetailList()
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
:deep(.el-tabs__nav-scroll) {
|
||||
|
||||
@@ -206,8 +206,7 @@ const handleView = (row) => {
|
||||
router.push({
|
||||
name: 'Phase/detail',
|
||||
query: {
|
||||
id: row.targetId,
|
||||
state: row.state,
|
||||
projectId: row.targetId,
|
||||
source: 'home'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user