@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/403-CyoOD-Ik.js +65 -0
- package/dist/404-Ch_OHTw0.js +65 -0
- package/dist/500-Cf9am7HK.js +67 -0
- package/dist/AuthorityInfo-BJ427cqG.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js +99 -0
- package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
- package/dist/Company-qo-lKPkv.js +25 -0
- package/dist/CompanyPanel-DkKWAKvY.js +204 -0
- package/dist/DataSet-iBHzs75s.js +147 -0
- package/dist/Department-CHUQByKX.js +25 -0
- package/dist/DepartmentPanel-C742dfOO.js +248 -0
- package/dist/DesignPanel-D9oE5R7m.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js +1097 -0
- package/dist/DictView-CrFXprP9.js +110 -0
- package/dist/InvOrganization-Cz8SzIgs.js +73 -0
- package/dist/Org-Bzt6yKox.js +38 -0
- package/dist/Preview-jonigfMQ.js +48 -0
- package/dist/ReportDefine-BpiM5Ovq.js +10 -0
- package/dist/ReportDesign-fp09cXJ7.js +164 -0
- package/dist/ReportQuery-52ZP1PYP.js +74 -0
- package/dist/ReportQueryFrom-DSYavJb1.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js +177 -0
- package/dist/ReportTemplate-CA_UW0eD.js +161 -0
- package/dist/Role-DqOt8Bk0.js +25 -0
- package/dist/RoleAssign-BdxhefhQ.js +26 -0
- package/dist/RolePanel-2gZ3H0ET.js +4 -0
- package/dist/RolePanel-BsNd0svJ.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js +152 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js +131 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js +99 -0
- package/dist/Staff-D3L8fEoY.js +26 -0
- package/dist/StaffInfo-DYRw6ZYJ.js +4 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js +107 -0
- package/dist/StaffPanel-DkrNH6Px.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js +152 -0
- package/dist/SysUser-Bl1-cIpJ.js +15 -0
- package/dist/SysUserPanel-yxNLaBwt.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js +352 -0
- package/dist/SystemMenu-C4_Arn12.js +155 -0
- package/dist/UserInfo-QcNwJCUR.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js +159 -0
- package/dist/childView-B23DEO2u.js +4 -0
- package/dist/childView-saDZQv9x.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js +182 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js +142 -0
- package/dist/code-rule-2_Ihx_by.js +147 -0
- package/dist/core.es.js +26 -6
- package/dist/cron-task-BFOPJQIk.js +134 -0
- package/dist/flow-task-PoDnE_kE.js +10 -0
- package/dist/frameView-f7Ya0Knj.js +43 -0
- package/dist/index-BpdTDaTk.js +3213 -0
- package/dist/layout-home-v3DPJ7rB.js +231 -0
- package/dist/layoutView-DZHoQDH1.js +3190 -0
- package/dist/log-in-BPAMJTwH.js +115 -0
- package/dist/log-out-DZACF0jg.js +129 -0
- package/dist/login-B8cwozax.js +216 -0
- package/dist/login-log-CVvRgZSu.js +70 -0
- package/dist/lov-view-Ba7Y7xy0.js +98 -0
- package/dist/menuInfo-BpRKFYK8.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js +359 -0
- package/dist/pda-app-C0jJecrL.js +706 -0
- package/dist/redirect-DTz8GSnv.js +15 -0
- package/dist/resource-BG22Cw4P.js +97 -0
- package/dist/su-welcome-DaxhbrC6.js +879 -0
- package/dist/sys-config-CG2fMtak.js +384 -0
- package/dist/udp-core.css +1 -2
- package/dist/useNav-_u2UAQWk.js +84 -0
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/dist/wecom-push-B75FLee5.js +70 -0
- package/index.ts +54 -50
- package/package.json +21 -21
- package/src/App.vue +79 -78
- package/src/api/http.ts +10 -4
- package/src/api/index.ts +51 -51
- package/src/api/user.ts +64 -64
- package/src/components/SuQrcode/src/index.tsx +231 -236
- package/src/components/udp/content/index.vue +93 -93
- package/src/components/udp/form-upload/form-upload.vue +496 -496
- package/src/components/udp/grid/index.vue +643 -544
- package/src/components/udp/index.ts +2 -1
- package/src/components/udp/modal-form/index.vue +326 -0
- package/src/components/udp/utils.ts +420 -420
- package/src/layout/components/lay-navbar/index.vue +240 -240
- package/src/layout/components/lay-panel/index.vue +2 -6
- package/src/layout/components/lay-search/components/SearchModal.vue +185 -181
- package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
- package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
- package/src/layout/components/lay-sidebar/vertical.vue +92 -92
- package/src/layout/layoutView.vue +1 -0
- package/src/main.ts +111 -109
- package/src/plugins/i18n/zh.ts +5 -1
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/router/index.ts +5 -34
- package/src/router/utils.ts +434 -430
- package/src/store/modules/permission.ts +1 -1
- package/src/store/modules/system.ts +193 -186
- package/src/style/print-lock.css +380 -375
- package/src/style/suprint.css +990 -985
- package/src/style/vxetable.scss +372 -364
- package/src/utils/authority/index.ts +19 -2
- package/src/utils/dataFormat/index.ts +309 -222
- package/src/utils/udp/http/index.ts +126 -67
- package/src/utils/udp/http/types.d.ts +15 -14
- package/src/views/login/login-view.vue +4 -21
- package/src/views/organization/department/DepartmentPanel.vue +3 -4
- package/src/views/system/sys/sys-config.vue +344 -344
- package/src/views/uhome/components/home-todo.vue +191 -178
- package/src/views/uhome/dynamic-card.vue +31 -31
- package/src/views/uhome/su-welcome.vue +310 -310
- package/src/views/ulogin/login.vue +292 -296
- package/src/views/urpt/design/DesignPanel.vue +538 -507
- package/src/views/urpt/design/print-data.ts +39 -59
- package/tsconfig.json +2 -3
- package/types/global.d.ts +234 -234
- package/vite.config.ts +2 -1
- package/dist/403-D6Wb3JJh.js +0 -72
- package/dist/404-B_HNbPNV.js +0 -72
- package/dist/500-BMemTTy1.js +0 -77
- package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
- package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
- package/dist/Company-BLXSfow0.js +0 -21
- package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
- package/dist/DataSet-CuGZcKC-.js +0 -141
- package/dist/Department-oFhsa7cd.js +0 -21
- package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
- package/dist/DepartmentPanel-BL58AdoT.js +0 -2
- package/dist/DesignPanel-DmkFVw1N.js +0 -1196
- package/dist/DictView-CC5yMzOq.js +0 -100
- package/dist/File-WJXjGYxr.js +0 -89
- package/dist/InvOrganization-BwMmD8Ua.js +0 -76
- package/dist/Org-HgnOWubi.js +0 -76
- package/dist/Preview-CAzWxLmP.js +0 -45
- package/dist/ReIcon-DecitXmg.js +0 -413
- package/dist/ReportDefine-BgLM-Rjk.js +0 -10
- package/dist/ReportDesign-DwchGG2P.js +0 -158
- package/dist/ReportQuery-D5jaRJEn.js +0 -101
- package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
- package/dist/ReportTemplate-CNcTmccs.js +0 -162
- package/dist/Role-Be8WfdCA.js +0 -21
- package/dist/RoleAssign-CtehGAUf.js +0 -22
- package/dist/RolePanel-CAwITg_q.js +0 -131
- package/dist/RolePanel-SN0FGFZ7.js +0 -176
- package/dist/ScrollPanel-DW30pGz1.js +0 -88
- package/dist/Staff-V2YsNKcj.js +0 -22
- package/dist/StaffInfo-CKRPW0r4.js +0 -149
- package/dist/StaffPanel-BxcgMg7u.js +0 -143
- package/dist/SysUser-Dxyj5w5m.js +0 -12
- package/dist/SysUserPanel-DI6CWcZo.js +0 -365
- package/dist/SystemMenu-BBHREM8T.js +0 -154
- package/dist/UserInfo-BMVQ0xwE.js +0 -194
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
- package/dist/api-BFNxcxSN.js +0 -30
- package/dist/authority-BJFEUdrh.js +0 -20
- package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
- package/dist/childView-BBjPEraB.js +0 -184
- package/dist/childView-DNqG2UVm.js +0 -181
- package/dist/code-rule-QFrhqFrW.js +0 -151
- package/dist/contant-Q77dU_V3.js +0 -4
- package/dist/cron-task-BpUDKEAU.js +0 -131
- package/dist/flow-task-DAc2NrDU.js +0 -11
- package/dist/frameView-Di0zJZUR.js +0 -39
- package/dist/layout-home-BVp7vYLR.js +0 -239
- package/dist/layoutView-B6Mx2ERA.js +0 -2662
- package/dist/log-in-BrNB0mLz.js +0 -117
- package/dist/log-out-dYfqvzy6.js +0 -111
- package/dist/login-D_Hjy3Jd.js +0 -231
- package/dist/login-log-CJak-ANA.js +0 -79
- package/dist/lov-view-DM5Nm5tW.js +0 -95
- package/dist/menuInfo-BlOY1KZW.js +0 -346
- package/dist/mitt-CQgI7DYU.js +0 -27
- package/dist/pda-app-CA7YI37u.js +0 -589
- package/dist/redirect-N0k4tImU.js +0 -16
- package/dist/resource-CfQTHFcs.js +0 -94
- package/dist/su-welcome-DVD3S_du.js +0 -799
- package/dist/sys-config-Ddb3vBpK.js +0 -316
- package/dist/system-Cm3lyBas.js +0 -1528
- package/dist/udp-core-DaQd5CF1.js +0 -2028
- package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
- package/dist/useNav-BhOJIdrJ.js +0 -106
- package/dist/utogether-l7JXs4Lv.js +0 -4
- package/dist/water-mark-WDQZ9YqB.js +0 -119
- package/dist/wecom-push-kWkAVRCj.js +0 -77
|
@@ -1,178 +1,191 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: levi7754 levi7754@163.com
|
|
3
|
-
* @Date: 2025-11-05 18:11:29
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2026-
|
|
6
|
-
* @FilePath: \udp-crm\packages\udp-crm\src\views\uflow\todo\flow-todo.vue
|
|
7
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
-
-->
|
|
9
|
-
<template>
|
|
10
|
-
<div>
|
|
11
|
-
<vxe-tabs v-model="activeName" type="border-card" @tab-change="onTabChange">
|
|
12
|
-
<vxe-tab-pane name="todo" :title="$t('message.t_todoFlow')">
|
|
13
|
-
<div class="flex items-center w-full pl-2 pr-3 pt-1">
|
|
14
|
-
<vxe-input v-model="keywords" class="flex-1 w-full" placeholder="请输入任务编码或名称或标题查询" />
|
|
15
|
-
<div class="pl-1">
|
|
16
|
-
<ut-button content="search" icon="ri-search-line" @tap="onSearch" />
|
|
17
|
-
<ut-button content="reset" status="info" icon="ri-cycle-line" @tap="onReset" />
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<ut-grid
|
|
21
|
-
ref="xgrid"
|
|
22
|
-
:columns="columns"
|
|
23
|
-
:data="data.todo"
|
|
24
|
-
:events="events"
|
|
25
|
-
:editable="false"
|
|
26
|
-
:need-export="false"
|
|
27
|
-
:proxy-config="{ enabled: false }"
|
|
28
|
-
:toolbar-config="{ enabled: false }"
|
|
29
|
-
height="360"
|
|
30
|
-
/>
|
|
31
|
-
</vxe-tab-pane>
|
|
32
|
-
<vxe-tab-pane name="finish" lazy :title="$t('message.t_finishFlow')">
|
|
33
|
-
<div class="flex items-center w-full pl-2 pr-3 pt-1">
|
|
34
|
-
<vxe-input v-model="keywords" class="flex-1 w-full" placeholder="请输入任务编码或名称或标题查询" />
|
|
35
|
-
<div class="pl-1">
|
|
36
|
-
<ut-button content="search" icon="ri-search-line" @tap="onSearch" />
|
|
37
|
-
<ut-button content="reset" status="info" icon="ri-cycle-line" @tap="onReset" />
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
<ut-grid
|
|
41
|
-
ref="ygrid"
|
|
42
|
-
:columns="columns"
|
|
43
|
-
:data="data.finish"
|
|
44
|
-
:events="events"
|
|
45
|
-
:editable="false"
|
|
46
|
-
:need-export="false"
|
|
47
|
-
:proxy-config="{ enabled: false }"
|
|
48
|
-
:toolbar-config="{ enabled: false }"
|
|
49
|
-
height="360"
|
|
50
|
-
/>
|
|
51
|
-
/>
|
|
52
|
-
</vxe-tab-pane>
|
|
53
|
-
</vxe-tabs>
|
|
54
|
-
<vxe-modal v-model="showModal" :loading="loading" :title="flowTitle" height="360">
|
|
55
|
-
<vxe-image :src="imageUrl" :height="520" width="75%" />
|
|
56
|
-
</vxe-modal>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<script setup lang="tsx">
|
|
61
|
-
import { useRouter } from 'vue-router';
|
|
62
|
-
import { ref, onMounted, nextTick } from 'vue';
|
|
63
|
-
|
|
64
|
-
import { cookies } from '@utogether/utils';
|
|
65
|
-
import { isEmpty } from 'xe-utils';
|
|
66
|
-
import to from 'await-to-js';
|
|
67
|
-
import { getServiceApi } from '../../../api';
|
|
68
|
-
import { kLOGINER } from '../../../contant';
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
{ field: '
|
|
89
|
-
{ field: '
|
|
90
|
-
{ field: '
|
|
91
|
-
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
grid
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: levi7754 levi7754@163.com
|
|
3
|
+
* @Date: 2025-11-05 18:11:29
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2026-08-13 16:23:03
|
|
6
|
+
* @FilePath: \udp-crm\packages\udp-crm\src\views\uflow\todo\flow-todo.vue
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<div>
|
|
11
|
+
<vxe-tabs v-model="activeName" type="border-card" @tab-change="onTabChange">
|
|
12
|
+
<vxe-tab-pane name="todo" :title="$t('message.t_todoFlow')">
|
|
13
|
+
<div class="flex items-center w-full pl-2 pr-3 pt-1">
|
|
14
|
+
<vxe-input v-model="keywords" class="flex-1 w-full" placeholder="请输入任务编码或名称或标题查询" />
|
|
15
|
+
<div class="pl-1">
|
|
16
|
+
<ut-button content="search" icon="ri-search-line" @tap="onSearch" />
|
|
17
|
+
<ut-button content="reset" status="info" icon="ri-cycle-line" @tap="onReset" />
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<ut-grid
|
|
21
|
+
ref="xgrid"
|
|
22
|
+
:columns="columns"
|
|
23
|
+
:data="data.todo"
|
|
24
|
+
:events="events"
|
|
25
|
+
:editable="false"
|
|
26
|
+
:need-export="false"
|
|
27
|
+
:proxy-config="{ enabled: false }"
|
|
28
|
+
:toolbar-config="{ enabled: false }"
|
|
29
|
+
height="360"
|
|
30
|
+
/>
|
|
31
|
+
</vxe-tab-pane>
|
|
32
|
+
<vxe-tab-pane name="finish" lazy :title="$t('message.t_finishFlow')">
|
|
33
|
+
<div class="flex items-center w-full pl-2 pr-3 pt-1">
|
|
34
|
+
<vxe-input v-model="keywords" class="flex-1 w-full" placeholder="请输入任务编码或名称或标题查询" />
|
|
35
|
+
<div class="pl-1">
|
|
36
|
+
<ut-button content="search" icon="ri-search-line" @tap="onSearch" />
|
|
37
|
+
<ut-button content="reset" status="info" icon="ri-cycle-line" @tap="onReset" />
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<ut-grid
|
|
41
|
+
ref="ygrid"
|
|
42
|
+
:columns="columns"
|
|
43
|
+
:data="data.finish"
|
|
44
|
+
:events="events"
|
|
45
|
+
:editable="false"
|
|
46
|
+
:need-export="false"
|
|
47
|
+
:proxy-config="{ enabled: false }"
|
|
48
|
+
:toolbar-config="{ enabled: false }"
|
|
49
|
+
height="360"
|
|
50
|
+
/>
|
|
51
|
+
/>
|
|
52
|
+
</vxe-tab-pane>
|
|
53
|
+
</vxe-tabs>
|
|
54
|
+
<vxe-modal v-model="showModal" :loading="loading" :title="flowTitle" height="360">
|
|
55
|
+
<vxe-image :src="imageUrl" :height="520" width="75%" />
|
|
56
|
+
</vxe-modal>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script setup lang="tsx">
|
|
61
|
+
import { useRouter, useRoute } from 'vue-router';
|
|
62
|
+
import { ref, onMounted, nextTick, watch } from 'vue';
|
|
63
|
+
|
|
64
|
+
import { cookies } from '@utogether/utils';
|
|
65
|
+
import { isEmpty } from 'xe-utils';
|
|
66
|
+
import to from 'await-to-js';
|
|
67
|
+
import { getServiceApi } from '../../../api';
|
|
68
|
+
import { kLOGINER } from '../../../contant';
|
|
69
|
+
|
|
70
|
+
const router = useRouter();
|
|
71
|
+
const route = useRoute();
|
|
72
|
+
|
|
73
|
+
const xgrid = ref(null);
|
|
74
|
+
const ygrid = ref(null);
|
|
75
|
+
const activeName = ref('todo');
|
|
76
|
+
const showModal = ref(false);
|
|
77
|
+
const loading = ref(false);
|
|
78
|
+
const imageUrl = ref('');
|
|
79
|
+
const keywords = ref(null);
|
|
80
|
+
const flowTitle = ref(null);
|
|
81
|
+
const data = ref({ todo: [], finish: [], todoPage: {}, finishPage: {} });
|
|
82
|
+
|
|
83
|
+
const url = '/uwfl/activiti';
|
|
84
|
+
|
|
85
|
+
const pagination = { pageNum: 1, pageSize: 20 };
|
|
86
|
+
|
|
87
|
+
const columns = [
|
|
88
|
+
{ field: 'taskId' },
|
|
89
|
+
{ field: 'taskName' },
|
|
90
|
+
{ field: 'taskTitle' },
|
|
91
|
+
{ field: 'createDate' },
|
|
92
|
+
{ field: 'createBy', title: 'message.creator' },
|
|
93
|
+
{
|
|
94
|
+
field: 'operate',
|
|
95
|
+
width: 90,
|
|
96
|
+
fixed: 'right',
|
|
97
|
+
slots: {
|
|
98
|
+
default: ({ row }) => {
|
|
99
|
+
return [
|
|
100
|
+
<>
|
|
101
|
+
<ut-button
|
|
102
|
+
visible={activeName.value === 'todo'}
|
|
103
|
+
content="todoTask"
|
|
104
|
+
icon="ri-send-plane-line"
|
|
105
|
+
onTap={() => handleTodo(row, 'edit')}
|
|
106
|
+
/>
|
|
107
|
+
<ut-button
|
|
108
|
+
visible={activeName.value === 'finish'}
|
|
109
|
+
content="look"
|
|
110
|
+
status="info"
|
|
111
|
+
onTap={() => handleTodo(row)}
|
|
112
|
+
/>
|
|
113
|
+
</>
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
];
|
|
119
|
+
|
|
120
|
+
const events = {
|
|
121
|
+
pageChange({ pageSize, currentPage }) {
|
|
122
|
+
data.value[`${activeName.value}Page`] = { pageNum: currentPage, pageSize };
|
|
123
|
+
getDataList(activeName.value, keywords.value);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const onSearch = () => {
|
|
128
|
+
data.value[`${activeName.value}Page`] = pagination;
|
|
129
|
+
getDataList(activeName.value, keywords.value);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const onReset = () => {
|
|
133
|
+
keywords.value = null;
|
|
134
|
+
onSearch();
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
const getDataList = async (type, searchField) => {
|
|
138
|
+
console.log(type);
|
|
139
|
+
const uri = type === 'todo' ? '/listTasksToBeHandle' : '/listHandledTask';
|
|
140
|
+
const params = {
|
|
141
|
+
...data.value[`${activeName.value}Page`],
|
|
142
|
+
searchField,
|
|
143
|
+
userName: cookies.get(kLOGINER)
|
|
144
|
+
};
|
|
145
|
+
const [err, res]: any = await to(getServiceApi().post(url + uri, params));
|
|
146
|
+
if (err) return;
|
|
147
|
+
data.value[type] = res.list;
|
|
148
|
+
data.value[type + 'Page'].total = res.total;
|
|
149
|
+
|
|
150
|
+
const grid = type === 'todo' ? xgrid : ygrid;
|
|
151
|
+
grid.value.getInstance().loadData(res.list);
|
|
152
|
+
grid.value.setPagerConfig({ ...data.value[type + 'Page'] });
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const onTabChange = async ({ value }) => {
|
|
156
|
+
const grid = value === 'todo' ? xgrid : ygrid;
|
|
157
|
+
const operate = columns.find(f => f.field === 'operate');
|
|
158
|
+
operate.width = value === 'todo' ? 160 : 80;
|
|
159
|
+
await nextTick();
|
|
160
|
+
grid.value.getInstance().reloadColumn(columns);
|
|
161
|
+
const page = data.value[`${activeName.value}Page`];
|
|
162
|
+
data.value[`${activeName.value}Page`] = isEmpty(page) ? page : pagination;
|
|
163
|
+
getDataList(activeName.value, keywords.value);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const handleTodo = (row, dataStatus = 'detail') => {
|
|
167
|
+
console.log(row);
|
|
168
|
+
const { sourceKey, sourceId, processInstId } = row;
|
|
169
|
+
const data = Object.assign(
|
|
170
|
+
{ dataStatus, workflowCode: sourceKey, businessKey: sourceId, processInstanceId: processInstId },
|
|
171
|
+
row
|
|
172
|
+
);
|
|
173
|
+
sessionStorage.setItem('kPROCESSKEY', JSON.stringify(data));
|
|
174
|
+
router.push({ name: 'FlowApproval' });
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
// 监听路由跳转,返回首页时刷新列表
|
|
178
|
+
watch(
|
|
179
|
+
() => route.fullPath,
|
|
180
|
+
() => {
|
|
181
|
+
if (route.name === 'UdpWelcome') {
|
|
182
|
+
getDataList(activeName.value, keywords.value);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
onMounted(() => {
|
|
188
|
+
data.value[`${activeName.value}Page`] = pagination;
|
|
189
|
+
getDataList('todo', null);
|
|
190
|
+
});
|
|
191
|
+
</script>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: levi7754 levi7754@163.com
|
|
3
|
-
* @Date: 2025-12-26 13:53:05
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-12-30 09:23:25
|
|
6
|
-
* @FilePath: \udp-front\packages\udp-core\src\views\uhome\dynamic-card.vue
|
|
7
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
-
-->
|
|
9
|
-
<template>
|
|
10
|
-
<div class="dynamic-card w-full">
|
|
11
|
-
<vxe-row :gutter="[10, 10]" wrap>
|
|
12
|
-
<vxe-col v-for="data in list" :key="data.id" :span="data.span">
|
|
13
|
-
<vxe-card :title="data.title" :height="data.height" shadow>
|
|
14
|
-
<dynamicComponent :data="data" />
|
|
15
|
-
</vxe-card>
|
|
16
|
-
</vxe-col>
|
|
17
|
-
</vxe-row>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
<script setup lang="tsx">
|
|
21
|
-
import dynamicComponent from './components/dynamic-component.vue';
|
|
22
|
-
|
|
23
|
-
interface IProps {
|
|
24
|
-
list: IRecord;
|
|
25
|
-
}
|
|
26
|
-
withDefaults(defineProps<IProps>(), {
|
|
27
|
-
list: () => {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
</script>
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: levi7754 levi7754@163.com
|
|
3
|
+
* @Date: 2025-12-26 13:53:05
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-12-30 09:23:25
|
|
6
|
+
* @FilePath: \udp-front\packages\udp-core\src\views\uhome\dynamic-card.vue
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<div class="dynamic-card w-full">
|
|
11
|
+
<vxe-row :gutter="[10, 10]" wrap>
|
|
12
|
+
<vxe-col v-for="data in list" :key="data.id" :span="data.span">
|
|
13
|
+
<vxe-card :title="data.title" :height="data.height" shadow>
|
|
14
|
+
<dynamicComponent :data="data" />
|
|
15
|
+
</vxe-card>
|
|
16
|
+
</vxe-col>
|
|
17
|
+
</vxe-row>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
<script setup lang="tsx">
|
|
21
|
+
import dynamicComponent from './components/dynamic-component.vue';
|
|
22
|
+
|
|
23
|
+
interface IProps {
|
|
24
|
+
list: IRecord;
|
|
25
|
+
}
|
|
26
|
+
withDefaults(defineProps<IProps>(), {
|
|
27
|
+
list: () => {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
</script>
|