@utogether/udp-core 1.0.1-beta.9 → 1.0.2
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/build/plugins.ts +37 -39
- package/dist/{403-BOzKHdlm.js → 403-B1rIjAAu.js} +6 -6
- package/dist/{404-uwgt4Nll.js → 404-mBqc2y4t.js} +4 -4
- package/dist/{500-4HBf6V9m.js → 500-BoI45Zdh.js} +2 -2
- package/dist/{AuthorityInfo-DvbIh1vT.js → AuthorityInfo-B08NBIIn.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js} +3 -3
- package/dist/{Company-D7Q9BFmr.js → Company-JGGyWEWH.js} +3 -3
- package/dist/{CompanyPanel-C0-PJlrt.js → CompanyPanel-BQ_cCmDx.js} +7 -7
- package/dist/{Department-h2hlXACv.js → Department-z2iO6hwM.js} +10 -10
- package/dist/{DepartmentPanel-B6hDEQpG.js → DepartmentPanel-BtQe7zwU.js} +108 -78
- package/dist/{DesignPanel-cS58-1v9.js → DesignPanel-7mhtVWas.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +6 -6
- package/dist/{DictView-T3TmpBa8.js → DictView-CjchV2Yk.js} +15 -16
- package/dist/InvOrganization-Pn1O_XP0.js +74 -0
- package/dist/{Org-CnCBDGKF.js → Org-BqytV_vi.js} +1 -1
- package/dist/{Preview-BaktKXB1.js → Preview-CLpUUMay.js} +2 -2
- package/dist/{ReportDefine-5Rb0PO9A.js → ReportDefine-Cz1KtEUF.js} +1 -1
- package/dist/{ReportDesign-DYdkVREA.js → ReportDesign-BaORYud4.js} +13 -13
- package/dist/{ReportQuery-BwhzIXMt.js → ReportQuery-CPCPXiXz.js} +1 -1
- package/dist/{ReportQueryFrom-PHtWwlOe.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BE5yZNPM.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +1 -1
- package/dist/{ReportTemplate-DaadVXIi.js → ReportTemplate-CFiNMz79.js} +11 -11
- package/dist/{Role-Dtg3nAmG.js → Role-B-XDoJd5.js} +3 -3
- package/dist/{RoleAssign-DEGtLssH.js → RoleAssign-BolW8YVs.js} +8 -8
- package/dist/{RolePanel-DpUzfE_o.js → RolePanel-2kfs5tw9.js} +1 -1
- package/dist/{RolePanel-CT7BTPmy.js → RolePanel-HilSuYns.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Xyo0YEI0.js → RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dg2A6DJu.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +13 -13
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CyutzDZS.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +4 -4
- package/dist/{Staff-_NlAGkrh.js → Staff-BTk3whFC.js} +3 -3
- package/dist/{StaffInfo-DVgUvVgd.js → StaffInfo-d3AuSzlA.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-C8hmlFgX.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +5 -5
- package/dist/{StaffPanel-DKNZE3IE.js → StaffPanel-DV-D4jjz.js} +1 -1
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
- package/dist/{SysUser-kQUf7XKz.js → SysUser-BnjYytws.js} +2 -2
- package/dist/{SysUserPanel-C191uX3U.js → SysUserPanel-CBoyD-Qi.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
- package/dist/{SystemMenu-DwuSvHnj.js → SystemMenu-kYB_ZaUt.js} +36 -36
- package/dist/{UserInfo-DIsInFld.js → UserInfo-4dx97VBL.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CnvGdbej.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +10 -10
- package/dist/{childView-3Bs2UBEw.js → childView-CHPNfTEb.js} +1 -1
- package/dist/{childView-BawyULD7.js → childView-CKA_JgVZ.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-YpWF-p2F.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
- package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
- package/dist/{code-rule-DVaYcn8S.js → code-rule-CbxuZg0-.js} +40 -38
- package/dist/core.es.js +18 -12
- package/dist/{cron-task-xuzP-BpE.js → cron-task-nTOpqQYf.js} +7 -7
- package/dist/flow-task-B07st2aD.js +10 -0
- package/dist/{frameView-Cudt06qS.js → frameView-Z1tPUyCh.js} +1 -1
- package/dist/index-C3q8HoJM.js +4650 -0
- package/dist/{layoutView-BlFTV2jX.js → layoutView--MGA9zUB.js} +1766 -1760
- package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
- package/dist/log-out-DiwGCg7p.js +130 -0
- package/dist/login-C6Y0ajDp.js +251 -0
- package/dist/{login-log-kqKzKTto.js → login-log-C0V-_l3F.js} +5 -3
- package/dist/{lov-view-B2HaxyMs.js → lov-view-Cmv7wZZ9.js} +6 -6
- package/dist/{menuInfo-BxCTJ1VW.js → menuInfo-UeutJpOa.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +118 -98
- package/dist/{pda-app-DPsAFNiw.js → pda-app-B6w99SJo.js} +10 -10
- package/dist/{resource-Dibb7t8u.js → resource-BybJvUv0.js} +4 -4
- package/dist/{su-welcome-DejR0KkM.js → su-welcome-C1bmxHoY.js} +119 -121
- package/dist/sys-config-BnmIDnCj.js +370 -0
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +49 -40
- package/package.json +18 -18
- package/src/App.vue +65 -65
- package/src/api/http.ts +1 -4
- package/src/api/index.ts +4 -2
- package/src/api/user.ts +2 -2
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- package/src/components/SuScrollTree/ScrollPanel.vue +1 -6
- package/src/components/udp/content/index.vue +88 -0
- package/src/components/udp/{form.vue → form/form.vue} +13 -16
- package/src/components/udp/{grid.vue → grid/index.vue} +56 -27
- package/src/components/udp/index.ts +4 -9
- package/src/components/udp/ut-stamp-badge/index.vue +271 -0
- package/src/components/udp/utils.ts +66 -105
- package/src/layout/components/lay-navbar/index.vue +8 -6
- package/src/layout/components/lay-panel/index.vue +150 -150
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/layout/components/lay-select-org/index.vue +4 -9
- package/src/layout/components/lay-setting/index.vue +503 -510
- package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
- package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -98
- package/src/layout/components/lay-tag/index.vue +24 -51
- package/src/layout/hooks/useDataThemeChange.ts +1 -1
- package/src/layout/hooks/useNav.ts +176 -173
- package/src/layout/hooks/useTag.ts +227 -233
- package/src/layout/types.ts +93 -92
- package/src/main.ts +115 -119
- package/src/plugins/i18n/en.ts +302 -302
- package/src/plugins/i18n/module/u-workflow.ts +1 -1
- package/src/plugins/i18n/zh.ts +21 -6
- package/src/plugins/vxe-table/index.ts +116 -53
- package/src/plugins/vxe-table/render.tsx +945 -956
- package/src/router/index.ts +17 -17
- package/src/router/modules/flow.ts +35 -0
- package/src/router/modules/home.ts +32 -32
- package/src/router/modules/remaining.ts +58 -58
- package/src/router/utils.ts +420 -377
- package/src/store/modules/app.ts +2 -4
- package/src/store/modules/epTheme.ts +48 -49
- package/src/store/modules/multiTags.ts +15 -14
- package/src/store/modules/permission.ts +25 -15
- package/src/store/modules/system.ts +1 -3
- package/src/style/button.scss +85 -85
- package/src/style/login.css +1 -1
- package/src/style/vxetable.scss +61 -2
- package/src/utils/dataFormat/index.ts +223 -223
- package/src/utils/index.ts +3 -1
- package/src/utils/lifecycle.ts +39 -20
- package/src/utils/propTypes.ts +1 -6
- package/src/utils/storage/index.ts +2 -2
- package/src/utils/udp/http/index.ts +24 -11
- package/src/utils/udp/http/types.d.ts +3 -10
- package/src/views/login/login-view.vue +4 -18
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/department/Department.vue +58 -58
- package/src/views/organization/department/DepartmentPanel.vue +303 -283
- package/src/views/organization/inv-org/InvOrganization.vue +22 -7
- package/src/views/organization/staff/StaffInfo.vue +127 -133
- package/src/views/organization/staff/StaffPanel.vue +162 -145
- package/src/views/system/cron/cron-task.vue +2 -12
- package/src/views/system/menu/SystemMenu.vue +185 -183
- package/src/views/system/menu/menuInfo.vue +384 -363
- package/src/views/system/role/UserInfo.vue +195 -195
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -139
- package/src/views/system/sys/sys-config.vue +69 -20
- package/src/views/system/sysUser/SysUserPanel.vue +97 -28
- package/src/views/uapp/pda/pda-app.vue +208 -208
- package/src/views/udev/coderule/code-rule.vue +132 -121
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/udev/dict/childView.vue +183 -222
- package/src/views/udev/lov/childView.vue +1 -7
- package/src/views/udev/lov/lov-view.vue +91 -91
- package/src/views/uhome/components/menu-favorite.vue +314 -331
- package/src/views/uhome/su-welcome.vue +319 -339
- package/src/views/ulogin/login.vue +325 -321
- package/src/views/upms/interface/log-in.vue +100 -106
- package/src/views/upms/interface/log-out.vue +104 -107
- package/src/views/upms/user/login-log.vue +54 -60
- package/src/views/urpt/design/DesignPanel.vue +507 -507
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +2 -4
- package/src/views/utask/flow-task.vue +18 -0
- package/types/global.d.ts +231 -236
- package/dist/InvOrganization-BVuOhzbt.js +0 -66
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js +0 -111
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-SwNbAEvW.js +0 -294
- package/dist/childView.vue_vue_type_style_index_0_lang-DWIFCX3X.js +0 -187
- package/dist/index-CKnq5xIa.js +0 -2623
- package/dist/log-out--RRncZhN.js +0 -120
- package/dist/login-CpKykfdf.js +0 -253
- package/dist/sys-config-DiySRWns.js +0 -277
- package/dist/utogether-Dct_14Zk.js +0 -182
- package/src/components/udp/count-down.vue +0 -536
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
- package/src/components/udp/form-upload.vue +0 -482
- package/src/components/udp/lov.vue +0 -388
- package/src/components/udp/modal-form.vue +0 -189
- package/src/components/udp/modal-grid.vue +0 -288
- package/src/components/udp/upload.vue +0 -423
- package/src/utils/udp/useRender.ts +0 -431
package/build/plugins.ts
CHANGED
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2022-05-26 10:25:57
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-07-26 10:31:27
|
|
6
|
-
* @Description: file content
|
|
7
|
-
*/
|
|
8
|
-
import vue from '@vitejs/plugin-vue';
|
|
9
|
-
import { viteBuildInfo } from './';
|
|
10
|
-
import svgLoader from 'vite-svg-loader';
|
|
11
|
-
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
12
|
-
import tailwindcss from '@tailwindcss/vite';
|
|
13
|
-
import { visualizer } from 'rollup-plugin-visualizer';
|
|
14
|
-
import { ViteImageOptimizer } from 'vite-plugin-image-optimizer';
|
|
15
|
-
import removeConsole from 'vite-plugin-remove-console';
|
|
16
|
-
|
|
17
|
-
export function getPluginsList() {
|
|
18
|
-
const lifecycle = process.env.npm_lifecycle_event;
|
|
19
|
-
return [
|
|
20
|
-
tailwindcss(),
|
|
21
|
-
vue(),
|
|
22
|
-
// jsx、tsx语法支持
|
|
23
|
-
vueJsx(),
|
|
24
|
-
// 线上环境删除console
|
|
25
|
-
removeConsole(),
|
|
26
|
-
viteBuildInfo(),
|
|
27
|
-
// 自定义主题
|
|
28
|
-
// svg组件化支持
|
|
29
|
-
svgLoader(),
|
|
30
|
-
ViteImageOptimizer({
|
|
31
|
-
png: { quality: 70 },
|
|
32
|
-
jpg: { quality: 70 }
|
|
33
|
-
}),
|
|
34
|
-
// 打包分析
|
|
35
|
-
lifecycle === 'report'
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
];
|
|
39
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-05-26 10:25:57
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-07-26 10:31:27
|
|
6
|
+
* @Description: file content
|
|
7
|
+
*/
|
|
8
|
+
import vue from '@vitejs/plugin-vue';
|
|
9
|
+
import { viteBuildInfo } from './';
|
|
10
|
+
import svgLoader from 'vite-svg-loader';
|
|
11
|
+
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
12
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
13
|
+
import { visualizer } from 'rollup-plugin-visualizer';
|
|
14
|
+
import { ViteImageOptimizer } from 'vite-plugin-image-optimizer';
|
|
15
|
+
import removeConsole from 'vite-plugin-remove-console';
|
|
16
|
+
|
|
17
|
+
export function getPluginsList() {
|
|
18
|
+
const lifecycle = process.env.npm_lifecycle_event;
|
|
19
|
+
return [
|
|
20
|
+
tailwindcss(),
|
|
21
|
+
vue(),
|
|
22
|
+
// jsx、tsx语法支持
|
|
23
|
+
vueJsx(),
|
|
24
|
+
// 线上环境删除console
|
|
25
|
+
removeConsole(),
|
|
26
|
+
viteBuildInfo(),
|
|
27
|
+
// 自定义主题
|
|
28
|
+
// svg组件化支持
|
|
29
|
+
svgLoader(),
|
|
30
|
+
ViteImageOptimizer({
|
|
31
|
+
png: { quality: 70 },
|
|
32
|
+
jpg: { quality: 70 }
|
|
33
|
+
}),
|
|
34
|
+
// 打包分析
|
|
35
|
+
lifecycle === 'report' ? visualizer({ open: true, brotliSize: true, filename: 'report.html' }) : (null as any)
|
|
36
|
+
];
|
|
37
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as l, openBlock as a, createStaticVNode as m, defineComponent as r, resolveComponent as F, resolveDirective as n, createVNode as f, createElementVNode as M, unref as B, withDirectives as h, createTextVNode as e, createBlock as k, withCtx as u } from "vue";
|
|
2
|
-
import { useRouter as y, useRoute as
|
|
3
|
-
import {
|
|
2
|
+
import { useRouter as y, useRoute as v } from "vue-router";
|
|
3
|
+
import { H as C } from "./index-C3q8HoJM.js";
|
|
4
4
|
const E = {
|
|
5
5
|
width: "251",
|
|
6
6
|
height: "294"
|
|
@@ -21,11 +21,11 @@ const A = { render: _ }, D = {
|
|
|
21
21
|
class: "mb-4 text-gray-500",
|
|
22
22
|
initial: { opacity: 0, y: 100 },
|
|
23
23
|
enter: { opacity: 1, y: 0, transition: { delay: 300 } }
|
|
24
|
-
},
|
|
24
|
+
}, H = /* @__PURE__ */ r({
|
|
25
25
|
__name: "403",
|
|
26
26
|
setup(c) {
|
|
27
|
-
const s = y(), i =
|
|
28
|
-
|
|
27
|
+
const s = y(), i = v(), o = () => {
|
|
28
|
+
C(i, !1), s.push("/");
|
|
29
29
|
};
|
|
30
30
|
return (V, t) => {
|
|
31
31
|
const d = F("el-button"), p = n("motion");
|
|
@@ -61,5 +61,5 @@ const A = { render: _ }, D = {
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
export {
|
|
64
|
-
|
|
64
|
+
H as default
|
|
65
65
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as l, openBlock as a, createStaticVNode as m, defineComponent as r, resolveComponent as n, resolveDirective as F, createVNode as f, createElementVNode as M, unref as v, withDirectives as p, createTextVNode as e, createBlock as B, withCtx as D } from "vue";
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import {
|
|
2
|
+
import { useRouter as k, useRoute as u } from "vue-router";
|
|
3
|
+
import { H as C } from "./index-C3q8HoJM.js";
|
|
4
4
|
const y = {
|
|
5
5
|
width: "252",
|
|
6
6
|
height: "294"
|
|
@@ -24,8 +24,8 @@ const _ = { render: E }, z = {
|
|
|
24
24
|
}, N = /* @__PURE__ */ r({
|
|
25
25
|
__name: "404",
|
|
26
26
|
setup(c) {
|
|
27
|
-
const h =
|
|
28
|
-
|
|
27
|
+
const h = k(), i = u(), o = () => {
|
|
28
|
+
C(i, !1), h.push("/");
|
|
29
29
|
};
|
|
30
30
|
return (b, t) => {
|
|
31
31
|
const d = n("el-button"), s = F("motion");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as s, openBlock as a, createStaticVNode as o, defineComponent as r, resolveComponent as F, resolveDirective as f, createVNode as n, createElementVNode as M, unref as k, withDirectives as p, createTextVNode as e, createBlock as v, withCtx as B } from "vue";
|
|
2
2
|
import { useRouter as u, useRoute as C } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { H as D } from "./index-C3q8HoJM.js";
|
|
4
4
|
const y = {
|
|
5
5
|
width: "254",
|
|
6
6
|
height: "294"
|
|
@@ -27,7 +27,7 @@ const E = { render: A }, _ = {
|
|
|
27
27
|
const h = u(), i = C(), d = () => {
|
|
28
28
|
D(i, !1), h.push("/");
|
|
29
29
|
};
|
|
30
|
-
return (
|
|
30
|
+
return (H, t) => {
|
|
31
31
|
const m = F("el-button"), l = f("motion");
|
|
32
32
|
return a(), s("div", _, [
|
|
33
33
|
n(k(E)),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as N, ref as f, reactive as B, onBeforeMount as M, resolveComponent as n, resolveDirective as A, createElementBlock as p, openBlock as _, createVNode as t, withCtx as r, withDirectives as D, createElementVNode as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { y as c } from "./index-C3q8HoJM.js";
|
|
3
3
|
import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
const E = { class: "config" }, I = { style: { position: "relative", height: "100%" } },
|
|
4
|
+
const E = { class: "config" }, I = { style: { position: "relative", height: "100%" } }, H = /* @__PURE__ */ N({
|
|
5
5
|
__name: "AuthorityInfo",
|
|
6
6
|
props: {
|
|
7
7
|
show: { type: Boolean, default: !1 },
|
|
@@ -96,5 +96,5 @@ const E = { class: "config" }, I = { style: { position: "relative", height: "100
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
H as _
|
|
100
100
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import p from "./CompanyPanel-
|
|
4
|
-
import { _ as d } from "./index-
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js";
|
|
3
|
+
import p from "./CompanyPanel-BQ_cCmDx.js";
|
|
4
|
+
import { _ as d } from "./index-C3q8HoJM.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
|
|
6
6
|
__name: "Company",
|
|
7
7
|
setup(C) {
|
|
@@ -4,7 +4,7 @@ import { VxeUI as U } from "vxe-table";
|
|
|
4
4
|
import { templateRef as R } from "@vueuse/core";
|
|
5
5
|
import { clone as z } from "xe-utils";
|
|
6
6
|
import { warnMessage as G, successMessage as H } from "@utogether/utils";
|
|
7
|
-
import {
|
|
7
|
+
import { y as J, _ as K } from "./index-C3q8HoJM.js";
|
|
8
8
|
const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
|
|
9
9
|
__name: "CompanyPanel",
|
|
10
10
|
setup(W) {
|
|
@@ -53,16 +53,16 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
|
|
|
53
53
|
if ((o = t.children) != null && o.length) return G(r("message.deletePartment"));
|
|
54
54
|
await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), b());
|
|
55
55
|
}, b = () => {
|
|
56
|
-
$.value = !0, H(r("message.operateSuccess")),
|
|
56
|
+
$.value = !0, H(r("message.operateSuccess")), I();
|
|
57
57
|
}, F = () => {
|
|
58
58
|
e.dialogFormVisible = !1, e.dataStatus = "";
|
|
59
|
-
},
|
|
59
|
+
}, I = () => {
|
|
60
60
|
e.dialogFormVisible = !1;
|
|
61
61
|
};
|
|
62
62
|
return (t, a) => {
|
|
63
|
-
const o = i("ut-button"),
|
|
63
|
+
const o = i("ut-button"), P = i("vxe-toolbar"), g = i("vxe-form-item"), q = i("vxe-form"), u = i("el-row"), A = i("vxe-checkbox"), C = i("vxe-button"), T = i("el-card");
|
|
64
64
|
return l(), E("div", O, [
|
|
65
|
-
s(
|
|
65
|
+
s(P, {
|
|
66
66
|
perfect: "",
|
|
67
67
|
class: ""
|
|
68
68
|
}, {
|
|
@@ -107,7 +107,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
|
|
|
107
107
|
], -1)),
|
|
108
108
|
s(u, null, {
|
|
109
109
|
default: d(() => [
|
|
110
|
-
s(
|
|
110
|
+
s(q, {
|
|
111
111
|
ref_key: "xForm",
|
|
112
112
|
ref: y,
|
|
113
113
|
data: e.record,
|
|
@@ -200,7 +200,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
|
|
|
200
200
|
]);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
}), se = /* @__PURE__ */ K(Q, [["__scopeId", "data-v-
|
|
203
|
+
}), se = /* @__PURE__ */ K(Q, [["__scopeId", "data-v-bc1a230e"]]);
|
|
204
204
|
export {
|
|
205
205
|
se as default
|
|
206
206
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as m, createElementVNode as n, createVNode as
|
|
2
|
-
import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import _ from "./DepartmentPanel-
|
|
4
|
-
import { _ as d } from "./index-
|
|
1
|
+
import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as m, createElementVNode as n, createVNode as a } from "vue";
|
|
2
|
+
import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js";
|
|
3
|
+
import _ from "./DepartmentPanel-BtQe7zwU.js";
|
|
4
|
+
import { _ as d } from "./index-C3q8HoJM.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ l({
|
|
6
6
|
__name: "Department",
|
|
7
7
|
setup(D) {
|
|
8
|
-
const
|
|
9
|
-
return t("active",
|
|
8
|
+
const o = e({}), r = e(!1), s = e([]);
|
|
9
|
+
return t("active", o), t("scrollPanelChange", r), t("treeList", s), (c, C) => (m(), i("div", f, [
|
|
10
10
|
n("div", u, [
|
|
11
|
-
|
|
11
|
+
a(p, {
|
|
12
12
|
title: c.$t("department"),
|
|
13
13
|
url: "/uums/department/treeDepartment",
|
|
14
14
|
"tree-otions": { children: "children", label: "deptName" }
|
|
15
15
|
}, null, 8, ["title"])
|
|
16
16
|
]),
|
|
17
17
|
n("div", h, [
|
|
18
|
-
|
|
18
|
+
a(_)
|
|
19
19
|
])
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), k = /* @__PURE__ */ d(v, [["__scopeId", "data-v-a043aab6"]]);
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
k as default
|
|
25
25
|
};
|
|
@@ -1,148 +1,178 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { templateRef as
|
|
4
|
-
import { clone as
|
|
1
|
+
import { defineComponent as U, reactive as O, inject as $, watch as R, resolveComponent as m, resolveDirective as H, createElementBlock as L, openBlock as d, createVNode as o, withDirectives as Y, createBlock as l, withCtx as c, createCommentVNode as p, unref as y, createElementVNode as s, createTextVNode as z, toDisplayString as G } from "vue";
|
|
2
|
+
import { useI18n as J } from "vue-i18n";
|
|
3
|
+
import { templateRef as K } from "@vueuse/core";
|
|
4
|
+
import { clone as Q } from "xe-utils";
|
|
5
5
|
import { t as k } from "./await-to-js.es5-BtRbN2QH.js";
|
|
6
|
-
import {
|
|
7
|
-
import { warnMessage as
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
6
|
+
import { VxeUI as T } from "vxe-table";
|
|
7
|
+
import { warnMessage as W, successMessage as X } from "@utogether/utils";
|
|
8
|
+
import { i as Z, E as b, y as ee, _ as te } from "./index-C3q8HoJM.js";
|
|
9
|
+
const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__ */ U({
|
|
10
10
|
__name: "DepartmentPanel",
|
|
11
|
-
setup(
|
|
12
|
-
const e =
|
|
11
|
+
setup(se) {
|
|
12
|
+
const e = O({
|
|
13
13
|
record: {},
|
|
14
14
|
dataList: [],
|
|
15
15
|
loading: !1,
|
|
16
16
|
dialogFormVisible: !1,
|
|
17
17
|
isChecked: !1,
|
|
18
18
|
dataStatus: ""
|
|
19
|
-
}),
|
|
19
|
+
}), D = Z().getDataDict, { t: i } = J(), u = ee(), N = {
|
|
20
20
|
deptName: [
|
|
21
21
|
{
|
|
22
22
|
required: !0,
|
|
23
|
-
message: `${
|
|
23
|
+
message: `${i("message.required")}${i("message.deptName")}`
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
deptCode: [
|
|
27
27
|
{
|
|
28
28
|
required: !0,
|
|
29
|
-
message: `${
|
|
29
|
+
message: `${i("message.required")}${i("message.deptCode")}`
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
deptType: [
|
|
33
33
|
{
|
|
34
34
|
required: !0,
|
|
35
|
-
message: `${
|
|
35
|
+
message: `${i("message.required")}${i("message.deptType")}`
|
|
36
36
|
}
|
|
37
37
|
]
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
() =>
|
|
38
|
+
}, f = $("active"), A = $("scrollPanelChange");
|
|
39
|
+
R(
|
|
40
|
+
() => f.value,
|
|
41
41
|
(a, t) => {
|
|
42
|
-
e.record =
|
|
42
|
+
e.record = f.value, a != null && a.id && (t != null && t.id) && a !== t && h("detail");
|
|
43
43
|
}
|
|
44
44
|
);
|
|
45
|
-
const
|
|
45
|
+
const F = () => {
|
|
46
46
|
var a;
|
|
47
|
-
e.dataStatus = "add", e.record = {}, e.record.parentId = (a =
|
|
48
|
-
},
|
|
49
|
-
e.dataStatus = a, e.record =
|
|
50
|
-
},
|
|
51
|
-
|
|
47
|
+
e.dataStatus = "add", e.record = {}, e.record.parentId = (a = f.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
48
|
+
}, h = (a) => {
|
|
49
|
+
e.dataStatus = a, e.record = Q(f.value, !0), e.dialogFormVisible = !0;
|
|
50
|
+
}, S = K("xForm", null), E = () => {
|
|
51
|
+
S.value.validate(async (a) => {
|
|
52
52
|
if (!a) {
|
|
53
|
-
const { record: t, dataStatus:
|
|
53
|
+
const { record: t, dataStatus: n } = e;
|
|
54
54
|
e.loading = !0;
|
|
55
|
-
const [
|
|
56
|
-
e.loading = !1,
|
|
55
|
+
const [x] = n === "add" ? await k(u.post(C, t)) : await k(u.put(C, t));
|
|
56
|
+
e.loading = !1, x || w();
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
},
|
|
59
|
+
}, P = async () => {
|
|
60
60
|
const { record: a } = e;
|
|
61
|
-
if (a.children.length) return
|
|
62
|
-
await
|
|
61
|
+
if (a.children.length) return W(i("message.deletePartment"));
|
|
62
|
+
await T.modal.confirm(i("message.tip.del")) === "confirm" && (await u.delete(C, a), w());
|
|
63
|
+
}, v = async (a) => {
|
|
64
|
+
if (await T.modal.confirm(i("message.tip.confirmSync")) === "confirm") {
|
|
65
|
+
const [n] = await k(u.post("/uums/department/syncEwDepartment", { code: a }));
|
|
66
|
+
if (n) return;
|
|
67
|
+
w();
|
|
68
|
+
}
|
|
63
69
|
}, w = () => {
|
|
64
|
-
|
|
65
|
-
},
|
|
70
|
+
A.value = !0, X(i("message.operateSuccess")), I();
|
|
71
|
+
}, q = () => {
|
|
66
72
|
e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
|
|
67
|
-
},
|
|
73
|
+
}, I = () => {
|
|
68
74
|
e.dialogFormVisible = !1;
|
|
69
75
|
};
|
|
70
76
|
return (a, t) => {
|
|
71
|
-
const
|
|
72
|
-
return
|
|
73
|
-
|
|
77
|
+
const n = m("ut-button"), x = m("vxe-toolbar"), _ = m("vxe-form-item"), V = m("vxe-form"), g = m("el-row"), j = m("vxe-checkbox"), B = m("el-card"), M = H("spinning");
|
|
78
|
+
return d(), L("div", ae, [
|
|
79
|
+
o(x, {
|
|
74
80
|
perfect: "",
|
|
75
81
|
class: ""
|
|
76
82
|
}, {
|
|
77
|
-
buttons:
|
|
78
|
-
n
|
|
83
|
+
buttons: c(() => [
|
|
84
|
+
o(n, {
|
|
79
85
|
status: "u-cyan",
|
|
80
86
|
icon: "ri-add-line",
|
|
81
87
|
content: "add",
|
|
82
|
-
|
|
88
|
+
auth: "add",
|
|
89
|
+
onTap: t[0] || (t[0] = (r) => F())
|
|
83
90
|
}),
|
|
84
|
-
|
|
91
|
+
y(b)("wechat") ? (d(), l(n, {
|
|
92
|
+
key: 0,
|
|
93
|
+
status: "success",
|
|
94
|
+
icon: "ri-refresh-line",
|
|
95
|
+
content: "sync",
|
|
96
|
+
onTap: t[1] || (t[1] = (r) => v("wechat"))
|
|
97
|
+
})) : p("", !0),
|
|
98
|
+
y(b)("dingding") ? (d(), l(n, {
|
|
99
|
+
key: 1,
|
|
100
|
+
status: "success",
|
|
101
|
+
icon: "ri-refresh-line",
|
|
102
|
+
content: "sync",
|
|
103
|
+
onTap: t[2] || (t[2] = (r) => v("dingding"))
|
|
104
|
+
})) : p("", !0),
|
|
105
|
+
y(b)("OA") ? (d(), l(n, {
|
|
106
|
+
key: 2,
|
|
107
|
+
status: "success",
|
|
108
|
+
icon: "ri-refresh-line",
|
|
109
|
+
content: "sync",
|
|
110
|
+
onTap: t[3] || (t[3] = (r) => v("OA"))
|
|
111
|
+
})) : p("", !0),
|
|
112
|
+
o(n, {
|
|
85
113
|
status: "primary",
|
|
86
114
|
icon: "ri-edit-box-line",
|
|
115
|
+
auth: "edit",
|
|
87
116
|
content: "edit",
|
|
88
|
-
onTap: t[
|
|
117
|
+
onTap: t[4] || (t[4] = (r) => h("update"))
|
|
89
118
|
}),
|
|
90
|
-
n
|
|
119
|
+
o(n, {
|
|
91
120
|
status: "danger",
|
|
92
121
|
icon: "ri-close-fill",
|
|
122
|
+
auth: "del",
|
|
93
123
|
content: "delete",
|
|
94
|
-
onTap: t[
|
|
124
|
+
onTap: t[5] || (t[5] = (r) => P())
|
|
95
125
|
})
|
|
96
126
|
]),
|
|
97
127
|
_: 1
|
|
98
128
|
}),
|
|
99
|
-
e.dialogFormVisible ?
|
|
129
|
+
e.dialogFormVisible ? Y((d(), l(g, {
|
|
100
130
|
key: 0,
|
|
101
131
|
type: "flex",
|
|
102
132
|
justify: "center",
|
|
103
133
|
align: "middle",
|
|
104
134
|
class: "w-departInfo-wrapper"
|
|
105
135
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
|
|
136
|
+
default: c(() => [
|
|
137
|
+
o(B, {
|
|
108
138
|
width: "60%",
|
|
109
139
|
shadow: "always",
|
|
110
140
|
class: "box-card w-card-wrapper"
|
|
111
141
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
t[
|
|
142
|
+
default: c(() => [
|
|
143
|
+
t[7] || (t[7] = s("div", { class: "clearfix" }, [
|
|
114
144
|
s("span", { class: "w-card-title" })
|
|
115
145
|
], -1)),
|
|
116
|
-
|
|
117
|
-
default:
|
|
118
|
-
|
|
146
|
+
o(g, null, {
|
|
147
|
+
default: c(() => [
|
|
148
|
+
o(V, {
|
|
119
149
|
ref_key: "xForm",
|
|
120
|
-
ref:
|
|
150
|
+
ref: S,
|
|
121
151
|
data: e.record,
|
|
122
|
-
rules:
|
|
152
|
+
rules: N,
|
|
123
153
|
"label-width": "90px"
|
|
124
154
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
var
|
|
155
|
+
default: c(() => {
|
|
156
|
+
var r;
|
|
127
157
|
return [
|
|
128
|
-
|
|
158
|
+
o(_, {
|
|
129
159
|
title: a.$t("message.deptName"),
|
|
130
160
|
field: "deptName",
|
|
131
161
|
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
132
162
|
span: 24
|
|
133
163
|
}, null, 8, ["title", "item-render"]),
|
|
134
|
-
|
|
164
|
+
o(_, {
|
|
135
165
|
title: a.$t("message.deptCode"),
|
|
136
166
|
field: "deptCode",
|
|
137
167
|
"item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
|
|
138
168
|
span: 24
|
|
139
169
|
}, null, 8, ["title", "item-render"]),
|
|
140
|
-
|
|
170
|
+
o(_, {
|
|
141
171
|
title: a.$t("message.deptType"),
|
|
142
172
|
field: "deptType",
|
|
143
173
|
"item-render": {
|
|
144
174
|
name: "$select",
|
|
145
|
-
options: (
|
|
175
|
+
options: (r = y(D)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
|
|
146
176
|
optionProps: { label: "dictName", value: "dictCode" },
|
|
147
177
|
props: { disabled: e.dataStatus === "detail" }
|
|
148
178
|
},
|
|
@@ -155,34 +185,34 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
155
185
|
]),
|
|
156
186
|
_: 1
|
|
157
187
|
}),
|
|
158
|
-
|
|
188
|
+
o(g, {
|
|
159
189
|
type: "flex",
|
|
160
190
|
justify: "center"
|
|
161
191
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
e.dataStatus === "add" ? (
|
|
192
|
+
default: c(() => [
|
|
193
|
+
e.dataStatus === "add" ? (d(), l(j, {
|
|
164
194
|
key: 0,
|
|
165
195
|
modelValue: e.isChecked,
|
|
166
|
-
"onUpdate:modelValue": t[
|
|
196
|
+
"onUpdate:modelValue": t[6] || (t[6] = (r) => e.isChecked = r),
|
|
167
197
|
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
168
198
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
|
|
199
|
+
default: c(() => [
|
|
200
|
+
z(G(a.$t("message.udp.continueAdd")), 1)
|
|
171
201
|
]),
|
|
172
202
|
_: 1
|
|
173
|
-
}, 8, ["modelValue"])) :
|
|
174
|
-
e.dataStatus !== "detail" ? (
|
|
203
|
+
}, 8, ["modelValue"])) : p("", !0),
|
|
204
|
+
e.dataStatus !== "detail" ? (d(), l(n, {
|
|
175
205
|
key: 1,
|
|
176
206
|
status: "primary",
|
|
177
207
|
content: "confirm",
|
|
178
|
-
onTap:
|
|
179
|
-
})) :
|
|
180
|
-
e.dataStatus !== "detail" ? (
|
|
208
|
+
onTap: E
|
|
209
|
+
})) : p("", !0),
|
|
210
|
+
e.dataStatus !== "detail" ? (d(), l(n, {
|
|
181
211
|
key: 2,
|
|
182
212
|
status: "warning",
|
|
183
213
|
content: "cancel",
|
|
184
|
-
onClick:
|
|
185
|
-
})) :
|
|
214
|
+
onClick: q
|
|
215
|
+
})) : p("", !0)
|
|
186
216
|
]),
|
|
187
217
|
_: 1
|
|
188
218
|
})
|
|
@@ -192,17 +222,17 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
192
222
|
]),
|
|
193
223
|
_: 1
|
|
194
224
|
})), [
|
|
195
|
-
[
|
|
196
|
-
]) : (
|
|
225
|
+
[M, e.loading]
|
|
226
|
+
]) : (d(), l(g, {
|
|
197
227
|
key: 1,
|
|
198
228
|
class: "w-noclick-wrapper"
|
|
199
229
|
}, {
|
|
200
|
-
default:
|
|
230
|
+
default: c(() => t[8] || (t[8] = [
|
|
201
231
|
s("div", { class: "w-content-wrapper" }, [
|
|
202
232
|
s("ul", null, [
|
|
203
233
|
s("li", { class: "w-department-line" }, [
|
|
204
234
|
s("div", null, "● 点击新建,新建部门信息。"),
|
|
205
|
-
s("div", { style: { margin: "0", "text-indent": "2em" } }, "
|
|
235
|
+
s("div", { style: { margin: "0", "text-indent": "2em" } }, "已点击树结构上的部门名称,默认创建为当前部门的下属部门"),
|
|
206
236
|
s("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的部门名称,则创建为一级部门")
|
|
207
237
|
]),
|
|
208
238
|
s("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
|
|
@@ -218,7 +248,7 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
218
248
|
]);
|
|
219
249
|
};
|
|
220
250
|
}
|
|
221
|
-
}),
|
|
251
|
+
}), ue = /* @__PURE__ */ te(ne, [["__scopeId", "data-v-fd45e915"]]);
|
|
222
252
|
export {
|
|
223
|
-
|
|
253
|
+
ue as default
|
|
224
254
|
};
|
|
@@ -3,8 +3,8 @@ import { VxeUI as O } from "vxe-pc-ui";
|
|
|
3
3
|
import { useGlobal as ut } from "@utogether/utils";
|
|
4
4
|
import { t as mt } from "./await-to-js.es5-BtRbN2QH.js";
|
|
5
5
|
import { clone as ft } from "xe-utils";
|
|
6
|
-
import {
|
|
7
|
-
import vt from "./Preview-
|
|
6
|
+
import { i as gt, y as yt } from "./index-C3q8HoJM.js";
|
|
7
|
+
import vt from "./Preview-CLpUUMay.js";
|
|
8
8
|
const xt = {
|
|
9
9
|
panels: [
|
|
10
10
|
{
|
|
@@ -507,11 +507,11 @@ const xt = {
|
|
|
507
507
|
const [E, _] = await mt(W.put("/urpt/v1/printTemplate", [t]));
|
|
508
508
|
v.value = !1, E || (T.value = "", m.value = _[0]), n && n();
|
|
509
509
|
}, P = () => {
|
|
510
|
-
|
|
511
|
-
},
|
|
510
|
+
F("onClose");
|
|
511
|
+
}, F = B, A = (n) => {
|
|
512
512
|
let t = h.value;
|
|
513
513
|
n === "Y" ? (t += 0.1, t > h.max && (t = 5)) : (t -= 0.1, t < h.min && (t = 0.5)), s && (s.zoom(t), h.value = t, h.ration = `${(t * 100).toFixed(0)}%`);
|
|
514
|
-
},
|
|
514
|
+
}, q = async () => {
|
|
515
515
|
await O.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
|
|
516
516
|
}, L = async () => {
|
|
517
517
|
y.value = !0;
|
|
@@ -674,7 +674,7 @@ const xt = {
|
|
|
674
674
|
icon: "ri-delete-bin-5-fill",
|
|
675
675
|
content: "repaint",
|
|
676
676
|
auth: "repaint",
|
|
677
|
-
onTap: t[10] || (t[10] = (o) =>
|
|
677
|
+
onTap: t[10] || (t[10] = (o) => q())
|
|
678
678
|
})
|
|
679
679
|
]),
|
|
680
680
|
e("div", null, [
|