@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,316 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- <img :src="bg" class="wave" /> -->
|
|
3
|
+
<div :key="refreshKey" class="login-container" :style="bgStyle">
|
|
4
|
+
<div v-if="!bgStyle.backgroundImage" class="img pr-24">
|
|
5
|
+
<!-- <bg /> -->
|
|
6
|
+
<img :src="welcome" />
|
|
7
|
+
</div>
|
|
8
|
+
<div class="login-box">
|
|
9
|
+
<div class="login-form">
|
|
10
|
+
<h2
|
|
11
|
+
v-motion
|
|
12
|
+
:initial="{ opacity: 0, y: 100 }"
|
|
13
|
+
:enter="{ opacity: 1, y: 0, transition: { delay: 100 } }"
|
|
14
|
+
>
|
|
15
|
+
{{ sysConfig['title'] }}
|
|
16
|
+
</h2>
|
|
17
|
+
<div
|
|
18
|
+
v-motion
|
|
19
|
+
class="input-group user focus"
|
|
20
|
+
:initial="{ opacity: 0, y: 100 }"
|
|
21
|
+
:enter="{ opacity: 1, y: 0, transition: { delay: 200 } }"
|
|
22
|
+
>
|
|
23
|
+
<div class="icon">
|
|
24
|
+
<IconifyIconOffline :icon="UserFill" width="30" height="30" />
|
|
25
|
+
</div>
|
|
26
|
+
<div>
|
|
27
|
+
<i class="ri-logout-box-line" />
|
|
28
|
+
<h5>{{ $t('message.udp.userName') }}</h5>
|
|
29
|
+
<input
|
|
30
|
+
v-model.trim="contextInfo.username"
|
|
31
|
+
v-focus
|
|
32
|
+
type="text"
|
|
33
|
+
class="input"
|
|
34
|
+
@blur="onUserBlur"
|
|
35
|
+
@keyup.enter="onLogin"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div
|
|
40
|
+
v-motion
|
|
41
|
+
class="input-group pwd focus"
|
|
42
|
+
:initial="{ opacity: 0, y: 100 }"
|
|
43
|
+
:enter="{
|
|
44
|
+
opacity: 1,
|
|
45
|
+
y: 0,
|
|
46
|
+
transition: { delay: 300 }
|
|
47
|
+
}"
|
|
48
|
+
>
|
|
49
|
+
<div class="icon">
|
|
50
|
+
<IconifyIconOffline :icon="LockFill" width="30" height="30" />
|
|
51
|
+
</div>
|
|
52
|
+
<div>
|
|
53
|
+
<h5>{{ $t('message.udp.password') }}</h5>
|
|
54
|
+
<input
|
|
55
|
+
v-model.trim="contextInfo.passWord"
|
|
56
|
+
type="password"
|
|
57
|
+
class="input"
|
|
58
|
+
@blur="onPwdBlur"
|
|
59
|
+
@keyup.enter="onLogin"
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<button
|
|
64
|
+
v-motion
|
|
65
|
+
class="btn"
|
|
66
|
+
:initial="{ opacity: 0, y: 10 }"
|
|
67
|
+
:enter="{ opacity: 1, y: 0, transition: { delay: 400 } }"
|
|
68
|
+
:disabled="loading"
|
|
69
|
+
:class="{ loading: loading }"
|
|
70
|
+
@click="onLogin"
|
|
71
|
+
>
|
|
72
|
+
{{ $t('message.udp.login') }}
|
|
73
|
+
</button>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="absolute flex justify-center w-full font-bold bottom-1">
|
|
77
|
+
<img :src="utogether" class="!h-10" style="height: 40px" />
|
|
78
|
+
<span class="flex flex-row justify-center" style="width: 300px">
|
|
79
|
+
<span style="font-size: 0; text-align: center">
|
|
80
|
+
<a
|
|
81
|
+
href="http://www.u-together.cn/"
|
|
82
|
+
target="_blank"
|
|
83
|
+
class="!inline-block"
|
|
84
|
+
style="margin-bottom: -5px; font-size: 17px; color: #59d8d8"
|
|
85
|
+
>
|
|
86
|
+
深圳友聚信息技术有限公司
|
|
87
|
+
</a>
|
|
88
|
+
<a
|
|
89
|
+
href="http://www.u-together.cn/"
|
|
90
|
+
target="_blank"
|
|
91
|
+
class="!inline-block"
|
|
92
|
+
style="font-size: 12px; color: #d9d9d9"
|
|
93
|
+
>
|
|
94
|
+
SHENZHEN U-TOGETHER CO. LTD
|
|
95
|
+
</a>
|
|
96
|
+
</span>
|
|
97
|
+
<span class="flex items-center text-white" style="width: 150px; font-size: 10px">技术支持</span>
|
|
98
|
+
</span>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<script lang="ts">
|
|
104
|
+
export default { name: 'LoginView' };
|
|
105
|
+
</script>
|
|
106
|
+
|
|
107
|
+
<script setup lang="ts">
|
|
108
|
+
import { ref, reactive, onBeforeMount } from 'vue';
|
|
109
|
+
import { useRouter } from 'vue-router';
|
|
110
|
+
import { useI18n } from 'vue-i18n';
|
|
111
|
+
// import io from 'socket.io-client';
|
|
112
|
+
import { useFavicon } from '@vueuse/core';
|
|
113
|
+
import { isEmpty, toDateString } from 'xe-utils';
|
|
114
|
+
import { removeClass, storageLocal, errorMessage, cookies, delay } from '@utogether/utils';
|
|
115
|
+
import to from 'await-to-js';
|
|
116
|
+
import { useSystemStoreHook } from '../../store/modules/system';
|
|
117
|
+
import { useLayout } from '../../layout/hooks/useLayout';
|
|
118
|
+
import { useDataThemeChange } from '../../layout/hooks/useDataThemeChange';
|
|
119
|
+
import { getBaseURL, getServiceApi } from '../../api';
|
|
120
|
+
import { initDict } from '../../api/user';
|
|
121
|
+
import { kTOKEN, kCKTOKEN, kLOGINER, kSYSCONFIG } from '../../contant';
|
|
122
|
+
import { getPlatform, getBrower } from '../../utils/browers';
|
|
123
|
+
import { onLogined } from '../../utils/lifecycle';
|
|
124
|
+
// import bg from '../../assets/svg/bg.svg?component';
|
|
125
|
+
import utogether from '../../assets/images/utogether.png';
|
|
126
|
+
import welcome from '../../assets/images/welcome.png';
|
|
127
|
+
|
|
128
|
+
import LockFill from '@iconify-icons/ri/lock-fill';
|
|
129
|
+
import UserFill from '@iconify-icons/ri/user-3-fill';
|
|
130
|
+
|
|
131
|
+
interface IContextProps {
|
|
132
|
+
username: string;
|
|
133
|
+
passWord: string;
|
|
134
|
+
verify: number | null;
|
|
135
|
+
svg: any;
|
|
136
|
+
domain: string;
|
|
137
|
+
}
|
|
138
|
+
interface IRSAPublic {
|
|
139
|
+
publicKeyExponent: string;
|
|
140
|
+
publicKeyModulus: string;
|
|
141
|
+
requestKey: string;
|
|
142
|
+
}
|
|
143
|
+
const contextInfo: IContextProps = reactive({
|
|
144
|
+
username: '',
|
|
145
|
+
passWord: '',
|
|
146
|
+
requestKey: '',
|
|
147
|
+
verify: null,
|
|
148
|
+
svg: null,
|
|
149
|
+
domain: ''
|
|
150
|
+
});
|
|
151
|
+
const publicRSA: IRSAPublic = reactive({
|
|
152
|
+
publicKeyExponent: '10001',
|
|
153
|
+
publicKeyModulus:
|
|
154
|
+
'a12708ab26367e1711bd767f6bb1f29afbd85380185723d7b492230e2567c95cf5718eca745da0643400ca619fbeec892df61abe1f71ad3b822d076ed831080c53782edf8c0627ee95c57e2bee12fe55da2b3cadec59947a75ccccbbf36fb3b781c93b4bf51489789f1c0849f9023a16ec70bef41a504785e1082b6f13588e29',
|
|
155
|
+
requestKey: ''
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
const bgStyle = ref({
|
|
159
|
+
backgroundImage: '',
|
|
160
|
+
backgroundRepeat: 'no-repeat',
|
|
161
|
+
backgroundPosition: 'center'
|
|
162
|
+
});
|
|
163
|
+
const refreshKey = ref(0);
|
|
164
|
+
|
|
165
|
+
const sysConfig = ref({});
|
|
166
|
+
const router = useRouter();
|
|
167
|
+
const { t } = useI18n();
|
|
168
|
+
const serviceApi = getServiceApi();
|
|
169
|
+
// const { $config } = useGlobal();
|
|
170
|
+
|
|
171
|
+
const { initStorage } = useLayout();
|
|
172
|
+
const { overallStyle, dataThemeChange } = useDataThemeChange();
|
|
173
|
+
initStorage();
|
|
174
|
+
|
|
175
|
+
const loading = ref(false);
|
|
176
|
+
// 登录
|
|
177
|
+
const onLogin = async () => {
|
|
178
|
+
// insertLoginInfo();
|
|
179
|
+
// return;
|
|
180
|
+
const { username, passWord, verify } = contextInfo;
|
|
181
|
+
if (isEmpty(username) || isEmpty(passWord)) {
|
|
182
|
+
return errorMessage(t('message.tip.loginFailure'));
|
|
183
|
+
}
|
|
184
|
+
// @ts-ignore
|
|
185
|
+
setMaxDigits(200);
|
|
186
|
+
// @ts-ignore
|
|
187
|
+
const rsakeypair = new RSAKeyPair(publicRSA.publicKeyExponent, '', publicRSA.publicKeyModulus);
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
const password = encryptedString(rsakeypair, passWord.split('').reverse().join(''));
|
|
190
|
+
const param = {
|
|
191
|
+
username,
|
|
192
|
+
password,
|
|
193
|
+
requestKey: publicRSA.requestKey,
|
|
194
|
+
verify: verify,
|
|
195
|
+
domain: getBaseURL()
|
|
196
|
+
};
|
|
197
|
+
loading.value = true;
|
|
198
|
+
const [err, data] = await to(serviceApi.post('/uath/login', param));
|
|
199
|
+
if (err) {
|
|
200
|
+
loading.value = false;
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
useSystemStoreHook().setSessionKey(data);
|
|
204
|
+
cacheToken(data);
|
|
205
|
+
cookies.set(kLOGINER, username);
|
|
206
|
+
if (!storageLocal.getItem('kLov')) {
|
|
207
|
+
initDict().then(res => useSystemStoreHook().setDict(res));
|
|
208
|
+
}
|
|
209
|
+
// initSocket(username);
|
|
210
|
+
await delay(100);
|
|
211
|
+
// 执行登录成功后的函数
|
|
212
|
+
onLogined();
|
|
213
|
+
router.push('/');
|
|
214
|
+
insertLoginInfo(username);
|
|
215
|
+
loading.value = false;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
function onUserBlur() {
|
|
219
|
+
if (contextInfo.username.length === 0) removeClass(document.querySelector('.user'), 'focus');
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
function onPwdBlur() {
|
|
223
|
+
if (contextInfo.passWord.length === 0) removeClass(document.querySelector('.pwd'), 'focus');
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @description: 缓存token
|
|
228
|
+
* @param {*} token token数据
|
|
229
|
+
* @return {*}
|
|
230
|
+
*/
|
|
231
|
+
const cacheToken = token => {
|
|
232
|
+
const { access_token, expires_in, refresh_token } = token;
|
|
233
|
+
const cache = {
|
|
234
|
+
accessToken: access_token,
|
|
235
|
+
refreshToken: refresh_token,
|
|
236
|
+
expires: Date.now() + expires_in * 1000
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
cookies.set(kCKTOKEN, token.access_token);
|
|
240
|
+
const dataString = JSON.stringify(cache);
|
|
241
|
+
expires_in > 0 ? cookies.set(kTOKEN, dataString) : cookies.set(kTOKEN, dataString);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
// let socketIo = null;
|
|
245
|
+
// const initSocket = username => {
|
|
246
|
+
// socketIo = io(`ws://119.145.169.186:10006/webSocket/${username}`, {
|
|
247
|
+
// transports: ['websocket']
|
|
248
|
+
// });
|
|
249
|
+
// socketIo.on('connection', res => {
|
|
250
|
+
// console.log('connection', res);
|
|
251
|
+
// });
|
|
252
|
+
// socketIo.on('connected', res => {
|
|
253
|
+
// console.log('connected', res);
|
|
254
|
+
// });
|
|
255
|
+
// socketIo.on('close', res => {
|
|
256
|
+
// console.log('connected', res);
|
|
257
|
+
// });
|
|
258
|
+
// socketIo.on('message', res => {
|
|
259
|
+
// console.log('message', res);
|
|
260
|
+
// // ElNotification({
|
|
261
|
+
// // title: '您有一条新的消息',
|
|
262
|
+
// // message: res,
|
|
263
|
+
// // type: 'success'
|
|
264
|
+
// // });
|
|
265
|
+
// });
|
|
266
|
+
// };
|
|
267
|
+
|
|
268
|
+
const insertLoginInfo = username => {
|
|
269
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
270
|
+
const { browser, browserVersion } = getBrower(userAgent);
|
|
271
|
+
const obj = {
|
|
272
|
+
userName: username,
|
|
273
|
+
loginTime: toDateString(new Date()),
|
|
274
|
+
browser,
|
|
275
|
+
browserVersion,
|
|
276
|
+
operatingSystem: getPlatform(userAgent)
|
|
277
|
+
};
|
|
278
|
+
serviceApi.post('/upms/v1/userMonitor', obj);
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
const getSysConfig = async () => {
|
|
282
|
+
const [err, data]: [Error, any] = await to(serviceApi.get('/upfm/v1/sysConfig', {}));
|
|
283
|
+
if (!err) {
|
|
284
|
+
const config: any = {};
|
|
285
|
+
data.list?.forEach(item => {
|
|
286
|
+
config[item.configCode] = item.configValue;
|
|
287
|
+
if (item.fileName) {
|
|
288
|
+
config[item.configCode] = getBaseURL() + '/ufil' + item.configValue;
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
const title = data.list?.find(f => f.configCode === 'title')?.configValue;
|
|
292
|
+
config['title'] = title || 'U-DP';
|
|
293
|
+
sysConfig.value = config;
|
|
294
|
+
bgStyle.value = {
|
|
295
|
+
backgroundImage: config['backgroundImg'] ? `url(${config['backgroundImg']})` : '',
|
|
296
|
+
backgroundRepeat: 'no-repeat',
|
|
297
|
+
backgroundPosition: 'center'
|
|
298
|
+
};
|
|
299
|
+
console.log('bgStyle=', bgStyle);
|
|
300
|
+
const favicon = useFavicon();
|
|
301
|
+
favicon.value = config.favicon || utogether;
|
|
302
|
+
storageLocal.setItem(kSYSCONFIG, config);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
dataThemeChange(overallStyle.value);
|
|
307
|
+
|
|
308
|
+
onBeforeMount(() => {
|
|
309
|
+
getSysConfig();
|
|
310
|
+
// cookies.addPrefix('sitzone-mes');
|
|
311
|
+
});
|
|
312
|
+
</script>
|
|
313
|
+
|
|
314
|
+
<style scoped>
|
|
315
|
+
@import url('../../style/login.css');
|
|
316
|
+
</style>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-08-10 09:10:39
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-04-08 15:35:00
|
|
6
|
+
* @Description: 消息发送配置
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div>
|
|
10
|
+
<ut-grid ref="SuGridRef" :items="formItems" :columns="columns" />
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script lang="tsx">
|
|
15
|
+
export default { name: 'MsgMonitor' };
|
|
16
|
+
</script>
|
|
17
|
+
<script setup lang="tsx">
|
|
18
|
+
import { ref } from 'vue';
|
|
19
|
+
|
|
20
|
+
const SuGridRef = ref(null);
|
|
21
|
+
|
|
22
|
+
const formItems = [{ field: 'msgCode' }, { field: 'msgName' }];
|
|
23
|
+
|
|
24
|
+
// 列字段
|
|
25
|
+
const columns = [
|
|
26
|
+
{ type: 'checkbox', width: 50, align: 'center' },
|
|
27
|
+
{ field: 'msgCode' },
|
|
28
|
+
{ field: 'msgName' },
|
|
29
|
+
{ field: 'msgService' }
|
|
30
|
+
// {
|
|
31
|
+
// field: 'enabled',
|
|
32
|
+
// width: 90,
|
|
33
|
+
// formatter: ['formatDict', 'SU.ENABLE']
|
|
34
|
+
// }
|
|
35
|
+
];
|
|
36
|
+
</script>
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-08-11 10:07:47
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-04-29 14:15:58
|
|
6
|
+
* @Description: 邮件模板
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div>
|
|
10
|
+
<ut-content title="消息模板" @close="handleClose">
|
|
11
|
+
<template v-slot:header>
|
|
12
|
+
<ut-button icon="ri-save-3-fill" content="save" @tap="handleSave()" />
|
|
13
|
+
</template>
|
|
14
|
+
<!-- <template v-slot:body>
|
|
15
|
+
<ut-form ref="formRef" :record="record" :items="items" data-status="update" />
|
|
16
|
+
<ut-divider title="消息模板内容" />
|
|
17
|
+
<div style="border: 1px solid #ccc" />
|
|
18
|
+
<Toolbar
|
|
19
|
+
style="border-bottom: 1px solid #ccc"
|
|
20
|
+
:editor="editorRef"
|
|
21
|
+
:default-config="toolbarConfig"
|
|
22
|
+
mode="default"
|
|
23
|
+
/>
|
|
24
|
+
<Editor
|
|
25
|
+
v-model="valueHtml"
|
|
26
|
+
style="height: 300px; overflow-y: hidden"
|
|
27
|
+
:default-config="editorConfig"
|
|
28
|
+
mode="default"
|
|
29
|
+
@onCreated="handleCreated"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
</template> -->
|
|
33
|
+
</ut-content>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script setup lang="ts">
|
|
38
|
+
import { onBeforeUnmount, ref, shallowRef, onMounted } from 'vue';
|
|
39
|
+
// import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
|
|
40
|
+
// import '@wangeditor/editor/dist/css/style.css'; // 引入 css
|
|
41
|
+
import { getServiceApi } from '../../../api';
|
|
42
|
+
import { clone } from 'xe-utils';
|
|
43
|
+
|
|
44
|
+
interface IProps {
|
|
45
|
+
record: IRecord;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const props = withDefaults(defineProps<IProps>(), {
|
|
49
|
+
record: (): IRecord => {
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
show: false
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const formRef = ref(null);
|
|
56
|
+
|
|
57
|
+
// const items = [
|
|
58
|
+
// { field: 'msgtemplateCode', required: true },
|
|
59
|
+
// { field: 'msgtemplateName', required: true },
|
|
60
|
+
// { field: 'language', required: true },
|
|
61
|
+
// { field: 'msgType', required: true }
|
|
62
|
+
// ];
|
|
63
|
+
|
|
64
|
+
// 编辑器实例,必须用 shallowRef
|
|
65
|
+
const editorRef = shallowRef();
|
|
66
|
+
// 内容 HTML
|
|
67
|
+
const valueHtml = ref('');
|
|
68
|
+
|
|
69
|
+
// const toolbarConfig = {};
|
|
70
|
+
// const editorConfig = { placeholder: '请输入内容...' };
|
|
71
|
+
// const handleCreated = editor => {
|
|
72
|
+
// editorRef.value = editor; // 记录 editor 实例,重要!
|
|
73
|
+
// };
|
|
74
|
+
|
|
75
|
+
const handleSave = () => {
|
|
76
|
+
const record = clone(props.record, true);
|
|
77
|
+
record.templateContent = editorRef.value.getHtml();
|
|
78
|
+
formRef.value.validateForm(async valid => {
|
|
79
|
+
if (!valid) {
|
|
80
|
+
await getServiceApi().post('xxx', record);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const emit = defineEmits<{ (e: 'onClose'): void }>();
|
|
86
|
+
// 抽屉关闭
|
|
87
|
+
function handleClose() {
|
|
88
|
+
emit('onClose');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// 模拟 ajax 异步获取内容
|
|
92
|
+
onMounted(() => {
|
|
93
|
+
setTimeout(() => {
|
|
94
|
+
valueHtml.value = props.record.templateContent;
|
|
95
|
+
}, 30);
|
|
96
|
+
});
|
|
97
|
+
// 组件销毁时,也及时销毁编辑器
|
|
98
|
+
onBeforeUnmount(() => {
|
|
99
|
+
const editor = editorRef.value;
|
|
100
|
+
if (editor == null) return;
|
|
101
|
+
editor.destroy();
|
|
102
|
+
});
|
|
103
|
+
</script>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-08-11 09:36:03
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-04-29 11:33:23
|
|
6
|
+
* @Description: 消息模板
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div>
|
|
10
|
+
<ut-grid v-if="!showChild" :items="formItems" :columns="columns" :editable="false" />
|
|
11
|
+
<msg-content v-else ref="msgContentRef" :record="record" @onClose="onClose" />
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="tsx">
|
|
16
|
+
export default { name: 'MsgTemplate' };
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<script setup lang="tsx">
|
|
20
|
+
import { ref } from 'vue';
|
|
21
|
+
import { useRender } from '@utogether/utils';
|
|
22
|
+
|
|
23
|
+
import msgContent from './TemplateContent.vue';
|
|
24
|
+
|
|
25
|
+
const renderHook = useRender();
|
|
26
|
+
|
|
27
|
+
const showChild = ref(false);
|
|
28
|
+
const msgContentRef = ref(null);
|
|
29
|
+
const record = ref({});
|
|
30
|
+
|
|
31
|
+
const formItems = [{ field: 'msgtemplateCode' }, { field: 'msgtemplateName' }];
|
|
32
|
+
|
|
33
|
+
const columns = [
|
|
34
|
+
{ field: 'msgtemplateCode' },
|
|
35
|
+
{ field: 'msgtemplateName' },
|
|
36
|
+
{ field: 'msgType', width: 110, formatter: ['formatDict', 'SU.MESSAGE.TYPE'] },
|
|
37
|
+
{ field: 'language', width: 110 },
|
|
38
|
+
{
|
|
39
|
+
field: 'enabled',
|
|
40
|
+
width: 90,
|
|
41
|
+
editRender: renderHook.renderDict({ code: 'SU.ENABLE', defaultValue: '1' }),
|
|
42
|
+
formatter: ['formatDict', 'SU.ENABLE']
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
field: 'operate',
|
|
46
|
+
width: 70,
|
|
47
|
+
fixed: 'right',
|
|
48
|
+
slots: {
|
|
49
|
+
default: ({ row }) => {
|
|
50
|
+
if (!row.id) return null;
|
|
51
|
+
return [<ut-button content="config" icon="ri-edit-box-line" onTap={() => handleConfig(row)} />];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
const handleConfig = row => {
|
|
58
|
+
row.templateContent = '<p>模拟 Ajax 异步设置内容</p>';
|
|
59
|
+
record.value = row;
|
|
60
|
+
showChild.value = true;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const onClose = () => {
|
|
64
|
+
showChild.value = false;
|
|
65
|
+
};
|
|
66
|
+
</script>
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-07-15 17:02:56
|
|
4
|
+
* @LastEditors: wei.li
|
|
5
|
+
* @LastEditTime: 2022-11-17 10:30:48
|
|
6
|
+
* @Description: file contentu
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div class="ut-loview-wrapper">
|
|
10
|
+
<el-drawer :model-value="show" title="消息发送模板" size="75%" :before-close="handleClose">
|
|
11
|
+
<!-- <ut-content title="值集视图" @onClose="handleClose">
|
|
12
|
+
<template v-slot:header>
|
|
13
|
+
<ut-button icon="ri-save-3-fill" content="save" @click="handleSave()" />
|
|
14
|
+
</template>
|
|
15
|
+
<template v-slot:body>
|
|
16
|
+
<ut-form ref="formRef" :record="record" :items="items" data-status="update" />
|
|
17
|
+
<ut-divider title="视图列" />
|
|
18
|
+
<ut-grid
|
|
19
|
+
ref="gridRef"
|
|
20
|
+
:columns="columns"
|
|
21
|
+
:service-code="serviceCode"
|
|
22
|
+
:default-value-ext="{ parentId: record.id }"
|
|
23
|
+
:height="height"
|
|
24
|
+
:events="onEvents"
|
|
25
|
+
/>
|
|
26
|
+
</template>
|
|
27
|
+
</ut-content> -->
|
|
28
|
+
<ut-grid
|
|
29
|
+
ref="gridRef"
|
|
30
|
+
:columns="columns"
|
|
31
|
+
:url="serviceCode"
|
|
32
|
+
:default-value="{ parentId: record.id }"
|
|
33
|
+
/>
|
|
34
|
+
</el-drawer>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script setup lang="ts">
|
|
39
|
+
import { ref } from 'vue';
|
|
40
|
+
// import serviceApi from '@/api';
|
|
41
|
+
import { useRender } from '@utogether/utils';
|
|
42
|
+
|
|
43
|
+
interface IProps {
|
|
44
|
+
record: IRecord;
|
|
45
|
+
show: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
withDefaults(defineProps<IProps>(), {
|
|
49
|
+
record: (): IRecord => {
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
show: false
|
|
53
|
+
});
|
|
54
|
+
const renderHook = useRender();
|
|
55
|
+
// const systemInfo = useSystemStore().systemInfo;
|
|
56
|
+
|
|
57
|
+
// const optionProps = { value: 'dictCode', label: 'dictName' };
|
|
58
|
+
|
|
59
|
+
// const formRef = ref(null);
|
|
60
|
+
// const items = [
|
|
61
|
+
// { field: 'lovCode', required: true },
|
|
62
|
+
// { field: 'lovName', required: true },
|
|
63
|
+
// { field: 'valueField', required: true },
|
|
64
|
+
// { field: 'displayField', required: true },
|
|
65
|
+
// { field: 'lovTitle' },
|
|
66
|
+
// {
|
|
67
|
+
// field: 'sqlStatement',
|
|
68
|
+
// span: 24,
|
|
69
|
+
// itemRender: { name: '$textarea', props: { rows: 5 } },
|
|
70
|
+
// required: true
|
|
71
|
+
// }
|
|
72
|
+
// ];
|
|
73
|
+
|
|
74
|
+
const attr = {
|
|
75
|
+
field: 'msgtemplateCode',
|
|
76
|
+
mapField: { msgtemplateName: 'msgtemplateName', msgtemplateId: 'id' },
|
|
77
|
+
serviceCode: 'xxx',
|
|
78
|
+
value: 'msgtemplateCode',
|
|
79
|
+
code: 'code'
|
|
80
|
+
};
|
|
81
|
+
// 列字段
|
|
82
|
+
const columns: ITableColProps[] = [
|
|
83
|
+
{ type: 'checkbox', width: 50, align: 'center' },
|
|
84
|
+
{ field: 'seqNo', required: true, width: 100, editRender: renderHook.renderNumber() },
|
|
85
|
+
{ field: 'msgtemplateCode', required: true, editRender: renderHook.renderLov(attr) },
|
|
86
|
+
{ field: 'msgtemplateName' },
|
|
87
|
+
{
|
|
88
|
+
field: 'msgType',
|
|
89
|
+
width: 100,
|
|
90
|
+
editRender: renderHook.renderDict('SU.MESSAGE.TYPE', onChange),
|
|
91
|
+
formatter: ['formatDict', 'SU.MESSAGE.TYPE']
|
|
92
|
+
},
|
|
93
|
+
{ field: 'msgService', width: 120 },
|
|
94
|
+
{ field: 'msgServiceName', width: 120 },
|
|
95
|
+
{ field: 'remark', minWidth: 120 }
|
|
96
|
+
];
|
|
97
|
+
|
|
98
|
+
const gridRef = ref(null);
|
|
99
|
+
// const height = window.innerHeight - 280;
|
|
100
|
+
|
|
101
|
+
//激活事件
|
|
102
|
+
// const onEvents = {
|
|
103
|
+
// editActived({ row }) {
|
|
104
|
+
// columns[6].editRender.props.disabled = row.dictDispose !== 'dictCode';
|
|
105
|
+
// }
|
|
106
|
+
// };
|
|
107
|
+
|
|
108
|
+
// change事件
|
|
109
|
+
function onChange(item) {
|
|
110
|
+
item.row.dictName = '';
|
|
111
|
+
columns[6].editRender.props.disabled = item.row.dictDispose !== 'dictCode';
|
|
112
|
+
columns[6].required = item.row.dictDispose !== 'dictCode';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const serviceCode = {
|
|
116
|
+
fetch: 'dict/listChildren',
|
|
117
|
+
del: 'dict/deleteDicts',
|
|
118
|
+
add: 'dict/insertDicts',
|
|
119
|
+
update: 'dict/updateDicts'
|
|
120
|
+
};
|
|
121
|
+
const emit = defineEmits<{ (e: 'onClose'): void }>();
|
|
122
|
+
// 抽屉关闭
|
|
123
|
+
function handleClose() {
|
|
124
|
+
emit('onClose');
|
|
125
|
+
}
|
|
126
|
+
</script>
|
|
127
|
+
|
|
128
|
+
<style lang="scss">
|
|
129
|
+
.ut-loview-wrapper {
|
|
130
|
+
.el-drawer__header {
|
|
131
|
+
margin-bottom: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.el-drawer__body {
|
|
135
|
+
padding: 5px 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ut-content-body {
|
|
139
|
+
height: 90%;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
</style>
|