@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,158 @@
|
|
|
1
|
+
import { defineComponent as x, ref as i, reactive as R, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as u, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
|
|
2
|
+
import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
+
import { w as V } from "./index-BKIw8tSn.js";
|
|
4
|
+
const q = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
|
|
5
|
+
__name: "UserInfo",
|
|
6
|
+
props: {
|
|
7
|
+
record: { default: () => ({}) },
|
|
8
|
+
show: { type: Boolean, default: !1 },
|
|
9
|
+
direction: { default: "rtl" }
|
|
10
|
+
},
|
|
11
|
+
emits: ["onClose"],
|
|
12
|
+
setup(f, { emit: p }) {
|
|
13
|
+
const s = f, g = i(!1), r = i(!1), a = V(), h = p, b = [
|
|
14
|
+
{
|
|
15
|
+
field: "userName",
|
|
16
|
+
title: "message.userCode",
|
|
17
|
+
span: 8,
|
|
18
|
+
itemRender: { name: "$input" }
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
field: "name",
|
|
22
|
+
title: "message.userName",
|
|
23
|
+
span: 8,
|
|
24
|
+
itemRender: { name: "$input" }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
span: 8,
|
|
28
|
+
align: "right",
|
|
29
|
+
itemRender: {
|
|
30
|
+
name: "$buttons",
|
|
31
|
+
children: [
|
|
32
|
+
{
|
|
33
|
+
props: {
|
|
34
|
+
type: "submit",
|
|
35
|
+
content: "message.btn.search",
|
|
36
|
+
icon: "ri-search-line",
|
|
37
|
+
status: "primary"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{ props: { type: "reset", icon: "ri-refresh-line", content: "message.btn.reset" } }
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
], v = [
|
|
45
|
+
{ type: "checkbox", width: 50, align: "center" },
|
|
46
|
+
{
|
|
47
|
+
field: "userName",
|
|
48
|
+
title: "message.userCode"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
field: "name",
|
|
52
|
+
title: "message.userName"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
field: "enabled",
|
|
56
|
+
title: "message.enabled",
|
|
57
|
+
width: 70,
|
|
58
|
+
editRender: {
|
|
59
|
+
name: "$select",
|
|
60
|
+
options: [
|
|
61
|
+
{ label: "启用", value: "1" },
|
|
62
|
+
{ label: "禁用", value: "0" }
|
|
63
|
+
],
|
|
64
|
+
defaultValue: "1"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
], C = [
|
|
68
|
+
{ code: "add", name: "message.btn.add", status: "u-cyan", icon: "ri-add-line" },
|
|
69
|
+
{ code: "delete", name: "message.btn.del", status: "danger", icon: "ri-delete-bin-5-fill" }
|
|
70
|
+
], y = [
|
|
71
|
+
{ field: "userName", title: "message.userCode" },
|
|
72
|
+
{ field: "name", title: "message.userName" }
|
|
73
|
+
], w = [
|
|
74
|
+
{ type: "checkbox", width: 40 },
|
|
75
|
+
{ field: "userName", title: "message.userCode" },
|
|
76
|
+
{ field: "name", title: "message.userName" },
|
|
77
|
+
{ field: "enabled", width: 70, formatter: ["formatDict", "SU.ENABLE"] }
|
|
78
|
+
], m = i({}), n = R({
|
|
79
|
+
height: 560,
|
|
80
|
+
border: !0,
|
|
81
|
+
pagerConfig: {},
|
|
82
|
+
toolbarConfig: { buttons: C, perfect: !0 },
|
|
83
|
+
loading: !1,
|
|
84
|
+
formConfig: { titleWidth: 100, titleAlign: "right", items: b },
|
|
85
|
+
// data: props.record.children,
|
|
86
|
+
proxyConfig: {
|
|
87
|
+
form: !0,
|
|
88
|
+
// 查询是需要启用表单代理
|
|
89
|
+
ajax: {
|
|
90
|
+
// 接收 Promise
|
|
91
|
+
query: ({ page: e, form: o }) => {
|
|
92
|
+
const t = Object.assign({}, o);
|
|
93
|
+
return t.id = s.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
|
|
94
|
+
},
|
|
95
|
+
// body 对象: { removeRecords }
|
|
96
|
+
delete: ({ body: { removeRecords: e } }) => {
|
|
97
|
+
const o = {
|
|
98
|
+
roleId: s.record.id,
|
|
99
|
+
userIds: e.map((t) => t.id).join()
|
|
100
|
+
};
|
|
101
|
+
return a.delete("/uums/role/deleteRoleUsers", o);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
columns: v
|
|
106
|
+
}), _ = {
|
|
107
|
+
toolbarButtonClick({ code: e }) {
|
|
108
|
+
e === "add" && (r.value = !0);
|
|
109
|
+
}
|
|
110
|
+
}, N = async (e) => {
|
|
111
|
+
const o = { userIds: "", roleId: s.record.id };
|
|
112
|
+
o.userIds = e.map((l) => l.id).join(","), n.loading = !0;
|
|
113
|
+
const [t] = await S(a.post("/uums/role/addUserRole", o));
|
|
114
|
+
n.loading = !1, t || (m.value.commitProxy("query"), r.value = !1);
|
|
115
|
+
};
|
|
116
|
+
function I() {
|
|
117
|
+
h("onClose");
|
|
118
|
+
}
|
|
119
|
+
return B(() => {
|
|
120
|
+
g.value = !0;
|
|
121
|
+
}), (e, o) => {
|
|
122
|
+
const t = d("vxe-grid"), l = d("ut-modal-grid"), k = d("el-drawer");
|
|
123
|
+
return u(), U("div", q, [
|
|
124
|
+
c(k, {
|
|
125
|
+
"model-value": e.show,
|
|
126
|
+
title: e.$t("message.title.authUser", { role: e.record.roleName }),
|
|
127
|
+
"before-close": I,
|
|
128
|
+
direction: "rtl",
|
|
129
|
+
"destroy-on-close": "",
|
|
130
|
+
size: "80%"
|
|
131
|
+
}, {
|
|
132
|
+
default: $(() => [
|
|
133
|
+
c(t, E({
|
|
134
|
+
ref_key: "xgrid",
|
|
135
|
+
ref: m
|
|
136
|
+
}, n, P(_)), null, 16),
|
|
137
|
+
r.value ? (u(), j(l, {
|
|
138
|
+
key: 0,
|
|
139
|
+
url: "/uums/user/listUserToRole",
|
|
140
|
+
"default-params": { roleId: e.record.id },
|
|
141
|
+
items: y,
|
|
142
|
+
columns: w,
|
|
143
|
+
"show-footer": !0,
|
|
144
|
+
editable: !1,
|
|
145
|
+
width: "60%",
|
|
146
|
+
onClose: o[0] || (o[0] = (z) => r.value = !1),
|
|
147
|
+
onConfirm: N
|
|
148
|
+
}, null, 8, ["default-params"])) : A("", !0)
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["model-value", "title"])
|
|
152
|
+
]);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
export {
|
|
157
|
+
F as _
|
|
158
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { defineComponent as U, ref as c, onMounted as F, resolveComponent as n, createElementBlock as j, openBlock as w, createVNode as t, withCtx as s, createElementVNode as N, createBlock as G, createCommentVNode as K, createTextVNode as P, toDisplayString as $ } from "vue";
|
|
2
|
+
import { useI18n as Q } from "vue-i18n";
|
|
3
|
+
import { t as I } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
import { VxeUI as W } from "vxe-pc-ui";
|
|
5
|
+
import { useRender as X, successMessage as k } from "@utogether/utils";
|
|
6
|
+
import { w as _, i as S } from "./index-BKIw8tSn.js";
|
|
7
|
+
const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } }, h = "/upfm/v1/lov", se = /* @__PURE__ */ U({
|
|
8
|
+
__name: "childView",
|
|
9
|
+
props: {
|
|
10
|
+
record: { default: () => ({}) },
|
|
11
|
+
show: { type: Boolean, default: !1 }
|
|
12
|
+
},
|
|
13
|
+
emits: ["onClose"],
|
|
14
|
+
setup(V, { emit: D }) {
|
|
15
|
+
const v = V, T = X(), { t: q } = Q(), y = c([]), u = c(!1), d = c(!1), a = c({}), p = c({}), m = c("add"), O = [
|
|
16
|
+
{ field: "dictCode", title: "message.udp.dictCode", required: !0 },
|
|
17
|
+
{ field: "dictName", title: "message.udp.dictName", required: !0 },
|
|
18
|
+
{ field: "dictDesc", title: "message.remark" },
|
|
19
|
+
{
|
|
20
|
+
field: "enabled",
|
|
21
|
+
itemRender: T.renderSwitch({ openValue: "1", closeValue: "0", defaultValue: "1" })
|
|
22
|
+
// itemRender: renderHook.renderDict({ code: 'SU.ENABLE', defaultValue: '1' })
|
|
23
|
+
// formatter: ['formatDict', 'SU.ENABLE']
|
|
24
|
+
}
|
|
25
|
+
], R = () => {
|
|
26
|
+
d.value = !0, m.value = "add", a.value = {
|
|
27
|
+
dictCode: "",
|
|
28
|
+
dictName: "",
|
|
29
|
+
dictDesc: "",
|
|
30
|
+
enabled: "1"
|
|
31
|
+
}, p.value = v.record;
|
|
32
|
+
}, x = (e) => {
|
|
33
|
+
d.value = !0, m.value = "child", a.value = {
|
|
34
|
+
dictCode: "",
|
|
35
|
+
dictName: "",
|
|
36
|
+
dictDesc: "",
|
|
37
|
+
enabled: "1"
|
|
38
|
+
}, p.value = JSON.parse(JSON.stringify(e));
|
|
39
|
+
}, B = async (e) => {
|
|
40
|
+
await W.modal.confirm(q("message.deleteRecord")) === "confirm" && (await _().delete(h, [e]), k(), f());
|
|
41
|
+
}, J = async (e) => {
|
|
42
|
+
d.value = !0, m.value = "edit", p.value = v.record, a.value = JSON.parse(JSON.stringify(e)), console.log({ subRecord: a });
|
|
43
|
+
}, z = async () => {
|
|
44
|
+
const e = {
|
|
45
|
+
...a.value,
|
|
46
|
+
orgId: S().getOrgId,
|
|
47
|
+
organizationId: S().getOrganizationId,
|
|
48
|
+
parentId: a.value.parentId || p.value.id
|
|
49
|
+
};
|
|
50
|
+
let o = "post";
|
|
51
|
+
["add", "child"].includes(m.value) ? o = "post" : o = "put", u.value = !0;
|
|
52
|
+
const [i, g] = await I(_()[o](h, [e]));
|
|
53
|
+
u.value = !1, i || (console.log({ res: g }), d.value = !1, k(), f());
|
|
54
|
+
}, f = async () => {
|
|
55
|
+
const e = {
|
|
56
|
+
parentId: v.record.id
|
|
57
|
+
};
|
|
58
|
+
u.value = !0;
|
|
59
|
+
const [o, i] = await I(_().get(h + "/children", e));
|
|
60
|
+
u.value = !1, o || (y.value = i.list);
|
|
61
|
+
}, A = D;
|
|
62
|
+
function E() {
|
|
63
|
+
A("onClose");
|
|
64
|
+
}
|
|
65
|
+
return F(() => {
|
|
66
|
+
f();
|
|
67
|
+
}), (e, o) => {
|
|
68
|
+
const i = n("vxe-button"), g = n("vxe-toolbar"), r = n("vxe-table-column"), b = n("ut-button"), M = n("vxe-table"), H = n("ut-modal-form"), L = n("el-drawer");
|
|
69
|
+
return w(), j("div", Y, [
|
|
70
|
+
t(L, {
|
|
71
|
+
"model-value": e.show,
|
|
72
|
+
"before-close": E,
|
|
73
|
+
title: e.$t("message.title.dictList", { name: e.record.dictName }),
|
|
74
|
+
direction: "rtl",
|
|
75
|
+
"destroy-on-close": "",
|
|
76
|
+
size: "76%"
|
|
77
|
+
}, {
|
|
78
|
+
default: s(() => [
|
|
79
|
+
N("div", Z, [
|
|
80
|
+
t(g, null, {
|
|
81
|
+
buttons: s(() => [
|
|
82
|
+
t(i, {
|
|
83
|
+
status: "primary",
|
|
84
|
+
icon: "vxe-icon-add",
|
|
85
|
+
onClick: R
|
|
86
|
+
}, {
|
|
87
|
+
default: s(() => [
|
|
88
|
+
P($(e.$t("message.btn.add")), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
tools: s(() => [
|
|
94
|
+
t(i, {
|
|
95
|
+
icon: "vxe-icon-refresh",
|
|
96
|
+
onClick: f
|
|
97
|
+
})
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}),
|
|
101
|
+
t(M, {
|
|
102
|
+
border: "",
|
|
103
|
+
"row-id": "id",
|
|
104
|
+
data: y.value,
|
|
105
|
+
loading: u.value,
|
|
106
|
+
"tree-config": { childrenField: "children", expandAll: !0 }
|
|
107
|
+
}, {
|
|
108
|
+
default: s(() => [
|
|
109
|
+
t(r, {
|
|
110
|
+
type: "seq",
|
|
111
|
+
width: "130",
|
|
112
|
+
title: e.$t("message.seqNo"),
|
|
113
|
+
"tree-node": ""
|
|
114
|
+
}, null, 8, ["title"]),
|
|
115
|
+
t(r, {
|
|
116
|
+
field: "dictCode",
|
|
117
|
+
title: e.$t("message.udp.dictCode")
|
|
118
|
+
}, null, 8, ["title"]),
|
|
119
|
+
t(r, {
|
|
120
|
+
field: "dictName",
|
|
121
|
+
title: e.$t("message.udp.dictName")
|
|
122
|
+
}, null, 8, ["title"]),
|
|
123
|
+
t(r, {
|
|
124
|
+
field: "dictDesc",
|
|
125
|
+
title: e.$t("message.remark")
|
|
126
|
+
}, null, 8, ["title"]),
|
|
127
|
+
t(r, {
|
|
128
|
+
field: "enabled",
|
|
129
|
+
title: e.$t("message.enabled"),
|
|
130
|
+
width: "100"
|
|
131
|
+
}, {
|
|
132
|
+
default: s(({ row: l }) => [
|
|
133
|
+
N("span", null, $(l.enabled === "1" ? e.$t("message.enabled") : e.$t("message.disabled")), 1)
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["title"]),
|
|
137
|
+
t(r, {
|
|
138
|
+
field: "",
|
|
139
|
+
title: e.$t("message.operate"),
|
|
140
|
+
width: "200"
|
|
141
|
+
}, {
|
|
142
|
+
default: s(({ row: l }) => [
|
|
143
|
+
t(b, {
|
|
144
|
+
status: "primary",
|
|
145
|
+
content: "edit",
|
|
146
|
+
onTap: (C) => J(l)
|
|
147
|
+
}, null, 8, ["onTap"]),
|
|
148
|
+
t(b, {
|
|
149
|
+
status: "warning",
|
|
150
|
+
content: "delete",
|
|
151
|
+
onTap: (C) => B(l)
|
|
152
|
+
}, null, 8, ["onTap"]),
|
|
153
|
+
t(b, {
|
|
154
|
+
status: "success",
|
|
155
|
+
content: "add",
|
|
156
|
+
disabled: l.enabled !== "1",
|
|
157
|
+
onTap: (C) => x(l)
|
|
158
|
+
}, null, 8, ["disabled", "onTap"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["title"])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["data", "loading"])
|
|
165
|
+
]),
|
|
166
|
+
d.value ? (w(), G(H, {
|
|
167
|
+
key: 0,
|
|
168
|
+
ref: "xmodal",
|
|
169
|
+
record: a.value,
|
|
170
|
+
items: O,
|
|
171
|
+
width: "400",
|
|
172
|
+
height: "280",
|
|
173
|
+
"data-status": m.value,
|
|
174
|
+
title: e.$t("message.title.dictInfo", { name: e.record.dictName }),
|
|
175
|
+
onClose: o[0] || (o[0] = (l) => d.value = !1),
|
|
176
|
+
onConfirm: z
|
|
177
|
+
}, null, 8, ["record", "data-status", "title"])) : K("", !0)
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["model-value", "title"])
|
|
181
|
+
]);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
export {
|
|
186
|
+
se as _
|
|
187
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as h, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
|
|
2
|
+
import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
+
import { useRender as P } from "@utogether/utils";
|
|
4
|
+
import { i as $, w as f } from "./index-BKIw8tSn.js";
|
|
5
|
+
const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
|
|
6
|
+
__name: "childView",
|
|
7
|
+
props: {
|
|
8
|
+
record: { default: () => ({}) },
|
|
9
|
+
show: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
emits: ["onClose"],
|
|
12
|
+
setup(R, { emit: g }) {
|
|
13
|
+
const l = R, t = P(), p = $().dicts, s = a(!1), C = { value: "dictCode", label: "dictName" }, v = a(null), T = [
|
|
14
|
+
{ field: "lovCode", disabled: !0 },
|
|
15
|
+
{ field: "lovName", required: !0 },
|
|
16
|
+
{ field: "valueField", required: !0 },
|
|
17
|
+
// { field: 'displayField', required: true },
|
|
18
|
+
{ field: "lovTitle" },
|
|
19
|
+
{ field: "lovType", code: "SU.LOV.TYPE", required: !0 },
|
|
20
|
+
{ field: "lovUrl", required: !0, visible: l.record.lovType === "url" },
|
|
21
|
+
{
|
|
22
|
+
field: "sqlStatement",
|
|
23
|
+
span: 24,
|
|
24
|
+
visible: l.record.lovType === "sql",
|
|
25
|
+
itemRender: { name: "$textarea", props: { rows: 5 } },
|
|
26
|
+
required: !0
|
|
27
|
+
}
|
|
28
|
+
], i = [
|
|
29
|
+
{ type: "checkbox", width: 50, align: "center" },
|
|
30
|
+
{ field: "seqNo", required: !0, width: 100, editRender: t.renderNumber() },
|
|
31
|
+
{ field: "colField", required: !0, editRender: t.renderInput() },
|
|
32
|
+
{ field: "colTitle", required: !0, editRender: t.renderInput() },
|
|
33
|
+
{ field: "colWidth", required: !0, width: 120, editRender: t.renderNumber() },
|
|
34
|
+
{
|
|
35
|
+
field: "fieldType",
|
|
36
|
+
width: 120,
|
|
37
|
+
editRender: t.renderDict("SU.FIELD.TYPE", S),
|
|
38
|
+
formatter: ["formatDict", "SU.FIELD.TYPE"]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
field: "dictCode",
|
|
42
|
+
title: "message.dictName",
|
|
43
|
+
width: 120,
|
|
44
|
+
editRender: t.renderSelectLocal({ options: p, optionProps: C }),
|
|
45
|
+
formatter: ["formatSelectLocal", [p, "dictCode", "dictName"]]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
field: "isSearch",
|
|
49
|
+
width: 120,
|
|
50
|
+
required: !0,
|
|
51
|
+
editRender: t.renderDict("SU.WHETHER"),
|
|
52
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
field: "isCol",
|
|
56
|
+
width: 120,
|
|
57
|
+
required: !0,
|
|
58
|
+
editRender: t.renderDict("SU.WHETHER"),
|
|
59
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
60
|
+
}
|
|
61
|
+
], w = a(null), q = window.innerHeight - 300, E = {
|
|
62
|
+
editActived({ row: e }) {
|
|
63
|
+
i[6].editRender.props.disabled = e.fieldType !== "dictCode";
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function S(e) {
|
|
67
|
+
e.row.dictName = "", i[6].editRender.props.disabled = e.row.fieldType !== "dictCode", i[6].required = e.row.fieldType !== "dictCode";
|
|
68
|
+
}
|
|
69
|
+
const y = () => {
|
|
70
|
+
v.value.validateForm(async (e) => {
|
|
71
|
+
if (!e) {
|
|
72
|
+
s.value = !0;
|
|
73
|
+
const [n] = await u(f().put(Y, [l.record]));
|
|
74
|
+
if (!n) {
|
|
75
|
+
const r = w.value.getInstance().getRecordset();
|
|
76
|
+
r.insertRecords.length && await u(f().post(m, r.insertRecords)), r.updateRecords.length && await u(f().put(m, r.updateRecords));
|
|
77
|
+
}
|
|
78
|
+
s.value = !1;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}, b = g;
|
|
82
|
+
function H() {
|
|
83
|
+
b("onClose");
|
|
84
|
+
}
|
|
85
|
+
return (e, n) => {
|
|
86
|
+
const r = o("ut-button"), D = o("ut-form"), N = o("ut-divider"), U = o("ut-grid"), k = o("ut-content"), I = o("el-drawer"), L = F("spinning");
|
|
87
|
+
return _(), h("div", B, [
|
|
88
|
+
d(I, {
|
|
89
|
+
"model-value": e.show,
|
|
90
|
+
"with-header": !1,
|
|
91
|
+
"show-close": !1,
|
|
92
|
+
"close-on-click-modal": !1,
|
|
93
|
+
size: "90%"
|
|
94
|
+
}, {
|
|
95
|
+
default: c(() => [
|
|
96
|
+
W((_(), h("div", null, [
|
|
97
|
+
d(k, {
|
|
98
|
+
title: e.$t("message.title.lovView"),
|
|
99
|
+
onClose: H
|
|
100
|
+
}, {
|
|
101
|
+
header: c(() => [
|
|
102
|
+
d(r, {
|
|
103
|
+
icon: "ri-save-3-fill",
|
|
104
|
+
content: "save",
|
|
105
|
+
onTap: n[0] || (n[0] = (A) => y())
|
|
106
|
+
})
|
|
107
|
+
]),
|
|
108
|
+
body: c(() => [
|
|
109
|
+
d(D, {
|
|
110
|
+
ref_key: "formRef",
|
|
111
|
+
ref: v,
|
|
112
|
+
record: e.record,
|
|
113
|
+
items: T,
|
|
114
|
+
"data-status": "update"
|
|
115
|
+
}, null, 8, ["record"]),
|
|
116
|
+
d(N, {
|
|
117
|
+
title: e.$t("message.title.lovColConfig")
|
|
118
|
+
}, null, 8, ["title"]),
|
|
119
|
+
d(U, {
|
|
120
|
+
ref_key: "xgrid",
|
|
121
|
+
ref: w,
|
|
122
|
+
columns: i,
|
|
123
|
+
url: m,
|
|
124
|
+
"default-value": { headerId: e.record.id },
|
|
125
|
+
"default-params": { headerId: e.record.id },
|
|
126
|
+
height: q,
|
|
127
|
+
events: E
|
|
128
|
+
}, null, 8, ["default-value", "default-params"])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["title"])
|
|
132
|
+
])), [
|
|
133
|
+
[L, s.value]
|
|
134
|
+
])
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, ["model-value"])
|
|
138
|
+
]);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export {
|
|
143
|
+
G as _
|
|
144
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { defineComponent as _, ref as d, createVNode as c, resolveComponent as s, createElementBlock as k, openBlock as m, createBlock as C, createCommentVNode as E } from "vue";
|
|
2
|
+
import { t as U } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
+
import { useRender as x } from "@utogether/utils";
|
|
4
|
+
import { w as b } from "./index-BKIw8tSn.js";
|
|
5
|
+
const q = {
|
|
6
|
+
name: "CodeRule"
|
|
7
|
+
}, V = /* @__PURE__ */ _({
|
|
8
|
+
...q,
|
|
9
|
+
setup(y) {
|
|
10
|
+
const e = x(), i = d(null), l = d(!1), o = d(!1), n = d({}), u = "/upfm/v1/codingRule", f = [{
|
|
11
|
+
field: "ruleCode",
|
|
12
|
+
title: "message.udp.ruleCode"
|
|
13
|
+
}, {
|
|
14
|
+
field: "ruleName",
|
|
15
|
+
title: "message.udp.ruleName"
|
|
16
|
+
}], p = [{
|
|
17
|
+
type: "checkbox",
|
|
18
|
+
width: 40,
|
|
19
|
+
align: "center"
|
|
20
|
+
}, {
|
|
21
|
+
field: "ruleCode",
|
|
22
|
+
title: "message.udp.ruleCode",
|
|
23
|
+
required: !0,
|
|
24
|
+
editRender: e.renderInput()
|
|
25
|
+
}, {
|
|
26
|
+
field: "ruleName",
|
|
27
|
+
title: "message.udp.ruleName",
|
|
28
|
+
required: !0,
|
|
29
|
+
editRender: e.renderInput()
|
|
30
|
+
}, {
|
|
31
|
+
field: "remark",
|
|
32
|
+
editRender: e.renderInput()
|
|
33
|
+
}, {
|
|
34
|
+
field: "haveBeenUsed",
|
|
35
|
+
title: "message.udp.haveBeenUsed",
|
|
36
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
37
|
+
}, {
|
|
38
|
+
field: "enabled",
|
|
39
|
+
width: 80,
|
|
40
|
+
cellRender: e.renderEnabled(h)
|
|
41
|
+
}, {
|
|
42
|
+
field: "operate",
|
|
43
|
+
width: 80,
|
|
44
|
+
fixed: "right",
|
|
45
|
+
slots: {
|
|
46
|
+
default: ({
|
|
47
|
+
row: t
|
|
48
|
+
}) => {
|
|
49
|
+
const r = t.haveBeenUsed === "Y" ? "look" : "encode", a = t.haveBeenUsed === "Y" ? "info" : "primary";
|
|
50
|
+
return [c(s("ut-button"), {
|
|
51
|
+
content: r,
|
|
52
|
+
status: a,
|
|
53
|
+
onTap: () => v(t)
|
|
54
|
+
}, null)];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}], g = [
|
|
58
|
+
{
|
|
59
|
+
type: "checkbox",
|
|
60
|
+
width: 40,
|
|
61
|
+
align: "center"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
field: "orderSeq",
|
|
65
|
+
title: "message.seqNo",
|
|
66
|
+
required: !0,
|
|
67
|
+
editRender: e.renderNumber()
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
field: "fieldType",
|
|
71
|
+
title: "message.udp.xxx",
|
|
72
|
+
required: !0,
|
|
73
|
+
editRender: e.renderDict("SU.CODE.RULE.TYPE")
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
field: "fieldValue",
|
|
77
|
+
title: "message.udp.fieldValue",
|
|
78
|
+
editRender: e.renderInput()
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
field: "dateMask",
|
|
82
|
+
title: "message.udp.dateMask",
|
|
83
|
+
editRender: e.renderDict("SU.DATE.MASK")
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
field: "resetFrequency",
|
|
87
|
+
title: "message.udp.resetFrequency",
|
|
88
|
+
editRender: e.renderDict("SU.RESET.FREQUENCY")
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
field: "seqLength",
|
|
92
|
+
title: "message.udp.seqLength",
|
|
93
|
+
editRender: e.renderInput()
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
field: "startValue",
|
|
97
|
+
title: "message.udp.startValue",
|
|
98
|
+
editRender: e.renderInput()
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
field: "currentValue",
|
|
102
|
+
title: "message.udp.currentValue"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
field: "remark",
|
|
106
|
+
editRender: e.renderInput()
|
|
107
|
+
}
|
|
108
|
+
// { field: 'enabled', width: 80, cellRender: renderHook.renderEnabled(handleClick) }
|
|
109
|
+
], v = (t) => {
|
|
110
|
+
o.value = t.haveBeenUsed === "Y", n.value = {
|
|
111
|
+
codingRuleId: t.id
|
|
112
|
+
}, l.value = !0;
|
|
113
|
+
};
|
|
114
|
+
async function h({
|
|
115
|
+
row: t
|
|
116
|
+
}) {
|
|
117
|
+
console.log(t);
|
|
118
|
+
const [r] = await U(b().put(u, t));
|
|
119
|
+
!r && i.value.refreshData();
|
|
120
|
+
}
|
|
121
|
+
return (t, r) => {
|
|
122
|
+
const a = s("ut-grid"), R = s("ut-modal-grid");
|
|
123
|
+
return m(), k("div", null, [c(a, {
|
|
124
|
+
ref_key: "xgrid",
|
|
125
|
+
ref: i,
|
|
126
|
+
items: f,
|
|
127
|
+
columns: p,
|
|
128
|
+
url: u
|
|
129
|
+
}, null, 512), l.value ? (m(), C(R, {
|
|
130
|
+
key: 0,
|
|
131
|
+
ref: "xmgrid",
|
|
132
|
+
"default-value": n.value,
|
|
133
|
+
"default-params": n.value,
|
|
134
|
+
columns: g,
|
|
135
|
+
url: u + "Detail",
|
|
136
|
+
editable: !o.value,
|
|
137
|
+
"show-footer": !1,
|
|
138
|
+
width: "80%",
|
|
139
|
+
title: "编码段设置",
|
|
140
|
+
onClose: r[0] || (r[0] = (B) => l.value = !1)
|
|
141
|
+
}, null, 8, ["default-value", "default-params", "url", "editable"])) : E("", !0)]);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
export {
|
|
146
|
+
V as default
|
|
147
|
+
};
|
package/dist/core.es.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { L as t, H as a, w as r, y as o, M as i, N as u, s as l, d as S, h as d, i as h } from "./index-BKIw8tSn.js";
|
|
2
|
+
export {
|
|
3
|
+
t as default,
|
|
4
|
+
a as delCurrentRoute,
|
|
5
|
+
r as getServiceApi,
|
|
6
|
+
o as handleAliveRoute,
|
|
7
|
+
i as hasAuthority,
|
|
8
|
+
u as lifeCycleEvent,
|
|
9
|
+
l as store,
|
|
10
|
+
S as useMultiTagsStore,
|
|
11
|
+
d as usePermissionStore,
|
|
12
|
+
h as useSystemStore
|
|
13
|
+
};
|