remove 删除无用参数

This commit is contained in:
gssong 2024-06-03 21:23:32 +08:00
parent 38df345078
commit c8626b6893
2 changed files with 2 additions and 7 deletions

View File

@ -6,7 +6,6 @@ export interface LeaveVO {
leaveDays: number; leaveDays: number;
remark: string; remark: string;
status?: string; status?: string;
processInstanceId?: string;
} }
export interface LeaveForm extends BaseEntity { export interface LeaveForm extends BaseEntity {
@ -17,7 +16,6 @@ export interface LeaveForm extends BaseEntity {
leaveDays?: number; leaveDays?: number;
remark?: string; remark?: string;
status?: string; status?: string;
processInstanceId?: string;
} }
export interface LeaveQuery extends PageQuery { export interface LeaveQuery extends PageQuery {

View File

@ -30,7 +30,7 @@
@click="approvalVerifyOpen" @click="approvalVerifyOpen"
>审批</el-button >审批</el-button
> >
<el-button v-if="form.processInstanceId" type="primary" @click="handleApprovalRecord">流程进度</el-button> <el-button v-if="form.status !== 'draft'" type="primary" @click="handleApprovalRecord">流程进度</el-button>
</div> </div>
<div> <div>
<el-button style="float: right" @click="goBack()">返回</el-button> <el-button style="float: right" @click="goBack()">返回</el-button>
@ -82,8 +82,6 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const buttonLoading = ref(false); const buttonLoading = ref(false);
const loading = ref(true); const loading = ref(true);
const leaveTime = ref<Array<string>>([]); const leaveTime = ref<Array<string>>([]);
//id
const processInstanceId = ref('');
// //
const routeParams = ref<Record<string, any>>({}); const routeParams = ref<Record<string, any>>({});
const options = [ const options = [
@ -125,8 +123,7 @@ const initFormData: LeaveForm = {
endDate: undefined, endDate: undefined,
leaveDays: undefined, leaveDays: undefined,
remark: undefined, remark: undefined,
status: undefined, status: undefined
processInstanceId: undefined
}; };
const data = reactive<PageData<LeaveForm, LeaveQuery>>({ const data = reactive<PageData<LeaveForm, LeaveQuery>>({
form: { ...initFormData }, form: { ...initFormData },