From 66856ae05258d6066a9227c6a2836e6615049230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=B1=E5=93=A5=E4=B8=B6?= <385454831@qq.com> Date: Sun, 9 Apr 2023 12:27:22 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E9=87=8D=E6=9E=84VUE3=E3=80=90OA=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B-=E8=AF=B7=E5=81=87=E6=9F=A5=E8=AF=A2=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/oa/leave/create.vue | 143 ++++++++++----- src/views/bpm/oa/leave/detail.vue | 66 ++++--- src/views/bpm/oa/leave/index.vue | 262 +++++++++++++++++++++------ src/views/bpm/oa/leave/leave.data.ts | 91 ---------- 4 files changed, 337 insertions(+), 225 deletions(-) delete mode 100644 src/views/bpm/oa/leave/leave.data.ts diff --git a/src/views/bpm/oa/leave/create.vue b/src/views/bpm/oa/leave/create.vue index 9e99e814..dd932627 100644 --- a/src/views/bpm/oa/leave/create.vue +++ b/src/views/bpm/oa/leave/create.vue @@ -1,56 +1,107 @@ - - - - - - + + + + + + + + + + + + + + + + + + + 确 定 + 取 消 + + diff --git a/src/views/bpm/oa/leave/detail.vue b/src/views/bpm/oa/leave/detail.vue index e35de6e5..31e54de3 100644 --- a/src/views/bpm/oa/leave/detail.vue +++ b/src/views/bpm/oa/leave/detail.vue @@ -1,42 +1,40 @@ - - - - 返回 - + + + + + + + {{ formatDate(detailData.startTime) }} + + + {{ formatDate(detailData.endTime) }} + + + {{ detailData.reason }} + + + - diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue index 22d86dfe..c6979f1a 100644 --- a/src/views/bpm/oa/leave/index.vue +++ b/src/views/bpm/oa/leave/index.vue @@ -1,83 +1,237 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - + + + + + + + + + + + 搜索 + 重置 + 发起请假 + + + - diff --git a/src/views/bpm/oa/leave/leave.data.ts b/src/views/bpm/oa/leave/leave.data.ts deleted file mode 100644 index 5b6f2c52..00000000 --- a/src/views/bpm/oa/leave/leave.data.ts +++ /dev/null @@ -1,91 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' - -const { t } = useI18n() // 国际化 - -// 表单校验 -export const rules = reactive({ - startTime: [{ required: true, message: '开始时间不能为空', trigger: 'blur' }], - endTime: [{ required: true, message: '结束时间不能为空', trigger: 'blur' }], - type: [{ required: true, message: '请假类型不能为空', trigger: 'change' }] -}) - -// crudSchemas -const crudSchemas = reactive({ - primaryKey: 'id', - primaryType: 'id', - primaryTitle: '申请编号', - action: true, - actionWidth: '260', - searchSpan: 8, - columns: [ - { - title: t('common.status'), - field: 'result', - dictType: DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT, - dictClass: 'number', - isSearch: true, - isForm: false - }, - { - title: t('common.startTimeText'), - field: 'startTime', - formatter: 'formatDay', - table: { - width: 180 - }, - detail: { - dateFormat: 'YYYY-MM-DD' - }, - form: { - component: 'DatePicker' - } - }, - { - title: t('common.endTimeText'), - field: 'endTime', - formatter: 'formatDay', - table: { - width: 180 - }, - detail: { - dateFormat: 'YYYY-MM-DD' - }, - form: { - component: 'DatePicker' - } - }, - { - title: '请假类型', - field: 'type', - dictType: DICT_TYPE.BPM_OA_LEAVE_TYPE, - dictClass: 'number', - isSearch: true - }, - { - title: '原因', - field: 'reason', - isSearch: true, - componentProps: { - type: 'textarea', - rows: 4 - } - }, - { - title: '申请时间', - field: 'createTime', - formatter: 'formatDate', - table: { - width: 180 - }, - isSearch: true, - search: { - show: true, - itemRender: { - name: 'XDataTimePicker' - } - }, - isForm: false - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas) From 642652bd08a2ca31a63794432045272e8679c743 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 9 Apr 2023 13:19:20 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E5=B2=97=E4=BD=8D=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=96=B0=E5=A2=9E-=E8=A1=A8=E5=8D=95=E4=B8=AD=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=9C=A8=E5=B2=97=E4=BD=8D=E7=BC=96=E7=A0=81=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=BE=93=E5=85=A5=E5=86=85=E5=AE=B9=20#6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/post/PostForm.vue | 2 +- src/views/system/role/RoleForm.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/system/post/PostForm.vue b/src/views/system/post/PostForm.vue index 3ccf7837..877ec60e 100644 --- a/src/views/system/post/PostForm.vue +++ b/src/views/system/post/PostForm.vue @@ -11,7 +11,7 @@ - + diff --git a/src/views/system/role/RoleForm.vue b/src/views/system/role/RoleForm.vue index daae020e..eecd2cdd 100644 --- a/src/views/system/role/RoleForm.vue +++ b/src/views/system/role/RoleForm.vue @@ -11,10 +11,10 @@ - + - + From 7bfb109acc1546afa2ab9b21dfd9d6d00e8f306a Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 9 Apr 2023 18:14:58 +0800 Subject: [PATCH 3/5] =?UTF-8?q?REVIEW=20=E5=85=AC=E4=BC=97=E5=8F=B7?= =?UTF-8?q?=E7=9A=84=E8=87=AA=E5=8A=A8=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/auto-components.d.ts | 3 + src/views/mp/autoReply/index.vue | 373 +++++++++++++++---------------- 2 files changed, 181 insertions(+), 195 deletions(-) diff --git a/src/types/auto-components.d.ts b/src/types/auto-components.d.ts index 6b2e9456..e72d2988 100644 --- a/src/types/auto-components.d.ts +++ b/src/types/auto-components.d.ts @@ -76,8 +76,11 @@ declare module '@vue/runtime-core' { ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] + ElTimeline: typeof import('element-plus/es')['ElTimeline'] + ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTree: typeof import('element-plus/es')['ElTree'] + ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] ElUpload: typeof import('element-plus/es')['ElUpload'] Error: typeof import('./../components/Error/src/Error.vue')['default'] FlowCondition: typeof import('./../components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue')['default'] diff --git a/src/views/mp/autoReply/index.vue b/src/views/mp/autoReply/index.vue index 34aadbd2..3f8d4b9e 100644 --- a/src/views/mp/autoReply/index.vue +++ b/src/views/mp/autoReply/index.vue @@ -1,204 +1,187 @@ - - + - - - - - + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + 新增 + + + + + + + 关注时回复 + + + + + 消息回复 + + + + + 关键词回复 + + + + + + + + + + + + + + + + + + + + {{ scope.row.responseContent }} + + + + + + + + + + + + + + + + + + + + + + + + 修改 + + + 删除 + + + + + + + + + + + + + + + + + - - 搜索 - 重置 + + + + + - - - - - - - - - 新增 - - - - - - - - 关注时回复 - - - - - 消息回复 - - - - - 关键词回复 - - - - - - - - - - - - - - - - - - - - - - - {{ scope.row.responseContent }} - - - - - - - - - - - - - - - - - - - - - - {{ scope.row.createTime }} - - - - - 修改 - - 删除 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取 消 - 确 定 - - - - - + + + 取 消 + 确 定 + + + + - diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue index c6979f1a..ebf10d72 100644 --- a/src/views/bpm/oa/leave/index.vue +++ b/src/views/bpm/oa/leave/index.vue @@ -1,5 +1,5 @@ - + 搜索 重置 - 发起请假 + + 发起请假 + - + - + @@ -99,36 +99,33 @@ width="180" :formatter="dateFormatter" /> - - + - 取消 详情 + 详情 + 进度 + 进度 + + + 取消 + @@ -139,28 +136,27 @@ v-model:limit="queryParams.pageSize" @pagination="getList" /> - + - -