update 删除认领可直接办理,格式化代码

This commit is contained in:
gssong 2024-04-19 21:58:05 +08:00
parent 187ae83731
commit 3c34421bd2
4 changed files with 3 additions and 32 deletions

View File

@ -71,7 +71,7 @@ export interface DefinitionConfigForm extends BaseEntity {
/** /**
* *
*/ */
wfFormManageVo: FormManageVO; wfFormManageVo?: FormManageVO;
} }
export interface DefinitionConfigQuery extends PageQuery { export interface DefinitionConfigQuery extends PageQuery {

View File

@ -27,7 +27,6 @@ export interface FormManageVO {
* *
*/ */
remork: string; remork: string;
} }
export interface FormManageForm extends BaseEntity { export interface FormManageForm extends BaseEntity {
@ -55,11 +54,9 @@ export interface FormManageForm extends BaseEntity {
* *
*/ */
remork?: string; remork?: string;
} }
export interface FormManageQuery extends PageQuery { export interface FormManageQuery extends PageQuery {
/** /**
* *
*/ */
@ -70,6 +67,3 @@ export interface FormManageQuery extends PageQuery {
*/ */
formType?: string; formType?: string;
} }

View File

@ -274,7 +274,7 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const previewRef = ref<InstanceType<typeof ProcessPreview>>(); const previewRef = ref<InstanceType<typeof ProcessPreview>>();
const queryFormRef = ref<ElFormInstance>(); const queryFormRef = ref<ElFormInstance>();
const categoryTreeRef = ref<ElTreeInstance>(); const categoryTreeRef = ref<ElTreeInstance>();
const definitionConfigForm = ref<DefinitionConfigForm>(); const definitionConfigForm = ref<DefinitionConfigForm>({});
type CategoryOption = { type CategoryOption = {
categoryCode: string; categoryCode: string;

View File

@ -60,30 +60,7 @@
<el-table-column align="center" prop="createTime" label="创建时间" width="160"></el-table-column> <el-table-column align="center" prop="createTime" label="创建时间" width="160"></el-table-column>
<el-table-column label="操作" align="center" width="200"> <el-table-column label="操作" align="center" width="200">
<template #default="scope"> <template #default="scope">
<el-button <el-button type="primary" size="small" icon="Edit" @click="handleOpen(scope.row)">办理</el-button>
v-if="scope.row.participantVo && (scope.row.participantVo.claim === null || scope.row.participantVo.claim === true)"
type="primary"
size="small"
icon="Edit"
@click="handleOpen(scope.row)"
>办理</el-button
>
<el-button
v-if="scope.row.participantVo && scope.row.participantVo.claim === true"
type="primary"
size="small"
icon="Document"
@click="handleReturnTask(scope.row.id)"
>归还</el-button
>
<el-button
v-if="scope.row.participantVo && scope.row.participantVo.claim === false"
type="primary"
size="small"
icon="Document"
@click="handleClaimTask(scope.row.id)"
>认领</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>