@lm_fe/pages 0.1.201 → 0.2.5
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/README.md +1 -1
- package/dist/a_chunks/{.root5.js → components.doctor_end.ExemplaryCase.js} +36 -68
- package/dist/a_chunks/components.doctor_end.HeaderInfo.js +635 -0
- package/dist/a_chunks/curve.components.BmiCanvas.js +242 -0
- package/dist/a_chunks/curve.components.FetusCanvas.js +259 -0
- package/dist/a_chunks/curve.components.FetusCanvasNICHD.js +1907 -0
- package/dist/a_chunks/curve.components.Pregnogram.js +166 -0
- package/dist/a_chunks/data.js +572 -0
- package/dist/a_chunks/func.js +86 -0
- package/dist/a_chunks/index.js +1049 -286
- package/dist/a_chunks/modals.entries.BF_Form.js +41 -0
- package/dist/a_chunks/modals.entries.StupidTemplateModal2.js +22 -0
- package/dist/a_chunks/modals.entries.box.js +23 -0
- package/dist/a_chunks/{.root11.js → modals.entries.modal_form.js} +99 -70
- package/dist/a_chunks/modals.entries.modal_page.js +143 -0
- package/dist/a_chunks/{.root13.js → modals.entries.print_modal.js} +22 -48
- package/dist/a_chunks/modals.entries.result_template.js +201 -0
- package/dist/a_chunks/{.root14.js → modals.entries.template_modal3.js} +80 -124
- package/dist/a_chunks/modals.entries.test.js +30 -0
- package/dist/a_chunks/{.root16.js → modals.entries.text_search.js} +20 -49
- package/dist/a_chunks/{.root17.js → modals.entries./344/271/231/350/202/235/347/256/241/347/220/206.js} +17 -45
- package/dist/a_chunks/{.root18.js → modals.entries./345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250.js} +68 -93
- package/dist/a_chunks/modals.entries./346/213/223/345/261/225/351/207/217/350/241/250.js +257 -0
- package/dist/a_chunks/{.root19.js → modals.entries./346/242/205/346/257/222/347/256/241/347/220/206.js} +58 -90
- package/dist/a_chunks/{.root20.js → modals.entries./346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250.js} +144 -154
- package/dist/a_chunks/{.root21.js → modals.entries./347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250.js} +27 -48
- package/dist/a_chunks/{.root22.js → modals.entries./350/257/212/346/226/255/345/216/206/345/217/262.js} +9 -37
- package/dist/a_chunks/{.root23.js → modals.entries./351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257.js} +127 -172
- package/dist/a_chunks/{.root24.js → modals.entries./351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206.js} +438 -336
- package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/277.js +102 -0
- package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/2772.js +157 -0
- package/dist/a_chunks/{.root8.js → src.block./346/243/200/351/252/214/346/243/200/346/237/245.js} +69 -208
- package/dist/a_chunks/{.root3.js → src.components.Base_List.js} +329 -320
- package/dist/a_chunks/src.components.Layout_Sider.js +101 -0
- package/dist/a_chunks/src.components.Layout_TabButton.js +69 -0
- package/dist/a_chunks/src.components.Login.js +151 -0
- package/dist/a_chunks/src.components.MenuSearch.js +106 -0
- package/dist/a_chunks/{.root7.js → src.components.QuickDocButton.js} +1 -2
- package/dist/a_chunks/src.pages.questionnaire.js +1633 -0
- package/dist/a_chunks/use_fetus.js +138 -0
- package/dist/a_chunks/utils.js +100 -0
- package/dist/a_chunks/utils2.js +36 -0
- package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
- package/dist/components/BF_Form/Wrap.d.ts +2 -2
- package/dist/components/BF_Form/index.d.ts +4 -2
- package/dist/components/BF_Form/types.d.ts +7 -0
- package/dist/components/BF_Form/use_table_config.d.ts +1 -5
- package/dist/components/Base_List/Helper.d.ts +0 -5
- package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
- package/dist/components/Base_List/index.d.ts +2 -1
- package/dist/components/Base_List/types.d.ts +6 -3
- package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
- package/dist/components/Base_List/utils.d.ts +11 -0
- package/dist/components/HighRiskTableEntry/utils.d.ts +4 -3
- package/dist/components/IdNOButton/index copy.d.ts +1 -1
- package/dist/components/Layout_Sider/Inner.d.ts +2 -4
- package/dist/components/Layout_Sider/index.d.ts +2 -2
- package/dist/components/Layout_Sider/utils.d.ts +13 -0
- package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
- package/dist/components/Layout_TabButton/index.d.ts +3 -8
- package/dist/components/Layout_TabButton/types.d.ts +8 -0
- package/dist/components/Login/Inner.d.ts +0 -1
- package/dist/components/Login/index.d.ts +2 -1
- package/dist/components/MenuSearch/Inner.d.ts +6 -0
- package/dist/components/MenuSearch/index.d.ts +2 -0
- package/dist/components/QuickDocButton/index.d.ts +5 -1
- package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
- package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
- package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
- package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
- package/dist/components/exception/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
- package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
- package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/use_fetus.d.ts +33 -0
- package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
- package/dist/curve/components/Pregnogram/index.d.ts +11 -0
- package/dist/curve/components/api.d.ts +17 -0
- package/dist/curve/components-new/BmiCanvas/index.d.ts +23 -0
- package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvas/index.d.ts +19 -0
- package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +21 -0
- package/dist/curve/components-new/Pregnogram/index.d.ts +13 -0
- package/dist/curve/data.d.ts +125 -0
- package/dist/curve/func.d.ts +12 -0
- package/dist/curve/func.test.d.ts +1 -0
- package/dist/curve/index.d.ts +7 -0
- package/dist/curve/intro-steps.d.ts +7 -0
- package/dist/curve/utils.d.ts +8 -0
- package/dist/form_config/conceiveMode.d.ts +2 -0
- package/dist/form_config/index.d.ts +4 -0
- package/dist/form_config/mlUltrasounds.d.ts +2 -0
- package/dist/form_config/not_yes_input.d.ts +4 -0
- package/dist/form_config/pressure.d.ts +4 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use_duck_form.d.ts +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -33
- package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
- package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
- package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +7 -1
- package/dist/modals/entries/box/index.d.ts +6 -0
- package/dist/modals/entries/modal_form/index.d.ts +1 -1
- package/dist/modals/entries/result_template/index.d.ts +24 -0
- package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
- package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
- package/dist/modals/entries/template_modal3/index.d.ts +6 -3
- package/dist/modals/entries/text_search/index.d.ts +1 -1
- package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
- package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/utils.d.ts +5 -0
- package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/History.d.ts +10 -0
- package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/index.d.ts +9 -0
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +2 -1
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +3 -3
- package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +4 -5
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +1 -1
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/Tag.d.ts +12 -0
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/utils.d.ts +8 -0
- package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
- package/dist/modals/index.d.ts +4 -1
- package/dist/modals/meta.d.ts +4 -1
- package/dist/pages/doc_record/index.d.ts +1 -1
- package/dist/pages/index.d.ts +1 -0
- package/dist/pages/questionnaire/Inner.d.ts +4 -0
- package/dist/pages/questionnaire/Qn.d.ts +3 -0
- package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
- package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
- package/dist/pages/questionnaire/create/common.d.ts +46 -0
- package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
- package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
- package/dist/pages/questionnaire/create/step1.d.ts +12 -0
- package/dist/pages/questionnaire/create/step2.d.ts +10 -0
- package/dist/pages/questionnaire/create/step3.d.ts +8 -0
- package/dist/pages/questionnaire/create/step4.d.ts +8 -0
- package/dist/pages/questionnaire/index.d.ts +3 -0
- package/dist/pages/questionnaire/types.d.ts +10 -0
- package/dist/utils/helper.d.ts +5 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +34 -16
- package/dist/a_chunks/.root.js +0 -245
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js +0 -474
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js +0 -200
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js +0 -58
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js +0 -76
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js +0 -281
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root4.js +0 -629
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root6.js +0 -164
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root9.js +0 -69
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/extends.js +0 -11
- package/dist/a_chunks/extends.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
- package/dist/index.js.map +0 -1
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { b as __awaiter, c as __generator } from './index.js';
|
|
2
|
+
import { Layout, Menu } from 'antd';
|
|
3
|
+
import { debounce, get } from 'lodash';
|
|
4
|
+
import React, { useState, useEffect } from 'react';
|
|
5
|
+
import 'react-perfect-scrollbar/dist/css/styles.css';
|
|
6
|
+
import { use_provoke } from '@lm_fe/provoke';
|
|
7
|
+
import PerfectScrollbar from 'react-perfect-scrollbar';
|
|
8
|
+
import { u as use_perm_tree, f as findIdsByChildId } from './utils.js';
|
|
9
|
+
import '@lm_fe/components';
|
|
10
|
+
import '@lm_fe/utils';
|
|
11
|
+
import 'classnames';
|
|
12
|
+
import '@lm_fe/components_m';
|
|
13
|
+
import '@lm_fe/env';
|
|
14
|
+
import '@lm_fe/service';
|
|
15
|
+
var collapsedWidth = 50;
|
|
16
|
+
var width = 232;
|
|
17
|
+
function Layout_Sider_Inner(props) {
|
|
18
|
+
var collapsed = use_provoke(function (s) {
|
|
19
|
+
return s.sys_layout;
|
|
20
|
+
}).collapsed;
|
|
21
|
+
var _a = use_perm_tree(),
|
|
22
|
+
permissions_tree = _a.permissions_tree,
|
|
23
|
+
permissions = _a.permissions;
|
|
24
|
+
var _b = useState(''),
|
|
25
|
+
activeKey = _b[0],
|
|
26
|
+
setActiveKey = _b[1];
|
|
27
|
+
var _c = useState([]),
|
|
28
|
+
openKeys = _c[0],
|
|
29
|
+
setOpenKeys = _c[1];
|
|
30
|
+
var pathname = props.location.pathname;
|
|
31
|
+
var history = props.history,
|
|
32
|
+
updateTabs = props.updateTabs,
|
|
33
|
+
location = props.location;
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
var ids = findIdsByChildId(permissions_tree !== null && permissions_tree !== void 0 ? permissions_tree : [], pathname);
|
|
36
|
+
setOpenKeys(ids);
|
|
37
|
+
setActiveKey(pathname);
|
|
38
|
+
return function () {};
|
|
39
|
+
}, [pathname]);
|
|
40
|
+
function handleMenuClick(e) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
42
|
+
var key, keyPath, menu;
|
|
43
|
+
return __generator(this, function (_a) {
|
|
44
|
+
e.item, key = e.key, keyPath = e.keyPath;
|
|
45
|
+
if (key && key.indexOf('http') !== -1) {
|
|
46
|
+
window.open(key);
|
|
47
|
+
return [2];
|
|
48
|
+
}
|
|
49
|
+
menu = permissions[key];
|
|
50
|
+
console.log('click', {
|
|
51
|
+
e: e,
|
|
52
|
+
key: key,
|
|
53
|
+
menu: menu
|
|
54
|
+
});
|
|
55
|
+
updateTabs({
|
|
56
|
+
title: get(menu, 'name'),
|
|
57
|
+
key: get(menu, 'key'),
|
|
58
|
+
path: get(menu, 'key'),
|
|
59
|
+
search: get(location, 'search'),
|
|
60
|
+
closable: true
|
|
61
|
+
});
|
|
62
|
+
history.push(menu.key);
|
|
63
|
+
setOpenKeys(keyPath);
|
|
64
|
+
setActiveKey(key);
|
|
65
|
+
return [2];
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function handleOpenChange(keys) {
|
|
70
|
+
setOpenKeys(keys);
|
|
71
|
+
}
|
|
72
|
+
var handleSync = debounce(function (ps) {
|
|
73
|
+
ps.update();
|
|
74
|
+
}, 600);
|
|
75
|
+
if (collapsed) return null;
|
|
76
|
+
return /*#__PURE__*/React.createElement(Layout.Sider, {
|
|
77
|
+
theme: "light",
|
|
78
|
+
collapsed: collapsed,
|
|
79
|
+
trigger: null,
|
|
80
|
+
collapsedWidth: 1
|
|
81
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PerfectScrollbar, {
|
|
82
|
+
style: {
|
|
83
|
+
height: 'calc(100vh - 64px)',
|
|
84
|
+
overflowY: 'auto'
|
|
85
|
+
},
|
|
86
|
+
options: {
|
|
87
|
+
suppressScrollX: true
|
|
88
|
+
},
|
|
89
|
+
onSync: handleSync
|
|
90
|
+
}, /*#__PURE__*/React.createElement(Menu, {
|
|
91
|
+
theme: "light",
|
|
92
|
+
mode: "inline",
|
|
93
|
+
inlineIndent: 18,
|
|
94
|
+
selectedKeys: [activeKey],
|
|
95
|
+
openKeys: openKeys,
|
|
96
|
+
onClick: handleMenuClick,
|
|
97
|
+
onOpenChange: handleOpenChange,
|
|
98
|
+
items: permissions_tree
|
|
99
|
+
})), /*#__PURE__*/React.createElement("footer", null, /*#__PURE__*/React.createElement("div", null))));
|
|
100
|
+
}
|
|
101
|
+
export { collapsedWidth, Layout_Sider_Inner as default, width };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { MyIcon } from '@lm_fe/components';
|
|
2
|
+
import { use_provoke } from '@lm_fe/provoke';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { s as styleInject } from './index.js';
|
|
6
|
+
import '@lm_fe/utils';
|
|
7
|
+
import 'antd';
|
|
8
|
+
import 'lodash';
|
|
9
|
+
import '@lm_fe/components_m';
|
|
10
|
+
import '@lm_fe/env';
|
|
11
|
+
import '@lm_fe/service';
|
|
12
|
+
var css_248z = ".index-module_my-tab-btn__TaDAm {\n position: relative;\n height: 36px;\n padding: 4px 8px;\n color: #666;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n transition: all 0.4s;\n}\n.index-module_my-tab-btn__TaDAm:before {\n content: '';\n position: absolute;\n top: 13px;\n right: 0;\n width: 1px;\n height: 10px;\n background-color: #ddd;\n}\n.index-module_my-tab-btn__TaDAm .index-module_after__BEqiF {\n content: '';\n display: inline-block !important;\n position: absolute;\n left: 0px;\n bottom: 0;\n width: 0;\n height: 2px;\n left: 50%;\n}\n.index-module_my-tab-btn__TaDAm:hover {\n color: #666;\n cursor: pointer;\n}\n.index-module_my-tab-btn__TaDAm:hover .index-module_my-tab-btn-close__Ucy57 {\n visibility: visible;\n}\n.index-module_my-tab-btn-icon-active__mwKzA,\n.index-module_my-tab-btn-active__eiK94 {\n position: relative;\n}\n.index-module_my-tab-btn-icon-active__mwKzA:before,\n.index-module_my-tab-btn-active__eiK94:before {\n background: transparent;\n}\n.index-module_my-tab-btn-icon-active__mwKzA .index-module_after__BEqiF,\n.index-module_my-tab-btn-active__eiK94 .index-module_after__BEqiF {\n transition: all 0.2s ease-out;\n left: 0px;\n width: calc(100%);\n}\n.index-module_my-tab-btn-icon-active__mwKzA .index-module_my-tab-btn-close__Ucy57,\n.index-module_my-tab-btn-active__eiK94 .index-module_my-tab-btn-close__Ucy57 {\n visibility: visible;\n transform: rotate(180deg);\n transition: all 0.2s ease-out;\n}\n.index-module_my-tab-btn-icon-active__mwKzA .index-module_my-tab-btn-close__Ucy57 .anticon,\n.index-module_my-tab-btn-active__eiK94 .index-module_my-tab-btn-close__Ucy57 .anticon {\n color: #666;\n}\n.index-module_my-tab-btn-title__TouVP {\n padding: 0 20px 0 12px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n word-break: break-all;\n text-align: center;\n font-size: 14px;\n}\n.index-module_my-tab-btn-close__Ucy57 {\n width: 18px;\n height: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 2px;\n visibility: hidden;\n position: absolute;\n top: 9px;\n right: 6px;\n}\n.index-module_my-tab-btn-close__Ucy57 .anticon {\n font-size: 10px;\n color: #999;\n}\n.index-module_my-tab-btn-close__Ucy57:hover {\n background-color: #fff;\n}\n.index-module_my-tab-btn-close__Ucy57:hover .anticon {\n color: #222;\n}\n";
|
|
13
|
+
var styles = {
|
|
14
|
+
"my-tab-btn": "index-module_my-tab-btn__TaDAm",
|
|
15
|
+
"after": "index-module_after__BEqiF",
|
|
16
|
+
"my-tab-btn-close": "index-module_my-tab-btn-close__Ucy57",
|
|
17
|
+
"my-tab-btn-icon-active": "index-module_my-tab-btn-icon-active__mwKzA",
|
|
18
|
+
"my-tab-btn-active": "index-module_my-tab-btn-active__eiK94",
|
|
19
|
+
"my-tab-btn-title": "index-module_my-tab-btn-title__TouVP"
|
|
20
|
+
};
|
|
21
|
+
styleInject(css_248z);
|
|
22
|
+
function Layout_TabButton_Inner(props) {
|
|
23
|
+
var _a;
|
|
24
|
+
var _b = props.isActive,
|
|
25
|
+
isActive = _b === void 0 ? false : _b,
|
|
26
|
+
_c = props.closable,
|
|
27
|
+
closable = _c === void 0 ? true : _c,
|
|
28
|
+
title = props.title,
|
|
29
|
+
onClick = props.onClick,
|
|
30
|
+
onClose = props.onClose,
|
|
31
|
+
tabKey = props.tabKey;
|
|
32
|
+
var sys_theme = use_provoke(function (s) {
|
|
33
|
+
return s.sys_theme;
|
|
34
|
+
});
|
|
35
|
+
var handleClickTab = function handleClickTab() {
|
|
36
|
+
onClick && onClick(tabKey);
|
|
37
|
+
};
|
|
38
|
+
var handleCloseTab = function handleCloseTab(e) {
|
|
39
|
+
e.stopPropagation();
|
|
40
|
+
onClose && onClose(tabKey);
|
|
41
|
+
};
|
|
42
|
+
var regx = /\/happy\/config-table\/list(.*)\/(.*)/;
|
|
43
|
+
var result = regx.exec(title);
|
|
44
|
+
var dispaly_title = result ? "\u52A8\u6001\u5217\u8868\u9875".concat(result[1], "-").concat(result[2]) : title;
|
|
45
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
id: tabKey,
|
|
47
|
+
style: {
|
|
48
|
+
color: isActive ? sys_theme.colorPrimary : '',
|
|
49
|
+
background: isActive ? sys_theme.theme_bg_color : ''
|
|
50
|
+
},
|
|
51
|
+
className: classnames(styles['my-tab-btn'], (_a = {}, _a[styles['my-tab-btn-active']] = isActive, _a)),
|
|
52
|
+
onClick: handleClickTab
|
|
53
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
title: title,
|
|
55
|
+
className: styles['my-tab-btn-title']
|
|
56
|
+
}, dispaly_title), closable && (/*#__PURE__*/React.createElement("div", {
|
|
57
|
+
onClick: handleCloseTab,
|
|
58
|
+
className: styles['my-tab-btn-close'],
|
|
59
|
+
title: "\u5173\u95ED"
|
|
60
|
+
}, /*#__PURE__*/React.createElement(MyIcon, {
|
|
61
|
+
value: 'CloseOutlined'
|
|
62
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
style: {
|
|
64
|
+
background: isActive ? sys_theme.colorPrimary : ''
|
|
65
|
+
},
|
|
66
|
+
className: styles['after']
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
export { Layout_TabButton_Inner as default };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { MyIcon } from '@lm_fe/components';
|
|
2
|
+
import { mchcEnv } from '@lm_fe/env';
|
|
3
|
+
import { use_provoke } from '@lm_fe/provoke';
|
|
4
|
+
import { Card, Button, Form, Input, Checkbox } from 'antd';
|
|
5
|
+
import classnames from 'classnames';
|
|
6
|
+
import React, { useEffect, useState } from 'react';
|
|
7
|
+
import { s as styleInject } from './index.js';
|
|
8
|
+
import '@lm_fe/utils';
|
|
9
|
+
import 'lodash';
|
|
10
|
+
import '@lm_fe/components_m';
|
|
11
|
+
import '@lm_fe/service';
|
|
12
|
+
var css_248z = ".index-module_container__1EUKg {\n display: flex;\n height: 100vh;\n margin: 0;\n}\n.index-module_left-panel__mfu8l {\n flex: 1;\n}\n.index-module_right-panel__OpwE7 {\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: column;\n}\n.index-module_login-form__HKinZ {\n width: 440px;\n padding: 40px;\n border-radius: 4px;\n box-shadow: 10px 10px 20px rgba(1, 36, 73, 0.4);\n transform: translateY(-100%);\n opacity: 0;\n}\n.index-module_login-form__HKinZ .anticon {\n color: #888;\n}\n.index-module_decorations__jWpju {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n pointer-events: none;\n overflow: hidden;\n}\n.index-module_dot__u7Mwf {\n position: absolute;\n background: rgba(255, 255, 255, 0.4);\n border-radius: 50%;\n opacity: 0;\n}\n.index-module_dot-1__8i7U7 {\n width: 120px;\n height: 120px;\n top: 20%;\n left: 10%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.2s;\n}\n.index-module_dot-2__wt9fy {\n width: 80px;\n height: 80px;\n bottom: 15%;\n left: 5%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.4s;\n}\n.index-module_dot-3__Yy4mm {\n width: 60px;\n height: 60px;\n top: 40%;\n left: 30%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.6s;\n}\n.index-module_login-form__HKinZ {\n position: relative;\n z-index: 1;\n}\n@keyframes index-module_slide-in__HvqeU {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n.index-module_animate-in__yVlC0 {\n animation: index-module_slide-in__HvqeU 0.5s ease-out forwards;\n}\n.index-module_footer__dtz-2 {\n text-align: center;\n padding-bottom: 24px;\n color: #999;\n font-size: 12px;\n}\n";
|
|
13
|
+
var styles = {
|
|
14
|
+
"container": "index-module_container__1EUKg",
|
|
15
|
+
"left-panel": "index-module_left-panel__mfu8l",
|
|
16
|
+
"right-panel": "index-module_right-panel__OpwE7",
|
|
17
|
+
"login-form": "index-module_login-form__HKinZ",
|
|
18
|
+
"decorations": "index-module_decorations__jWpju",
|
|
19
|
+
"dot": "index-module_dot__u7Mwf",
|
|
20
|
+
"dot-1": "index-module_dot-1__8i7U7",
|
|
21
|
+
"slide-in": "index-module_slide-in__HvqeU",
|
|
22
|
+
"dot-2": "index-module_dot-2__wt9fy",
|
|
23
|
+
"dot-3": "index-module_dot-3__Yy4mm",
|
|
24
|
+
"animate-in": "index-module_animate-in__yVlC0",
|
|
25
|
+
"footer": "index-module_footer__dtz-2"
|
|
26
|
+
};
|
|
27
|
+
styleInject(css_248z);
|
|
28
|
+
function LoginInner(props) {
|
|
29
|
+
var logo = props.logo,
|
|
30
|
+
onFinish = props.onFinish;
|
|
31
|
+
var _a = use_provoke('config', 'sys_theme'),
|
|
32
|
+
config = _a.config,
|
|
33
|
+
sys_theme = _a.sys_theme;
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
return function () {};
|
|
36
|
+
}, []);
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: classnames(styles["container"])
|
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
style: {
|
|
41
|
+
background: sys_theme.colorPrimary
|
|
42
|
+
},
|
|
43
|
+
className: classnames(styles["left-panel"])
|
|
44
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: classnames(styles["decorations "])
|
|
46
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: classnames(styles["dot"], styles["dot-1"])
|
|
48
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: classnames(styles["dot"], styles["dot-2"])
|
|
50
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: classnames(styles["dot"], styles["dot-3"])
|
|
52
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: classnames(styles["right-panel"]),
|
|
54
|
+
style: {
|
|
55
|
+
background: sys_theme.darkTheme ? '#222' : '#fff'
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement(Card, {
|
|
58
|
+
className: classnames(styles["login-form"], styles["animate-in"])
|
|
59
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
60
|
+
style: {
|
|
61
|
+
display: 'flex',
|
|
62
|
+
justifyContent: 'center',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
fontSize: 24,
|
|
65
|
+
color: sys_theme.colorPrimary
|
|
66
|
+
}
|
|
67
|
+
}, logo ? /*#__PURE__*/React.createElement("img", {
|
|
68
|
+
alt: "logo",
|
|
69
|
+
src: logo
|
|
70
|
+
}) : null, config === null || config === void 0 ? void 0 : config.systemName), /*#__PURE__*/React.createElement(LoginForm, {
|
|
71
|
+
onFinish: onFinish
|
|
72
|
+
})), /*#__PURE__*/React.createElement("footer", {
|
|
73
|
+
className: classnames(styles["footer"])
|
|
74
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u5907\u6848\u53F7\uFF1A", /*#__PURE__*/React.createElement(Button, {
|
|
75
|
+
type: 'link',
|
|
76
|
+
href: "https://beian.miit.gov.cn"
|
|
77
|
+
}, "\u7CA4ICP\u590717048892\u53F7-1")), "Copyright \xA9 2020", ' ', /*#__PURE__*/React.createElement(Button, {
|
|
78
|
+
size: 'small',
|
|
79
|
+
type: 'link',
|
|
80
|
+
href: "http://www.lian-med.com/"
|
|
81
|
+
}, "\u5E7F\u5DDE\u83B2\u5370\u533B\u7597\u79D1\u6280\u6709\u9650\u516C\u53F8"), ", \u7248\u6743\u6240\u6709")));
|
|
82
|
+
}
|
|
83
|
+
function LoginForm(props) {
|
|
84
|
+
var _onFinish = props.onFinish;
|
|
85
|
+
var _a = useState(false),
|
|
86
|
+
loading = _a[0],
|
|
87
|
+
setLoading = _a[1];
|
|
88
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
89
|
+
initialValues: mchcEnv.loginRemember,
|
|
90
|
+
className: "login-main-center-form",
|
|
91
|
+
onFinish: function onFinish(values) {
|
|
92
|
+
if (values.remember) {
|
|
93
|
+
mchcEnv.loginRemember = values;
|
|
94
|
+
}
|
|
95
|
+
setLoading(true);
|
|
96
|
+
_onFinish(values)["finally"](function () {
|
|
97
|
+
return setLoading(false);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
101
|
+
name: "username",
|
|
102
|
+
rules: [{
|
|
103
|
+
required: true,
|
|
104
|
+
message: '请输入用户名!'
|
|
105
|
+
}]
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
107
|
+
autoFocus: true,
|
|
108
|
+
allowClear: true,
|
|
109
|
+
size: "large",
|
|
110
|
+
prefix: /*#__PURE__*/React.createElement(MyIcon, {
|
|
111
|
+
value: 'UserOutlined'
|
|
112
|
+
}),
|
|
113
|
+
placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D"
|
|
114
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
115
|
+
name: "password",
|
|
116
|
+
rules: [{
|
|
117
|
+
required: true,
|
|
118
|
+
message: '请输入密码!'
|
|
119
|
+
}, {
|
|
120
|
+
type: 'string'
|
|
121
|
+
}]
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Input.Password, {
|
|
123
|
+
visibilityToggle: false,
|
|
124
|
+
allowClear: true,
|
|
125
|
+
size: "large",
|
|
126
|
+
prefix: /*#__PURE__*/React.createElement(MyIcon, {
|
|
127
|
+
value: 'SafetyOutlined'
|
|
128
|
+
}),
|
|
129
|
+
placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801"
|
|
130
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
131
|
+
hidden: !__LOCAL__,
|
|
132
|
+
valuePropName: "checked",
|
|
133
|
+
name: "remember",
|
|
134
|
+
label: "\u8BB0\u4F4F\u5BC6\u7801\uFF08".concat(__LOCAL__, "\uFF09")
|
|
135
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
136
|
+
onChange: function onChange(e) {
|
|
137
|
+
var checked = e.target.checked;
|
|
138
|
+
if (!checked) {
|
|
139
|
+
mchcEnv.loginRemember = undefined;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
})), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Button, {
|
|
143
|
+
block: true,
|
|
144
|
+
size: "large",
|
|
145
|
+
className: "login-main-center-button",
|
|
146
|
+
type: "primary",
|
|
147
|
+
loading: loading,
|
|
148
|
+
htmlType: "submit"
|
|
149
|
+
}, "\u767B \u5F55")));
|
|
150
|
+
}
|
|
151
|
+
export { LoginInner as default };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { _ as __spreadArray, a as __assign, m as mchcModal__ } from './index.js';
|
|
2
|
+
import { mchcMacro } from '@lm_fe/env';
|
|
3
|
+
import { Input } from 'antd';
|
|
4
|
+
import React, { useState, useEffect } from 'react';
|
|
5
|
+
import { u as use_perm_tree } from './utils.js';
|
|
6
|
+
import '@lm_fe/components';
|
|
7
|
+
import '@lm_fe/utils';
|
|
8
|
+
import 'classnames';
|
|
9
|
+
import 'lodash';
|
|
10
|
+
import '@lm_fe/components_m';
|
|
11
|
+
import '@lm_fe/provoke';
|
|
12
|
+
import '@lm_fe/service';
|
|
13
|
+
var styles = {
|
|
14
|
+
border: '1px solid #ccc',
|
|
15
|
+
color: '#ccc',
|
|
16
|
+
fontFamily: 'Arial',
|
|
17
|
+
fontSize: '90%',
|
|
18
|
+
borderBottomWidth: 2,
|
|
19
|
+
margin: '0 2px',
|
|
20
|
+
borderRadius: 2,
|
|
21
|
+
minWidth: 20,
|
|
22
|
+
minHeight: 20,
|
|
23
|
+
padding: '0 2px',
|
|
24
|
+
lineHeight: '20px',
|
|
25
|
+
textAlign: 'center',
|
|
26
|
+
display: 'inline-block'
|
|
27
|
+
};
|
|
28
|
+
var id = 'MenuSearch'.split('').reduce(function (sum, a) {
|
|
29
|
+
return sum + a.charCodeAt(0);
|
|
30
|
+
}, 0);
|
|
31
|
+
function MenuSearch_Inner(props) {
|
|
32
|
+
var _a;
|
|
33
|
+
var _onSelect = props.onSelect;
|
|
34
|
+
var _b = use_perm_tree(),
|
|
35
|
+
permissions_tree = _b.permissions_tree,
|
|
36
|
+
toggle_collapsed = _b.toggle_collapsed;
|
|
37
|
+
var _c = useState(make_tag(permissions_tree)),
|
|
38
|
+
menus = _c[0],
|
|
39
|
+
set_menus = _c[1];
|
|
40
|
+
function make_tag(tree) {
|
|
41
|
+
if (tree === void 0) {
|
|
42
|
+
tree = [];
|
|
43
|
+
}
|
|
44
|
+
return tree.reduce(function (sum, a) {
|
|
45
|
+
var _a;
|
|
46
|
+
return __spreadArray(__spreadArray([], sum, true), ((_a = a.children) !== null && _a !== void 0 ? _a : []).reduce(function (cSum, c) {
|
|
47
|
+
return __spreadArray(__spreadArray([], cSum, true), c.type === 'menu' ? [__assign(__assign({}, c), {
|
|
48
|
+
name: "".concat(a.name, " - ").concat(c.name)
|
|
49
|
+
})] : [], true);
|
|
50
|
+
}, []), true);
|
|
51
|
+
}, []);
|
|
52
|
+
}
|
|
53
|
+
useEffect(function () {
|
|
54
|
+
set_menus(make_tag(permissions_tree));
|
|
55
|
+
return function () {};
|
|
56
|
+
}, [permissions_tree]);
|
|
57
|
+
function open() {
|
|
58
|
+
mchcModal__.openOne(id, 'text_search', {
|
|
59
|
+
modal_data: {
|
|
60
|
+
items: menus,
|
|
61
|
+
getLabel: function getLabel(target) {
|
|
62
|
+
return target.name;
|
|
63
|
+
},
|
|
64
|
+
onSelect: function onSelect(target) {
|
|
65
|
+
_onSelect(target);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
var suffix = /*#__PURE__*/React.createElement("span", {
|
|
71
|
+
onClick: open,
|
|
72
|
+
style: {
|
|
73
|
+
cursor: 'pointer'
|
|
74
|
+
}
|
|
75
|
+
}, /*#__PURE__*/React.createElement("kbd", {
|
|
76
|
+
style: styles
|
|
77
|
+
}, "Ctrl"), /*#__PURE__*/React.createElement("kbd", {
|
|
78
|
+
style: styles
|
|
79
|
+
}, "P"));
|
|
80
|
+
useEffect(function () {
|
|
81
|
+
var keydownCb = function keydownCb(event) {
|
|
82
|
+
if (event.ctrlKey) {
|
|
83
|
+
if (event.key === 'p') {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
open();
|
|
86
|
+
}
|
|
87
|
+
if (event.key === 'b') {
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
toggle_collapsed();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
window.addEventListener("keydown", keydownCb);
|
|
94
|
+
return function () {
|
|
95
|
+
window.removeEventListener("keydown", keydownCb);
|
|
96
|
+
};
|
|
97
|
+
}, []);
|
|
98
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
99
|
+
style: {}
|
|
100
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
101
|
+
suffix: suffix,
|
|
102
|
+
placeholder: (_a = mchcMacro.BUILDINFO) === null || _a === void 0 ? void 0 : _a.buildDate,
|
|
103
|
+
onClick: open
|
|
104
|
+
}));
|
|
105
|
+
}
|
|
106
|
+
export { MenuSearch_Inner as default };
|
|
@@ -9,7 +9,7 @@ var form_config = defineFormConfig([{
|
|
|
9
9
|
},
|
|
10
10
|
inputType: 'MS',
|
|
11
11
|
inputProps: {
|
|
12
|
-
|
|
12
|
+
uniqueKey: '证件类型',
|
|
13
13
|
marshal: 0
|
|
14
14
|
},
|
|
15
15
|
layout: '1/3'
|
|
@@ -120,4 +120,3 @@ var form_config = defineFormConfig([{
|
|
|
120
120
|
form_hidden: true
|
|
121
121
|
}]);
|
|
122
122
|
export { form_config as default };
|
|
123
|
-
//# sourceMappingURL=.root7.js.map
|