@lm_fe/core 0.2.9 → 0.2.11

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.
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
5
  import _typeof from "@babel/runtime/helpers/typeof";
6
- var _excluded = ["key_name", "parentid"],
6
+ var _excluded = ["name", "parentid"],
7
7
  _excluded2 = ["type"],
8
8
  _excluded3 = ["type"];
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
@@ -11,7 +11,7 @@ function _ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbo
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : _ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';
13
13
  import { OkButton, MyIcon, MyLazyComponent, MountMchcModal as MountMchcModal$1 } from '@lm_fe/components_m';
14
- import { mchcEnv, mchcConfig, mchcEvent, mchcUtils, mchcMacro, mchcLogger, mchcBoot, mchcDriver, mchcRouterContainer__, MchcRouterContainer } from '@lm_fe/env';
14
+ import { mchcEnv, mchcConfig, mchcEvent, mchcUtils, mchcLogger, mchcMacro, mchcBoot, mchcDriver, mchcRouterContainer__, MchcRouterContainer } from '@lm_fe/env';
15
15
  import { mchcModal__, safe_navigate, MountMchcModal } from '@lm_fe/pages';
16
16
  import { fubaoRoutes } from '@lm_fe/pages-fubao';
17
17
  import { mchcRoutes } from '@lm_fe/pages-mchc';
