兰宝车间质量管理系统-前端
gssong
2024-06-03 c8626b68932295e386e2866928eacd8eba5d78d0
remove 删除无用参数
已修改2个文件
9 ■■■■ 文件已修改
src/api/workflow/leave/types.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/workflow/leave/leaveEdit.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/workflow/leave/types.ts
@@ -6,7 +6,6 @@
  leaveDays: number;
  remark: string;
  status?: string;
  processInstanceId?: string;
}
export interface LeaveForm extends BaseEntity {
@@ -17,7 +16,6 @@
  leaveDays?: number;
  remark?: string;
  status?: string;
  processInstanceId?: string;
}
export interface LeaveQuery extends PageQuery {
src/views/workflow/leave/leaveEdit.vue
@@ -30,7 +30,7 @@
            @click="approvalVerifyOpen"
            >审批</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>
          <el-button style="float: right" @click="goBack()">返回</el-button>
@@ -82,8 +82,6 @@
const buttonLoading = ref(false);
const loading = ref(true);
const leaveTime = ref<Array<string>>([]);
//流程实例id
const processInstanceId = ref('');
//路由参数
const routeParams = ref<Record<string, any>>({});
const options = [
@@ -125,8 +123,7 @@
  endDate: undefined,
  leaveDays: undefined,
  remark: undefined,
  status: undefined,
  processInstanceId: undefined
  status: undefined
};
const data = reactive<PageData<LeaveForm, LeaveQuery>>({
  form: { ...initFormData },