@utogether/udp-core 1.0.0 → 1.0.1-beta.10
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 +39 -26
- package/dist/{403-B1R-4vXw.js → 403-Ctxjn4q8.js} +9 -8
- package/dist/{404-fXPl8csw.js → 404-W5yzyiZ9.js} +15 -14
- package/dist/{500-eI5842YB.js → 500-DXuGEOm4.js} +11 -10
- package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-C2tflCt8.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js +100 -0
- package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
- package/dist/{Company-CYC9Avfz.js → Company-PLez5GoH.js} +3 -3
- package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-CIGaQooL.js} +20 -20
- package/dist/{Department-B4BNSiYx.js → Department-B9wLsXFm.js} +3 -3
- package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-DSM4lTaz.js} +23 -23
- package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-B6a9wW_A.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js} +28 -30
- package/dist/DictView-DhFbQxdJ.js +110 -0
- package/dist/{InvOrganization-MuM2jtsG.js → InvOrganization-D90AbR3b.js} +2 -2
- package/dist/Org-DxBkYabD.js +39 -0
- package/dist/{Preview-CRyiwUIR.js → Preview-BFtRpBxw.js} +1 -1
- package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-BIa2QryC.js} +1 -1
- package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-CnyjI-WD.js} +44 -44
- package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-BiK7yEhV.js} +5 -5
- package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-C2rqdFTm.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js} +6 -5
- package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-DdkLscP3.js} +30 -30
- package/dist/{Role-BwTV2QMH.js → Role-BrsxgK8D.js} +6 -6
- package/dist/{RoleAssign-De1JjOun.js → RoleAssign-DiqwJqDa.js} +8 -8
- package/dist/{RolePanel-pUBXsqCM.js → RolePanel-BDusGyo7.js} +1 -1
- package/dist/{RolePanel-E3RcdByM.js → RolePanel-Dqx5dI3f.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js} +40 -34
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js} +23 -23
- package/dist/{Staff-Czm7A8vI.js → Staff-Cwi9LQiZ.js} +3 -3
- package/dist/StaffInfo-XjVtyaMv.js +4 -0
- package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js} +16 -16
- package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-C-wYcFdv.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js} +46 -49
- package/dist/{SysUser-BGwbttRn.js → SysUser-O4tvr-Ur.js} +2 -2
- package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-B853docZ.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js +294 -0
- package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-CXR6mrXr.js} +52 -50
- package/dist/{UserInfo-BsyAcT2d.js → UserInfo-BkP8pE2a.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js} +38 -36
- package/dist/{childView-CyuLTUqC.js → childView-D0HwbgDT.js} +1 -1
- package/dist/{childView-CF83nhxb.js → childView-TRqUkSDC.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js} +43 -43
- package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js} +1 -1
- package/dist/{code-rule-Bz-gnktN.js → code-rule-BV7PQWhK.js} +13 -14
- package/dist/core.es.js +13 -10
- package/dist/{cron-task-CIifSUdW.js → cron-task-9ZS9bi7K.js} +11 -11
- package/dist/{frameView-_d2mqjjQ.js → frameView-DE83AN50.js} +15 -14
- package/dist/img/l_img.svg +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/index-DVARtten.js +2623 -0
- package/dist/{layoutView-DLKVepB8.js → layoutView-D1U-c4By.js} +730 -724
- package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
- package/dist/{login-LREiDfFU.js → login-sPCEiTGT.js} +107 -113
- package/dist/{lov-view-DDrIVILB.js → lov-view-76NcYTYl.js} +5 -5
- package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-CxjfjFpm.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js} +98 -95
- package/dist/pda-app-BUH16bLj.js +710 -0
- package/dist/redirect-BqegffKC.js +15 -0
- package/dist/{resource-BCwx9fEv.js → resource-CCuHzoA6.js} +18 -18
- package/dist/{su-welcome-189A7N4r.js → su-welcome-mRArONsd.js} +133 -133
- package/dist/{sys-config-BZ3sejow.js → sys-config-Cvt05yF6.js} +21 -21
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-r08LNiIZ.js → utogether-Dm_VBQHR.js} +6 -6
- package/index.ts +40 -36
- package/package.json +4 -2
- package/src/App.vue +65 -70
- package/src/api/index.ts +1 -1
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
- package/src/components/udp/count-down.vue +536 -0
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
- package/src/components/udp/form-upload.vue +482 -0
- package/src/components/udp/form.vue +112 -0
- package/src/components/udp/grid.vue +495 -0
- package/src/components/udp/index.ts +10 -0
- package/src/components/udp/lov.vue +388 -0
- package/src/components/udp/modal-form.vue +189 -0
- package/src/components/udp/modal-grid.vue +288 -0
- package/src/components/udp/upload.vue +423 -0
- package/src/components/udp/utils.ts +447 -0
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +1 -1
- 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-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-tag/index.vue +625 -625
- package/src/layout/layoutView.vue +215 -215
- package/src/main.ts +25 -14
- package/src/plugins/i18n/en.ts +302 -289
- package/src/plugins/i18n/zh.ts +348 -337
- package/src/plugins/vxe-table/index.ts +53 -46
- package/src/plugins/vxe-table/render.tsx +956 -397
- package/src/router/index.ts +187 -183
- package/src/router/modules/remaining.ts +58 -83
- package/src/style/button.scss +85 -78
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +44 -11
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/{http → udp/http}/index.ts +8 -24
- package/src/utils/{http → udp/http}/types.d.ts +8 -5
- package/src/utils/udp/useRender.ts +431 -0
- package/src/views/login/login-view.vue +2 -2
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/inv-org/InvOrganization.vue +1 -1
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/organization/staff/StaffInfo.vue +0 -30
- package/src/views/organization/staff/StaffPanel.vue +4 -3
- package/src/views/system/menu/AuthorityPanel.vue +2 -2
- package/src/views/system/menu/SystemMenu.vue +183 -191
- package/src/views/system/menu/menuInfo.vue +363 -368
- package/src/views/system/role/AuthorityInfo.vue +19 -33
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +195 -193
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sys/sys-config.vue +1 -1
- package/src/views/system/sysUser/SysUserPanel.vue +278 -278
- package/src/views/uapp/pda/pda-app.vue +208 -176
- package/src/views/udev/dict/DictView.vue +118 -106
- package/src/views/udev/dict/childView.vue +7 -7
- package/src/views/udev/lov/lov-view.vue +91 -91
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/components/menu-favorite.vue +1 -1
- package/src/views/uhome/su-welcome.vue +4 -4
- package/src/views/ulogin/login.vue +15 -10
- package/src/views/upms/user/login-log.vue +1 -1
- package/src/views/urpt/design/DesignPanel.vue +507 -526
- package/src/views/urpt/design/ReportDesign.vue +15 -19
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/types/global.d.ts +2 -2
- package/vite.config.ts +13 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js +0 -102
- package/dist/DictView-bIS5-rK-.js +0 -95
- package/dist/Org-kXHSjsgJ.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js +0 -126
- package/dist/StaffInfo-DJzvBuxy.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js +0 -289
- package/dist/core.umd.js +0 -173
- package/dist/index-BKIw8tSn.js +0 -9195
- package/dist/pda-app-CRhVGijN.js +0 -2209
- package/dist/redirect-DiaNDu8F.js +0 -15
- package/src/assets/images/empty.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/components/ReCountTo/README.md +0 -2
- package/src/components/ReCountTo/index.ts +0 -18
- package/src/components/ReCountTo/src/normal/index.tsx +0 -165
- package/src/components/ReCountTo/src/normal/props.ts +0 -37
- package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
- package/src/components/ReCountTo/src/rebound/props.ts +0 -14
- package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
- package/src/components/ReCropper/index.ts +0 -14
- package/src/components/ReCropper/src/index.tsx +0 -141
- package/src/components/ReFlicker/index.css +0 -39
- package/src/components/ReFlicker/index.ts +0 -50
- package/src/components/ReFlop/index.ts +0 -14
- package/src/components/ReFlop/src/Filpper.tsx +0 -99
- package/src/components/ReFlop/src/filpper.css +0 -184
- package/src/components/ReFlop/src/index.vue +0 -126
- package/src/components/ReFlowChart/index.ts +0 -24
- package/src/components/ReFlowChart/src/Control.vue +0 -139
- package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
- package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
- package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/components/ReFlowChart/src/config.ts +0 -62
- package/src/components/ReSplitPane/index.css +0 -49
- package/src/components/ReSplitPane/index.tsx +0 -119
- package/src/components/ReSplitPane/resizer.css +0 -45
- package/src/components/ReSplitPane/resizer.tsx +0 -30
- package/src/components/SuCommon/card/components/Card.vue +0 -148
- package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
- package/src/components/SuCommon/card/index.vue +0 -142
- package/src/components/SuCommon/icon-select/index.vue +0 -241
- package/src/components/SuCommon/table/index.vue +0 -208
- package/src/components/SuCommon/utils/index.ts +0 -103
- package/src/components/SuCommon/utils/slot.tsx +0 -50
- package/src/views/components/contextmenu/basic.vue +0 -74
- package/src/views/components/contextmenu/context-menu.vue +0 -40
- package/src/views/components/contextmenu/menuDynamic.vue +0 -99
- package/src/views/components/contextmenu/menuGroup.vue +0 -71
- package/src/views/components/count-to/index.vue +0 -43
- package/src/views/components/cropping/index.vue +0 -59
- package/src/views/components/cropping/picture.jpeg +0 -0
- package/src/views/components/split-pane/index.vue +0 -82
- package/src/views/components/video/index.vue +0 -57
|
@@ -5,7 +5,7 @@ import { clone as G } from "xe-utils";
|
|
|
5
5
|
import { t as k } from "./await-to-js.es5-BtRbN2QH.js";
|
|
6
6
|
import { VXETable as J } from "vxe-table";
|
|
7
7
|
import { warnMessage as K, successMessage as O } from "@utogether/utils";
|
|
8
|
-
import {
|
|
8
|
+
import { e as Q, q as W, _ as Z } from "./index-DVARtten.js";
|
|
9
9
|
const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__ */ V({
|
|
10
10
|
__name: "DepartmentPanel",
|
|
11
11
|
setup(ae) {
|
|
@@ -47,20 +47,20 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
47
47
|
e.dataStatus = "add", e.record = {}, e.record.parentId = (a = p.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
48
48
|
}, x = (a) => {
|
|
49
49
|
e.dataStatus = a, e.record = G(p.value, !0), e.dialogFormVisible = !0;
|
|
50
|
-
},
|
|
51
|
-
|
|
50
|
+
}, b = z("xForm", null), D = () => {
|
|
51
|
+
b.value.validate(async (a) => {
|
|
52
52
|
if (!a) {
|
|
53
|
-
const { record: t, dataStatus:
|
|
53
|
+
const { record: t, dataStatus: r } = e;
|
|
54
54
|
e.loading = !0;
|
|
55
|
-
const [g] =
|
|
56
|
-
e.loading = !1, g ||
|
|
55
|
+
const [g] = r === "add" ? await k(f.post(y, t)) : await k(f.put(y, t));
|
|
56
|
+
e.loading = !1, g || w();
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}, N = async () => {
|
|
60
60
|
const { record: a } = e;
|
|
61
61
|
if (a.children.length) return K(o("message.deletePartment"));
|
|
62
|
-
await J.modal.confirm(o("message.tip.del")) === "confirm" && (await f.delete(y, a),
|
|
63
|
-
},
|
|
62
|
+
await J.modal.confirm(o("message.tip.del")) === "confirm" && (await f.delete(y, a), w());
|
|
63
|
+
}, w = () => {
|
|
64
64
|
h.value = !0, O(o("message.operateSuccess")), P();
|
|
65
65
|
}, F = () => {
|
|
66
66
|
e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
|
|
@@ -68,30 +68,30 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
68
68
|
e.dialogFormVisible = !1;
|
|
69
69
|
};
|
|
70
70
|
return (a, t) => {
|
|
71
|
-
const
|
|
71
|
+
const r = l("ut-button"), g = l("vxe-toolbar"), v = l("vxe-form-item"), q = l("vxe-form"), u = l("el-row"), E = l("vxe-checkbox"), A = l("el-card"), I = M("spinning");
|
|
72
72
|
return c(), R("div", ee, [
|
|
73
73
|
n(g, {
|
|
74
74
|
perfect: "",
|
|
75
75
|
class: ""
|
|
76
76
|
}, {
|
|
77
77
|
buttons: d(() => [
|
|
78
|
-
n(
|
|
78
|
+
n(r, {
|
|
79
79
|
status: "u-cyan",
|
|
80
80
|
icon: "ri-add-line",
|
|
81
81
|
content: "add",
|
|
82
|
-
onTap: t[0] || (t[0] = (
|
|
82
|
+
onTap: t[0] || (t[0] = (i) => T())
|
|
83
83
|
}),
|
|
84
|
-
n(
|
|
84
|
+
n(r, {
|
|
85
85
|
status: "primary",
|
|
86
86
|
icon: "ri-edit-box-line",
|
|
87
87
|
content: "edit",
|
|
88
|
-
onTap: t[1] || (t[1] = (
|
|
88
|
+
onTap: t[1] || (t[1] = (i) => x("update"))
|
|
89
89
|
}),
|
|
90
|
-
n(
|
|
90
|
+
n(r, {
|
|
91
91
|
status: "danger",
|
|
92
92
|
icon: "ri-close-fill",
|
|
93
93
|
content: "delete",
|
|
94
|
-
onTap: t[2] || (t[2] = (
|
|
94
|
+
onTap: t[2] || (t[2] = (i) => N())
|
|
95
95
|
})
|
|
96
96
|
]),
|
|
97
97
|
_: 1
|
|
@@ -115,15 +115,15 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
115
115
|
], -1)),
|
|
116
116
|
n(u, null, {
|
|
117
117
|
default: d(() => [
|
|
118
|
-
n(
|
|
118
|
+
n(q, {
|
|
119
119
|
ref_key: "xForm",
|
|
120
|
-
ref:
|
|
120
|
+
ref: b,
|
|
121
121
|
data: e.record,
|
|
122
122
|
rules: $,
|
|
123
123
|
"label-width": "90px"
|
|
124
124
|
}, {
|
|
125
125
|
default: d(() => {
|
|
126
|
-
var
|
|
126
|
+
var i;
|
|
127
127
|
return [
|
|
128
128
|
n(v, {
|
|
129
129
|
title: a.$t("message.deptName"),
|
|
@@ -142,7 +142,7 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
142
142
|
field: "deptType",
|
|
143
143
|
"item-render": {
|
|
144
144
|
name: "$select",
|
|
145
|
-
options: (
|
|
145
|
+
options: (i = H(S)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : i.children,
|
|
146
146
|
optionProps: { label: "dictName", value: "dictCode" },
|
|
147
147
|
props: { disabled: e.dataStatus === "detail" }
|
|
148
148
|
},
|
|
@@ -160,10 +160,10 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
160
160
|
justify: "center"
|
|
161
161
|
}, {
|
|
162
162
|
default: d(() => [
|
|
163
|
-
e.dataStatus === "add" ? (c(), m(
|
|
163
|
+
e.dataStatus === "add" ? (c(), m(E, {
|
|
164
164
|
key: 0,
|
|
165
165
|
modelValue: e.isChecked,
|
|
166
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
166
|
+
"onUpdate:modelValue": t[3] || (t[3] = (i) => e.isChecked = i),
|
|
167
167
|
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
168
168
|
}, {
|
|
169
169
|
default: d(() => [
|
|
@@ -171,13 +171,13 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
|
|
|
171
171
|
]),
|
|
172
172
|
_: 1
|
|
173
173
|
}, 8, ["modelValue"])) : _("", !0),
|
|
174
|
-
e.dataStatus !== "detail" ? (c(), m(
|
|
174
|
+
e.dataStatus !== "detail" ? (c(), m(r, {
|
|
175
175
|
key: 1,
|
|
176
176
|
status: "primary",
|
|
177
177
|
content: "confirm",
|
|
178
178
|
onTap: D
|
|
179
179
|
})) : _("", !0),
|
|
180
|
-
e.dataStatus !== "detail" ? (c(), m(
|
|
180
|
+
e.dataStatus !== "detail" ? (c(), m(r, {
|
|
181
181
|
key: 2,
|
|
182
182
|
status: "warning",
|
|
183
183
|
content: "cancel",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as it, ref as f, reactive as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as it, ref as f, reactive as M, onMounted as ot, onBeforeUnmount as nt, resolveComponent as r, resolveDirective as pt, withDirectives as at, createElementBlock as N, openBlock as w, createVNode as l, createBlock as S, createCommentVNode as H, withCtx as i, createElementVNode as e, Fragment as rt, renderList as st, unref as dt, toDisplayString as D, withModifiers as ct, createTextVNode as U, nextTick as ht } from "vue";
|
|
2
|
+
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 { e as gt, q as yt } from "./index-DVARtten.js";
|
|
7
|
+
import vt from "./Preview-BFtRpBxw.js";
|
|
8
8
|
const xt = {
|
|
9
9
|
panels: [
|
|
10
10
|
{
|
|
@@ -490,11 +490,11 @@ const xt = {
|
|
|
490
490
|
},
|
|
491
491
|
emits: ["onClose"],
|
|
492
492
|
setup(J, { emit: B }) {
|
|
493
|
-
const
|
|
493
|
+
const I = J;
|
|
494
494
|
let { $printPlugin: u } = ut();
|
|
495
|
-
const
|
|
495
|
+
const R = gt().getDataDict, W = yt();
|
|
496
496
|
let s = null;
|
|
497
|
-
const C = f(!1), g = f(!1), y = f(!1), v = f(!1), z = f(null), T = f(""), m = f({}), d =
|
|
497
|
+
const C = f(!1), g = f(!1), y = f(!1), v = f(!1), z = f(null), T = f(""), m = f({}), d = M({}), h = M({ max: 5, min: 0.5, value: 1, ration: "100%" }), j = () => {
|
|
498
498
|
g.value = !1, s.setPaper(d.width || 210, d.height || 296.6);
|
|
499
499
|
}, V = async (n) => {
|
|
500
500
|
const t = m.value;
|
|
@@ -507,29 +507,29 @@ 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
|
+
q("onClose");
|
|
511
|
+
}, q = 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
|
-
},
|
|
515
|
-
await
|
|
514
|
+
}, F = async () => {
|
|
515
|
+
await O.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
|
|
516
516
|
}, L = async () => {
|
|
517
517
|
y.value = !0;
|
|
518
518
|
}, Y = async () => {
|
|
519
|
-
await
|
|
519
|
+
await O.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (V(P), y.value = !1);
|
|
520
520
|
}, G = async () => {
|
|
521
521
|
C.value = !0;
|
|
522
522
|
const n = {};
|
|
523
523
|
ht(() => {
|
|
524
524
|
z.value.show(s, n, d.width || 220);
|
|
525
525
|
});
|
|
526
|
-
},
|
|
526
|
+
}, K = (n) => {
|
|
527
527
|
if (n !== "customize") {
|
|
528
|
-
const { width: t, height: p } =
|
|
528
|
+
const { width: t, height: p } = Q(n);
|
|
529
529
|
d.width = t, d.height = p, s.setPaper(d.width, d.height);
|
|
530
530
|
} else
|
|
531
531
|
g.value = !0;
|
|
532
|
-
},
|
|
532
|
+
}, Q = (n) => ({
|
|
533
533
|
A3: { width: 420, height: 296.6 },
|
|
534
534
|
A4: { width: 210, height: 296.6 },
|
|
535
535
|
A5: { width: 210, height: 147.6 },
|
|
@@ -537,7 +537,7 @@ const xt = {
|
|
|
537
537
|
trisection: { width: 241, height: 93 }
|
|
538
538
|
})[n];
|
|
539
539
|
return ot(() => {
|
|
540
|
-
const { record: n } =
|
|
540
|
+
const { record: n } = I;
|
|
541
541
|
v.value = !0, m.value = ft(n, !0);
|
|
542
542
|
const t = n.templateContent ? JSON.parse(n.templateContent) : xt;
|
|
543
543
|
$("#hiprint-printTemplate").empty(), u.print.init({
|
|
@@ -560,7 +560,7 @@ const xt = {
|
|
|
560
560
|
}), nt(() => {
|
|
561
561
|
u = null, s = null;
|
|
562
562
|
}), (n, t) => {
|
|
563
|
-
const p = r("ut-button"), E = r("el-option"), _ = r("el-select"), x = r("vxe-input"),
|
|
563
|
+
const p = r("ut-button"), E = r("el-option"), _ = r("el-select"), x = r("vxe-input"), X = r("el-popover"), k = r("vxe-button"), Z = r("el-space"), c = r("el-row"), a = r("el-col"), b = r("el-card"), tt = r("vxe-textarea"), et = r("vxe-modal"), lt = pt("spinning");
|
|
564
564
|
return at((w(), N("div", wt, [
|
|
565
565
|
l(b, { class: "design-panel-contain" }, {
|
|
566
566
|
default: i(() => [
|
|
@@ -583,10 +583,10 @@ const xt = {
|
|
|
583
583
|
placeholder: "Select Paper",
|
|
584
584
|
class: "ml-1 mr-1",
|
|
585
585
|
style: { width: "100px !important" },
|
|
586
|
-
onChange: t[1] || (t[1] = (o) =>
|
|
586
|
+
onChange: t[1] || (t[1] = (o) => K(m.value.paperType))
|
|
587
587
|
}, {
|
|
588
588
|
default: i(() => [
|
|
589
|
-
(w(!0), N(rt, null, st(dt(
|
|
589
|
+
(w(!0), N(rt, null, st(dt(R)["SU.PRINT.PAPER"].children, (o) => (w(), S(E, {
|
|
590
590
|
key: o.dictCode,
|
|
591
591
|
label: o.dictName,
|
|
592
592
|
value: o.dictCode
|
|
@@ -600,7 +600,7 @@ const xt = {
|
|
|
600
600
|
]),
|
|
601
601
|
_: 1
|
|
602
602
|
}, 8, ["modelValue"]),
|
|
603
|
-
m.value.paperType === "customize" ? (w(), S(
|
|
603
|
+
m.value.paperType === "customize" ? (w(), S(X, {
|
|
604
604
|
key: 0,
|
|
605
605
|
visible: g.value,
|
|
606
606
|
"onUpdate:visible": t[5] || (t[5] = (o) => g.value = o),
|
|
@@ -614,7 +614,7 @@ const xt = {
|
|
|
614
614
|
l(p, {
|
|
615
615
|
icon: "ri-font-size",
|
|
616
616
|
content: "customSize",
|
|
617
|
-
|
|
617
|
+
onTap: t[4] || (t[4] = ct((o) => g.value = !0, ["stop"]))
|
|
618
618
|
})
|
|
619
619
|
]),
|
|
620
620
|
default: i(() => [
|
|
@@ -652,7 +652,7 @@ const xt = {
|
|
|
652
652
|
auth: "import",
|
|
653
653
|
onTap: t[6] || (t[6] = (o) => L())
|
|
654
654
|
}),
|
|
655
|
-
l(
|
|
655
|
+
l(k, {
|
|
656
656
|
icon: "ri-indeterminate-circle-line ",
|
|
657
657
|
class: "design-custom-button",
|
|
658
658
|
onClick: t[7] || (t[7] = (o) => A("N"))
|
|
@@ -664,7 +664,7 @@ const xt = {
|
|
|
664
664
|
align: "center",
|
|
665
665
|
style: { width: "70px", "margin-left": "10px" }
|
|
666
666
|
}, null, 8, ["modelValue"]),
|
|
667
|
-
l(
|
|
667
|
+
l(k, {
|
|
668
668
|
icon: "ri-add-circle-fill ",
|
|
669
669
|
class: "design-custom-button",
|
|
670
670
|
onClick: t[9] || (t[9] = (o) => A("Y"))
|
|
@@ -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) => F())
|
|
678
678
|
})
|
|
679
679
|
]),
|
|
680
680
|
e("div", null, [
|
|
@@ -710,7 +710,7 @@ const xt = {
|
|
|
710
710
|
default: i(() => [
|
|
711
711
|
l(c, { class: "drag_item_title" }, {
|
|
712
712
|
default: i(() => t[17] || (t[17] = [
|
|
713
|
-
|
|
713
|
+
U("拖拽组件列表")
|
|
714
714
|
])),
|
|
715
715
|
_: 1
|
|
716
716
|
}),
|
|
@@ -738,8 +738,7 @@ const xt = {
|
|
|
738
738
|
}),
|
|
739
739
|
l(a, {
|
|
740
740
|
span: 12,
|
|
741
|
-
class: "drag_item_box"
|
|
742
|
-
tid: "defaultModule.text"
|
|
741
|
+
class: "drag_item_box"
|
|
743
742
|
}, {
|
|
744
743
|
default: i(() => t[19] || (t[19] = [
|
|
745
744
|
e("div", null, [
|
|
@@ -785,8 +784,7 @@ const xt = {
|
|
|
785
784
|
}),
|
|
786
785
|
l(a, {
|
|
787
786
|
span: 12,
|
|
788
|
-
class: "drag_item_box"
|
|
789
|
-
tid: "defaultModule.text"
|
|
787
|
+
class: "drag_item_box"
|
|
790
788
|
}, {
|
|
791
789
|
default: i(() => t[21] || (t[21] = [
|
|
792
790
|
e("div", null, [
|
|
@@ -809,7 +807,7 @@ const xt = {
|
|
|
809
807
|
}),
|
|
810
808
|
l(c, { class: "drag_item_title" }, {
|
|
811
809
|
default: i(() => t[22] || (t[22] = [
|
|
812
|
-
|
|
810
|
+
U("辅助")
|
|
813
811
|
])),
|
|
814
812
|
_: 1
|
|
815
813
|
}),
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineComponent as v, ref as i, createVNode as c, resolveComponent as s, nextTick as g, createElementBlock as C, openBlock as u, createBlock as k, createCommentVNode as D } from "vue";
|
|
2
|
+
import { _ as T } from "./childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js";
|
|
3
|
+
import { useRender as E } from "@utogether/utils";
|
|
4
|
+
const y = {
|
|
5
|
+
name: "DictView"
|
|
6
|
+
}, w = /* @__PURE__ */ v({
|
|
7
|
+
...y,
|
|
8
|
+
setup(N) {
|
|
9
|
+
const o = i(null), a = [{
|
|
10
|
+
field: "dictCode",
|
|
11
|
+
title: "message.udp.dictCode"
|
|
12
|
+
}, {
|
|
13
|
+
field: "dictName",
|
|
14
|
+
title: "message.udp.dictName"
|
|
15
|
+
}, {
|
|
16
|
+
field: "dictType",
|
|
17
|
+
title: "message.udp.dictType",
|
|
18
|
+
code: "SU.DICT.TYPE"
|
|
19
|
+
}], t = E(), l = [
|
|
20
|
+
{
|
|
21
|
+
type: "checkbox",
|
|
22
|
+
width: 40,
|
|
23
|
+
align: "center"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
field: "dictCode",
|
|
27
|
+
title: "message.udp.dictCode",
|
|
28
|
+
required: !0,
|
|
29
|
+
editRender: t.renderInput()
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
field: "dictName",
|
|
33
|
+
title: "message.udp.dictName",
|
|
34
|
+
required: !0,
|
|
35
|
+
editRender: t.renderInput()
|
|
36
|
+
},
|
|
37
|
+
// {
|
|
38
|
+
// field: 'userName',
|
|
39
|
+
// width: 300,
|
|
40
|
+
// editRender: renderHook.renderUpload()
|
|
41
|
+
// },
|
|
42
|
+
{
|
|
43
|
+
field: "dictType",
|
|
44
|
+
title: "message.udp.dictType",
|
|
45
|
+
required: !0,
|
|
46
|
+
editRender: t.renderDict("SU.DICT.TYPE"),
|
|
47
|
+
formatter: ["formatDict", "SU.DICT.TYPE"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
field: "dictDesc",
|
|
51
|
+
title: "message.remark",
|
|
52
|
+
editRender: t.renderInput()
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
field: "enabled",
|
|
56
|
+
width: 90,
|
|
57
|
+
editRender: t.renderDict({
|
|
58
|
+
code: "SU.ENABLE",
|
|
59
|
+
defaultValue: "1"
|
|
60
|
+
}),
|
|
61
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
field: "operate",
|
|
65
|
+
width: 80,
|
|
66
|
+
slots: {
|
|
67
|
+
default: ({
|
|
68
|
+
row: e
|
|
69
|
+
}) => e.id ? [c(s("ut-button"), {
|
|
70
|
+
content: "lov",
|
|
71
|
+
onClick: () => m(e)
|
|
72
|
+
}, null)] : null
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
], d = i(!1), r = i(null), m = (e) => {
|
|
76
|
+
g(() => {
|
|
77
|
+
var n;
|
|
78
|
+
d.value = !0, r.value = e, r.value.total = (n = e.children) == null ? void 0 : n.length;
|
|
79
|
+
});
|
|
80
|
+
}, f = () => {
|
|
81
|
+
o.value.refreshData(), d.value = !1;
|
|
82
|
+
}, p = {
|
|
83
|
+
editActived({
|
|
84
|
+
row: e
|
|
85
|
+
}) {
|
|
86
|
+
l[1].editRender.props.disabled = !!e.id;
|
|
87
|
+
}
|
|
88
|
+
}, h = (e) => e.dictType !== "0";
|
|
89
|
+
return (e, n) => {
|
|
90
|
+
const _ = s("ut-grid");
|
|
91
|
+
return u(), C("div", null, [c(_, {
|
|
92
|
+
ref_key: "xgrid",
|
|
93
|
+
ref: o,
|
|
94
|
+
items: a,
|
|
95
|
+
columns: l,
|
|
96
|
+
"check-method": h,
|
|
97
|
+
events: p,
|
|
98
|
+
url: "/upfm/v1/lov"
|
|
99
|
+
}, null, 512), d.value ? (u(), k(T, {
|
|
100
|
+
key: 0,
|
|
101
|
+
show: d.value,
|
|
102
|
+
record: r.value,
|
|
103
|
+
onOnClose: f
|
|
104
|
+
}, null, 8, ["show", "record"])) : D("", !0)]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
export {
|
|
109
|
+
w as default
|
|
110
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as u, ref as s, reactive as m, resolveComponent as f, createBlock as p, openBlock as g } from "vue";
|
|
2
2
|
import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
3
|
import { useRender as h } from "@utogether/utils";
|
|
4
|
-
import {
|
|
4
|
+
import { q as z } from "./index-DVARtten.js";
|
|
5
5
|
const k = {
|
|
6
6
|
name: "InvOrganization"
|
|
7
7
|
}, R = /* @__PURE__ */ u({
|
|
8
8
|
...k,
|
|
9
|
-
setup(
|
|
9
|
+
setup(C) {
|
|
10
10
|
const r = "/uums/cusOrganization", n = s(null), e = h(), i = [{
|
|
11
11
|
field: "organizationCode"
|
|
12
12
|
}, {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as a, ref as m, resolveComponent as u, createBlock as c, openBlock as g } from "vue";
|
|
2
|
+
import { t as p } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
+
import { clone as f } from "xe-utils";
|
|
4
|
+
import { useRender as _ } from "@utogether/utils";
|
|
5
|
+
import { q as h } from "./index-DVARtten.js";
|
|
6
|
+
const C = { name: "OrgUnit" }, N = /* @__PURE__ */ a({
|
|
7
|
+
...C,
|
|
8
|
+
setup(k) {
|
|
9
|
+
const t = "/uums/org", r = m(null), n = _(), d = [
|
|
10
|
+
{ field: "orgCode", title: "message.udp.orgCode" },
|
|
11
|
+
{ field: "orgName", title: "message.udp.orgName" },
|
|
12
|
+
{ field: "orgAlias", title: "message.udp.orgAlias" }
|
|
13
|
+
], s = [
|
|
14
|
+
{ type: "checkbox", width: 50, align: "center" },
|
|
15
|
+
{ field: "orgCode", title: "message.udp.orgCode", required: !0, editRender: { name: "$input" } },
|
|
16
|
+
{ field: "orgName", title: "message.udp.orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
|
|
17
|
+
{ field: "orgAlias", title: "message.udp.orgAlias", editRender: { name: "$input" } },
|
|
18
|
+
{ field: "orgDesc", title: "message.udp.orgDesc", editRender: { name: "$input" } },
|
|
19
|
+
{ field: "enabled", width: 80, cellRender: n.renderEnabled(l) }
|
|
20
|
+
];
|
|
21
|
+
async function l({ row: o }) {
|
|
22
|
+
const i = f(o, !0), [e] = await p(h().put(t, [i]));
|
|
23
|
+
!e && r.value.refreshData();
|
|
24
|
+
}
|
|
25
|
+
return (o, i) => {
|
|
26
|
+
const e = u("ut-grid");
|
|
27
|
+
return g(), c(e, {
|
|
28
|
+
ref_key: "xgrid",
|
|
29
|
+
ref: r,
|
|
30
|
+
items: d,
|
|
31
|
+
columns: s,
|
|
32
|
+
url: t
|
|
33
|
+
}, null, 512);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
N as default
|
|
39
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, ref as o, resolveComponent as u, createElementBlock as h, openBlock as x, createVNode as c, withCtx as p, createElementVNode as g, nextTick as V } from "vue";
|
|
2
|
-
import { _ as k } from "./index-
|
|
2
|
+
import { _ as k } from "./index-DVARtten.js";
|
|
3
3
|
const P = { class: "ut-preview-contain" }, C = /* @__PURE__ */ w({
|
|
4
4
|
__name: "Preview",
|
|
5
5
|
setup(T, { expose: d }) {
|