@@ -1723,12 +1723,12 @@ var NewListPage = function NewListPage(props) {
1723
1723
  targetLabelCol: 8,
1724
1724
  onSubmit: function onSubmit(_ref, old_data) {
1725
1725
  return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
1726
- var key_name, parentid, others, key, res;
1726
+ var name, parentid, others, key, res;
1727
1727
  return _regeneratorRuntime.wrap(function _callee$(_context) {
1728
1728
  while (1) switch (_context.prev = _context.next) {
1729
1729
  case 0:
1730
- key_name = _ref.key_name, parentid = _ref.parentid, others = _objectWithoutProperties(_ref, _excluded);
1731
- key = "/happy/config-table/list2/".concat(key_name);
1730
+ name = _ref.name, parentid = _ref.parentid, others = _objectWithoutProperties(_ref, _excluded);
1731
+ key = "/happy/config-table/list2/".concat(name);
1732
1732
  _context.next = 4;
1733
1733
  return request.get('/api/permissions', {
1734
1734
  params: {
@@ -1747,8 +1747,10 @@ var NewListPage = function NewListPage(props) {
1747
1747
  _context.next = 10;
1748
1748
  return request.post('/api/permissions', _objectSpread({
1749
1749
  key: key,
1750
+ name: name,
1751
+ active: true,
1750
1752
  parentid: parentid !== null && parentid !== void 0 ? parentid : 0,
1751
- type: 'route'
1753
+ type: 'menu'
1752
1754
  }, others));
1753
1755
  case 10:
1754
1756
  safe_navigate(key);
@@ -1760,12 +1762,6 @@ var NewListPage = function NewListPage(props) {
1760
1762
  }))();
1761
1763
  },
1762
1764
  formDescriptions: [{
1763
- inputType: 'MA',
1764
- name: 'key_name',
1765
- label: '配置标识',
1766
- required: true,
1767
- layout: '1'
1768
- }, {
1769
1765
  inputType: 'MA',
1770
1766
  name: 'name',
1771
1767
  label: '菜单标题',
@@ -1779,7 +1775,7 @@ var NewListPage = function NewListPage(props) {
1779
1775
  inputProps: {
1780
1776
  marshal: 0,
1781
1777
  fetch_options: {
1782
- url: '/api/permissions?size=999&parentid.equals=0&active.equals=true&type.equals=menu',
1778
+ url: '/api/permissions?size=999&parentid.equals=0&type.equals=menu',
1783
1779
  valueKey: 'id',
1784
1780
  labelKey: 'name'
1785
1781
  }
@@ -1838,6 +1834,16 @@ var ReloadButton = function ReloadButton(props) {
1838
1834
  value: 'SettingOutlined'
1839
1835
  })
1840
1836
  }, "\u7CFB\u7EDF\u914D\u7F6E") : null, mchcEnv.isAdmin ? /*#__PURE__*/React.createElement(NewListPage, null) : null, mchcEnv.isAdmin ? /*#__PURE__*/React.createElement(OkButton, {
1837
+ title: "\u914D\u7F6E\u8868\u683C\u6D4B\u8BD5",
1838
+ size: 'small',
1839
+ type: 'primary',
1840
+ onClick: function onClick() {
1841
+ return handleOpenModal('/happy/config-table/list2/test');
1842
+ },
1843
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
1844
+ value: 'SettingOutlined'
1845
+ })
1846
+ }, "\u914D\u7F6E\u8868\u683C\u6D4B\u8BD5") : null, mchcEnv.isAdmin ? /*#__PURE__*/React.createElement(OkButton, {
1841
1847
  title: "\u914D\u7F6E\u7EC3\u4E60",
1842
1848
  size: 'small',
1843
1849
  type: 'primary',
@@ -1963,6 +1969,13 @@ function use_task() {
1963
1969
  });
1964
1970
  fetch_user_info();
1965
1971
  fetch_sys_config();
1972
+ history.listen(function (loc, act) {
1973
+ mchcLogger.log('history', {
1974
+ loc: loc,
1975
+ act: act,
1976
+ len: history.length
1977
+ });
1978
+ });
1966
1979
  }, []);
1967
1980
  function fetch_user_info() {
1968
1981
  var in_login_page = location.pathname.includes('/login');
@@ -2150,8 +2163,10 @@ function theme_config(sys_theme) {
2150
2163
  headerBg: darkTheme ? bg_color : '#eee'
2151
2164
  },
2152
2165
  Segmented: {
2153
- // itemActiveBg: colorPrimary,
2154
- itemSelectedBg: colors === null || colors === void 0 ? void 0 : colors.light[0]
2166
+ itemSelectedBg: colors === null || colors === void 0 ? void 0 : colors.light[1],
2167
+ // itemSelectedColor: '#fff',
2168
+ trackBg: colors === null || colors === void 0 ? void 0 : colors.light[0]
2169
+ // itemSelectedBg: colors?.light[0],
2155
2170
  // trackBg: colorPrimary,
2156
2171
  },
2157
2172
  Layout: {
@@ -2324,6 +2339,7 @@ var mchc_modal = set_global_ret(mchcModal__, 'mchc_modal');
2324
2339
  var mchc_macro = set_global_ret(mchcMacro, 'mchc_macro');
2325
2340
  var mchc_event = set_global_ret(mchcEvent, 'mchc_event');
2326
2341
  var mchc_routes = set_global_ret(mchcRoutes, 'mchc_routes');
2342
+ var mchc_config = set_global_ret(mchcConfig, 'mchc_config');
2327
2343
  var mchc_routes_container = set_global_ret(mchcRouterContainer__, 'mchc_routes_container');
2328
2344
  var Mchc_Router_Container = set_global_ret(MchcRouterContainer, 'Mchc_Router_Container');
2329
- export { Mchc_Router_Container as M, mchc_modal as a, boot as b, mchc_macro as c, mchc_event as d, mchc_routes as e, mchc_routes_container as f, globalStore as g, logout as l, mchc_env as m, passwordLogin as p, styleInject as s, useEventStore as u };
2345
+ export { Mchc_Router_Container as M, mchc_modal as a, boot as b, mchc_macro as c, mchc_event as d, mchc_routes as e, mchc_config as f, globalStore as g, mchc_routes_container as h, logout as l, mchc_env as m, passwordLogin as p, styleInject as s, useEventStore as u };
package/dist/exports.d.ts CHANGED
@@ -35,6 +35,7 @@ export declare const mchc_event: import("@lm_fe/utils").EventEmitter<{
35
35
  } & import("antd").NotificationArgsProps];
36
36
  }>;
37
37
  export declare const mchc_routes: {
38
+ "/birth-certificate": import("react").LazyExoticComponent<typeof import("@lm_fe/pages-mchc/dist/pages/birth-certificate").default>;
38
39
  "/config-table": import("react").LazyExoticComponent<(props: any) => import("react").JSX.Element>;
39
40
  "/config-table/list": import("react").LazyExoticComponent<typeof import("@lm_fe/pages-mchc/dist/pages/config-table/list").default>;
40
41
  "/config-table/list2": import("react").LazyExoticComponent<typeof import("@lm_fe/pages-mchc/dist/pages/config-table/list2").default>;
@@ -107,5 +108,161 @@ export declare const mchc_routes: {
107
108
  "/visit-management/telephone-followup-record": import("react").LazyExoticComponent<typeof import("@lm_fe/pages-mchc/dist/pages/visit-management/telephone-followup-record").default>;
108
109
  "/visit-management/timeout-remind-record": import("react").LazyExoticComponent<typeof import("@lm_fe/pages-mchc/dist/pages/visit-management/timeout-remind-record").default>;
109
110
  };
111
+ export declare const mchc_config: {
112
+ get<T extends keyof import("@lm_fe/env").ISystemConfig>(key: T): Partial<{
113
+ id: number;
114
+ systemName: string;
115
+ systemMode: "devlopment" | "test" | "production";
116
+ systemTheme: string;
117
+ expireTime: number;
118
+ openWebsocket: boolean;
119
+ websocketAddress: "ws://127.0.0.1:8087/Laputa";
120
+ auditRestriction: boolean;
121
+ openIntro: boolean;
122
+ 加密登录: boolean;
123
+ 本地数据存储: "Local" | "Session";
124
+ fetalMonitor: string;
125
+ openHighriskSign: boolean;
126
+ highriskVersion: number;
127
+ curveVersion: "nichd";
128
+ prenatalDiagnosis: boolean;
129
+ CaseReport: boolean;
130
+ FetalMonitor: boolean;
131
+ InformedConsent: boolean;
132
+ pregnancyInitial: "tab" | "vertical";
133
+ isOpenDiabetes: boolean;
134
+ diagnosisStyle: "tab";
135
+ diagnosisFollowUpRecord: boolean;
136
+ diagnosisLaboratoryReport: boolean;
137
+ diagnosisPrenatalVisit: boolean;
138
+ tablePrintBtn: boolean;
139
+ homeStatistics: boolean;
140
+ highriskStatistics: boolean;
141
+ customerService: true;
142
+ highriskType: string;
143
+ 禁止编辑高危等级: boolean;
144
+ 系统环境: any;
145
+ 护士端_禁止编辑高危因素_传染病: boolean;
146
+ 高危管理_允许手输传染病: boolean;
147
+ 护士端_审核禁用保存: boolean;
148
+ 医生端_模块隐藏: string[];
149
+ 护士端_模块隐藏: string[];
150
+ doctorOpenWebsocket: boolean;
151
+ VTE预防用药筛查表: string;
152
+ nurseHide: import("@lm_fe/utils").ICommonOption[];
153
+ medicalHide: import("@lm_fe/utils").ICommonOption[];
154
+ PDF预览组件版本?: string;
155
+ 老人模式?: boolean;
156
+ 列表一页显示条数?: number;
157
+ 模板编辑器?: "SDE" | "XEMR";
158
+ 医生端_检验检查时间轴隐藏?: boolean;
159
+ 医生端_复诊按钮浮动?: boolean;
160
+ 医生端_复诊左侧隐藏?: boolean;
161
+ 医生端_复诊编辑控制?: boolean;
162
+ 标签管理?: boolean;
163
+ 高危标记多选?: number;
164
+ 病人标签多选?: number;
165
+ 旧版量表隐藏?: string[];
166
+ 禁用量表自动弹出?: boolean;
167
+ 头部信息拓展?: import("@lm_fe/utils").ICommonOption[];
168
+ 产后信息拓展?: import("@lm_fe/utils").ICommonOption[];
169
+ 量表拓展?: import("@lm_fe/utils").ICommonOption[];
170
+ 专案拓展?: import("@lm_fe/utils").ICommonOption[];
171
+ 医生端_BMI曲线类型?: number;
172
+ 签名方式?: "CA\u7B7E\u540D\u5E76\u4FDD\u5B58" | "CA\u7B7E\u540D";
173
+ 顶部工具栏隐藏?: boolean;
174
+ styles?: Partial<{
175
+ compact: boolean;
176
+ darkTheme: boolean;
177
+ fontSize: number;
178
+ colorPrimary: string;
179
+ colorBorder: string;
180
+ colorTextDisabled: string;
181
+ colorBgContainerDisabled: string;
182
+ colorTextPlaceholder: string;
183
+ cus_fontBold: boolean;
184
+ labelColor: string;
185
+ rowHoverBg: string;
186
+ labelFontSize: number;
187
+ }>;
188
+ }>[T];
189
+ getAll(): Partial<{
190
+ id: number;
191
+ systemName: string;
192
+ systemMode: "devlopment" | "test" | "production";
193
+ systemTheme: string;
194
+ expireTime: number;
195
+ openWebsocket: boolean;
196
+ websocketAddress: "ws://127.0.0.1:8087/Laputa";
197
+ auditRestriction: boolean;
198
+ openIntro: boolean;
199
+ 加密登录: boolean;
200
+ 本地数据存储: "Local" | "Session";
201
+ fetalMonitor: string;
202
+ openHighriskSign: boolean;
203
+ highriskVersion: number;
204
+ curveVersion: "nichd";
205
+ prenatalDiagnosis: boolean;
206
+ CaseReport: boolean;
207
+ FetalMonitor: boolean;
208
+ InformedConsent: boolean;
209
+ pregnancyInitial: "tab" | "vertical";
210
+ isOpenDiabetes: boolean;
211
+ diagnosisStyle: "tab";
212
+ diagnosisFollowUpRecord: boolean;
213
+ diagnosisLaboratoryReport: boolean;
214
+ diagnosisPrenatalVisit: boolean;
215
+ tablePrintBtn: boolean;
216
+ homeStatistics: boolean;
217
+ highriskStatistics: boolean;
218
+ customerService: true;
219
+ highriskType: string;
220
+ 禁止编辑高危等级: boolean;
221
+ 系统环境: any;
222
+ 护士端_禁止编辑高危因素_传染病: boolean;
223
+ 高危管理_允许手输传染病: boolean;
224
+ 护士端_审核禁用保存: boolean;
225
+ 医生端_模块隐藏: string[];
226
+ 护士端_模块隐藏: string[];
227
+ doctorOpenWebsocket: boolean;
228
+ VTE预防用药筛查表: string;
229
+ nurseHide: import("@lm_fe/utils").ICommonOption[];
230
+ medicalHide: import("@lm_fe/utils").ICommonOption[];
231
+ PDF预览组件版本?: string;
232
+ 老人模式?: boolean;
233
+ 列表一页显示条数?: number;
234
+ 模板编辑器?: "SDE" | "XEMR";
235
+ 医生端_检验检查时间轴隐藏?: boolean;
236
+ 医生端_复诊按钮浮动?: boolean;
237
+ 医生端_复诊左侧隐藏?: boolean;
238
+ 医生端_复诊编辑控制?: boolean;
239
+ 标签管理?: boolean;
240
+ 高危标记多选?: number;
241
+ 病人标签多选?: number;
242
+ 旧版量表隐藏?: string[];
243
+ 禁用量表自动弹出?: boolean;
244
+ 头部信息拓展?: import("@lm_fe/utils").ICommonOption[];
245
+ 产后信息拓展?: import("@lm_fe/utils").ICommonOption[];
246
+ 量表拓展?: import("@lm_fe/utils").ICommonOption[];
247
+ 专案拓展?: import("@lm_fe/utils").ICommonOption[];
248
+ 医生端_BMI曲线类型?: number;
249
+ 签名方式?: "CA\u7B7E\u540D\u5E76\u4FDD\u5B58" | "CA\u7B7E\u540D";
250
+ 顶部工具栏隐藏?: boolean;
251
+ styles?: Partial<{
252
+ compact: boolean;
253
+ darkTheme: boolean;
254
+ fontSize: number;
255
+ colorPrimary: string;
256
+ colorBorder: string;
257
+ colorTextDisabled: string;
258
+ colorBgContainerDisabled: string;
259
+ colorTextPlaceholder: string;
260
+ cus_fontBold: boolean;
261
+ labelColor: string;
262
+ rowHoverBg: string;
263
+ labelFontSize: number;
264
+ }>;
265
+ }>;
266
+ };
110
267
  export declare const mchc_routes_container: MchcRouterContainer;
111
268
  export declare const Mchc_Router_Container: typeof MchcRouterContainer;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { M as Mchc_Router_Container, b as boot, g as globalStore, l as logout, m as mchc_env, d as mchc_event, c as mchc_macro, a as mchc_modal, e as mchc_routes, f as mchc_routes_container, p as passwordLogin, u as useEventStore } from './a_chunks/index.js';
1
+ export { M as Mchc_Router_Container, b as boot, g as globalStore, l as logout, f as mchc_config, m as mchc_env, d as mchc_event, c as mchc_macro, a as mchc_modal, e as mchc_routes, h as mchc_routes_container, p as passwordLogin, u as useEventStore } from './a_chunks/index.js';
2
2
  import '@ant-design/cssinjs';
3
3
  import '@lm_fe/components_m';
4
4
  import '@lm_fe/env';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lm_fe/core",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -39,16 +39,16 @@
39
39
  "react-router-dom": "^5.2.0"
40
40
  },
41
41
  "dependencies": {
42
- "@lm_fe/components": "^0.2.8",
43
- "@lm_fe/components_m": "^0.2.8",
44
- "@lm_fe/env": "^0.2.8",
45
- "@lm_fe/pages": "^0.2.8",
46
- "@lm_fe/pages-fubao": "^0.2.8",
47
- "@lm_fe/pages-mchc": "^0.2.8",
48
- "@lm_fe/provoke": "^0.2.8",
42
+ "@lm_fe/components": "^0.2.11",
43
+ "@lm_fe/components_m": "^0.2.11",
44
+ "@lm_fe/env": "^0.2.11",
45
+ "@lm_fe/pages": "^0.2.11",
46
+ "@lm_fe/pages-fubao": "^0.2.11",
47
+ "@lm_fe/pages-mchc": "^0.2.11",
48
+ "@lm_fe/provoke": "^0.2.11",
49
49
  "@lm_fe/scripts": "*",
50
- "@lm_fe/service": "^0.2.8",
50
+ "@lm_fe/service": "^0.2.11",
51
51
  "@lm_fe/utils": "^0.2.8"
52
52
  },
53
- "gitHead": "b0c84873826007ef153e616e13ff306f5e983094"
53
+ "gitHead": "8ee2a113189d78379b20978d083f616f4a672ca3"
54
54
  }