@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/403-gdcH0-Bo.js +65 -0
- package/dist/404-Se2SF97M.js +65 -0
- package/dist/500-B6j9AqLo.js +67 -0
- package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
- package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
- package/dist/Company-BzSVBSC4.js +25 -0
- package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
- package/dist/DataSet-iBHzs75s.js +147 -0
- package/dist/Department-BkgseHo8.js +25 -0
- package/dist/DepartmentPanel-Sen93_2M.js +249 -0
- package/dist/DesignPanel-pqDcwaFC.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
- package/dist/DictView-CJLG4LlE.js +110 -0
- package/dist/InvOrganization-D0Jq1IAa.js +74 -0
- package/dist/Org-CO_1WT39.js +39 -0
- package/dist/Preview-DLI4Bwel.js +48 -0
- package/dist/ReportDefine-Cw46OnJ_.js +10 -0
- package/dist/ReportDesign-D4sHTXT7.js +165 -0
- package/dist/ReportQuery-DtOCvQSN.js +74 -0
- package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
- package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
- package/dist/Role-Df77BBD-.js +25 -0
- package/dist/RoleAssign-BrunouML.js +26 -0
- package/dist/RolePanel-DSVwqhiD.js +4 -0
- package/dist/RolePanel-HLA7XBlN.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
- package/dist/Staff-BeL1xcRf.js +26 -0
- package/dist/StaffInfo-CIfnltyX.js +4 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
- package/dist/StaffPanel-BV2CHWac.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
- package/dist/SysUser-DPfNvthk.js +15 -0
- package/dist/SysUserPanel-CoLKYlQE.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
- package/dist/SystemMenu-sdj1dRDA.js +156 -0
- package/dist/UserInfo-CTX4hhFl.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-BDmWwJO5.js +4 -0
- package/dist/childView-Dx3ACtHa.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
- package/dist/code-rule-cvN4gYC_.js +148 -0
- package/dist/core.es.js +24 -6
- package/dist/cron-task-B0TkxFdp.js +135 -0
- package/dist/flow-task-PoDnE_kE.js +10 -0
- package/dist/frameView-5cy5BSgS.js +43 -0
- package/dist/img/minicolors.png +0 -0
- package/dist/index-C5WRTwvI.js +3006 -0
- package/dist/layout-home-DrARg-3o.js +232 -0
- package/dist/layoutView-25v_ngk5.js +3191 -0
- package/dist/log-in-Bmz5Uhbt.js +116 -0
- package/dist/log-out-B-8m3oNj.js +130 -0
- package/dist/login-Cmp2RvvW.js +217 -0
- package/dist/login-log-CVvRgZSu.js +70 -0
- package/dist/lov-view-BATtzw2X.js +99 -0
- package/dist/menuInfo-BIvrE7nm.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
- package/dist/pda-app-CzHVyeEa.js +707 -0
- package/dist/redirect-DTz8GSnv.js +15 -0
- package/dist/resource-Y5lGB38n.js +97 -0
- package/dist/su-welcome-CXA6OzBw.js +878 -0
- package/dist/sys-config-CqO03LeC.js +385 -0
- package/dist/udp-core.css +1 -2
- package/dist/useNav-C-rCgubt.js +84 -0
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/dist/wecom-push-B75FLee5.js +70 -0
- package/index.ts +3 -2
- package/package.json +1 -1
- package/src/App.vue +79 -78
- package/src/api/index.ts +1 -1
- package/src/components/SuQrcode/src/index.tsx +231 -236
- package/src/layout/components/lay-panel/index.vue +2 -6
- package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
- package/src/main.ts +25 -23
- package/src/router/index.ts +156 -187
- package/src/store/modules/system.ts +7 -0
- package/src/style/vxetable.scss +372 -364
- package/src/utils/authority/index.ts +46 -29
- package/src/utils/udp/http/index.ts +115 -64
- package/src/utils/udp/http/types.d.ts +15 -14
- package/src/views/login/login-view.vue +4 -21
- package/src/views/organization/department/DepartmentPanel.vue +3 -4
- package/src/views/system/sys/sys-config.vue +344 -344
- package/src/views/uhome/components/home-todo.vue +179 -178
- package/src/views/ulogin/login.vue +5 -9
- package/tsconfig.json +2 -3
- package/types/global.d.ts +234 -234
- package/vite.config.ts +2 -1
- package/dist/403-D6Wb3JJh.js +0 -72
- package/dist/404-B_HNbPNV.js +0 -72
- package/dist/500-BMemTTy1.js +0 -77
- package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
- package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
- package/dist/Company-BLXSfow0.js +0 -21
- package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
- package/dist/DataSet-CuGZcKC-.js +0 -141
- package/dist/Department-oFhsa7cd.js +0 -21
- package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
- package/dist/DepartmentPanel-BL58AdoT.js +0 -2
- package/dist/DesignPanel-DmkFVw1N.js +0 -1196
- package/dist/DictView-CC5yMzOq.js +0 -100
- package/dist/File-WJXjGYxr.js +0 -89
- package/dist/InvOrganization-BwMmD8Ua.js +0 -76
- package/dist/Org-HgnOWubi.js +0 -76
- package/dist/Preview-CAzWxLmP.js +0 -45
- package/dist/ReIcon-DecitXmg.js +0 -413
- package/dist/ReportDefine-BgLM-Rjk.js +0 -10
- package/dist/ReportDesign-DwchGG2P.js +0 -158
- package/dist/ReportQuery-D5jaRJEn.js +0 -101
- package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
- package/dist/ReportTemplate-CNcTmccs.js +0 -162
- package/dist/Role-Be8WfdCA.js +0 -21
- package/dist/RoleAssign-CtehGAUf.js +0 -22
- package/dist/RolePanel-CAwITg_q.js +0 -131
- package/dist/RolePanel-SN0FGFZ7.js +0 -176
- package/dist/ScrollPanel-DW30pGz1.js +0 -88
- package/dist/Staff-V2YsNKcj.js +0 -22
- package/dist/StaffInfo-CKRPW0r4.js +0 -149
- package/dist/StaffPanel-BxcgMg7u.js +0 -143
- package/dist/SysUser-Dxyj5w5m.js +0 -12
- package/dist/SysUserPanel-DI6CWcZo.js +0 -365
- package/dist/SystemMenu-BBHREM8T.js +0 -154
- package/dist/UserInfo-BMVQ0xwE.js +0 -194
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
- package/dist/api-BFNxcxSN.js +0 -30
- package/dist/authority-BJFEUdrh.js +0 -20
- package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
- package/dist/childView-BBjPEraB.js +0 -184
- package/dist/childView-DNqG2UVm.js +0 -181
- package/dist/code-rule-QFrhqFrW.js +0 -151
- package/dist/contant-Q77dU_V3.js +0 -4
- package/dist/cron-task-BpUDKEAU.js +0 -131
- package/dist/flow-task-DAc2NrDU.js +0 -11
- package/dist/frameView-Di0zJZUR.js +0 -39
- package/dist/layout-home-BVp7vYLR.js +0 -239
- package/dist/layoutView-B6Mx2ERA.js +0 -2662
- package/dist/log-in-BrNB0mLz.js +0 -117
- package/dist/log-out-dYfqvzy6.js +0 -111
- package/dist/login-D_Hjy3Jd.js +0 -231
- package/dist/login-log-CJak-ANA.js +0 -79
- package/dist/lov-view-DM5Nm5tW.js +0 -95
- package/dist/menuInfo-BlOY1KZW.js +0 -346
- package/dist/mitt-CQgI7DYU.js +0 -27
- package/dist/pda-app-CA7YI37u.js +0 -589
- package/dist/redirect-N0k4tImU.js +0 -16
- package/dist/resource-CfQTHFcs.js +0 -94
- package/dist/su-welcome-DVD3S_du.js +0 -799
- package/dist/sys-config-Ddb3vBpK.js +0 -316
- package/dist/system-Cm3lyBas.js +0 -1528
- package/dist/udp-core-DaQd5CF1.js +0 -2028
- package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
- package/dist/useNav-BhOJIdrJ.js +0 -106
- package/dist/utogether-l7JXs4Lv.js +0 -4
- package/dist/water-mark-WDQZ9YqB.js +0 -119
- package/dist/wecom-push-kWkAVRCj.js +0 -77
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { r as e } from "./api-BFNxcxSN.js";
|
|
2
|
-
import { t } from "./await-to-js.es5-DkWYmPXW.js";
|
|
3
|
-
import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, openBlock as c, ref as l, resolveComponent as u } from "vue";
|
|
4
|
-
import { successMessage as d, useRender as f } from "@utogether/utils";
|
|
5
|
-
import { VXETable as p } from "vxe-table";
|
|
6
|
-
//#endregion
|
|
7
|
-
//#region src/views/system/cron/cron-task.vue
|
|
8
|
-
var m = /* @__PURE__ */ s({
|
|
9
|
-
name: "CronTask",
|
|
10
|
-
setup(s) {
|
|
11
|
-
let m = f(), h = l(null), g = l(!1), _ = l({}), v = "/usch/v1/jobInfo", y = [{ field: "jobName" }, { field: "jobDescription" }], b = [
|
|
12
|
-
{
|
|
13
|
-
type: "checkbox",
|
|
14
|
-
width: 40,
|
|
15
|
-
align: "center"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
field: "jobName",
|
|
19
|
-
width: 140,
|
|
20
|
-
required: !0,
|
|
21
|
-
editRender: m.renderInput()
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
field: "jobCron",
|
|
25
|
-
width: 140,
|
|
26
|
-
required: !0,
|
|
27
|
-
editRender: m.renderInput()
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
field: "jobHandler",
|
|
31
|
-
miwWidth: 200,
|
|
32
|
-
required: !0,
|
|
33
|
-
editRender: m.renderInput()
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
field: "jobParam",
|
|
37
|
-
width: 140,
|
|
38
|
-
editRender: m.renderInput()
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
field: "jobDescription",
|
|
42
|
-
width: 120,
|
|
43
|
-
editRender: m.renderInput()
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
field: "jobStatus",
|
|
47
|
-
width: 100
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
field: "operate",
|
|
51
|
-
width: 180,
|
|
52
|
-
fixed: "right",
|
|
53
|
-
slots: { default: ({ row: e }) => [o(n, null, [
|
|
54
|
-
e.jobStatus === "ACQUIRED" ? o(u("ut-button"), {
|
|
55
|
-
content: "suspendTask",
|
|
56
|
-
status: "warning",
|
|
57
|
-
icon: "ri-search-line-plus",
|
|
58
|
-
onTap: () => x(e)
|
|
59
|
-
}, null) : o(u("ut-button"), {
|
|
60
|
-
content: "resumeTask",
|
|
61
|
-
status: "success",
|
|
62
|
-
icon: "ri-search-line-plus",
|
|
63
|
-
onTap: () => S(e)
|
|
64
|
-
}, null),
|
|
65
|
-
o(u("ut-button"), {
|
|
66
|
-
content: "stopTask",
|
|
67
|
-
status: "danger",
|
|
68
|
-
icon: "ri-close-line",
|
|
69
|
-
onTap: () => C(e)
|
|
70
|
-
}, null),
|
|
71
|
-
o(u("ut-button"), {
|
|
72
|
-
content: "taskLog",
|
|
73
|
-
status: "info",
|
|
74
|
-
icon: "ri-file-line",
|
|
75
|
-
onTap: () => E(e)
|
|
76
|
-
}, null)
|
|
77
|
-
])] }
|
|
78
|
-
}
|
|
79
|
-
], x = (e) => {
|
|
80
|
-
w(v + "/pause", [e]);
|
|
81
|
-
}, S = (e) => {
|
|
82
|
-
w(v + "/resume", [e]);
|
|
83
|
-
}, C = (e) => {
|
|
84
|
-
w(v + "/terminate", [e]);
|
|
85
|
-
}, w = async (n, r) => {
|
|
86
|
-
if (await p.modal.confirm("您确定要继续吗?") === "confirm") {
|
|
87
|
-
let [i] = await t(e().post(n, r));
|
|
88
|
-
i || (d(), h.value.refreshData());
|
|
89
|
-
}
|
|
90
|
-
}, T = [
|
|
91
|
-
{
|
|
92
|
-
field: "startTime",
|
|
93
|
-
width: 160
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
field: "endTime",
|
|
97
|
-
width: 160
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
field: "jobResult",
|
|
101
|
-
width: 120
|
|
102
|
-
},
|
|
103
|
-
{ field: "errorMessage" }
|
|
104
|
-
], E = (e) => {
|
|
105
|
-
_.value = { jobId: e.id }, g.value = !0;
|
|
106
|
-
};
|
|
107
|
-
return (e, t) => {
|
|
108
|
-
let n = u("ut-grid"), s = u("ut-modal-grid");
|
|
109
|
-
return c(), a("div", null, [o(n, {
|
|
110
|
-
ref_key: "xgrid",
|
|
111
|
-
ref: h,
|
|
112
|
-
items: y,
|
|
113
|
-
columns: b,
|
|
114
|
-
url: v
|
|
115
|
-
}, null, 512), g.value ? (c(), r(s, {
|
|
116
|
-
key: 0,
|
|
117
|
-
ref: "xmgrid",
|
|
118
|
-
"default-params": _.value,
|
|
119
|
-
columns: T,
|
|
120
|
-
url: "/usch/v1/jobLog",
|
|
121
|
-
"show-footer": !1,
|
|
122
|
-
editable: !1,
|
|
123
|
-
width: "50%",
|
|
124
|
-
title: e.$t("message.title.cronLog"),
|
|
125
|
-
onClose: t[0] ||= (e) => g.value = !1
|
|
126
|
-
}, null, 8, ["default-params", "title"])) : i("", !0)]);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
//#endregion
|
|
131
|
-
export { m as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as e, defineComponent as t, openBlock as n } from "vue";
|
|
2
|
-
//#endregion
|
|
3
|
-
//#region src/views/utask/flow-task.vue
|
|
4
|
-
var r = /* @__PURE__ */ t({
|
|
5
|
-
name: "FlowTask",
|
|
6
|
-
setup(t) {
|
|
7
|
-
return (t, r) => (n(), e("div", null, " dhasdhkasd kasdAsdasjldj打死了电话卡手机号多久啊是的 "));
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
//#endregion
|
|
11
|
-
export { r as default };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
-
import { createElementBlock as t, createElementVNode as n, defineComponent as r, nextTick as i, onMounted as a, openBlock as o, ref as s, resolveDirective as c, unref as l, withDirectives as u } from "vue";
|
|
3
|
-
import { useRoute as d } from "vue-router";
|
|
4
|
-
//#region src/layout/frameView.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var f = { class: "frame" }, p = ["src"], m = /* @__PURE__ */ e(/* @__PURE__ */ r({
|
|
6
|
-
__name: "frameView",
|
|
7
|
-
setup(e) {
|
|
8
|
-
let r = s(!1), m = d(), h = s(""), g = s(null);
|
|
9
|
-
l(m.meta)?.frameSrc && (h.value = l(m.meta)?.frameSrc);
|
|
10
|
-
function _() {
|
|
11
|
-
r.value = !1;
|
|
12
|
-
}
|
|
13
|
-
function v() {
|
|
14
|
-
i(() => {
|
|
15
|
-
let e = l(g);
|
|
16
|
-
if (!e) return;
|
|
17
|
-
let t = e;
|
|
18
|
-
t.attachEvent ? t.attachEvent("onload", () => {
|
|
19
|
-
_();
|
|
20
|
-
}) : e.onload = () => {
|
|
21
|
-
_();
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return a(() => {
|
|
26
|
-
r.value = !0, v();
|
|
27
|
-
}), (e, i) => {
|
|
28
|
-
let a = c("spinning");
|
|
29
|
-
return u((o(), t("div", f, [n("iframe", {
|
|
30
|
-
ref_key: "frameRef",
|
|
31
|
-
ref: g,
|
|
32
|
-
src: h.value,
|
|
33
|
-
class: "frame-iframe"
|
|
34
|
-
}, null, 8, p)])), [[a, r.value]]);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}), [["__scopeId", "data-v-c2f5c865"]]);
|
|
38
|
-
//#endregion
|
|
39
|
-
export { m as default };
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { r as e } from "./api-BFNxcxSN.js";
|
|
2
|
-
import { t } from "./await-to-js.es5-DkWYmPXW.js";
|
|
3
|
-
import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, mergeProps as c, openBlock as l, ref as u, resolveComponent as d } from "vue";
|
|
4
|
-
import { successMessage as f, useRender as p, warnMessage as m } from "@utogether/utils";
|
|
5
|
-
import { clone as h } from "xe-utils";
|
|
6
|
-
import { useI18n as g } from "vue-i18n";
|
|
7
|
-
import { VxeUI as _ } from "vxe-pc-ui";
|
|
8
|
-
//#region src/views/system/layout/layout-home.vue?vue&type=script&setup=true&lang.tsx
|
|
9
|
-
var v = "/upfm/sysHomeConfig", y = /* @__PURE__ */ s({
|
|
10
|
-
name: "HomeLayout",
|
|
11
|
-
__name: "layout-home",
|
|
12
|
-
setup(s) {
|
|
13
|
-
let y = p(), { t: b } = g(), x = u(null), S = u(null), C = u(null), w = u(!1), T = u(!1), E = u({}), D = [
|
|
14
|
-
{
|
|
15
|
-
field: "code",
|
|
16
|
-
title: "message.udp.componentCode"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
field: "title",
|
|
20
|
-
title: "message.udp.componentTitle"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
field: "enabled",
|
|
24
|
-
itemRender: y.renderDict({ code: "SU.ENABLE" })
|
|
25
|
-
}
|
|
26
|
-
], O = [{
|
|
27
|
-
field: "roleName",
|
|
28
|
-
span: 9,
|
|
29
|
-
title: "message.udp.roleName"
|
|
30
|
-
}, {
|
|
31
|
-
field: "roleCode",
|
|
32
|
-
span: 9,
|
|
33
|
-
title: "message.udp.roleCode"
|
|
34
|
-
}], k = [
|
|
35
|
-
{
|
|
36
|
-
type: "checkbox",
|
|
37
|
-
width: 50,
|
|
38
|
-
align: "center"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
field: "seqNo",
|
|
42
|
-
required: !0,
|
|
43
|
-
width: 100,
|
|
44
|
-
editRender: y.renderNumber({
|
|
45
|
-
min: 10,
|
|
46
|
-
step: 10
|
|
47
|
-
})
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
field: "type",
|
|
51
|
-
title: "message.udp.componentType",
|
|
52
|
-
width: 120,
|
|
53
|
-
editRender: y.renderSelectLocal({
|
|
54
|
-
options: [{
|
|
55
|
-
label: "系统",
|
|
56
|
-
value: "system"
|
|
57
|
-
}, {
|
|
58
|
-
label: "自定义",
|
|
59
|
-
value: "custom"
|
|
60
|
-
}],
|
|
61
|
-
defaultValue: "custom"
|
|
62
|
-
})
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
field: "code",
|
|
66
|
-
title: "message.udp.componentCode",
|
|
67
|
-
width: 120,
|
|
68
|
-
required: !0,
|
|
69
|
-
editRender: y.renderInput()
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
field: "title",
|
|
73
|
-
title: "message.udp.componentTitle",
|
|
74
|
-
minWidth: 150,
|
|
75
|
-
required: !0,
|
|
76
|
-
editRender: y.renderInput()
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
field: "span",
|
|
80
|
-
title: "message.udp.componentSpan",
|
|
81
|
-
required: !0,
|
|
82
|
-
width: 160,
|
|
83
|
-
editRender: y.renderSelectLocal({ options: [
|
|
84
|
-
{
|
|
85
|
-
label: 3,
|
|
86
|
-
value: 3
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
label: 4,
|
|
90
|
-
value: 4
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: 6,
|
|
94
|
-
value: 6
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
label: 8,
|
|
98
|
-
value: 8
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: 12,
|
|
102
|
-
value: 12
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: 24,
|
|
106
|
-
value: 24
|
|
107
|
-
}
|
|
108
|
-
] })
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
field: "height",
|
|
112
|
-
title: "message.udp.componentHeight",
|
|
113
|
-
required: !0,
|
|
114
|
-
editRender: y.renderNumber({ min: 300 })
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
field: "url",
|
|
118
|
-
title: "message.udp.componentPath",
|
|
119
|
-
required: !0,
|
|
120
|
-
minWidth: 150,
|
|
121
|
-
editRender: y.renderInput()
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
field: "enabled",
|
|
125
|
-
width: 90,
|
|
126
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
field: "operate",
|
|
130
|
-
width: 140,
|
|
131
|
-
fixed: "right",
|
|
132
|
-
slots: { default: ({ row: e }) => {
|
|
133
|
-
if (!e.id) return;
|
|
134
|
-
let t = {
|
|
135
|
-
conent: e.enabled === "1" ? "disabled" : "enable",
|
|
136
|
-
status: e.enabled === "1" ? "warning" : "success",
|
|
137
|
-
icon: e.enabled === "1" ? "ri-pause-circle-line" : "ri-play-circle-line"
|
|
138
|
-
};
|
|
139
|
-
return [o(n, null, [o(d("ut-button"), {
|
|
140
|
-
content: "role",
|
|
141
|
-
auth: "role",
|
|
142
|
-
icon: "ri-user-line",
|
|
143
|
-
onTap: () => j(e)
|
|
144
|
-
}, null), o(d("ut-button"), c({ content: t.conent }, t, { onTap: () => N(e) }), null)])];
|
|
145
|
-
} }
|
|
146
|
-
}
|
|
147
|
-
], A = [
|
|
148
|
-
{
|
|
149
|
-
type: "checkbox",
|
|
150
|
-
width: 40
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
field: "roleName",
|
|
154
|
-
title: "message.udp.roleName"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
field: "roleCode",
|
|
158
|
-
title: "message.udp.roleCode"
|
|
159
|
-
}
|
|
160
|
-
], j = (e) => {
|
|
161
|
-
E.value = e, w.value = !0;
|
|
162
|
-
}, M = () => {
|
|
163
|
-
T.value = !0;
|
|
164
|
-
}, N = async (n) => {
|
|
165
|
-
let r = n.enabled === "1" ? "tip_disabledrecord" : "tip_enabledrecord";
|
|
166
|
-
if (await _.modal.confirm(b(`message.${r}`)) === "confirm") {
|
|
167
|
-
let r = h(n, !0);
|
|
168
|
-
r.enabled = r.enabled === "1" ? "0" : "1";
|
|
169
|
-
let [i] = await t(e().put(v, [r]));
|
|
170
|
-
if (i) return;
|
|
171
|
-
f(), x.value.refreshData();
|
|
172
|
-
}
|
|
173
|
-
}, P = () => {
|
|
174
|
-
S.value.getSelectRecords().length && S.value.getInstance().commitProxy("delete");
|
|
175
|
-
}, F = async (n) => {
|
|
176
|
-
if (n.length === 0) return m("message.tip.selectRole");
|
|
177
|
-
let r = n.map((e) => ({
|
|
178
|
-
configId: E.value.id,
|
|
179
|
-
roleId: e.id
|
|
180
|
-
}));
|
|
181
|
-
C.value.showLoading();
|
|
182
|
-
let [i] = await t(e().post("/upfm/sysHomeRole", r));
|
|
183
|
-
i || (f(), S.value.refreshData(), T.value = !1);
|
|
184
|
-
}, I = (e) => e.type !== "system", L = ({ row: e }) => {
|
|
185
|
-
let t = h(k, !0);
|
|
186
|
-
if (e.type === "system") {
|
|
187
|
-
let e = t.findIndex((e) => e.field === "type");
|
|
188
|
-
t[e].editRender.props.disabled = !0, e = t.findIndex((e) => e.field === "url"), t[e].editRender.props.disabled = !0;
|
|
189
|
-
}
|
|
190
|
-
x.value.getInstance().reloadColumn(t);
|
|
191
|
-
}, R = (e) => {
|
|
192
|
-
e === "add" && M(), e === "del" && P();
|
|
193
|
-
};
|
|
194
|
-
return (e, t) => {
|
|
195
|
-
let n = d("ut-grid"), s = d("ut-modal-grid");
|
|
196
|
-
return l(), a("div", null, [
|
|
197
|
-
o(n, {
|
|
198
|
-
ref_key: "xgrid",
|
|
199
|
-
ref: x,
|
|
200
|
-
items: D,
|
|
201
|
-
columns: k,
|
|
202
|
-
url: v,
|
|
203
|
-
"default-params": { orgId: null },
|
|
204
|
-
"check-method": I,
|
|
205
|
-
onEditActivated: L
|
|
206
|
-
}, null, 512),
|
|
207
|
-
w.value ? (l(), r(s, {
|
|
208
|
-
key: 0,
|
|
209
|
-
ref_key: "ygrid",
|
|
210
|
-
ref: S,
|
|
211
|
-
columns: A,
|
|
212
|
-
mode: "form",
|
|
213
|
-
url: "/upfm/sysHomeRole",
|
|
214
|
-
title: e.$t("message.title.layoutRole", { name: E.value.title }),
|
|
215
|
-
width: "50%",
|
|
216
|
-
onButtonClick: R,
|
|
217
|
-
onClose: t[0] ||= (e) => w.value = !1
|
|
218
|
-
}, null, 8, ["title"])) : i("", !0),
|
|
219
|
-
T.value ? (l(), r(s, {
|
|
220
|
-
key: 1,
|
|
221
|
-
ref_key: "xmodal",
|
|
222
|
-
ref: C,
|
|
223
|
-
items: O,
|
|
224
|
-
columns: A,
|
|
225
|
-
"show-footer": !0,
|
|
226
|
-
editable: !1,
|
|
227
|
-
title: e.$t("message.udp.roleList"),
|
|
228
|
-
url: "/uums/role",
|
|
229
|
-
width: "60%",
|
|
230
|
-
height: "75%",
|
|
231
|
-
onClose: t[1] ||= (e) => T.value = !1,
|
|
232
|
-
onConfirm: F
|
|
233
|
-
}, null, 8, ["title"])) : i("", !0)
|
|
234
|
-
]);
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
//#endregion
|
|
239
|
-
export { y as default };
|