@utogether/udp-core 1.0.0
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/index.ts +90 -0
- package/build/plugins.ts +26 -0
- package/dist/403-B1R-4vXw.js +64 -0
- package/dist/404-fXPl8csw.js +64 -0
- package/dist/500-eI5842YB.js +66 -0
- package/dist/AuthorityInfo-CfVH6PaB.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js +102 -0
- package/dist/AuthorityPanel-BaLMwMgW.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js +107 -0
- package/dist/Company-CYC9Avfz.js +25 -0
- package/dist/CompanyPanel-B4MzoqN_.js +206 -0
- package/dist/DataSet-DT-rGICv.js +147 -0
- package/dist/Department-B4BNSiYx.js +25 -0
- package/dist/DepartmentPanel-zJO89L2O.js +224 -0
- package/dist/DesignPanel-S8P0J97f.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js +1015 -0
- package/dist/DictView-bIS5-rK-.js +95 -0
- package/dist/InvOrganization-MuM2jtsG.js +66 -0
- package/dist/Org-kXHSjsgJ.js +35 -0
- package/dist/Preview-CRyiwUIR.js +48 -0
- package/dist/ReportDefine-WZYIx8Sm.js +10 -0
- package/dist/ReportDesign-D-7GKgpb.js +165 -0
- package/dist/ReportQuery-BIIJny6w.js +75 -0
- package/dist/ReportQueryFrom-OoUl7N2O.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js +177 -0
- package/dist/ReportTemplate-Cfeq9US-.js +161 -0
- package/dist/Role-BwTV2QMH.js +25 -0
- package/dist/RoleAssign-De1JjOun.js +26 -0
- package/dist/RolePanel-E3RcdByM.js +4 -0
- package/dist/RolePanel-pUBXsqCM.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js +148 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js +126 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js +100 -0
- package/dist/Staff-Czm7A8vI.js +25 -0
- package/dist/StaffInfo-DJzvBuxy.js +4 -0
- package/dist/StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js +108 -0
- package/dist/StaffPanel-CHk60LEz.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js +114 -0
- package/dist/SysUser-BGwbttRn.js +15 -0
- package/dist/SysUserPanel-BCbKoLKt.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js +289 -0
- package/dist/SystemMenu-BkqZSDKl.js +151 -0
- package/dist/UserInfo-BsyAcT2d.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js +158 -0
- package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
- package/dist/childView-CF83nhxb.js +4 -0
- package/dist/childView-CyuLTUqC.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CNSgGda3.js +187 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js +144 -0
- package/dist/code-rule-Bz-gnktN.js +147 -0
- package/dist/core.es.js +13 -0
- package/dist/core.umd.js +173 -0
- package/dist/cron-task-CIifSUdW.js +135 -0
- package/dist/frameView-_d2mqjjQ.js +43 -0
- package/dist/img/l_img.svg +1 -0
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -0
- package/dist/index-BKIw8tSn.js +9195 -0
- package/dist/layoutView-DLKVepB8.js +3317 -0
- package/dist/log-in-e7D5Ss1P.js +110 -0
- package/dist/log-out--RRncZhN.js +120 -0
- package/dist/login-LREiDfFU.js +251 -0
- package/dist/login-log-CvVnyGi3.js +68 -0
- package/dist/lov-view-DDrIVILB.js +97 -0
- package/dist/menuInfo-B1FUV-Sk.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js +338 -0
- package/dist/pda-app-CRhVGijN.js +2209 -0
- package/dist/redirect-DiaNDu8F.js +15 -0
- package/dist/resource-BCwx9fEv.js +97 -0
- package/dist/su-welcome-189A7N4r.js +526 -0
- package/dist/sys-config-BZ3sejow.js +277 -0
- package/dist/udp-core.css +9 -0
- package/dist/utogether-r08LNiIZ.js +182 -0
- package/index.ts +36 -0
- package/package.json +16 -0
- package/public/img/l_img.svg +1 -0
- package/public/img/minicolors.png +0 -0
- package/public/img/v_img.svg +1 -0
- package/src/App.vue +70 -0
- package/src/api/http.ts +50 -0
- package/src/api/index.ts +31 -0
- package/src/api/mock.ts +20 -0
- package/src/api/user.ts +43 -0
- package/src/assets/images/avatars.jpg +0 -0
- package/src/assets/images/empty.png +0 -0
- package/src/assets/images/login.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/images/mask-text.jpg +0 -0
- package/src/assets/images/minicolors.png +0 -0
- package/src/assets/images/utogether.png +0 -0
- package/src/assets/images/welcome.png +0 -0
- package/src/assets/status/403.svg +1 -0
- package/src/assets/status/404.svg +1 -0
- package/src/assets/status/500.svg +1 -0
- package/src/assets/svg/back_top.svg +1 -0
- package/src/assets/svg/bg.svg +1 -0
- package/src/assets/svg/close.svg +1 -0
- package/src/assets/svg/close_all.svg +1 -0
- package/src/assets/svg/close_left.svg +1 -0
- package/src/assets/svg/close_other.svg +1 -0
- package/src/assets/svg/close_right.svg +1 -0
- package/src/assets/svg/dark.svg +1 -0
- package/src/assets/svg/day.svg +1 -0
- package/src/assets/svg/enter_outlined.svg +1 -0
- package/src/assets/svg/exit_screen.svg +1 -0
- package/src/assets/svg/full_screen.svg +1 -0
- package/src/assets/svg/globalization.svg +1 -0
- package/src/assets/svg/loading.svg +17 -0
- package/src/assets/svg/mdi_keyboard_esc.svg +1 -0
- package/src/assets/svg/refresh.svg +1 -0
- package/src/assets/svg/system.svg +1 -0
- package/src/components/ReCountTo/README.md +2 -0
- package/src/components/ReCountTo/index.ts +18 -0
- package/src/components/ReCountTo/src/normal/index.tsx +165 -0
- package/src/components/ReCountTo/src/normal/props.ts +37 -0
- package/src/components/ReCountTo/src/rebound/index.tsx +67 -0
- package/src/components/ReCountTo/src/rebound/props.ts +14 -0
- package/src/components/ReCountTo/src/rebound/rebound.css +77 -0
- package/src/components/ReCropper/index.ts +14 -0
- package/src/components/ReCropper/src/index.tsx +141 -0
- package/src/components/ReFlicker/index.css +39 -0
- package/src/components/ReFlicker/index.ts +50 -0
- package/src/components/ReFlop/index.ts +14 -0
- package/src/components/ReFlop/src/Filpper.tsx +99 -0
- package/src/components/ReFlop/src/filpper.css +184 -0
- package/src/components/ReFlop/src/index.vue +126 -0
- package/src/components/ReFlowChart/index.ts +24 -0
- package/src/components/ReFlowChart/src/Control.vue +139 -0
- package/src/components/ReFlowChart/src/DataDialog.vue +12 -0
- package/src/components/ReFlowChart/src/NodePanel.vue +151 -0
- package/src/components/ReFlowChart/src/adpterForTurbo.ts +160 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +49 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +61 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +58 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +47 -0
- 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 +62 -0
- package/src/components/ReIcon/index.ts +12 -0
- package/src/components/ReIcon/src/Icon.vue +81 -0
- package/src/components/ReIcon/src/hooks.ts +63 -0
- package/src/components/ReIcon/src/iconfont.ts +45 -0
- package/src/components/ReIcon/src/iconifyIconOffline.ts +36 -0
- package/src/components/ReIcon/src/iconifyIconOnline.ts +28 -0
- package/src/components/ReIcon/src/offlineIcon.ts +64 -0
- package/src/components/ReIcon/src/types.ts +20 -0
- package/src/components/ReSplitPane/index.css +49 -0
- package/src/components/ReSplitPane/index.tsx +119 -0
- package/src/components/ReSplitPane/resizer.css +45 -0
- package/src/components/ReSplitPane/resizer.tsx +30 -0
- package/src/components/SuCharts/index.ts +36 -0
- package/src/components/SuCharts/src/EchartBar.vue +134 -0
- package/src/components/SuCharts/src/UserInfo.vue +78 -0
- package/src/components/SuCharts/src/echart-line.vue +85 -0
- package/src/components/SuCharts/src/echart-pie.vue +95 -0
- package/src/components/SuCommon/card/components/Card.vue +148 -0
- package/src/components/SuCommon/card/components/DialogForm.vue +127 -0
- package/src/components/SuCommon/card/index.vue +142 -0
- package/src/components/SuCommon/icon-select/index.vue +241 -0
- package/src/components/SuCommon/table/index.vue +208 -0
- package/src/components/SuCommon/utils/index.ts +103 -0
- package/src/components/SuCommon/utils/slot.tsx +50 -0
- package/src/components/SuFloatButton/index.vue +159 -0
- package/src/components/SuQrcode/index.ts +14 -0
- package/src/components/SuQrcode/src/index.scss +9 -0
- package/src/components/SuQrcode/src/index.tsx +236 -0
- package/src/components/SuScrollTree/ScrollPanel.vue +175 -0
- package/src/components/SuTable/SuTable.vue +334 -0
- package/src/components/SuTypeit/index.ts +51 -0
- package/src/config/index.ts +35 -0
- package/src/contant/index.ts +20 -0
- package/src/directives/elResizeDetector/index.ts +33 -0
- package/src/directives/index.ts +11 -0
- package/src/directives/permission/index.ts +29 -0
- package/src/layout/components/lay-chrome/index.vue +30 -0
- package/src/layout/components/lay-content/index.vue +143 -0
- package/src/layout/components/lay-navbar/index.vue +237 -0
- package/src/layout/components/lay-notice/data.ts +59 -0
- package/src/layout/components/lay-notice/index.vue +83 -0
- package/src/layout/components/lay-notice/noticeItem.vue +160 -0
- package/src/layout/components/lay-notice/noticeList.vue +19 -0
- package/src/layout/components/lay-panel/index.vue +150 -0
- package/src/layout/components/lay-search/components/SearchFooter.vue +67 -0
- package/src/layout/components/lay-search/components/SearchModal.vue +189 -0
- package/src/layout/components/lay-search/components/SearchResult.vue +132 -0
- package/src/layout/components/lay-search/components/index.ts +10 -0
- package/src/layout/components/lay-search/index.vue +25 -0
- package/src/layout/components/lay-select-org/index.vue +69 -0
- package/src/layout/components/lay-setting/index.vue +510 -0
- package/src/layout/components/lay-sidebar/breadCrumb.vue +131 -0
- package/src/layout/components/lay-sidebar/extraIcon.vue +25 -0
- package/src/layout/components/lay-sidebar/hamBurger.vue +72 -0
- package/src/layout/components/lay-sidebar/horizontal.vue +191 -0
- package/src/layout/components/lay-sidebar/mixNav.vue +258 -0
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +98 -0
- package/src/layout/components/lay-sidebar/sidebarItem.vue +205 -0
- package/src/layout/components/lay-sidebar/vertical.vue +94 -0
- package/src/layout/components/lay-tag/index.scss +375 -0
- package/src/layout/components/lay-tag/index.vue +625 -0
- package/src/layout/frameView.vue +71 -0
- package/src/layout/hooks/useBoolean.ts +33 -0
- package/src/layout/hooks/useDataThemeChange.ts +142 -0
- package/src/layout/hooks/useLayout.ts +65 -0
- package/src/layout/hooks/useNav.ts +173 -0
- package/src/layout/hooks/useTag.ts +233 -0
- package/src/layout/hooks/useTranslationLang.ts +51 -0
- package/src/layout/layoutView.vue +215 -0
- package/src/layout/redirect.vue +30 -0
- package/src/layout/routerView/parent.vue +23 -0
- package/src/layout/types.ts +92 -0
- package/src/main.ts +108 -0
- package/src/plugins/echarts/index.ts +58 -0
- package/src/plugins/echarts/theme.json +394 -0
- package/src/plugins/i18n/en.ts +289 -0
- package/src/plugins/i18n/index.ts +76 -0
- package/src/plugins/i18n/module/u-report.ts +64 -0
- package/src/plugins/i18n/module/u-workflow.ts +71 -0
- package/src/plugins/i18n/module/umsg.ts +28 -0
- package/src/plugins/i18n/zh.ts +337 -0
- package/src/plugins/vxe-table/index.ts +46 -0
- package/src/plugins/vxe-table/render.tsx +397 -0
- package/src/router/createComponent.tsx +25 -0
- package/src/router/index.ts +183 -0
- package/src/router/modules/error.ts +32 -0
- package/src/router/modules/home.ts +32 -0
- package/src/router/modules/nested.ts +93 -0
- package/src/router/modules/remaining.ts +83 -0
- package/src/router/modules/tabs.ts +55 -0
- package/src/router/utils.ts +377 -0
- package/src/store/index.ts +9 -0
- package/src/store/modules/app.ts +69 -0
- package/src/store/modules/epTheme.ts +49 -0
- package/src/store/modules/multiTags.ts +109 -0
- package/src/store/modules/permission.ts +103 -0
- package/src/store/modules/settings.ts +40 -0
- package/src/store/modules/system.ts +180 -0
- package/src/store/modules/types.ts +49 -0
- package/src/style/button.scss +78 -0
- package/src/style/clear-mixin.scss +28 -0
- package/src/style/dark.scss +218 -0
- package/src/style/element-plus.scss +206 -0
- package/src/style/index.scss +76 -0
- package/src/style/login.css +336 -0
- package/src/style/login2.css +106 -0
- package/src/style/print-lock.css +375 -0
- package/src/style/reset.scss +272 -0
- package/src/style/sidebar.scss +770 -0
- package/src/style/suprint.css +985 -0
- package/src/style/tailwind.css +68 -0
- package/src/style/theme.scss +143 -0
- package/src/style/transition.scss +42 -0
- package/src/style/vxetable.scss +256 -0
- package/src/utils/authority/index.ts +29 -0
- package/src/utils/browers.ts +59 -0
- package/src/utils/dataFormat/index.ts +223 -0
- package/src/utils/http/index.ts +297 -0
- package/src/utils/http/types.d.ts +46 -0
- package/src/utils/index.ts +47 -0
- package/src/utils/lifecycle.ts +20 -0
- package/src/utils/mitt.ts +19 -0
- package/src/utils/propTypes.ts +47 -0
- package/src/utils/storage/index.ts +51 -0
- package/src/views/components/contextmenu/basic.vue +74 -0
- package/src/views/components/contextmenu/context-menu.vue +40 -0
- package/src/views/components/contextmenu/menuDynamic.vue +99 -0
- package/src/views/components/contextmenu/menuGroup.vue +71 -0
- package/src/views/components/count-to/index.vue +43 -0
- package/src/views/components/cropping/index.vue +59 -0
- package/src/views/components/cropping/picture.jpeg +0 -0
- package/src/views/components/split-pane/index.vue +82 -0
- package/src/views/components/video/index.vue +57 -0
- package/src/views/error/403.vue +50 -0
- package/src/views/error/404.vue +50 -0
- package/src/views/error/500.vue +52 -0
- package/src/views/login/login-view.vue +314 -0
- package/src/views/login/utils/motion.ts +47 -0
- package/src/views/login/utils/rule.ts +70 -0
- package/src/views/login/utils/verifyCode.ts +52 -0
- package/src/views/organization/company/Company.vue +56 -0
- package/src/views/organization/company/CompanyPanel.vue +259 -0
- package/src/views/organization/department/Department.vue +58 -0
- package/src/views/organization/department/DepartmentPanel.vue +283 -0
- package/src/views/organization/inv-org/InvOrganization.vue +53 -0
- package/src/views/organization/org/Org.vue +43 -0
- package/src/views/organization/staff/Staff.vue +58 -0
- package/src/views/organization/staff/StaffInfo.vue +163 -0
- package/src/views/organization/staff/StaffPanel.vue +144 -0
- package/src/views/system/cron/cron-task.vue +157 -0
- package/src/views/system/menu/AuthorityPanel.vue +140 -0
- package/src/views/system/menu/SystemMenu.vue +191 -0
- package/src/views/system/menu/menuInfo.vue +368 -0
- package/src/views/system/role/AuthorityInfo.vue +147 -0
- package/src/views/system/role/Role.vue +57 -0
- package/src/views/system/role/RolePanel.vue +191 -0
- package/src/views/system/role/UserInfo.vue +193 -0
- package/src/views/system/role-assign/RoleAssign.vue +57 -0
- package/src/views/system/role-assign/RolePanel.vue +136 -0
- package/src/views/system/sys/sys-config.vue +291 -0
- package/src/views/system/sysUser/SysUser.vue +45 -0
- package/src/views/system/sysUser/SysUserPanel.vue +278 -0
- package/src/views/uapp/pda/pda-app.vue +176 -0
- package/src/views/udev/coderule/code-rule.vue +121 -0
- package/src/views/udev/dict/DictView.vue +106 -0
- package/src/views/udev/dict/childView.vue +222 -0
- package/src/views/udev/lov/childView.vue +180 -0
- package/src/views/udev/lov/lov-view.vue +91 -0
- package/src/views/ufile/aggregation/File.vue +87 -0
- package/src/views/ufile/file/water-mark.vue +103 -0
- package/src/views/uhome/components/menu-favorite.vue +331 -0
- package/src/views/uhome/su-welcome.vue +339 -0
- package/src/views/ulogin/login.vue +316 -0
- package/src/views/umsg/monitor/msg-monitor.vue +36 -0
- package/src/views/umsg/msg/TemplateContent.vue +103 -0
- package/src/views/umsg/msg/msg-template.vue +66 -0
- package/src/views/umsg/send/childView.vue +142 -0
- package/src/views/umsg/send/msg-send.vue +95 -0
- package/src/views/upms/interface/log-in.vue +106 -0
- package/src/views/upms/interface/log-out.vue +107 -0
- package/src/views/upms/user/login-log.vue +60 -0
- package/src/views/urpt/dataSet/DataSet.vue +139 -0
- package/src/views/urpt/design/DesignPanel.vue +526 -0
- package/src/views/urpt/design/Preview.vue +65 -0
- package/src/views/urpt/design/ReportDesign.vue +249 -0
- package/src/views/urpt/design/bg.png +0 -0
- package/src/views/urpt/design/panel.ts +841 -0
- package/src/views/urpt/design/print-data.ts +59 -0
- package/src/views/urpt/query/ReportQuery.vue +122 -0
- package/src/views/urpt/query/ReportQueryFrom.vue +252 -0
- package/src/views/urpt/report-request/ReportDefine.vue +10 -0
- package/src/views/urpt/static-resource/resource.vue +116 -0
- package/src/views/urpt/template/ReportTemplate.vue +198 -0
- package/tsconfig.json +30 -0
- package/types/env.d.ts +1 -0
- package/types/global-components.d.ts +12 -0
- package/types/global.d.ts +236 -0
- package/types/image.d.ts +7 -0
- package/types/index.d.ts +73 -0
- package/types/router.d.ts +107 -0
- package/types/shims-tsx.d.ts +22 -0
- package/types/shims-vue.d.ts +20 -0
- package/vite.config.ts +73 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineComponent as k, ref as o, createVNode as u, resolveComponent as a, nextTick as w, createElementBlock as g, openBlock as s, createBlock as C, createCommentVNode as R } from "vue";
|
|
2
|
+
import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
+
import { w as b } from "./index-BKIw8tSn.js";
|
|
4
|
+
import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js";
|
|
5
|
+
import { useRender as I } from "@utogether/utils";
|
|
6
|
+
const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
7
|
+
name: "LovView",
|
|
8
|
+
__name: "lov-view",
|
|
9
|
+
setup(T) {
|
|
10
|
+
const t = o(null), f = [{
|
|
11
|
+
field: "lovCode"
|
|
12
|
+
}, {
|
|
13
|
+
field: "lovName"
|
|
14
|
+
}], r = I(), l = [{
|
|
15
|
+
type: "checkbox",
|
|
16
|
+
width: 50,
|
|
17
|
+
align: "center"
|
|
18
|
+
}, {
|
|
19
|
+
field: "lovCode",
|
|
20
|
+
required: !0,
|
|
21
|
+
editRender: r.renderInput()
|
|
22
|
+
}, {
|
|
23
|
+
field: "lovName",
|
|
24
|
+
required: !0,
|
|
25
|
+
editRender: r.renderInput()
|
|
26
|
+
}, {
|
|
27
|
+
field: "valueField",
|
|
28
|
+
required: !0,
|
|
29
|
+
editRender: r.renderInput()
|
|
30
|
+
}, {
|
|
31
|
+
field: "lovTitle",
|
|
32
|
+
editRender: r.renderInput()
|
|
33
|
+
}, {
|
|
34
|
+
field: "lovType",
|
|
35
|
+
editRender: r.renderDict("SU.LOV.TYPE"),
|
|
36
|
+
required: !0,
|
|
37
|
+
formatter: ["formatDict", "SU.LOV.TYPE"]
|
|
38
|
+
}, {
|
|
39
|
+
field: "remarks",
|
|
40
|
+
title: "message.remark",
|
|
41
|
+
editRender: r.renderInput()
|
|
42
|
+
}, {
|
|
43
|
+
field: "enabled",
|
|
44
|
+
width: 80,
|
|
45
|
+
cellRender: r.renderEnabled(v)
|
|
46
|
+
}, {
|
|
47
|
+
field: "operate",
|
|
48
|
+
width: 100,
|
|
49
|
+
fixed: "right",
|
|
50
|
+
slots: {
|
|
51
|
+
default: ({
|
|
52
|
+
row: e
|
|
53
|
+
}) => e.id ? [u(a("ut-button"), {
|
|
54
|
+
content: "config",
|
|
55
|
+
icon: "ri-edit-box-line",
|
|
56
|
+
onTap: () => m(e)
|
|
57
|
+
}, null)] : null
|
|
58
|
+
}
|
|
59
|
+
}], n = o(!1), d = o(null), m = (e) => {
|
|
60
|
+
w(() => {
|
|
61
|
+
n.value = !0, d.value = e;
|
|
62
|
+
});
|
|
63
|
+
}, p = () => {
|
|
64
|
+
t.value.refreshData(), n.value = !1;
|
|
65
|
+
};
|
|
66
|
+
async function v(e) {
|
|
67
|
+
const [i] = await x(b().put(c, [e]));
|
|
68
|
+
!i && t.value.refreshData();
|
|
69
|
+
}
|
|
70
|
+
const h = {
|
|
71
|
+
editActived({
|
|
72
|
+
row: e
|
|
73
|
+
}) {
|
|
74
|
+
l[1].editRender.props.disabled = !!e.id, t.value.refreshColumn();
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
return (e, i) => {
|
|
78
|
+
const _ = a("ut-grid");
|
|
79
|
+
return s(), g("div", null, [u(_, {
|
|
80
|
+
ref_key: "xgrid",
|
|
81
|
+
ref: t,
|
|
82
|
+
items: f,
|
|
83
|
+
columns: l,
|
|
84
|
+
url: c,
|
|
85
|
+
events: h
|
|
86
|
+
}, null, 512), n.value ? (s(), C(D, {
|
|
87
|
+
key: 0,
|
|
88
|
+
show: n.value,
|
|
89
|
+
record: d.value,
|
|
90
|
+
onOnClose: p
|
|
91
|
+
}, null, 8, ["show", "record"])) : R("", !0)]);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
B as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { defineComponent as M, watch as Y, ref as V, resolveComponent as d, createElementBlock as N, openBlock as r, createVNode as n, withCtx as i, createBlock as u, createCommentVNode as m, Fragment as G, renderList as J, normalizeClass as K, createSlots as O, createElementVNode as Q, toDisplayString as W } from "vue";
|
|
2
|
+
import { useI18n as X } from "vue-i18n";
|
|
3
|
+
import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
import { templateRef as Z } from "@vueuse/core";
|
|
5
|
+
import { i as x, w as ee } from "./index-BKIw8tSn.js";
|
|
6
|
+
const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */ M({
|
|
7
|
+
__name: "menuInfo",
|
|
8
|
+
props: {
|
|
9
|
+
show: { type: Boolean, default: !1 },
|
|
10
|
+
record: { default: () => ({}) },
|
|
11
|
+
dataStatus: { default: "detail" },
|
|
12
|
+
direction: { default: "rtl" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["onClose"],
|
|
15
|
+
setup(T, { emit: U }) {
|
|
16
|
+
const I = x().getDataDict, g = T;
|
|
17
|
+
Y(
|
|
18
|
+
() => g.show,
|
|
19
|
+
() => {
|
|
20
|
+
v.value = g.show && P();
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
const b = ee(), { t } = X(), F = {
|
|
24
|
+
menuCode: [
|
|
25
|
+
{
|
|
26
|
+
required: !0,
|
|
27
|
+
message: `${t("message.required")}${t("message.menuCode")}`
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
menuName: [
|
|
31
|
+
{
|
|
32
|
+
required: !0,
|
|
33
|
+
message: `${t("message.required")}${t("message.menuName")}`
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
menuPath: [
|
|
37
|
+
{
|
|
38
|
+
required: !0,
|
|
39
|
+
message: `${t("message.required")}${t("message.menuPath")}`
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
frameSrc: [
|
|
43
|
+
{
|
|
44
|
+
required: !0,
|
|
45
|
+
message: `${t("message.required")}${t("message.externalURI")}`
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
i18nField: [
|
|
49
|
+
{
|
|
50
|
+
required: !0,
|
|
51
|
+
message: `${t("message.required")}${t("message.i18nField")}`
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
dispalyCode: [
|
|
55
|
+
{
|
|
56
|
+
required: !0,
|
|
57
|
+
message: `${t("message.required")}${t("message.permissionCode")}`
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
menuCategory: [
|
|
61
|
+
{
|
|
62
|
+
required: !0,
|
|
63
|
+
message: `${t("message.required")}${t("message.menuType")}`
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}, S = Z("xForm", null), y = V(!1), v = V(""), C = V(["fetch"]), E = U, P = () => {
|
|
67
|
+
const { record: e, dataStatus: o } = g, { id: p, parentId: f, hasChildren: a } = e;
|
|
68
|
+
if (o !== "update")
|
|
69
|
+
return !p && !f ? "su" : ((a || o === "add") && (e.dispalyCode = ""), e.permissionCode);
|
|
70
|
+
}, B = () => {
|
|
71
|
+
S.value.validate(async (e) => {
|
|
72
|
+
if (!e) {
|
|
73
|
+
y.value = !0;
|
|
74
|
+
const { record: o, dataStatus: p } = g;
|
|
75
|
+
if (p === "add") {
|
|
76
|
+
o.permissionCode = `${v.value}.${o.dispalyCode}`;
|
|
77
|
+
const [f, a] = await _(b.post(w, [o]));
|
|
78
|
+
if (!f && !["0", "5"].includes(o.menuCategory) && C.value.length) {
|
|
79
|
+
const $ = C.value.map((c, k) => ({
|
|
80
|
+
permissionCode: o.permissionCode + "." + c,
|
|
81
|
+
parentId: a[0].id,
|
|
82
|
+
menuName: D(c),
|
|
83
|
+
menuType: 1,
|
|
84
|
+
enabled: "1",
|
|
85
|
+
sort: (k + 1) * 10
|
|
86
|
+
}));
|
|
87
|
+
await _(b.post(w, $));
|
|
88
|
+
}
|
|
89
|
+
y.value = !1;
|
|
90
|
+
} else
|
|
91
|
+
await _(b.put(w, [o])), y.value = !1;
|
|
92
|
+
h("submit");
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}, D = (e) => ({
|
|
96
|
+
fetch: t("message.btn.fetch"),
|
|
97
|
+
add: t("message.btn.add"),
|
|
98
|
+
edit: t("message.btn.edit"),
|
|
99
|
+
del: t("message.btn.delete"),
|
|
100
|
+
export: t("message.btn.export")
|
|
101
|
+
})[e], L = (e) => {
|
|
102
|
+
var o;
|
|
103
|
+
return (o = I[e]) == null ? void 0 : o.children.map((p) => (p.enabled = p.dictCode === "0" && g.record.menuCategory !== "0", p));
|
|
104
|
+
};
|
|
105
|
+
function h(e) {
|
|
106
|
+
E("onClose", e);
|
|
107
|
+
}
|
|
108
|
+
return (e, o) => {
|
|
109
|
+
const p = d("vxe-option"), f = d("vxe-select"), a = d("vxe-form-item"), $ = d("vxe-input"), c = d("vxe-checkbox"), k = d("vxe-checkbox-group"), A = d("ut-icon-select"), R = d("vxe-form"), z = d("el-divider"), q = d("ut-button"), j = d("el-row"), H = d("el-drawer");
|
|
110
|
+
return r(), N("div", te, [
|
|
111
|
+
n(H, {
|
|
112
|
+
"model-value": e.show,
|
|
113
|
+
title: e.$t("message.title.memuInfo"),
|
|
114
|
+
"before-close": h,
|
|
115
|
+
direction: "rtl",
|
|
116
|
+
"destroy-on-close": "",
|
|
117
|
+
size: "50%"
|
|
118
|
+
}, {
|
|
119
|
+
default: i(() => [
|
|
120
|
+
n(R, {
|
|
121
|
+
ref_key: "xForm",
|
|
122
|
+
ref: S,
|
|
123
|
+
data: e.record,
|
|
124
|
+
rules: F,
|
|
125
|
+
loading: y.value,
|
|
126
|
+
"title-colon": "",
|
|
127
|
+
"title-align": "right",
|
|
128
|
+
"title-width": "110"
|
|
129
|
+
}, {
|
|
130
|
+
default: i(() => [
|
|
131
|
+
e.record.menuType === "0" ? (r(), u(a, {
|
|
132
|
+
key: 0,
|
|
133
|
+
title: e.$t("message.menuType"),
|
|
134
|
+
field: "menuCategory",
|
|
135
|
+
span: "24"
|
|
136
|
+
}, {
|
|
137
|
+
default: i(({ data: l }) => [
|
|
138
|
+
n(f, {
|
|
139
|
+
modelValue: l.menuCategory,
|
|
140
|
+
"onUpdate:modelValue": (s) => l.menuCategory = s,
|
|
141
|
+
disabled: l.menuCategory === "0"
|
|
142
|
+
}, {
|
|
143
|
+
default: i(() => [
|
|
144
|
+
(r(!0), N(G, null, J(L("SU.MENU.TYPE"), (s) => (r(), u(p, {
|
|
145
|
+
key: s.dictCode,
|
|
146
|
+
value: s.dictCode,
|
|
147
|
+
label: s.dictName,
|
|
148
|
+
disabled: s.enabled
|
|
149
|
+
}, null, 8, ["value", "label", "disabled"]))), 128))
|
|
150
|
+
]),
|
|
151
|
+
_: 2
|
|
152
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["title"])) : m("", !0),
|
|
156
|
+
n(a, {
|
|
157
|
+
title: e.$t("message.permissionCode"),
|
|
158
|
+
field: "dispalyCode",
|
|
159
|
+
span: "24"
|
|
160
|
+
}, {
|
|
161
|
+
default: i(({ data: l }) => [
|
|
162
|
+
n($, {
|
|
163
|
+
modelValue: l.dispalyCode,
|
|
164
|
+
"onUpdate:modelValue": (s) => l.dispalyCode = s,
|
|
165
|
+
clearable: "",
|
|
166
|
+
class: K({ "u-menu-prefix": e.dataStatus === "add" }),
|
|
167
|
+
disabled: e.dataStatus !== "add"
|
|
168
|
+
}, O({ _: 2 }, [
|
|
169
|
+
e.dataStatus === "add" ? {
|
|
170
|
+
name: "prefix",
|
|
171
|
+
fn: i(() => [
|
|
172
|
+
Q("span", null, W(v.value), 1)
|
|
173
|
+
]),
|
|
174
|
+
key: "0"
|
|
175
|
+
} : void 0
|
|
176
|
+
]), 1032, ["modelValue", "onUpdate:modelValue", "class", "disabled"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["title"]),
|
|
180
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(a, {
|
|
181
|
+
key: 1,
|
|
182
|
+
title: e.$t("message.menuCode"),
|
|
183
|
+
"item-render": { name: "$input" },
|
|
184
|
+
field: "menuCode",
|
|
185
|
+
span: "24"
|
|
186
|
+
}, null, 8, ["title"])) : m("", !0),
|
|
187
|
+
n(a, {
|
|
188
|
+
title: e.$t("message.menuName"),
|
|
189
|
+
"item-render": { name: "$input" },
|
|
190
|
+
field: "menuName",
|
|
191
|
+
span: "24"
|
|
192
|
+
}, null, 8, ["title"]),
|
|
193
|
+
n(a, {
|
|
194
|
+
title: e.$t("message.menuNameEn"),
|
|
195
|
+
field: "menuNameEn",
|
|
196
|
+
span: "24",
|
|
197
|
+
"item-render": { name: "$input" }
|
|
198
|
+
}, null, 8, ["title"]),
|
|
199
|
+
e.record.menuType * 1 ? m("", !0) : (r(), u(a, {
|
|
200
|
+
key: 2,
|
|
201
|
+
title: e.$t("message.menuPath"),
|
|
202
|
+
"item-render": { name: "$input" },
|
|
203
|
+
field: "menuPath",
|
|
204
|
+
span: "24"
|
|
205
|
+
}, null, 8, ["title"])),
|
|
206
|
+
e.record.menuType * 1 ? m("", !0) : (r(), u(a, {
|
|
207
|
+
key: 3,
|
|
208
|
+
title: e.$t("message.i18nField"),
|
|
209
|
+
"item-render": { name: "$input" },
|
|
210
|
+
field: "i18nField",
|
|
211
|
+
span: "24"
|
|
212
|
+
}, null, 8, ["title"])),
|
|
213
|
+
e.record.menuCategory === "2" ? (r(), u(a, {
|
|
214
|
+
key: 4,
|
|
215
|
+
title: e.$t("message.frameSrc"),
|
|
216
|
+
"item-render": { name: "$input" },
|
|
217
|
+
field: "frameSrc",
|
|
218
|
+
span: "24"
|
|
219
|
+
}, null, 8, ["title"])) : m("", !0),
|
|
220
|
+
e.record.menuCategory === "3" ? (r(), u(a, {
|
|
221
|
+
key: 5,
|
|
222
|
+
title: e.$t("message.externalURI"),
|
|
223
|
+
"item-render": { name: "$input" },
|
|
224
|
+
field: "menuCode",
|
|
225
|
+
span: "24"
|
|
226
|
+
}, null, 8, ["title"])) : m("", !0),
|
|
227
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(a, {
|
|
228
|
+
key: 6,
|
|
229
|
+
title: e.$t("message.extraIcon"),
|
|
230
|
+
"item-render": { name: "$input" },
|
|
231
|
+
field: "extraIcon",
|
|
232
|
+
span: "24"
|
|
233
|
+
}, null, 8, ["title"])) : m("", !0),
|
|
234
|
+
["0", "5"].includes(e.record.menuCategory) ? (r(), u(a, {
|
|
235
|
+
key: 7,
|
|
236
|
+
title: e.$t("message.redirect"),
|
|
237
|
+
"item-render": { name: "$input" },
|
|
238
|
+
field: "redirect",
|
|
239
|
+
span: "24"
|
|
240
|
+
}, null, 8, ["title"])) : m("", !0),
|
|
241
|
+
e.record.menuType * 1 ? m("", !0) : (r(), u(a, {
|
|
242
|
+
key: 8,
|
|
243
|
+
title: e.$t("message.sort"),
|
|
244
|
+
span: "24"
|
|
245
|
+
}, {
|
|
246
|
+
default: i(({ data: l }) => [
|
|
247
|
+
n($, {
|
|
248
|
+
modelValue: l.sort,
|
|
249
|
+
"onUpdate:modelValue": (s) => l.sort = s,
|
|
250
|
+
type: "number",
|
|
251
|
+
step: "10",
|
|
252
|
+
clearable: ""
|
|
253
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}, 8, ["title"])),
|
|
257
|
+
e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (r(), u(a, {
|
|
258
|
+
key: 9,
|
|
259
|
+
title: e.$t("message.btn.auth")
|
|
260
|
+
}, {
|
|
261
|
+
default: i(() => [
|
|
262
|
+
n(k, {
|
|
263
|
+
modelValue: C.value,
|
|
264
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => C.value = l)
|
|
265
|
+
}, {
|
|
266
|
+
default: i(() => [
|
|
267
|
+
n(c, {
|
|
268
|
+
label: "add",
|
|
269
|
+
content: e.$t("message.btn.add")
|
|
270
|
+
}, null, 8, ["content"]),
|
|
271
|
+
n(c, {
|
|
272
|
+
label: "del",
|
|
273
|
+
content: e.$t("message.btn.delete")
|
|
274
|
+
}, null, 8, ["content"]),
|
|
275
|
+
n(c, {
|
|
276
|
+
label: "edit",
|
|
277
|
+
content: e.$t("message.btn.edit")
|
|
278
|
+
}, null, 8, ["content"]),
|
|
279
|
+
n(c, {
|
|
280
|
+
label: "fetch",
|
|
281
|
+
content: e.$t("message.btn.fetch")
|
|
282
|
+
}, null, 8, ["content"]),
|
|
283
|
+
n(c, {
|
|
284
|
+
label: "export",
|
|
285
|
+
content: e.$t("message.btn.export")
|
|
286
|
+
}, null, 8, ["content"])
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
}, 8, ["modelValue"])
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
}, 8, ["title"])) : m("", !0),
|
|
293
|
+
e.record.menuType * 1 ? m("", !0) : (r(), u(a, {
|
|
294
|
+
key: 10,
|
|
295
|
+
title: e.$t("message.icon"),
|
|
296
|
+
span: "24"
|
|
297
|
+
}, {
|
|
298
|
+
default: i(({ data: l }) => [
|
|
299
|
+
n(A, {
|
|
300
|
+
modelValue: l.icon,
|
|
301
|
+
"onUpdate:modelValue": (s) => l.icon = s
|
|
302
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}, 8, ["title"]))
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
}, 8, ["data", "loading"]),
|
|
309
|
+
n(z),
|
|
310
|
+
n(j, {
|
|
311
|
+
type: "flex",
|
|
312
|
+
justify: "end",
|
|
313
|
+
style: { "padding-right": "22px" }
|
|
314
|
+
}, {
|
|
315
|
+
default: i(() => [
|
|
316
|
+
n(q, {
|
|
317
|
+
content: "cancel",
|
|
318
|
+
status: "warning",
|
|
319
|
+
onTap: h
|
|
320
|
+
}),
|
|
321
|
+
n(q, {
|
|
322
|
+
content: "confirm",
|
|
323
|
+
status: "primary",
|
|
324
|
+
onTap: B
|
|
325
|
+
})
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
})
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
}, 8, ["model-value", "title"])
|
|
332
|
+
]);
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
export {
|
|
337
|
+
se as _
|
|
338
|
+
};
|