dlzn-ui 2.0.43 → 2.0.45
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/assets/Index-D3ij96rM.css +1 -0
- package/assets/css-Ctf0Amkf.css +1 -0
- package/chunks/{AssignUser-CI1hv7zm.mjs → AssignUser-ag8Zz6lZ.mjs} +3 -3
- package/chunks/{Common-BiNl0t80.mjs → Common-BVhvn8ey.mjs} +2 -2
- package/chunks/{Day-iiU2bfSn.mjs → Day-Bsqlho18.mjs} +2 -2
- package/chunks/{DictTypeDetail-SpKe9j4h.mjs → DictTypeDetail-CGtRLsz1.mjs} +2 -2
- package/chunks/{Hour-CUOdal3S.mjs → Hour-CZxgu-gr.mjs} +1 -1
- package/chunks/{Index-bEWcnIHJ.mjs → Index-B0jtPG4z.mjs} +1 -1
- package/chunks/{Index-Cu2Ud84o.mjs → Index-B5dltuvs.mjs} +1 -1
- package/chunks/{Index-B-IRDS1Z.mjs → Index-BPfxS1Ur.mjs} +1 -1
- package/chunks/{Index-BwWS0oPl.mjs → Index-BVighfGs.mjs} +5 -3
- package/chunks/{Index-BMg2Bxvj.mjs → Index-BZloUL93.mjs} +1 -1
- package/chunks/{Index-Bvu1c8Oy.mjs → Index-CXXPLw95.mjs} +4 -4
- package/chunks/{Index-AH0WCRJO.mjs → Index-CoNNokMv.mjs} +8 -8
- package/chunks/{Index-BChP9CTL.mjs → Index-DOMlymIc.mjs} +1 -1
- package/chunks/{Index-Bye0GY_j.mjs → Index-DlS664Iz.mjs} +1 -1
- package/chunks/{Index-CgJ94bEi.mjs → Index-DvWanFOZ.mjs} +1 -1
- package/chunks/{Index-BDidP0_Z.mjs → Index-R7H-nvMs.mjs} +1 -1
- package/chunks/{IndexItem-D_ZeRKlH.mjs → IndexItem-sPXuxTUs.mjs} +16 -16
- package/chunks/{Log-B72TP2Kr.mjs → Log-Br8Cnim8.mjs} +2 -2
- package/chunks/{LoginBg-HtZ8Lyev.mjs → LoginBg-BW263459.mjs} +1 -1
- package/chunks/{Minute-BLIvzH46.mjs → Minute-CQuKQcXO.mjs} +1 -1
- package/chunks/{Month-DzGi1B-x.mjs → Month-5cx6suVd.mjs} +1 -1
- package/chunks/{Second-DwM7HaZz.mjs → Second-DA6oyNKU.mjs} +1 -1
- package/chunks/{SelectDept-_EyrHhI9.mjs → SelectDept-CQRWjQ8n.mjs} +2 -2
- package/chunks/{SelectMenu-BGTtgamJ.mjs → SelectMenu-BNj0Lni8.mjs} +2 -2
- package/chunks/{SelectUser-DLapii8R.mjs → SelectUser-C6hO7rb-.mjs} +2 -2
- package/chunks/{UserInfo-CfJFU4J9.mjs → UserInfo-CAUjgfdS.mjs} +1 -1
- package/chunks/Wrapper-Boiyneqd.mjs +42 -0
- package/chunks/{app-BujKzbGI.mjs → app-BPNk1ofJ.mjs} +1 -1
- package/chunks/{custom-page-list-DjIGvqzk.mjs → custom-page-list-BHR3DhVT.mjs} +4 -4
- package/chunks/{custom-page-table-wy-8H6kG.mjs → custom-page-table-BxrEvdku.mjs} +2 -2
- package/chunks/{date-picker-D15OhWnK.mjs → date-picker-D-MGwALF.mjs} +2 -2
- package/chunks/{input-number-q9JM7-Uo.mjs → input-number-7Y1iWPPV.mjs} +12 -12
- package/chunks/{overview-CTQGBB2-.mjs → overview-DT-7oasE.mjs} +1 -1
- package/chunks/{page-list-DkOcgqMW.mjs → page-list-vyKjJFLU.mjs} +3 -3
- package/chunks/{page-query-CHFRZRhi.mjs → page-query-CPBOBzEz.mjs} +1 -1
- package/chunks/{page-table-C4tKerQw.mjs → page-table-IaiiKrWo.mjs} +4 -4
- package/chunks/{pagination-BxkLAF3U.mjs → pagination-u4S0HaQV.mjs} +1 -1
- package/chunks/{provider-DF-mIyi1.mjs → provider-DgBBnNgY.mjs} +499 -507
- package/chunks/{range-input-CkZteidJ.mjs → range-input-PIfE-AxB.mjs} +1 -1
- package/chunks/{scrollbar-CI1mysNQ.mjs → scrollbar-CoERe4kE.mjs} +1 -1
- package/chunks/{table-DfTSS9S4.mjs → table-DMUIy_b9.mjs} +15 -15
- package/chunks/utils-ag05P503.mjs +9 -0
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +13 -13
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +4 -4
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.mjs +1 -1
- package/components/scrollbar/index.mjs +1 -1
- package/components/scrollbar/src/scrollbar.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useLabel/index.d.ts +5 -0
- package/hooks/useLabel/index.mjs +17 -0
- package/hooks/useList/index.d.ts +1 -1
- package/hooks/useList/index.mjs +20 -30
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +2 -2
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/profile/Index.mjs +3 -3
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +1 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +2 -2
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/directive/index.mjs +7 -7
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.mjs +1 -1
- package/plugins/tableRenders/Wrapper.vue.d.ts +1 -3
- package/plugins/tableRenders/cell/Avatar/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatDate/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +11 -11
- package/plugins/tableRenders/title/index.mjs +1 -1
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/utils/dom.d.ts +1 -0
- package/utils/dom.mjs +7 -0
- package/utils/gather.d.ts +7 -0
- package/utils/gather.mjs +2 -0
- package/utils/index.d.ts +2 -0
- package/utils/index.mjs +7 -5
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -3
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +17 -17
- package/views/system/dept/utils.mjs +2 -2
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +15 -15
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +23 -23
- package/views/tool/job/index.mjs +3 -3
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/Index-BfBCL2il.css +0 -1
- package/assets/css-BPkXehJY.css +0 -1
- package/chunks/Wrapper-C6BtJDSa.mjs +0 -47
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as e, S as t, o as n } from "../../../chunks/provider-
|
|
2
|
-
import
|
|
3
|
-
import { flatArrToTree as
|
|
4
|
-
import "../../../
|
|
5
|
-
import { t as a } from "../../../chunks/page-list-
|
|
1
|
+
import { F as e, S as t, o as n } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
|
+
import "../../../chunks/utils-ag05P503.mjs";
|
|
3
|
+
import { flatArrToTree as r } from "../../../utils/tree.mjs";
|
|
4
|
+
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
5
|
+
import { t as a } from "../../../chunks/page-list-vyKjJFLU.mjs";
|
|
6
6
|
import "../../../components/page-list/index.mjs";
|
|
7
7
|
import { deptTreeList as o, deptTreeListSend as s } from "./utils.mjs";
|
|
8
8
|
import { createBlock as c, defineComponent as l, h as u, mergeProps as d, openBlock as f, reactive as p, ref as m, unref as h, useTemplateRef as g, watch as _ } from "vue";
|
|
@@ -71,7 +71,7 @@ var v = /* @__PURE__ */ l({
|
|
|
71
71
|
pageSize: void 0
|
|
72
72
|
},
|
|
73
73
|
transform: (e) => {
|
|
74
|
-
let t =
|
|
74
|
+
let t = r(e, { idKey: "deptId" }), n = (e) => {
|
|
75
75
|
e.forEach((e) => {
|
|
76
76
|
(e.children ?? []).length > 0 && (y.value.push(e.deptId), n(e.children));
|
|
77
77
|
});
|
|
@@ -123,12 +123,12 @@ var v = /* @__PURE__ */ l({
|
|
|
123
123
|
{
|
|
124
124
|
cell: {
|
|
125
125
|
buttons: [
|
|
126
|
-
({ row:
|
|
126
|
+
({ row: r }) => ({
|
|
127
127
|
default: "编辑",
|
|
128
128
|
onClick: () => {
|
|
129
129
|
let a = m(null);
|
|
130
130
|
_(a, () => {
|
|
131
|
-
a.value.setFormData(
|
|
131
|
+
a.value.setFormData(r);
|
|
132
132
|
}, { once: !0 }), e({
|
|
133
133
|
body: () => u(n, {
|
|
134
134
|
items: [
|
|
@@ -147,22 +147,22 @@ var v = /* @__PURE__ */ l({
|
|
|
147
147
|
let e = await a.value.validate();
|
|
148
148
|
await t.Put("system/dept", {
|
|
149
149
|
...e,
|
|
150
|
-
deptId:
|
|
151
|
-
}), s(),
|
|
150
|
+
deptId: r.deptId
|
|
151
|
+
}), s(), i.success("部门修改成功"), v.value.query();
|
|
152
152
|
},
|
|
153
153
|
width: 730
|
|
154
154
|
});
|
|
155
155
|
},
|
|
156
156
|
permission: "system:dept:edit"
|
|
157
157
|
}),
|
|
158
|
-
({ row:
|
|
158
|
+
({ row: r }) => ({
|
|
159
159
|
default: "新增",
|
|
160
160
|
onClick: () => {
|
|
161
161
|
let a = m(null);
|
|
162
162
|
e({
|
|
163
163
|
body: () => u(n, {
|
|
164
164
|
data: p({
|
|
165
|
-
parentId:
|
|
165
|
+
parentId: r.deptId,
|
|
166
166
|
status: "0"
|
|
167
167
|
}),
|
|
168
168
|
items: [
|
|
@@ -181,7 +181,7 @@ var v = /* @__PURE__ */ l({
|
|
|
181
181
|
}),
|
|
182
182
|
header: "新增部门",
|
|
183
183
|
onConfirmCallback: async () => {
|
|
184
|
-
await t.Post("system/dept", await a.value.validate()), s(),
|
|
184
|
+
await t.Post("system/dept", await a.value.validate()), s(), i.success("部门添加成功"), v.value.query();
|
|
185
185
|
},
|
|
186
186
|
width: 730
|
|
187
187
|
});
|
|
@@ -194,7 +194,7 @@ var v = /* @__PURE__ */ l({
|
|
|
194
194
|
popconfirm: {
|
|
195
195
|
content: "确认删除吗",
|
|
196
196
|
onConfirm: async () => {
|
|
197
|
-
await t.Delete(`system/dept/${e.deptId}`), s(),
|
|
197
|
+
await t.Delete(`system/dept/${e.deptId}`), s(), i("删除成功"), v.value.query();
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
show: e.parentId !== "0"
|
|
@@ -213,7 +213,7 @@ var v = /* @__PURE__ */ l({
|
|
|
213
213
|
operations: [{
|
|
214
214
|
default: "新增",
|
|
215
215
|
onClick: () => {
|
|
216
|
-
let
|
|
216
|
+
let r = m(null);
|
|
217
217
|
e({
|
|
218
218
|
body: () => u(n, {
|
|
219
219
|
data: p({ status: "0" }),
|
|
@@ -226,11 +226,11 @@ var v = /* @__PURE__ */ l({
|
|
|
226
226
|
b.email,
|
|
227
227
|
b.status
|
|
228
228
|
],
|
|
229
|
-
ref:
|
|
229
|
+
ref: r
|
|
230
230
|
}),
|
|
231
231
|
header: "添加部门",
|
|
232
232
|
onConfirmCallback: async () => {
|
|
233
|
-
await t.Post("system/dept", await
|
|
233
|
+
await t.Post("system/dept", await r.value.validate()), s(), i.success("部门添加成功"), v.value.query();
|
|
234
234
|
},
|
|
235
235
|
width: 730
|
|
236
236
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as e } from "../../../chunks/provider-
|
|
1
|
+
import { S as e } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
|
+
import "../../../chunks/utils-ag05P503.mjs";
|
|
2
3
|
import { flatArrToTree as t } from "../../../utils/tree.mjs";
|
|
3
|
-
import "../../../utils/index.mjs";
|
|
4
4
|
import { useRequest as n } from "alova/client";
|
|
5
5
|
//#region ../../packages/dlzn-ui/views/system/dept/utils.ts
|
|
6
6
|
var { data: r, send: i } = n(e.Get("system/dept/list", { transform: (e) => t(e.map((e) => ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-
|
|
1
|
+
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
2
|
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as a } from "../../../chunks/page-list-
|
|
3
|
+
import { t as a } from "../../../chunks/page-list-vyKjJFLU.mjs";
|
|
4
4
|
import "../../../components/page-list/index.mjs";
|
|
5
|
-
import { t as o } from "../../../chunks/DictTypeDetail-
|
|
5
|
+
import { t as o } from "../../../chunks/DictTypeDetail-CGtRLsz1.mjs";
|
|
6
6
|
import { createBlock as s, defineComponent as c, h as l, mergeProps as u, openBlock as d, reactive as f, ref as p, unref as m, useTemplateRef as h, watch as g } from "vue";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region ../../packages/dlzn-ui/views/system/dict/index.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/DictTypeDetail-
|
|
1
|
+
import { t as e } from "../../../../chunks/DictTypeDetail-CGtRLsz1.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { F as e, S as t, n, o as r } from "../../../chunks/provider-
|
|
1
|
+
import { F as e, S as t, n, o as r } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
2
|
import { t as i } from "../../../chunks/icon-COjp1yrx.mjs";
|
|
3
3
|
import "../../../components/icon/index.mjs";
|
|
4
|
-
import a from "../../../
|
|
5
|
-
import
|
|
6
|
-
import { flatArrToTree as
|
|
7
|
-
import "../../../
|
|
8
|
-
import { t as c } from "../../../chunks/page-list-
|
|
4
|
+
import { isFalsy as a } from "../../../utils/boolean.mjs";
|
|
5
|
+
import "../../../chunks/utils-ag05P503.mjs";
|
|
6
|
+
import { flatArrToTree as o } from "../../../utils/tree.mjs";
|
|
7
|
+
import s from "../../../plugins/autoImport/$msg/index.mjs";
|
|
8
|
+
import { t as c } from "../../../chunks/page-list-vyKjJFLU.mjs";
|
|
9
9
|
import "../../../components/page-list/index.mjs";
|
|
10
10
|
import { createBlock as l, defineComponent as u, h as d, mergeProps as f, openBlock as p, reactive as m, ref as h, unref as g, useTemplateRef as _, watch as v } from "vue";
|
|
11
11
|
import { useRequest as y } from "alova/client";
|
|
@@ -14,7 +14,7 @@ import { useRequest as y } from "alova/client";
|
|
|
14
14
|
var b = /* @__PURE__ */ u({
|
|
15
15
|
__name: "index",
|
|
16
16
|
setup(u) {
|
|
17
|
-
let { data: b, send: x } = y(t.Get("system/menu/list", { transform: (e) =>
|
|
17
|
+
let { data: b, send: x } = y(t.Get("system/menu/list", { transform: (e) => o(e.map((e) => ({
|
|
18
18
|
...e,
|
|
19
19
|
label: e.menuName,
|
|
20
20
|
value: e.menuId
|
|
@@ -44,7 +44,7 @@ var b = /* @__PURE__ */ u({
|
|
|
44
44
|
icon: e.icon
|
|
45
45
|
})
|
|
46
46
|
},
|
|
47
|
-
show: e.menuType !== "F" &&
|
|
47
|
+
show: e.menuType !== "F" && a(e.parentId)
|
|
48
48
|
}),
|
|
49
49
|
_label: "菜单图标",
|
|
50
50
|
_required: !0,
|
|
@@ -150,7 +150,7 @@ var b = /* @__PURE__ */ u({
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
function T(e) {
|
|
153
|
-
if (
|
|
153
|
+
if (a(e.component)) return;
|
|
154
154
|
let t = e.component.split("___");
|
|
155
155
|
e.component = e.isFrame === "0" ? `${t[0]}___0` : t[0];
|
|
156
156
|
}
|
|
@@ -170,7 +170,7 @@ var b = /* @__PURE__ */ u({
|
|
|
170
170
|
pageSize: void 0
|
|
171
171
|
},
|
|
172
172
|
transform: (e) => ({
|
|
173
|
-
rows:
|
|
173
|
+
rows: o(e, { idKey: "menuId" }),
|
|
174
174
|
total: 0
|
|
175
175
|
})
|
|
176
176
|
}) }
|
|
@@ -287,8 +287,8 @@ var b = /* @__PURE__ */ u({
|
|
|
287
287
|
}), T(e), await t.Put("system/menu", {
|
|
288
288
|
...e,
|
|
289
289
|
menuId: n.menuId,
|
|
290
|
-
parentId:
|
|
291
|
-
}), x(),
|
|
290
|
+
parentId: a(e.parentId) ? "0" : e.parentId
|
|
291
|
+
}), x(), s.success("菜单修改成功"), S.value.query();
|
|
292
292
|
},
|
|
293
293
|
width: 730
|
|
294
294
|
});
|
|
@@ -330,7 +330,7 @@ var b = /* @__PURE__ */ u({
|
|
|
330
330
|
header: "新增菜单",
|
|
331
331
|
onConfirmCallback: async () => {
|
|
332
332
|
let e = await i.value.validate();
|
|
333
|
-
T(e), await t.Post("system/menu", e), x(),
|
|
333
|
+
T(e), await t.Post("system/menu", e), x(), s.success("菜单修改成功"), S.value.query();
|
|
334
334
|
},
|
|
335
335
|
width: 730
|
|
336
336
|
});
|
|
@@ -381,8 +381,8 @@ var b = /* @__PURE__ */ u({
|
|
|
381
381
|
let e = await n.value.validate();
|
|
382
382
|
T(e), await t.Post("system/menu", {
|
|
383
383
|
...e,
|
|
384
|
-
parentId:
|
|
385
|
-
}), x(),
|
|
384
|
+
parentId: a(e.parentId) ? "0" : e.parentId
|
|
385
|
+
}), x(), s.success("菜单添加成功"), S.value.query();
|
|
386
386
|
},
|
|
387
387
|
width: 730
|
|
388
388
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as e, S as t, o as n } from "../../../chunks/provider-
|
|
1
|
+
import { F as e, S as t, o as n } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
2
|
import r from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as i } from "../../../chunks/page-list-
|
|
3
|
+
import { t as i } from "../../../chunks/page-list-vyKjJFLU.mjs";
|
|
4
4
|
import "../../../components/page-list/index.mjs";
|
|
5
5
|
import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
|
|
6
6
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as e, S as t, o as n } from "../../../chunks/provider-
|
|
1
|
+
import { F as e, S as t, o as n } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
2
|
import r from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as i } from "../../../chunks/page-list-
|
|
3
|
+
import { t as i } from "../../../chunks/page-list-vyKjJFLU.mjs";
|
|
4
4
|
import "../../../components/page-list/index.mjs";
|
|
5
5
|
import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
|
|
6
6
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-
|
|
1
|
+
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
2
|
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as a } from "../../../chunks/page-list-
|
|
3
|
+
import { t as a } from "../../../chunks/page-list-vyKjJFLU.mjs";
|
|
4
4
|
import "../../../components/page-list/index.mjs";
|
|
5
|
-
import { t as o } from "../../../chunks/AssignUser-
|
|
6
|
-
import { t as s } from "../../../chunks/SelectDept-
|
|
7
|
-
import { t as c } from "../../../chunks/SelectMenu-
|
|
5
|
+
import { t as o } from "../../../chunks/AssignUser-ag8Zz6lZ.mjs";
|
|
6
|
+
import { t as s } from "../../../chunks/SelectDept-CQRWjQ8n.mjs";
|
|
7
|
+
import { t as c } from "../../../chunks/SelectMenu-BNj0Lni8.mjs";
|
|
8
8
|
import { createBlock as l, defineComponent as u, h as d, mergeProps as f, openBlock as p, reactive as m, ref as h, unref as g, useTemplateRef as _, watch as v } from "vue";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region ../../packages/dlzn-ui/views/system/role/index.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/AssignUser-
|
|
1
|
+
import { t as e } from "../../../../chunks/AssignUser-ag8Zz6lZ.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/SelectDept-
|
|
1
|
+
import { t as e } from "../../../../chunks/SelectDept-CQRWjQ8n.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/SelectMenu-
|
|
1
|
+
import { t as e } from "../../../../chunks/SelectMenu-BNj0Lni8.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/SelectUser-
|
|
1
|
+
import { t as e } from "../../../../chunks/SelectUser-C6hO7rb-.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { F as e, N as t, S as n, o as r } from "../../../chunks/provider-
|
|
1
|
+
import { F as e, N as t, S as n, o as r } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
2
|
import { n as i } from "../../../chunks/useAppContext-D47amIp5.mjs";
|
|
3
|
-
import a from "../../../
|
|
4
|
-
import
|
|
5
|
-
import { t as c } from "../../../chunks/table-
|
|
3
|
+
import { passwordReg as a, passwordRegMessage as o } from "../../../constants/regs.mjs";
|
|
4
|
+
import s from "../../../plugins/autoImport/$msg/index.mjs";
|
|
5
|
+
import { t as c } from "../../../chunks/table-DMUIy_b9.mjs";
|
|
6
6
|
import "../../../components/table/index.mjs";
|
|
7
|
-
import { t as l } from "../../../chunks/page-list-
|
|
7
|
+
import { t as l } from "../../../chunks/page-list-vyKjJFLU.mjs";
|
|
8
8
|
import "../../../components/page-list/index.mjs";
|
|
9
9
|
import { deptTreeList as u, deptTreeListSend as d } from "../dept/utils.mjs";
|
|
10
10
|
import { createBlock as f, defineComponent as p, h as m, mergeProps as h, onActivated as g, openBlock as _, reactive as v, ref as y, unref as b, useTemplateRef as x, watch as S } from "vue";
|
|
@@ -48,8 +48,8 @@ var w = /* @__PURE__ */ p({
|
|
|
48
48
|
_label: "登录密码",
|
|
49
49
|
_required: !0,
|
|
50
50
|
_rules: [{
|
|
51
|
-
message:
|
|
52
|
-
pattern:
|
|
51
|
+
message: o,
|
|
52
|
+
pattern: a
|
|
53
53
|
}],
|
|
54
54
|
autocomplete: "new-password",
|
|
55
55
|
component: "TInput",
|
|
@@ -185,13 +185,13 @@ var w = /* @__PURE__ */ p({
|
|
|
185
185
|
({ row: i }) => ({
|
|
186
186
|
default: "编辑",
|
|
187
187
|
onClick: async () => {
|
|
188
|
-
let { data:
|
|
188
|
+
let { data: a, postIds: o, posts: c, roleIds: l, roles: u } = await T(i.userId), d = y(null);
|
|
189
189
|
S(d, () => {
|
|
190
|
-
d.value.setFormData(
|
|
190
|
+
d.value.setFormData(a, { splitToArrKeys: VITE_APP_ID === "1" ? ["userDeptIds"] : [] });
|
|
191
191
|
}, { once: !0 }), e({
|
|
192
192
|
body: () => m(r, {
|
|
193
193
|
data: v({
|
|
194
|
-
postIds:
|
|
194
|
+
postIds: o,
|
|
195
195
|
roleIds: l
|
|
196
196
|
}),
|
|
197
197
|
items: [
|
|
@@ -228,9 +228,9 @@ var w = /* @__PURE__ */ p({
|
|
|
228
228
|
await n.Put("system/user", {
|
|
229
229
|
...e,
|
|
230
230
|
...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {},
|
|
231
|
-
userId:
|
|
232
|
-
userName:
|
|
233
|
-
}), t(
|
|
231
|
+
userId: a.userId,
|
|
232
|
+
userName: a.userName
|
|
233
|
+
}), t(a.userId), s.success("用户修改成功"), E.value.query();
|
|
234
234
|
},
|
|
235
235
|
width: 730
|
|
236
236
|
});
|
|
@@ -241,24 +241,24 @@ var w = /* @__PURE__ */ p({
|
|
|
241
241
|
({ row: t }) => ({
|
|
242
242
|
default: "重置密码",
|
|
243
243
|
onClick: async () => {
|
|
244
|
-
let
|
|
244
|
+
let s = y(null);
|
|
245
245
|
e({
|
|
246
246
|
body: () => m(r, {
|
|
247
247
|
items: [{
|
|
248
248
|
_required: !0,
|
|
249
249
|
_rules: [{
|
|
250
|
-
message:
|
|
251
|
-
pattern:
|
|
250
|
+
message: o,
|
|
251
|
+
pattern: a
|
|
252
252
|
}],
|
|
253
253
|
component: "TInput",
|
|
254
254
|
model: "newPassword",
|
|
255
255
|
type: "password"
|
|
256
256
|
}],
|
|
257
|
-
ref:
|
|
257
|
+
ref: s
|
|
258
258
|
}),
|
|
259
259
|
header: `请输入${t.userName}用户的新密码`,
|
|
260
260
|
onConfirmCallback: async () => {
|
|
261
|
-
let e = (await
|
|
261
|
+
let e = (await s.value.validate()).newPassword;
|
|
262
262
|
await n.Put("system/user/resetPwd", {
|
|
263
263
|
password: e,
|
|
264
264
|
userId: t.userId
|
|
@@ -326,7 +326,7 @@ var w = /* @__PURE__ */ p({
|
|
|
326
326
|
popconfirm: {
|
|
327
327
|
content: "确认删除吗",
|
|
328
328
|
onConfirm: async () => {
|
|
329
|
-
await n.Delete(`system/user/${e.userId}`),
|
|
329
|
+
await n.Delete(`system/user/${e.userId}`), s("删除成功"), E.value.query();
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
show: e.userId !== "1"
|
|
@@ -358,7 +358,7 @@ var w = /* @__PURE__ */ p({
|
|
|
358
358
|
operations: [{
|
|
359
359
|
default: "新增",
|
|
360
360
|
onClick: async () => {
|
|
361
|
-
let { posts: t, roles: i } = await T(""),
|
|
361
|
+
let { posts: t, roles: i } = await T(""), a = y(null);
|
|
362
362
|
e({
|
|
363
363
|
body: () => m(r, {
|
|
364
364
|
data: v({ status: "0" }),
|
|
@@ -390,15 +390,15 @@ var w = /* @__PURE__ */ p({
|
|
|
390
390
|
},
|
|
391
391
|
D.remark
|
|
392
392
|
],
|
|
393
|
-
ref:
|
|
393
|
+
ref: a
|
|
394
394
|
}),
|
|
395
395
|
header: "添加用户",
|
|
396
396
|
onConfirmCallback: async () => {
|
|
397
|
-
let e = await
|
|
397
|
+
let e = await a.value.validate();
|
|
398
398
|
await n.Post("system/user", {
|
|
399
399
|
...e,
|
|
400
400
|
...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {}
|
|
401
|
-
}),
|
|
401
|
+
}), s.success("用户添加成功"), E.value.query();
|
|
402
402
|
},
|
|
403
403
|
width: 730
|
|
404
404
|
});
|
package/views/tool/job/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-
|
|
1
|
+
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-DgBBnNgY.mjs";
|
|
2
2
|
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as a } from "../../../chunks/page-list-
|
|
3
|
+
import { t as a } from "../../../chunks/page-list-vyKjJFLU.mjs";
|
|
4
4
|
import "../../../components/page-list/index.mjs";
|
|
5
|
-
import { t as o } from "../../../chunks/Log-
|
|
5
|
+
import { t as o } from "../../../chunks/Log-Br8Cnim8.mjs";
|
|
6
6
|
import { createBlock as s, defineComponent as c, h as l, mergeProps as u, openBlock as d, reactive as f, ref as p, unref as m, useTemplateRef as h, watch as g } from "vue";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region ../../packages/dlzn-ui/views/tool/job/index.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Log-
|
|
1
|
+
import { t as e } from "../../../../chunks/Log-Br8Cnim8.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-b8ce6112] .t-button+.t-button{margin-left:0}
|
package/assets/css-BPkXehJY.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--el-color-white:#fff;--el-color-black:#000;--el-color-primary-rgb:64, 158, 255;--el-color-success-rgb:103, 194, 58;--el-color-warning-rgb:230, 162, 60;--el-color-danger-rgb:245, 108, 108;--el-color-error-rgb:245, 108, 108;--el-color-info-rgb:144, 147, 153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue", helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", arial, sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier), opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px;--lightningcss-light:initial;--lightningcss-dark: ;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--el-color-primary:var(--td-brand-color);--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:var(--td-error-color);--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:var(--td-error-color);--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#fff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#fff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:var(--td-text-color-secondary);--el-text-color-placeholder:var(--td-text-color-placeholder);--el-text-color-disabled:#c0c4cc;--el-border-color:var(--td-border-level-2-color);--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#fff;--el-box-shadow:0px 12px 32px 4px #0000000a, 0px 8px 20px #00000014;--el-box-shadow-light:0px 0px 12px #0000001f;--el-box-shadow-lighter:0px 0px 6px #0000001f;--el-box-shadow-dark:0px 16px 48px 16px #00000014, 0px 12px 32px #0000001f, 0px 8px 16px -8px #00000029;--el-disabled-bg-color:var(--td-bg-color-component-disabled);--el-disabled-text-color:var(--td-text-color-disabled);--el-disabled-border-color:var(--td-border-level-2-color);--el-overlay-color:#000c;--el-overlay-color-light:#000000b3;--el-overlay-color-lighter:#00000080;--el-mask-color:#ffffffe6;--el-mask-color-extra-light:#ffffff4d;--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-color-primary);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55, 0, .1, 1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55, 0, .1, 1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform-origin:top;transition:var(--el-transition-md-fade);transform:scaleY(1)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform-origin:bottom;transition:var(--el-transition-md-fade);transform:scaleY(1)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform-origin:0 0;transition:var(--el-transition-md-fade);transform:scale(1)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out, var(--el-transition-duration) padding-top ease-in-out, var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-leave-active,.el-collapse-transition-enter-active{transition:var(--el-transition-duration) max-height ease-in-out, var(--el-transition-duration) padding-top ease-in-out, var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out, var(--el-transition-duration) padding-left ease-in-out, var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55, 0, .1, 1)}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;width:1em;height:1em;font-size:inherit;color:var(--color);fill:currentColor;justify-content:center;align-items:center;line-height:1em;display:inline-flex;position:relative}.el-icon.is-loading{animation:2s linear infinite rotating}.el-icon svg{width:1em;height:1em}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;position:relative;overflow:hidden}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));width:0;height:0;transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3);display:block;position:relative}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{z-index:1;border-radius:4px;position:absolute;bottom:2px;right:2px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { createBlock as e, createElementBlock as t, createElementVNode as n, defineComponent as r, inject as i, onMounted as a, onUpdated as o, openBlock as s, ref as c, renderSlot as l, unref as u, useAttrs as d, useTemplateRef as f, withCtx as p } from "vue";
|
|
2
|
-
import { Tooltip as m } from "tdesign-vue-next";
|
|
3
|
-
import { useMutationObserver as h, useThrottleFn as g } from "@vueuse/core";
|
|
4
|
-
//#region ../../packages/dlzn-ui/plugins/tableRenders/Wrapper.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE__ */ r({
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "Wrapper",
|
|
8
|
-
setup(r) {
|
|
9
|
-
let y = i("_columnWidths"), b = i("columnMinWidths"), x = i("columnMaxWidths"), S = d(), C = f("wrapperRef"), w = c(!1), T = c(""), E = g(() => {
|
|
10
|
-
if (C.value === null) return;
|
|
11
|
-
let e = C.value.closest("td, th"), t = C.value.getBoundingClientRect().width, n = C.value.scrollWidth, r = e.getBoundingClientRect().width, i = S.col.colKey, a = x[i], o = 0, s = e.querySelector(".t-table__tree-op-icon");
|
|
12
|
-
s && (o = s.getBoundingClientRect().width + Number.parseFloat(getComputedStyle(s).marginRight));
|
|
13
|
-
let c = 0, l = e.querySelector(".t-table__tree-col");
|
|
14
|
-
l && (c = Number.parseFloat(getComputedStyle(l).paddingLeft));
|
|
15
|
-
let u = 0, d = e.querySelector(".t-table__filter-icon-wrap");
|
|
16
|
-
d && (u = d.getBoundingClientRect().width + Number.parseFloat(getComputedStyle(d).marginLeft)), w.value = n > C.value.clientWidth, T.value = C.value.textContent.trim() ?? "";
|
|
17
|
-
let f = Math.ceil(Math.max(t, n) + v + o + c + u), p = Math.max(Math.min(f, a), b[i]);
|
|
18
|
-
p > y.value[i] && (p <= r ? b[i] = p : y.value[i] = p + 2);
|
|
19
|
-
}, 500, !0);
|
|
20
|
-
return a(E), o(E), h(C, (e) => {
|
|
21
|
-
e.forEach(() => {
|
|
22
|
-
E();
|
|
23
|
-
});
|
|
24
|
-
}, {
|
|
25
|
-
characterData: !0,
|
|
26
|
-
childList: !0,
|
|
27
|
-
subtree: !0
|
|
28
|
-
}), (r, i) => (s(), t("div", _, [w.value ? (s(), e(u(m), {
|
|
29
|
-
key: 0,
|
|
30
|
-
content: T.value
|
|
31
|
-
}, {
|
|
32
|
-
default: p(() => [n("div", {
|
|
33
|
-
ref_key: "wrapperRef",
|
|
34
|
-
ref: C,
|
|
35
|
-
class: "overflow-hidden text-ellipsis whitespace-nowrap"
|
|
36
|
-
}, [l(r.$slots, "default")], 512)]),
|
|
37
|
-
_: 3
|
|
38
|
-
}, 8, ["content"])) : (s(), t("div", {
|
|
39
|
-
key: 1,
|
|
40
|
-
ref_key: "wrapperRef",
|
|
41
|
-
ref: C,
|
|
42
|
-
class: "overflow-hidden text-ellipsis whitespace-nowrap"
|
|
43
|
-
}, [l(r.$slots, "default")], 512))]));
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
//#endregion
|
|
47
|
-
export { y as t };
|