@lm_fe/pages 0.1.201

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.
Files changed (149) hide show
  1. package/README.md +31 -0
  2. package/dist/a_chunks/.root.js +245 -0
  3. package/dist/a_chunks/.root.js.map +1 -0
  4. package/dist/a_chunks/.root10.js +474 -0
  5. package/dist/a_chunks/.root10.js.map +1 -0
  6. package/dist/a_chunks/.root11.js +170 -0
  7. package/dist/a_chunks/.root11.js.map +1 -0
  8. package/dist/a_chunks/.root12.js +200 -0
  9. package/dist/a_chunks/.root12.js.map +1 -0
  10. package/dist/a_chunks/.root13.js +113 -0
  11. package/dist/a_chunks/.root13.js.map +1 -0
  12. package/dist/a_chunks/.root14.js +735 -0
  13. package/dist/a_chunks/.root14.js.map +1 -0
  14. package/dist/a_chunks/.root15.js +58 -0
  15. package/dist/a_chunks/.root15.js.map +1 -0
  16. package/dist/a_chunks/.root16.js +172 -0
  17. package/dist/a_chunks/.root16.js.map +1 -0
  18. package/dist/a_chunks/.root17.js +258 -0
  19. package/dist/a_chunks/.root17.js.map +1 -0
  20. package/dist/a_chunks/.root18.js +416 -0
  21. package/dist/a_chunks/.root18.js.map +1 -0
  22. package/dist/a_chunks/.root19.js +427 -0
  23. package/dist/a_chunks/.root19.js.map +1 -0
  24. package/dist/a_chunks/.root2.js +76 -0
  25. package/dist/a_chunks/.root2.js.map +1 -0
  26. package/dist/a_chunks/.root20.js +958 -0
  27. package/dist/a_chunks/.root20.js.map +1 -0
  28. package/dist/a_chunks/.root21.js +235 -0
  29. package/dist/a_chunks/.root21.js.map +1 -0
  30. package/dist/a_chunks/.root22.js +158 -0
  31. package/dist/a_chunks/.root22.js.map +1 -0
  32. package/dist/a_chunks/.root23.js +959 -0
  33. package/dist/a_chunks/.root23.js.map +1 -0
  34. package/dist/a_chunks/.root24.js +759 -0
  35. package/dist/a_chunks/.root24.js.map +1 -0
  36. package/dist/a_chunks/.root25.js +281 -0
  37. package/dist/a_chunks/.root25.js.map +1 -0
  38. package/dist/a_chunks/.root3.js +1054 -0
  39. package/dist/a_chunks/.root3.js.map +1 -0
  40. package/dist/a_chunks/.root4.js +629 -0
  41. package/dist/a_chunks/.root4.js.map +1 -0
  42. package/dist/a_chunks/.root5.js +1440 -0
  43. package/dist/a_chunks/.root5.js.map +1 -0
  44. package/dist/a_chunks/.root6.js +164 -0
  45. package/dist/a_chunks/.root6.js.map +1 -0
  46. package/dist/a_chunks/.root7.js +123 -0
  47. package/dist/a_chunks/.root7.js.map +1 -0
  48. package/dist/a_chunks/.root8.js +544 -0
  49. package/dist/a_chunks/.root8.js.map +1 -0
  50. package/dist/a_chunks/.root9.js +69 -0
  51. package/dist/a_chunks/.root9.js.map +1 -0
  52. package/dist/a_chunks/extends.js +11 -0
  53. package/dist/a_chunks/extends.js.map +1 -0
  54. package/dist/a_chunks/index.js +1492 -0
  55. package/dist/a_chunks/index.js.map +1 -0
  56. package/dist/block/index.d.ts +1 -0
  57. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +9 -0
  58. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/form_config.d.ts +3 -0
  59. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/index.d.ts +3 -0
  60. package/dist/components/BF_Form/Wrap.d.ts +9 -0
  61. package/dist/components/BF_Form/index.d.ts +14 -0
  62. package/dist/components/BF_Form/use_table_config copy.d.ts +13 -0
  63. package/dist/components/BF_Form/use_table_config.d.ts +13 -0
  64. package/dist/components/BF_Form/utils.d.ts +2 -0
  65. package/dist/components/Base_List/Helper.d.ts +13 -0
  66. package/dist/components/Base_List/_MyBaseList.d.ts +9 -0
  67. package/dist/components/Base_List/index.d.ts +3 -0
  68. package/dist/components/Base_List/types.d.ts +129 -0
  69. package/dist/components/HighRiskTableEntry/index.d.ts +8 -0
  70. package/dist/components/HighRiskTableEntry/utils.d.ts +23 -0
  71. package/dist/components/IdNOButton/index copy.d.ts +6 -0
  72. package/dist/components/IdNOButton/index.d.ts +12 -0
  73. package/dist/components/Layout_Sider/Inner.d.ts +17 -0
  74. package/dist/components/Layout_Sider/index.d.ts +4 -0
  75. package/dist/components/Layout_Sider/utils.d.ts +1 -0
  76. package/dist/components/Layout_TabButton/Inner.d.ts +11 -0
  77. package/dist/components/Layout_TabButton/index.d.ts +8 -0
  78. package/dist/components/Login/Inner.d.ts +8 -0
  79. package/dist/components/Login/index.d.ts +1 -0
  80. package/dist/components/QuickDocButton/form_config.d.ts +4 -0
  81. package/dist/components/QuickDocButton/index.d.ts +6 -0
  82. package/dist/components/doctor_end/ExemplaryCase/Inner.d.ts +33 -0
  83. package/dist/components/doctor_end/ExemplaryCase/config.d.ts +27 -0
  84. package/dist/components/doctor_end/ExemplaryCase/index.d.ts +3 -0
  85. package/dist/components/doctor_end/ExemplaryCase/request.d.ts +2 -0
  86. package/dist/components/doctor_end/HeaderInfo/Inner.d.ts +3 -0
  87. package/dist/components/doctor_end/HeaderInfo/index.d.ts +4 -0
  88. package/dist/components/doctor_end/HeaderInfo/types.d.ts +10 -0
  89. package/dist/components/doctor_end/HeaderInfo/utils.d.ts +20 -0
  90. package/dist/components/doctor_end/HeaderInfoLayout/index.d.ts +3 -0
  91. package/dist/components/doctor_end/index.d.ts +3 -0
  92. package/dist/components/exception/403.d.ts +4 -0
  93. package/dist/components/exception/404.d.ts +4 -0
  94. package/dist/components/exception/500.d.ts +6 -0
  95. package/dist/components/exception/ErrorBoundary.d.ts +11 -0
  96. package/dist/components/exception/ErrorBoundarySmall.d.ts +16 -0
  97. package/dist/components/exception/SelectTip.d.ts +2 -0
  98. package/dist/components/exception/index.d.ts +1 -0
  99. package/dist/components/index.d.ts +10 -0
  100. package/dist/form_config/config_table.d.ts +2 -0
  101. package/dist/form_config/index.d.ts +1 -0
  102. package/dist/index.d.ts +6 -0
  103. package/dist/index.js +36 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/modals/entries/BF_Form/index.d.ts +4 -0
  106. package/dist/modals/entries/StupidTemplateModal2/components/TemplateSelect.d.ts +2 -0
  107. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +22 -0
  108. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +16 -0
  109. package/dist/modals/entries/modal_form/index.d.ts +29 -0
  110. package/dist/modals/entries/modal_page/index.d.ts +12 -0
  111. package/dist/modals/entries/print_modal/index.d.ts +3 -0
  112. package/dist/modals/entries/template_modal3/EditModal.d.ts +2 -0
  113. package/dist/modals/entries/template_modal3/common.d.ts +4 -0
  114. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +1 -0
  115. package/dist/modals/entries/template_modal3/index copy 2.d.ts +19 -0
  116. package/dist/modals/entries/template_modal3/index copy.d.ts +22 -0
  117. package/dist/modals/entries/template_modal3/index.d.ts +17 -0
  118. package/dist/modals/entries/template_modal3/methods/index.d.ts +15 -0
  119. package/dist/modals/entries/template_modal3/types.d.ts +27 -0
  120. package/dist/modals/entries/test/index.d.ts +6 -0
  121. package/dist/modals/entries/text_search/index.d.ts +8 -0
  122. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +8 -0
  123. 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/index.d.ts +9 -0
  124. package/dist/modals/entries//346/242/205/346/257/222/347/256/241/347/220/206/index.d.ts +8 -0
  125. 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 +9 -0
  126. 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/components.d.ts +7 -0
  127. 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 +28 -0
  128. 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/utils.d.ts +9 -0
  129. 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 +8 -0
  130. 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 +3 -0
  131. 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 +5 -0
  132. 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 +7 -0
  133. package/dist/modals/entries//350/257/212/346/226/255/345/216/206/345/217/262/index.d.ts +8 -0
  134. package/dist/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/add-diagnoses/add-diagnoses.d.ts +12 -0
  135. package/dist/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/index.d.ts +20 -0
  136. package/dist/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/util.d.ts +60 -0
  137. 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 +13 -0
  138. 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 +9 -0
  139. 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" +12 -0
  140. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index.d.ts +13 -0
  141. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +2 -0
  142. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/index.d.ts +8 -0
  143. package/dist/modals/index.d.ts +22 -0
  144. package/dist/modals/meta.d.ts +21 -0
  145. package/dist/pages/doc_record/Right.d.ts +6 -0
  146. package/dist/pages/doc_record/index.d.ts +7 -0
  147. package/dist/pages/index.d.ts +1 -0
  148. package/dist/utils/index.d.ts +2 -0
  149. package/package.json +46 -0
