fix : 修复页面bug

This commit is contained in:
2024-07-18 22:06:23 +08:00
parent 3ec7a9c78e
commit 9d5c393ebe
28 changed files with 562 additions and 286 deletions

View File

@@ -176,12 +176,12 @@
<div class="process">
<operation-render v-if="processViewer && data.operationList && data.operationList.length > 0&&!changeDiagram"
:operation-list="data.operationList"
:step="'report'"
:state="data.state"/>
<process-diagram-viewer v-if="processViewer&&changeDiagram" id-name="summaryProcess"/>
</div>
</div>
</el-form>
<div class="oper-page-btn" v-perm="['annual:plan:approve']" v-if="data.state==='4'">
<el-button type="danger" @click="handleRejectPlan">驳回年度计划</el-button>
<el-button color="#DED0B2" @click="handleAgreePlan">通过年度计划</el-button>
@@ -212,7 +212,9 @@ const props = defineProps({
},
data: {
type: Object,
default: {}
default: {
state: '1'
}
},
processViewer: {
type: Boolean,
@@ -251,7 +253,7 @@ const _value = computed({
})
const handleRejectPlan = async () => {
// const values = form.value.getValues()
console.log('route',route.query.projectId)
// console.log('route',route.query.projectId)
if (!_value.value) {
ElNotification({
title: '提示',
@@ -265,7 +267,7 @@ const handleRejectPlan = async () => {
projectId:parseInt(route.query.projectId),
state:false
}
console.log('params', params)
// console.log('params', params)
const res = await approvePlan(params)
ElNotification({
title: '提示',
@@ -283,7 +285,7 @@ const handleAgreePlan = async () => {
projectId:parseInt(route.query.projectId),
state:true
}
console.log('params', params)
// console.log('params', params)
const res = await approvePlan(params)
ElNotification({
title: '提示',