From e83f23908aa75b0a84b56735672d6c6c0446eda0 Mon Sep 17 00:00:00 2001 From: ahao Date: Sun, 24 Sep 2023 21:16:58 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BC=A9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/businessForm/types.ts | 62 +++++++++++------------- src/api/workflow/category/types.ts | 3 -- src/api/workflow/form/types.ts | 48 +++++++++--------- src/api/workflow/formDefinition/types.ts | 14 ++---- src/api/workflow/task/index.ts | 13 +++-- src/api/workflow/workflowUser/index.ts | 1 - 6 files changed, 62 insertions(+), 79 deletions(-) diff --git a/src/api/workflow/businessForm/types.ts b/src/api/workflow/businessForm/types.ts index e30f395..aca4ec1 100644 --- a/src/api/workflow/businessForm/types.ts +++ b/src/api/workflow/businessForm/types.ts @@ -19,37 +19,36 @@ export interface BusinessFormVO { */ formName: string; wfFormDefinitionVo: { - /** - * 主键 - */ - id: string | number; + /** + * 主键 + */ + id: string | number; - /** - * 动态表单id - */ - formId: string | number; + /** + * 动态表单id + */ + formId: string | number; - /** - * 流程定义id - */ - processDefinitionKey: string; + /** + * 流程定义id + */ + processDefinitionKey: string; - /** - * 流程定义名称 - */ - processDefinitionName: string; + /** + * 流程定义名称 + */ + processDefinitionName: string; - /** - * 流程定义id - */ - processDefinitionId: string | number; + /** + * 流程定义id + */ + processDefinitionId: string | number; - /** - * 流程定义版本 - */ - processDefinitionVersion: number; + /** + * 流程定义版本 + */ + processDefinitionVersion: number; }; - } export interface BusinessFormForm extends BaseEntity { @@ -82,11 +81,9 @@ export interface BusinessFormForm extends BaseEntity { * 表单值 */ contentValue?: string; - } export interface BusinessFormQuery extends PageQuery { - /** * 申请编码 */ @@ -97,11 +94,8 @@ export interface BusinessFormQuery extends PageQuery { */ formName?: string; - /** - * 日期范围参数 - */ - params?: any; + /** + * 日期范围参数 + */ + params?: any; } - - - diff --git a/src/api/workflow/category/types.ts b/src/api/workflow/category/types.ts index dc3c538..154bd6f 100644 --- a/src/api/workflow/category/types.ts +++ b/src/api/workflow/category/types.ts @@ -23,7 +23,6 @@ export interface CategoryVO { * 排序 */ sortNum: number; - } export interface CategoryForm extends BaseEntity { @@ -51,7 +50,6 @@ export interface CategoryForm extends BaseEntity { * 排序 */ sortNum?: number; - } export interface CategoryQuery extends PageQuery { @@ -64,5 +62,4 @@ export interface CategoryQuery extends PageQuery { * 分类编码 */ categoryCode?: string; - } diff --git a/src/api/workflow/form/types.ts b/src/api/workflow/form/types.ts index e91e0ce..400c798 100644 --- a/src/api/workflow/form/types.ts +++ b/src/api/workflow/form/types.ts @@ -6,35 +6,35 @@ export interface FormVO extends BaseEntity { status?: string; remark: string; wfFormDefinitionVo: { - /** - * 主键 - */ - id: string | number; + /** + * 主键 + */ + id: string | number; - /** - * 动态表单id - */ - formId: string | number; + /** + * 动态表单id + */ + formId: string | number; - /** - * 流程定义id - */ - processDefinitionKey: string; + /** + * 流程定义id + */ + processDefinitionKey: string; - /** - * 流程定义名称 - */ - processDefinitionName: string; + /** + * 流程定义名称 + */ + processDefinitionName: string; - /** - * 流程定义id - */ - processDefinitionId: string | number; + /** + * 流程定义id + */ + processDefinitionId: string | number; - /** - * 流程定义版本 - */ - processDefinitionVersion: number; + /** + * 流程定义版本 + */ + processDefinitionVersion: number; }; } diff --git a/src/api/workflow/formDefinition/types.ts b/src/api/workflow/formDefinition/types.ts index ab489aa..0c87885 100644 --- a/src/api/workflow/formDefinition/types.ts +++ b/src/api/workflow/formDefinition/types.ts @@ -28,7 +28,6 @@ export interface FormDefinitionVO { * 流程定义版本 */ processDefinitionVersion: number; - } export interface FormDefinitionForm extends BaseEntity { @@ -61,11 +60,9 @@ export interface FormDefinitionForm extends BaseEntity { * 流程定义版本 */ processDefinitionVersion?: number; - } export interface FormDefinitionQuery extends PageQuery { - /** * 动态表单id */ @@ -91,11 +88,8 @@ export interface FormDefinitionQuery extends PageQuery { */ processDefinitionVersion?: number; - /** - * 日期范围参数 - */ - params?: any; + /** + * 日期范围参数 + */ + params?: any; } - - - diff --git a/src/api/workflow/task/index.ts b/src/api/workflow/task/index.ts index caa364d..d74df6d 100644 --- a/src/api/workflow/task/index.ts +++ b/src/api/workflow/task/index.ts @@ -117,8 +117,8 @@ export const backProcess = (data: object) => { /** * 获取流程状态 - * @param taskId - * @returns + * @param taskId + * @returns */ export const getBusinessStatus = (taskId: string) => { return request({ @@ -129,8 +129,8 @@ export const getBusinessStatus = (taskId: string) => { /** * 加签 - * @param data - * @returns + * @param data + * @returns */ export const addMultiInstanceExecution = (data: object) => { return request({ @@ -142,8 +142,8 @@ export const addMultiInstanceExecution = (data: object) => { /** * 减签 - * @param data - * @returns + * @param data + * @returns */ export const deleteMultiInstanceExecution = (data: object) => { return request({ @@ -152,4 +152,3 @@ export const deleteMultiInstanceExecution = (data: object) => { data: data }); }; - diff --git a/src/api/workflow/workflowUser/index.ts b/src/api/workflow/workflowUser/index.ts index 94ec313..bba4e26 100644 --- a/src/api/workflow/workflowUser/index.ts +++ b/src/api/workflow/workflowUser/index.ts @@ -36,4 +36,3 @@ export const getUserListByIds = (userIdList: Array) => { method: 'get' }); }; - From 25af91f84c9d17eca2b5c547abc96b582735c7bb Mon Sep 17 00:00:00 2001 From: ahao Date: Sun, 24 Sep 2023 22:01:53 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 10 ++-------- .prettierrc.cjs | 4 +++- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index a1b32e3..2f0f0c1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,15 +5,9 @@ module.exports = { node: true }, parser: 'vue-eslint-parser', - extends: [ - 'eslint:recommended', - 'plugin:vue/vue3-essential', - 'plugin:@typescript-eslint/recommended', - './.eslintrc-auto-import.json', - 'plugin:prettier/recommended' - ], + extends: ['eslint:recommended', 'plugin:vue/vue3-essential', 'plugin:@typescript-eslint/recommended', './.eslintrc-auto-import.json', 'plugin:prettier/recommended'], parserOptions: { - ecmaVersion: '2020', + ecmaVersion: 'latest', sourceType: 'module', parser: '@typescript-eslint/parser' }, diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 61d2d92..58bd589 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -3,7 +3,7 @@ */ module.exports = { // 一行最多多少个字符 - printWidth: 150, + printWidth: 200, // 指定每个缩进级别的空格数 tabWidth: 2, // 使用制表符而不是空格缩进行 @@ -12,6 +12,8 @@ module.exports = { semi: true, // 是否使用单引号 singleQuote: true, + // 是否缩进 Vue 文件中的代码 -