fix:修改bug

This commit is contained in:
大黑 2025-12-25 17:32:24 +08:00
parent 94897e9265
commit 4e1b7168a5
12 changed files with 562 additions and 379 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -315,7 +315,7 @@ export default {
}, },
//获取待办列表 //获取待办列表
GET_TODO_LIST: { GET_TODO_LIST: {
url: '/custom/todoTaskPojo/selectByresPersonPage', url: '/custom/todoTaskPojo/selectByresPersonTodoPage',
method: 'post' method: 'post'
}, },
//获取创建人待办 //获取创建人待办
@ -433,4 +433,8 @@ export default {
url: '/custom/todoTaskPojo/selectByPageByCreate', url: '/custom/todoTaskPojo/selectByPageByCreate',
method: 'post' method: 'post'
}, },
GET_MY_DONE_LIST: {
url: '/custom/todoTaskPojo/selectByresPersonCompletedPage',
method: 'post'
},
} }

View File

@ -166,7 +166,7 @@
</div> </div>
<div class="config-item"> <div class="config-item">
<span class="config-label">Y轴(参数):</span> <span class="config-label">Y轴(参数):</span>
<el-select v-model="chart.yAxisParam" multiple collapse-tags clearable @change="updateChart(index)"> <el-select v-model="chart.yAxisParam" multiple collapse-tags clearable class="y-axis-param-select" @change="updateChart(index)">
<el-option <el-option
v-for="option in yAxisParamOptions" v-for="option in yAxisParamOptions"
:key="option.value" :key="option.value"
@ -246,6 +246,7 @@
:visible.sync="formulaDialogVisible" :visible.sync="formulaDialogVisible"
width="600px" width="600px"
:close-on-click-modal="true" :close-on-click-modal="true"
:modal="false"
class="formula-dialog" class="formula-dialog"
> >
<div class="formula-dialog-content"> <div class="formula-dialog-content">
@ -939,7 +940,13 @@ export default {
type: 'category', type: 'category',
data: xAxisData, data: xAxisData,
name: xAxisLabel, name: xAxisLabel,
nameTextStyle: {
color: '#000'
},
boundaryGap: false, boundaryGap: false,
axisLabel: {
color: '#000'
},
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: '#DCDFE6' color: '#DCDFE6'
@ -962,7 +969,8 @@ export default {
max: chart.yAxisMax !== null && chart.yAxisMax !== '' ? chart.yAxisMax : 100, max: chart.yAxisMax !== null && chart.yAxisMax !== '' ? chart.yAxisMax : 100,
interval: 20, interval: 20,
axisLabel: { axisLabel: {
formatter: '{value}%' formatter: '{value}%',
color: '#606266'
}, },
axisLine: { axisLine: {
lineStyle: { lineStyle: {
@ -1595,6 +1603,9 @@ export default {
width: 150px; width: 150px;
height: 32px; height: 32px;
} }
::v-deep .y-axis-param-select {
width: 250px;
}
::v-deep .el-select .el-input__inner { ::v-deep .el-select .el-input__inner {
height: 32px; height: 32px;
} }

View File

@ -18,12 +18,11 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="detail.statusDescription === '审核中'" class="header-right"> <div v-if="shouldShowButtons" class="header-right">
<el-button size="small" @click="handleReject"> <el-button size="small" @click="handleReject">
退回 退回
</el-button> </el-button>
<el-button <el-button
v-if="detail.statusDescription === '审核中'"
type="primary" type="primary"
size="small" size="small"
@click="handleSubmit" @click="handleSubmit"
@ -156,7 +155,7 @@
<el-dialog <el-dialog
:title="approvalDialogTitle" :title="approvalDialogTitle"
:visible.sync="approvalDialogVisible" :visible.sync="approvalDialogVisible"
width="500px" width="600px"
:close-on-click-modal="false" :close-on-click-modal="false"
append-to-body append-to-body
@close="handleApprovalDialogClose" @close="handleApprovalDialogClose"
@ -338,6 +337,58 @@ export default {
return nodes return nodes
}, },
// 退
shouldShowButtons() {
if (!this.timelineNodes || this.timelineNodes.length === 0) {
return false
}
// REJECTREFUSE
const hasReject = this.timelineNodes.some(
(node) =>
node.result === 'REJECT' ||
node.status === 'REJECT' ||
node.result === 'REFUSE' ||
node.status === 'REFUSE'
)
if (hasReject) {
return false //
}
// INITIATE
const nonInitiateNodes = this.timelineNodes.filter(
(node) => node.result !== 'INITIATE' && node.status !== 'INITIATE'
)
// INITIATE PASS APPROVE
if (nonInitiateNodes.length > 0) {
const allPassed = nonInitiateNodes.every(
(node) =>
node.result === 'PASS' ||
node.status === 'PASS' ||
node.result === 'APPROVE' ||
node.status === 'APPROVE'
)
if (allPassed) {
return false //
}
}
// APPROVINGSTAYPENDINGWAITING
const hasApproving = this.timelineNodes.some(
(node) =>
node.result === 'APPROVING' ||
node.status === 'APPROVING' ||
node.result === 'STAY' ||
node.status === 'STAY' ||
node.result === 'PENDING' ||
node.status === 'PENDING' ||
node.result === 'WAITING' ||
node.status === 'WAITING'
)
return hasApproving //
},
approvalFormRules() { approvalFormRules() {
return { return {
comment: [{ required: true, message: '请输入意见', trigger: 'blur' }] comment: [{ required: true, message: '请输入意见', trigger: 'blur' }]
@ -666,7 +717,8 @@ export default {
// //
const request = { const request = {
...api.HANDLE_ENGINE_CHECK, ...api.HANDLE_ENGINE_CHECK,
params: submitData params: submitData,
disableSuccessMsg: true
} }
this.approvalSubmitting = true this.approvalSubmitting = true

View File

@ -427,6 +427,10 @@ export default {
type: String, type: String,
default: '' default: ''
}, },
lastUpdatedBy: {
type: String,
default: ''
},
// modelName projectNumber // modelName projectNumber
detail: { detail: {
type: Object, type: Object,
@ -2416,6 +2420,7 @@ export default {
// //
const params = { const params = {
engineModelID: modelID, engineModelID: modelID,
userID: this.lastUpdatedBy || getUserId(),
subsystemParts: subsystemTypes // ["-"] subsystemParts: subsystemTypes // ["-"]
} }

View File

@ -321,11 +321,10 @@ export default {
}, },
loadData() { loadData() {
const request = { const request = {
...api.GET_TODO_LIST, ...api.GET_MY_DONE_LIST,
params: { params: {
page: this.pagination.currentPage, page: this.pagination.currentPage,
size: this.pagination.pageSize, size: this.pagination.pageSize,
isFinished: 1,
personId: getUserId() personId: getUserId()
}, },
disableSuccessMsg: true disableSuccessMsg: true

View File

@ -81,6 +81,7 @@
:dispatch-type="dispatchType" :dispatch-type="dispatchType"
:responsible-person-id="responsiblePersonId" :responsible-person-id="responsiblePersonId"
:filled-by="filledBy" :filled-by="filledBy"
:last-updated-by="lastUpdatedBy"
class="engine-detail-wrapper" class="engine-detail-wrapper"
@back="handleBackFromDetail" @back="handleBackFromDetail"
/> />
@ -250,6 +251,7 @@ export default {
this.isDispatchMode = false this.isDispatchMode = false
this.dispatchType = 'todo' this.dispatchType = 'todo'
this.filledBy = row.ownerId || '' this.filledBy = row.ownerId || ''
this.lastUpdatedBy = row.lastUpdatedBy || ''
this.responsiblePersonId = '' this.responsiblePersonId = ''
} else if (isResponsibleDispatchMode) { } else if (isResponsibleDispatchMode) {
this.currentEngineDetail = { ...row, id: row.modelId } this.currentEngineDetail = { ...row, id: row.modelId }
@ -258,6 +260,7 @@ export default {
this.dispatchType = 'update_param' this.dispatchType = 'update_param'
this.responsiblePersonId = row.ownerId || '' this.responsiblePersonId = row.ownerId || ''
this.filledBy = '' this.filledBy = ''
this.lastUpdatedBy = row.lastUpdatedBy || ''
} else { } else {
// //
this.isDispatchMode = true this.isDispatchMode = true

View File

@ -844,6 +844,7 @@ export default {
})) }))
// //
const submitData = { const submitData = {
processTitle: this.launchProcessTitle,
reportId: reportId, reportId: reportId,
userId: getUserId(), userId: getUserId(),
nodeList: nodeList nodeList: nodeList

View File

@ -70,6 +70,7 @@
:detail="currentEngineDetail" :detail="currentEngineDetail"
:visible="showEngineCheck" :visible="showEngineCheck"
:engine-type="engineType" :engine-type="engineType"
@refresh="handleBackFromCheck"
class="engine-check-wrapper" class="engine-check-wrapper"
@close="handleBackFromCheck" @close="handleBackFromCheck"
/> />
@ -293,7 +294,6 @@ export default {
params: { params: {
page: this.pagination.currentPage, page: this.pagination.currentPage,
size: this.pagination.pageSize, size: this.pagination.pageSize,
isFinished: 0,
personId: getUserId() personId: getUserId()
}, },
disableSuccessMsg: true disableSuccessMsg: true