@@ -0,0 +1,427 @@
1
+ import { _ as _extends } from './extends.js';
2
+ import _without from 'lodash/without';
3
+ import _size from 'lodash/size';
4
+ import _set from 'lodash/set';
5
+ import _orderBy from 'lodash/orderBy';
6
+ import _get from 'lodash/get';
7
+ import _forEach from 'lodash/forEach';
8
+ import _cloneDeep from 'lodash/cloneDeep';
9
+ import { s as styleInject, d as __rest, _ as __awaiter, a as __generator } from './index.js';
10
+ import React, { useState, useEffect } from 'react';
11
+ import { LazyAntd } from '@lm_fe/components';
12
+ import { SMchc_SyphilisManage } from '@lm_fe/service';
13
+ import { getSearchParamsValue } from '@lm_fe/utils';
14
+ import { otherOptions } from '@lm_fe/env';
15
+ import { getGesWeek, MyForm, getFormData } from '@lm_fe/components_m';
16
+ import 'antd/es/row/style';
17
+ import 'antd/es/row';
18
+ import 'antd/es/col/style';
19
+ import 'antd/es/col';
20
+ import 'antd/es/list/style';
21
+ import 'antd/es/list';
22
+ import 'antd/es/tooltip/style';
23
+ import 'antd/es/tooltip';
24
+ import '@ant-design/icons';
25
+ import 'classnames';
26
+ import 'antd/es/button/style';
27
+ import 'antd/es/button';
28
+ import 'antd/es/spin/style';
29
+ import 'antd/es/spin';
30
+ import 'antd/es/form/style';
31
+ import 'antd/es/form';
32
+ import 'antd/es/result/style';
33
+ import 'antd/es/result';
34
+ import 'antd/es/menu/style';
35
+ import 'antd/es/menu';
36
+ import 'antd/es/message/style';
37
+ import 'antd/es/message';
38
+ import 'antd/es/space/style';
39
+ import 'antd/es/space';
40
+ import 'lodash/keys';
41
+ import 'antd/es/divider/style';
42
+ import 'antd/es/divider';
43
+ var css_248z = ".index-module_syphilis-modal__tfvEm .ant-modal-body {\n max-height: 600px;\n overflow: auto;\n}\n";
44
+ var styles = {
45
+ "syphilis-modal": "index-module_syphilis-modal__tfvEm"
46
+ };
47
+ styleInject(css_248z);
48
+ var Modal = LazyAntd.Modal;
49
+ function SyphilisManagement(props) {
50
+ var _this = this;
51
+ var _a;
52
+ var disabled_yz = false;
53
+ var modal_data = props.modal_data,
54
+ close = props.close,
55
+ others = __rest(props, ["modal_data", "close"]);
56
+ var headerInfo = modal_data.headerInfo;
57
+ var _b = useState({}),
58
+ formHandler = _b[0],
59
+ setFormHandler = _b[1];
60
+ var _c = useState({}),
61
+ syphilisData = _c[0],
62
+ setSyphilisData = _c[1];
63
+ var id = (_a = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id) !== null && _a !== void 0 ? _a : getSearchParamsValue('id');
64
+ useEffect(function () {
65
+ (function () {
66
+ return __awaiter(_this, void 0, void 0, function () {
67
+ var syphilisList, syphilisData, syphilisTreatments, newData_1;
68
+ return __generator(this, function (_a) {
69
+ switch (_a.label) {
70
+ case 0:
71
+ return [4, SMchc_SyphilisManage.getList({
72
+ params: {
73
+ 'pregnancyId.equals': id
74
+ }
75
+ })];
76
+ case 1:
77
+ syphilisList = _a.sent();
78
+ syphilisData = syphilisList[0] || {};
79
+ syphilisTreatments = _get(syphilisData, 'syphilisTreatments');
80
+ if (_size(syphilisTreatments) > 0) {
81
+ newData_1 = [];
82
+ _forEach(syphilisTreatments, function (item) {
83
+ var syphilisInjections = _orderBy(_get(item, 'syphilisInjections'), 'injectionDate', ['asc']);
84
+ var obj = {};
85
+ _set(obj, 'id', _get(item, 'id'));
86
+ _set(obj, 'firstId', _get(syphilisInjections, '0.id'));
87
+ _set(obj, 'firstUserId', _get(syphilisInjections, '0.user.id'));
88
+ _set(obj, 'firstInjectionDate', _get(syphilisInjections, '0.injectionDate'));
89
+ _set(obj, 'firstInjectionGesweek', _get(syphilisInjections, '0.gesweek'));
90
+ _set(obj, 'firstInjectionResult', _get(syphilisInjections, '0.injectionResult'));
91
+ _set(obj, 'secondId', _get(syphilisInjections, '1.id'));
92
+ _set(obj, 'secondUserId', _get(syphilisInjections, '1.user.id'));
93
+ _set(obj, 'secondInjectionDate', _get(syphilisInjections, '1.injectionDate'));
94
+ _set(obj, 'secondInjectionGesweek', _get(syphilisInjections, '1.gesweek'));
95
+ _set(obj, 'secondInjectionResult', _get(syphilisInjections, '1.injectionResult'));
96
+ _set(obj, 'thirdId', _get(syphilisInjections, '2.id'));
97
+ _set(obj, 'thirdUserId', _get(syphilisInjections, '2.user.id'));
98
+ _set(obj, 'thirdInjectionDate', _get(syphilisInjections, '2.injectionDate'));
99
+ _set(obj, 'thirdInjectionGesweek', _get(syphilisInjections, '2.gesweek'));
100
+ _set(obj, 'thirdInjectionResult', _get(syphilisInjections, '2.injectionResult'));
101
+ newData_1.push(obj);
102
+ });
103
+ _set(syphilisData, 'syphilisTreatments', newData_1);
104
+ }
105
+ setSyphilisData(syphilisData);
106
+ return [2];
107
+ }
108
+ });
109
+ });
110
+ })();
111
+ return function () {};
112
+ }, []);
113
+ useEffect(function () {
114
+ if (formHandler.subscribe) {
115
+ formHandler.subscribe('syphilisTreatments', 'change', function (val) {
116
+ var sureEdd = _get(headerInfo, "edd");
117
+ var newVal = _cloneDeep(val);
118
+ newVal.forEach(function (item) {
119
+ if (item.firstInjectionDate && sureEdd) {
120
+ item.firstInjectionGesweek = getGesWeek(sureEdd, item.firstInjectionDate);
121
+ }
122
+ if (item.secondInjectionDate && sureEdd) {
123
+ item.secondInjectionGesweek = getGesWeek(sureEdd, item.secondInjectionDate);
124
+ }
125
+ if (item.thirdInjectionDate && sureEdd) {
126
+ item.thirdInjectionGesweek = getGesWeek(sureEdd, item.thirdInjectionDate);
127
+ }
128
+ });
129
+ formHandler.syphilisTreatments.actions.setValue(newVal);
130
+ });
131
+ }
132
+ }, [formHandler, headerInfo]);
133
+ function handleCancel() {
134
+ close === null || close === void 0 ? void 0 : close(false);
135
+ }
136
+ function handleOk() {
137
+ return __awaiter(this, void 0, void 0, function () {
138
+ var res, formData, syphilisTreatments, newData_2;
139
+ return __generator(this, function (_a) {
140
+ switch (_a.label) {
141
+ case 0:
142
+ return [4, formHandler.submit()];
143
+ case 1:
144
+ res = _a.sent().res;
145
+ formData = getFormData(res);
146
+ syphilisTreatments = _get(formData, 'syphilisTreatments');
147
+ if (_size(syphilisTreatments) > 0) {
148
+ newData_2 = [];
149
+ _forEach(syphilisTreatments, function (item) {
150
+ var obj = {};
151
+ _set(obj, 'id', _get(item, 'id'));
152
+ if (_get(item, 'firstInjectionDate') || _get(item, 'firstInjectionResult')) {
153
+ if (_get(item, 'firstId')) _set(obj, 'syphilisInjections.0.id', _get(item, 'firstId'));
154
+ _set(obj, 'syphilisInjections.0.injectionDate', _get(item, 'firstInjectionDate'));
155
+ _set(obj, 'syphilisInjections.0.gesweek', _get(item, 'firstInjectionGesweek'));
156
+ _set(obj, 'syphilisInjections.0.injectionResult', _get(item, 'firstInjectionResult'));
157
+ if (_get(item, 'firstUserId')) _set(obj, 'syphilisInjections.0.user.id', _get(item, 'firstUserId'));
158
+ }
159
+ if (_get(item, 'secondInjectionDate') || _get(item, 'secondInjectionResult')) {
160
+ if (_get(item, 'secondId')) _set(obj, 'syphilisInjections.1.id', _get(item, 'secondId'));
161
+ _set(obj, 'syphilisInjections.1.injectionDate', _get(item, 'secondInjectionDate'));
162
+ _set(obj, 'syphilisInjections.1.gesweek', _get(item, 'secondInjectionGesweek'));
163
+ _set(obj, 'syphilisInjections.1.injectionResult', _get(item, 'secondInjectionResult'));
164
+ if (_get(item, 'secondUserId')) _set(obj, 'syphilisInjections.1.user.id', _get(item, 'secondUserId'));
165
+ }
166
+ if (_get(item, 'thirdInjectionDate') || _get(item, 'thirdInjectionResult')) {
167
+ if (_get(item, 'thirdId')) _set(obj, 'syphilisInjections.2.id', _get(item, 'thirdId'));
168
+ _set(obj, 'syphilisInjections.2.injectionDate', _get(item, 'thirdInjectionDate'));
169
+ _set(obj, 'syphilisInjections.2.gesweek', _get(item, 'thirdInjectionGesweek'));
170
+ _set(obj, 'syphilisInjections.2.injectionResult', _get(item, 'thirdInjectionResult'));
171
+ if (_get(item, 'thirdUserId')) _set(obj, 'syphilisInjections.2.user.id', _get(item, 'thirdUserId'));
172
+ }
173
+ _set(obj, 'syphilisInjections', _without(_get(obj, 'syphilisInjections'), undefined));
174
+ newData_2.push(obj);
175
+ });
176
+ _set(formData, 'syphilisTreatments', newData_2);
177
+ }
178
+ if (!_get(syphilisData, 'id')) return [3, 3];
179
+ _set(formData, 'id', _get(syphilisData, 'id'));
180
+ _set(formData, 'pregnancy.id', id);
181
+ return [4, SMchc_SyphilisManage.put(formData)];
182
+ case 2:
183
+ _a.sent();
184
+ return [3, 5];
185
+ case 3:
186
+ _set(formData, 'pregnancy.id', id);
187
+ return [4, SMchc_SyphilisManage.post(formData)];
188
+ case 4:
189
+ _a.sent();
190
+ _a.label = 5;
191
+ case 5:
192
+ close === null || close === void 0 ? void 0 : close(true);
193
+ return [2];
194
+ }
195
+ });
196
+ });
197
+ }
198
+ function config() {
199
+ var config = [{
200
+ name: 'referral',
201
+ key: 'referral',
202
+ label: '转诊',
203
+ input_type: 'checkbox',
204
+ input_props: {
205
+ type: 'group',
206
+ options: otherOptions.nyOptions
207
+ },
208
+ span: 12
209
+ }, {
210
+ name: 'consent',
211
+ key: 'consent',
212
+ label: '同意治疗',
213
+ input_type: 'checkbox',
214
+ input_props: {
215
+ type: 'group',
216
+ options: otherOptions.nyOptions
217
+ },
218
+ span: 12
219
+ }, {
220
+ name: 'tppa',
221
+ key: 'tppa',
222
+ label: 'TPPA滴度',
223
+ input_type: 'input',
224
+ span: 6
225
+ }, {
226
+ name: 'trust',
227
+ key: 'trust',
228
+ label: 'TRUST滴度',
229
+ input_type: 'input',
230
+ span: 6
231
+ }, {
232
+ name: '',
233
+ key: '',
234
+ label: '疗程',
235
+ header_label: true,
236
+ just_header: true,
237
+ input_type: ''
238
+ }, {
239
+ name: 'syphilisTreatments',
240
+ key: 'syphilisTreatments',
241
+ label: '',
242
+ input_type: 'array-custom',
243
+ is_new_row: true,
244
+ input_props: {
245
+ array_title: '疗程',
246
+ config: [{
247
+ name: 'id',
248
+ key: 'id',
249
+ label: 'id',
250
+ input_type: 'input',
251
+ hidden: true,
252
+ span: 5
253
+ }, {
254
+ name: 'firstId',
255
+ key: 'firstId',
256
+ label: '',
257
+ input_type: 'input',
258
+ hidden: true,
259
+ span: 5
260
+ }, {
261
+ name: 'secondId',
262
+ key: 'secondId',
263
+ label: '',
264
+ input_type: 'input',
265
+ hidden: true,
266
+ span: 5
267
+ }, {
268
+ name: 'thirdId',
269
+ key: 'thirdId',
270
+ label: '',
271
+ input_type: 'input',
272
+ hidden: true,
273
+ span: 5
274
+ }, {
275
+ name: 'firstUserId',
276
+ key: 'firstUserId',
277
+ label: '',
278
+ input_type: 'input',
279
+ hidden: true,
280
+ span: 5
281
+ }, {
282
+ name: 'secondUserId',
283
+ key: 'secondUserId',
284
+ label: '',
285
+ input_type: 'input',
286
+ hidden: true,
287
+ span: 5
288
+ }, {
289
+ name: 'thirdUserId',
290
+ key: 'thirdUserId',
291
+ label: '',
292
+ input_type: 'input',
293
+ hidden: true,
294
+ span: 5
295
+ }, {
296
+ name: 'firstInjectionDate',
297
+ key: 'firstInjectionDate',
298
+ label: '第一针',
299
+ input_type: 'date',
300
+ span: 6
301
+ }, {
302
+ name: 'firstInjectionGesweek',
303
+ key: 'firstInjectionGesweek',
304
+ label: '孕周',
305
+ input_type: 'input',
306
+ input_props: {
307
+ disabled: disabled_yz
308
+ },
309
+ span: 6
310
+ }, {
311
+ name: 'firstInjectionResult',
312
+ key: 'firstInjectionResult',
313
+ label: '执行情况',
314
+ input_type: 'select',
315
+ input_props: {
316
+ options: otherOptions.resultOptions,
317
+ warningOption: '未执行'
318
+ },
319
+ span: 6
320
+ }, {
321
+ name: 'secondInjectionDate',
322
+ key: 'secondInjectionDate',
323
+ label: '第二针',
324
+ input_type: 'date',
325
+ is_new_row: true,
326
+ span: 6
327
+ }, {
328
+ name: 'secondInjectionGesweek',
329
+ key: 'secondInjectionGesweek',
330
+ label: '孕周',
331
+ input_type: 'input',
332
+ input_props: {
333
+ disabled: disabled_yz
334
+ },
335
+ span: 6
336
+ }, {
337
+ name: 'secondInjectionResult',
338
+ key: 'secondInjectionResult',
339
+ label: '执行情况',
340
+ input_type: 'select',
341
+ input_props: {
342
+ options: otherOptions.resultOptions,
343
+ warningOption: '未执行'
344
+ },
345
+ span: 6
346
+ }, {
347
+ name: 'thirdInjectionDate',
348
+ key: 'thirdInjectionDate',
349
+ label: '第三针',
350
+ input_type: 'date',
351
+ is_new_row: true,
352
+ span: 6
353
+ }, {
354
+ name: 'thirdInjectionGesweek',
355
+ key: 'thirdInjectionGesweek',
356
+ label: '孕周',
357
+ input_type: 'input',
358
+ input_props: {
359
+ disabled: disabled_yz
360
+ },
361
+ span: 6
362
+ }, {
363
+ name: 'thirdInjectionResult',
364
+ key: 'thirdInjectionResult',
365
+ label: '执行情况',
366
+ input_type: 'select',
367
+ input_props: {
368
+ options: otherOptions.resultOptions,
369
+ warningOption: '未执行'
370
+ },
371
+ span: 6
372
+ }]
373
+ }
374
+ }, {
375
+ name: '',
376
+ key: '',
377
+ label: 'TRUST随访结果',
378
+ header_label: true,
379
+ just_header: true,
380
+ input_type: ''
381
+ }, {
382
+ name: 'syphilisFollowUps',
383
+ key: 'syphilisFollowUps',
384
+ label: '',
385
+ input_type: 'array-custom',
386
+ is_new_row: true,
387
+ input_props: {
388
+ array_title: '结果',
389
+ config: [{
390
+ name: 'id',
391
+ key: 'id',
392
+ label: 'id',
393
+ input_type: 'input',
394
+ hidden: true,
395
+ span: 5
396
+ }, {
397
+ name: 'reportDate',
398
+ key: 'reportDate',
399
+ label: '报告时间',
400
+ input_type: 'date',
401
+ span: 6
402
+ }, {
403
+ name: 'trust',
404
+ key: 'trust',
405
+ label: 'TRUST滴度',
406
+ input_type: 'input',
407
+ span: 6
408
+ }]
409
+ }
410
+ }];
411
+ return config;
412
+ }
413
+ return /*#__PURE__*/React.createElement(Modal, _extends({}, others, {
414
+ title: "\u6885\u6BD2\u4E13\u6848\u7BA1\u7406",
415
+ className: styles["syphilis-modal"],
416
+ width: 1000,
417
+ onCancel: handleCancel,
418
+ onOk: handleOk
419
+ }), /*#__PURE__*/React.createElement(MyForm, {
420
+ config: config(),
421
+ value: syphilisData,
422
+ getFormHandler: setFormHandler,
423
+ submitChange: false
424
+ }));
425
+ }
426
+ export { SyphilisManagement as default };
427
+ //# sourceMappingURL=.root19.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":".root19.js","sources":["../../src/modals/entries/梅毒管理/index.tsx"],"sourcesContent":["import { __awaiter, __generator, __rest } from \"tslib\";\nimport { cloneDeep, forEach, get, orderBy, set, size, without } from 'lodash';\nimport { useEffect, useState } from 'react';\nimport { LazyAntd } from '@lm_fe/components';\nimport { SMchc_SyphilisManage, } from '@lm_fe/service';\nimport styles from './index.module.less';\nimport { getSearchParamsValue } from '@lm_fe/utils';\nimport { otherOptions } from '@lm_fe/env';\nimport { getFormData, getGesWeek, MyForm } from '@lm_fe/components_m';\nimport React from 'react';\nvar Modal = LazyAntd.Modal;\nexport default function SyphilisManagement(props) {\n var _this = this;\n var _a;\n var disabled_yz = false;\n var modal_data = props.modal_data, close = props.close, others = __rest(props, [\"modal_data\", \"close\"]);\n var headerInfo = modal_data.headerInfo;\n var _b = useState({}), formHandler = _b[0], setFormHandler = _b[1];\n var _c = useState({}), syphilisData = _c[0], setSyphilisData = _c[1];\n var id = (_a = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id) !== null && _a !== void 0 ? _a : getSearchParamsValue('id');\n useEffect(function () {\n (function () { return __awaiter(_this, void 0, void 0, function () {\n var syphilisList, syphilisData, syphilisTreatments, newData_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4, SMchc_SyphilisManage.getList({ params: { 'pregnancyId.equals': id } })];\n case 1:\n syphilisList = _a.sent();\n syphilisData = syphilisList[0] || {};\n syphilisTreatments = get(syphilisData, 'syphilisTreatments');\n if (size(syphilisTreatments) > 0) {\n newData_1 = [];\n forEach(syphilisTreatments, function (item) {\n var syphilisInjections = orderBy(get(item, 'syphilisInjections'), 'injectionDate', ['asc']);\n var obj = {};\n set(obj, 'id', get(item, 'id'));\n set(obj, 'firstId', get(syphilisInjections, '0.id'));\n set(obj, 'firstUserId', get(syphilisInjections, '0.user.id'));\n set(obj, 'firstInjectionDate', get(syphilisInjections, '0.injectionDate'));\n set(obj, 'firstInjectionGesweek', get(syphilisInjections, '0.gesweek'));\n set(obj, 'firstInjectionResult', get(syphilisInjections, '0.injectionResult'));\n set(obj, 'secondId', get(syphilisInjections, '1.id'));\n set(obj, 'secondUserId', get(syphilisInjections, '1.user.id'));\n set(obj, 'secondInjectionDate', get(syphilisInjections, '1.injectionDate'));\n set(obj, 'secondInjectionGesweek', get(syphilisInjections, '1.gesweek'));\n set(obj, 'secondInjectionResult', get(syphilisInjections, '1.injectionResult'));\n set(obj, 'thirdId', get(syphilisInjections, '2.id'));\n set(obj, 'thirdUserId', get(syphilisInjections, '2.user.id'));\n set(obj, 'thirdInjectionDate', get(syphilisInjections, '2.injectionDate'));\n set(obj, 'thirdInjectionGesweek', get(syphilisInjections, '2.gesweek'));\n set(obj, 'thirdInjectionResult', get(syphilisInjections, '2.injectionResult'));\n newData_1.push(obj);\n });\n set(syphilisData, 'syphilisTreatments', newData_1);\n }\n setSyphilisData(syphilisData);\n return [2];\n }\n });\n }); })();\n return function () {\n };\n }, []);\n useEffect(function () {\n if (formHandler.subscribe) {\n formHandler.subscribe('syphilisTreatments', 'change', function (val) {\n var sureEdd = get(headerInfo, \"edd\");\n var newVal = cloneDeep(val);\n newVal.forEach(function (item) {\n if (item.firstInjectionDate && sureEdd) {\n item.firstInjectionGesweek = getGesWeek(sureEdd, item.firstInjectionDate);\n }\n if (item.secondInjectionDate && sureEdd) {\n item.secondInjectionGesweek = getGesWeek(sureEdd, item.secondInjectionDate);\n }\n if (item.thirdInjectionDate && sureEdd) {\n item.thirdInjectionGesweek = getGesWeek(sureEdd, item.thirdInjectionDate);\n }\n });\n formHandler.syphilisTreatments.actions.setValue(newVal);\n });\n }\n }, [formHandler, headerInfo]);\n function handleCancel() {\n close === null || close === void 0 ? void 0 : close(false);\n }\n ;\n function handleOk() {\n return __awaiter(this, void 0, void 0, function () {\n var res, formData, syphilisTreatments, newData_2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4, formHandler.submit()];\n case 1:\n res = (_a.sent()).res;\n formData = getFormData(res);\n syphilisTreatments = get(formData, 'syphilisTreatments');\n if (size(syphilisTreatments) > 0) {\n newData_2 = [];\n forEach(syphilisTreatments, function (item) {\n var obj = {};\n set(obj, 'id', get(item, 'id'));\n if (get(item, 'firstInjectionDate') || get(item, 'firstInjectionResult')) {\n if (get(item, 'firstId'))\n set(obj, 'syphilisInjections.0.id', get(item, 'firstId'));\n set(obj, 'syphilisInjections.0.injectionDate', get(item, 'firstInjectionDate'));\n set(obj, 'syphilisInjections.0.gesweek', get(item, 'firstInjectionGesweek'));\n set(obj, 'syphilisInjections.0.injectionResult', get(item, 'firstInjectionResult'));\n if (get(item, 'firstUserId'))\n set(obj, 'syphilisInjections.0.user.id', get(item, 'firstUserId'));\n }\n if (get(item, 'secondInjectionDate') || get(item, 'secondInjectionResult')) {\n if (get(item, 'secondId'))\n set(obj, 'syphilisInjections.1.id', get(item, 'secondId'));\n set(obj, 'syphilisInjections.1.injectionDate', get(item, 'secondInjectionDate'));\n set(obj, 'syphilisInjections.1.gesweek', get(item, 'secondInjectionGesweek'));\n set(obj, 'syphilisInjections.1.injectionResult', get(item, 'secondInjectionResult'));\n if (get(item, 'secondUserId'))\n set(obj, 'syphilisInjections.1.user.id', get(item, 'secondUserId'));\n }\n if (get(item, 'thirdInjectionDate') || get(item, 'thirdInjectionResult')) {\n if (get(item, 'thirdId'))\n set(obj, 'syphilisInjections.2.id', get(item, 'thirdId'));\n set(obj, 'syphilisInjections.2.injectionDate', get(item, 'thirdInjectionDate'));\n set(obj, 'syphilisInjections.2.gesweek', get(item, 'thirdInjectionGesweek'));\n set(obj, 'syphilisInjections.2.injectionResult', get(item, 'thirdInjectionResult'));\n if (get(item, 'thirdUserId'))\n set(obj, 'syphilisInjections.2.user.id', get(item, 'thirdUserId'));\n }\n set(obj, 'syphilisInjections', without(get(obj, 'syphilisInjections'), undefined));\n newData_2.push(obj);\n });\n set(formData, 'syphilisTreatments', newData_2);\n }\n if (!get(syphilisData, 'id')) return [3, 3];\n set(formData, 'id', get(syphilisData, 'id'));\n set(formData, 'pregnancy.id', id);\n return [4, SMchc_SyphilisManage.put(formData)];\n case 2:\n _a.sent();\n return [3, 5];\n case 3:\n set(formData, 'pregnancy.id', id);\n return [4, SMchc_SyphilisManage.post(formData)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5:\n close === null || close === void 0 ? void 0 : close(true);\n return [2];\n }\n });\n });\n }\n ;\n function config() {\n var config = [\n {\n name: 'referral',\n key: 'referral',\n label: '转诊',\n input_type: 'checkbox',\n input_props: {\n type: 'group',\n options: otherOptions.nyOptions,\n },\n span: 12,\n },\n {\n name: 'consent',\n key: 'consent',\n label: '同意治疗',\n input_type: 'checkbox',\n input_props: {\n type: 'group',\n options: otherOptions.nyOptions,\n },\n span: 12,\n },\n { name: 'tppa', key: 'tppa', label: 'TPPA滴度', input_type: 'input', span: 6 },\n { name: 'trust', key: 'trust', label: 'TRUST滴度', input_type: 'input', span: 6 },\n { name: '', key: '', label: '疗程', header_label: true, just_header: true, input_type: '' },\n {\n name: 'syphilisTreatments',\n key: 'syphilisTreatments',\n label: '',\n input_type: 'array-custom',\n is_new_row: true,\n input_props: {\n array_title: '疗程',\n config: [\n { name: 'id', key: 'id', label: 'id', input_type: 'input', hidden: true, span: 5 },\n { name: 'firstId', key: 'firstId', label: '', input_type: 'input', hidden: true, span: 5 },\n { name: 'secondId', key: 'secondId', label: '', input_type: 'input', hidden: true, span: 5 },\n { name: 'thirdId', key: 'thirdId', label: '', input_type: 'input', hidden: true, span: 5 },\n { name: 'firstUserId', key: 'firstUserId', label: '', input_type: 'input', hidden: true, span: 5 },\n { name: 'secondUserId', key: 'secondUserId', label: '', input_type: 'input', hidden: true, span: 5 },\n { name: 'thirdUserId', key: 'thirdUserId', label: '', input_type: 'input', hidden: true, span: 5 },\n { name: 'firstInjectionDate', key: 'firstInjectionDate', label: '第一针', input_type: 'date', span: 6 },\n {\n name: 'firstInjectionGesweek',\n key: 'firstInjectionGesweek',\n label: '孕周',\n input_type: 'input',\n input_props: { disabled: disabled_yz },\n span: 6,\n },\n {\n name: 'firstInjectionResult',\n key: 'firstInjectionResult',\n label: '执行情况',\n input_type: 'select',\n input_props: { options: otherOptions.resultOptions, warningOption: '未执行' },\n span: 6,\n },\n {\n name: 'secondInjectionDate',\n key: 'secondInjectionDate',\n label: '第二针',\n input_type: 'date',\n is_new_row: true,\n span: 6,\n },\n {\n name: 'secondInjectionGesweek',\n key: 'secondInjectionGesweek',\n label: '孕周',\n input_type: 'input',\n input_props: { disabled: disabled_yz },\n span: 6,\n },\n {\n name: 'secondInjectionResult',\n key: 'secondInjectionResult',\n label: '执行情况',\n input_type: 'select',\n input_props: { options: otherOptions.resultOptions, warningOption: '未执行' },\n span: 6,\n },\n {\n name: 'thirdInjectionDate',\n key: 'thirdInjectionDate',\n label: '第三针',\n input_type: 'date',\n is_new_row: true,\n span: 6,\n },\n {\n name: 'thirdInjectionGesweek',\n key: 'thirdInjectionGesweek',\n label: '孕周',\n input_type: 'input',\n input_props: { disabled: disabled_yz },\n span: 6,\n },\n {\n name: 'thirdInjectionResult',\n key: 'thirdInjectionResult',\n label: '执行情况',\n input_type: 'select',\n input_props: { options: otherOptions.resultOptions, warningOption: '未执行' },\n span: 6,\n },\n ],\n },\n },\n { name: '', key: '', label: 'TRUST随访结果', header_label: true, just_header: true, input_type: '' },\n {\n name: 'syphilisFollowUps',\n key: 'syphilisFollowUps',\n label: '',\n input_type: 'array-custom',\n is_new_row: true,\n input_props: {\n array_title: '结果',\n config: [\n { name: 'id', key: 'id', label: 'id', input_type: 'input', hidden: true, span: 5 },\n { name: 'reportDate', key: 'reportDate', label: '报告时间', input_type: 'date', span: 6 },\n { name: 'trust', key: 'trust', label: 'TRUST滴度', input_type: 'input', span: 6 },\n ],\n },\n },\n ];\n return config;\n }\n ;\n return (<Modal {...others} title=\"梅毒专案管理\" className={styles[\"syphilis-modal\"]} width={1000} onCancel={handleCancel} onOk={handleOk}>\n <MyForm config={config()} value={syphilisData} getFormHandler={setFormHandler} submitChange={false}/>\n </Modal>);\n}\n"],"names":["Modal","LazyAntd","SyphilisManagement","props","_this","_a","disabled_yz","modal_data","close","others","__rest","headerInfo","_b","useState","formHandler","setFormHandler","_c","syphilisData","setSyphilisData","id","getSearchParamsValue","useEffect","__awaiter","syphilisList","syphilisTreatments","newData_1","__generator","label","SMchc_SyphilisManage","getList","params","sent","_get","_size","_forEach","item","syphilisInjections","_orderBy","obj","_set","push","subscribe","val","sureEdd","newVal","_cloneDeep","forEach","firstInjectionDate","firstInjectionGesweek","getGesWeek","secondInjectionDate","secondInjectionGesweek","thirdInjectionDate","thirdInjectionGesweek","actions","setValue","handleCancel","handleOk","res","formData","newData_2","submit","getFormData","_without","undefined","put","post","config","name","key","input_type","input_props","type","options","otherOptions","nyOptions","span","header_label","just_header","is_new_row","array_title","hidden","disabled","resultOptions","warningOption","React","createElement","_extends","title","className","styles","width","onCancel","onOk","MyForm","value","getFormHandler","submitChange"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAIA,KAAK,GAAGC,QAAQ,CAACD,KAAK;AACX,SAASE,kBAAkBA,CAACC,KAAK,EAAE;EAC9C,IAAIC,KAAK,GAAG,IAAI;EAChB,IAAIC,EAAE;EACN,IAAIC,WAAW,GAAG,KAAK;EACvB,IAAIC,UAAU,GAAGJ,KAAK,CAACI,UAAU;IAAEC,KAAK,GAAGL,KAAK,CAACK,KAAK;IAAEC,MAAM,GAAGC,MAAM,CAACP,KAAK,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;EACvG,IAAIQ,UAAU,GAAGJ,UAAU,CAACI,UAAU;EACtC,IAAIC,EAAE,GAAGC,QAAQ,CAAC,EAAE,CAAC;IAAEC,WAAW,GAAGF,EAAE,CAAC,CAAC,CAAC;IAAEG,cAAc,GAAGH,EAAE,CAAC,CAAC,CAAC;EAClE,IAAII,EAAE,GAAG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EAAO,CAAA,CAC/F,CAAC;AACZ;"}
@@ -0,0 +1,76 @@
1
+ import React from 'react';
2
+ import classnames from 'classnames';
3
+ import { CloseOutlined } from '@ant-design/icons';
4
+ import { s as styleInject } from './index.js';
5
+ import 'antd/es/row/style';
6
+ import 'antd/es/row';
7
+ import 'antd/es/col/style';
8
+ import 'antd/es/col';
9
+ import 'antd/es/list/style';
10
+ import 'antd/es/list';
11
+ import 'antd/es/tooltip/style';
12
+ import 'antd/es/tooltip';
13
+ import 'lodash/get';
14
+ import 'antd/es/button/style';
15
+ import 'antd/es/button';
16
+ import 'antd/es/spin/style';
17
+ import 'antd/es/spin';
18
+ import '@lm_fe/components_m';
19
+ import '@lm_fe/utils';
20
+ import '@lm_fe/components';
21
+ import 'antd/es/form/style';
22
+ import 'antd/es/form';
23
+ import 'antd/es/result/style';
24
+ import 'antd/es/result';
25
+ import 'antd/es/menu/style';
26
+ import 'antd/es/menu';
27
+ import '@lm_fe/service';
28
+ import 'antd/es/message/style';
29
+ import 'antd/es/message';
30
+ import 'antd/es/space/style';
31
+ import 'antd/es/space';
32
+ import '@lm_fe/env';
33
+ import 'lodash/keys';
34
+ import 'antd/es/divider/style';
35
+ import 'antd/es/divider';
36
+ var css_248z = ".index-module_my-tab-btn__TaDAm {\n position: relative;\n height: 36px;\n padding: 4px 8px;\n background-color: #fff;\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::after {\n content: '';\n display: inline-block !important;\n position: absolute;\n left: 0px;\n bottom: 0;\n width: 0;\n height: 2px;\n background-color: #0e318d;\n left: 50%;\n}\n.index-module_my-tab-btn__TaDAm:hover {\n color: #0e318d;\n background-color: #eceef5;\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 background-color: #dfe2eb;\n color: #0e318d;\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::after,\n.index-module_my-tab-btn-active__eiK94::after {\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";
37
+ var styles = {
38
+ "my-tab-btn": "index-module_my-tab-btn__TaDAm",
39
+ "my-tab-btn-close": "index-module_my-tab-btn-close__Ucy57",
40
+ "my-tab-btn-icon-active": "index-module_my-tab-btn-icon-active__mwKzA",
41
+ "my-tab-btn-active": "index-module_my-tab-btn-active__eiK94",
42
+ "my-tab-btn-title": "index-module_my-tab-btn-title__TouVP"
43
+ };
44
+ styleInject(css_248z);
45
+ function Layout_TabButton_Inner(props) {
46
+ var _a;
47
+ var _b = props.isActive,
48
+ isActive = _b === void 0 ? false : _b,
49
+ _c = props.closable,
50
+ closable = _c === void 0 ? true : _c,
51
+ title = props.title,
52
+ onClick = props.onClick,
53
+ onClose = props.onClose,
54
+ tabKey = props.tabKey;
55
+ var handleClickTab = function handleClickTab() {
56
+ onClick && onClick(tabKey);
57
+ };
58
+ var handleCloseTab = function handleCloseTab(e) {
59
+ e.stopPropagation();
60
+ onClose && onClose(tabKey);
61
+ };
62
+ return /*#__PURE__*/React.createElement("div", {
63
+ id: tabKey,
64
+ className: classnames(styles['my-tab-btn'], (_a = {}, _a[styles['my-tab-btn-active']] = isActive, _a)),
65
+ onClick: handleClickTab
66
+ }, /*#__PURE__*/React.createElement("div", {
67
+ title: title,
68
+ className: styles['my-tab-btn-title']
69
+ }, title), closable && /*#__PURE__*/React.createElement("div", {
70
+ onClick: handleCloseTab,
71
+ className: styles['my-tab-btn-close'],
72
+ title: "\u5173\u95ED"
73
+ }, /*#__PURE__*/React.createElement(CloseOutlined, null)));
74
+ }
75
+ export { Layout_TabButton_Inner as default };
76
+ //# sourceMappingURL=.root2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":".root2.js","sources":["../../src/components/Layout_TabButton/Inner.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport { CloseOutlined } from '@ant-design/icons';\nimport styles from './index.module.less';\nexport default function Layout_TabButton_Inner(props) {\n var _a;\n var _b = props.isActive, isActive = _b === void 0 ? false : _b, _c = props.closable, closable = _c === void 0 ? true : _c, title = props.title, onClick = props.onClick, onClose = props.onClose, tabKey = props.tabKey;\n var handleClickTab = function () {\n onClick && onClick(tabKey);\n };\n var handleCloseTab = function (e) {\n e.stopPropagation();\n onClose && onClose(tabKey);\n };\n return (<div id={tabKey} className={classnames(styles['my-tab-btn'], (_a = {}, _a[styles['my-tab-btn-active']] = isActive, _a))} onClick={handleClickTab}>\n \n <div title={title} className={styles['my-tab-btn-title']}>{title}</div>\n {closable && (<div onClick={handleCloseTab} className={styles['my-tab-btn-close']} title='关闭'>\n <CloseOutlined />\n </div>)}\n </div>);\n}\n;\n"],"names":["Layout_TabButton_Inner","props","_a","_b","isActive","_c","closable","title","onClick","onClose","tabKey","handleClickTab","handleCloseTab","e","stopPropagation","React","createElement","id","className","classnames","styles","CloseOutlined"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIe,SAASA,sBAAsBA,CAACC,KAAK,EAAE;EAClD,IAAIC,EAAE;EACN,IAAIC,EAAE,GAAGF,KAAK,CAACG,QAAQ;IAAEA,QAAQ,GAAGD,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,GAAGA,EAAE;IAAEE,EAAE,GAAGJ,KAAK,CAACK,QAAQ;IAAEA,QAAQ,GAAGD,EAAE,KAAK,KAAK,CAAC,GAAG,IAAI,GAAGA,EAAE;IAAEE,KAAK,GAAGN,KAAK,CAACM,KAAK;IAAEC,OAAO,GAAGP,KAAK,CAACO,OAAO;IAAEC,OAAO,GAAGR,KAAK,CAACQ,OAAO;IAAEC,MAAM,GAAGT,KAAK,CAACS,MAAM;EACvN,IAAIC,cAAc,GAAG,SAAjBA,cAAcA,CAAA,EAAe;IAC7BH,OAAO,IAAIA,OAAO,CAACE,MAAM,CAAC;GAC7B;EACD,IAAIE,cAAc,GAAG,SAAjBA,cAAcA,CAAaC,CAAC,EAAE;IAC9BA,CAAC,CAACC,eAAe,CAAA,CAAE;IACnBL,OAAO,IAAIA,OAAO,CAACC,MAAM,CAAC;GAC7B;EACD,oBAAQK,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKC,EAAE,EAAEP,MAAO;IAACQ,SAAS,EAAEC,UAAU,CAACC,MAAM,CAAC,YAAY,CAAC,GAAGlB,EAAE,GAAG,CAAA,CAAE,EAAEA,EAAE,CAACkB,MAAM,CAAC,m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