@yilianjituan/yilian_dgerm 0.0.1-alpha.23 → 0.0.1-alpha.25
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 +7 -1
- package/dist/business/Entry/index.d.ts +5 -0
- package/dist/business/Entry/index.interface.d.ts +7 -0
- package/dist/business/Entry/index.interface.js +1 -0
- package/dist/business/Entry/index.js +8 -0
- package/dist/business/Entry/index.scss +3 -0
- package/dist/business/TestBtn/index.d.ts +4 -0
- package/dist/business/TestBtn/index.interface.d.ts +13 -0
- package/dist/business/TestBtn/index.interface.js +1 -0
- package/dist/business/TestBtn/index.js +12 -0
- package/dist/commonType/globalFun.d.ts +0 -31
- package/dist/commonType/globalFun.js +0 -104
- package/dist/components/DropDownSelect/index.js +3 -4
- package/dist/components/ReactEcharts/index.d.ts +3 -0
- package/dist/components/ReactEcharts/index.interface.d.ts +14 -0
- package/dist/components/ReactEcharts/index.interface.js +1 -0
- package/dist/components/ReactEcharts/index.js +17 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -100,4 +100,10 @@ MIT
|
|
|
100
100
|
7、更换组件库 web-module-dumi -> @yilianjituan/yilian_dgerm
|
|
101
101
|
8、依赖适配与打包
|
|
102
102
|
9、宿主引用测试
|
|
103
|
-
10、PageTemplate 适配,开放属性 buttonTheme 作为按钮颜色属性
|
|
103
|
+
10、PageTemplate 适配,开放属性 buttonTheme 作为按钮颜色属性
|
|
104
|
+
|
|
105
|
+
# 2024.10.29 更新日志
|
|
106
|
+
1、DropDownSelect 传参调整(抽离业务)
|
|
107
|
+
2、PageTemplate 宿主样式调整
|
|
108
|
+
3、dumi框架路由调整(区分业务组件与纯组件)
|
|
109
|
+
4、结构调整后宿主引用测试
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
var AGuide = function AGuide() {
|
|
4
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
5
|
+
className: "guide_tip"
|
|
6
|
+
}, "\u7EC4\u4EF6\u5F00\u53D1\u6CE8\u610F\u4E8B\u9879\uFF1A", /*#__PURE__*/React.createElement("div", null, "1\u3001\u7EC4\u4EF6\u7EDF\u4E00\u653E\u5728 components \u76EE\u5F55\u4E0B"), /*#__PURE__*/React.createElement("div", null, "2\u3001\u7EC4\u4EF6\u9700\u8981\u5BF9\u5E94\u7684index.md\u6587\u4EF6\u6765\u7F16\u5199\u4F7F\u7528\u793A\u4F8B\uFF0C\u65E0\u8BE5\u6587\u4EF6\u6587\u6863\u5C06\u4E0D\u4F1A\u663E\u73B0"), /*#__PURE__*/React.createElement("div", null, "3\u3001index.md\u6587\u4EF6\u5FC5\u8981\u53C2\u6570title\u548Corder, \u53EF\u53C2\u8003\u5176\u4F59\u5DF2\u5C01\u88C5\u7EC4\u4EF6"), /*#__PURE__*/React.createElement("div", null, "4\u3001\u6BCF\u4E2A\u7EC4\u4EF6\u9700\u8981\u6709\u5BF9\u5E94\u7684\u7C7B\u578B\u6CE8\u89E3"), /*#__PURE__*/React.createElement("div", null, "5\u3001md\u6587\u4EF6\u4E2D\u5F15\u7528tsx\u7EC4\u4EF6\u662F\uFF0C\u5FC5\u987B\u7B26\u5408\u4E00\u822C\u7EC4\u4EF6\u5F15\u7528\u89C4\u5219\uFF0C\u53EF\u5728tsx\u7F16\u5199\u540E\uFF0C\u653E\u5165\u5BF9\u5E94md\u6587\u4EF6\u4E2D "), /*#__PURE__*/React.createElement("div", null, "6\u3001\u82E5\u9700\u8981\u4F7F\u7528\u81EA\u52A8\u751F\u6210API\u8868\u683C\u7684\u529F\u80FD\uFF0C\u5728\u5F15\u5165\u7684\u7C7B\u578B\u6CE8\u89E3\u6587\u4EF6\u4E2D\uFF0C\u5BF9\u6BCF\u4E2A\u53D8\u91CF\u6DFB\u52A0\u63CF\u8FF0\u6027\u6CE8\u91CA ", /*#__PURE__*/React.createElement("br", null), "\u4F8B\u5982\uFF1Acontent\u7684\u6CE8\u91CA\u9700\u8981\u7F16\u5199\u4E24\u4E2A\u53C2\u6570\uFF1A", /*#__PURE__*/React.createElement("br", null), "\uFF081\uFF09 @description \u5C5E\u6027\u63CF\u8FF0 ", /*#__PURE__*/React.createElement("br", null), "\uFF082\uFF09 @default \u9ED8\u8BA4\u503C ", /*#__PURE__*/React.createElement("br", null))));
|
|
7
|
+
};
|
|
8
|
+
export default AGuide;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Button } from 'antd';
|
|
4
|
+
var MyBtn = function MyBtn(props) {
|
|
5
|
+
var _props$content = props.content,
|
|
6
|
+
content = _props$content === void 0 ? '测试按钮' : _props$content,
|
|
7
|
+
onClick = props.onClick;
|
|
8
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9
|
+
onClick: onClick
|
|
10
|
+
}), content));
|
|
11
|
+
};
|
|
12
|
+
export default MyBtn;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param paramsInfo {_form 表单, subIndex
|
|
4
|
-
* formList中的数据标识,
|
|
5
|
-
* parentTreeCode: 类型,
|
|
6
|
-
* index formList中的数据标识,
|
|
7
|
-
* subItemIndex formList中的数据标识,
|
|
8
|
-
* isHM 是否健管师,
|
|
9
|
-
* single 单发随访、满意度
|
|
10
|
-
* shareType 分享类型 + filterInitRef 筛选条件
|
|
11
|
-
* }
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare const caleParmsData: (paramsInfo: any) => {};
|
|
15
|
-
export declare const caleParms: (categoryType: any, disease: any, parentTreeCode: string) => {
|
|
16
|
-
treeCodes: any[];
|
|
17
|
-
diseaseIds: any[];
|
|
18
|
-
parentTreeCode?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
treeCodes: any[];
|
|
21
|
-
diseaseIds?: undefined;
|
|
22
|
-
parentTreeCode?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
diseaseIds: any[];
|
|
25
|
-
parentTreeCode: string;
|
|
26
|
-
treeCodes?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
parentTreeCode: string;
|
|
29
|
-
treeCodes?: undefined;
|
|
30
|
-
diseaseIds?: undefined;
|
|
31
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
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; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { TemplateType, FilterTypeEnum } from "../commonType/globalEnum";
|
|
8
|
-
|
|
9
|
-
// 计算参数 --- 方案中随访、满意度、用药反馈、专项建档、健管师发送方案中药品的用药反馈
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @param paramsInfo {_form 表单, subIndex
|
|
13
|
-
* formList中的数据标识,
|
|
14
|
-
* parentTreeCode: 类型,
|
|
15
|
-
* index formList中的数据标识,
|
|
16
|
-
* subItemIndex formList中的数据标识,
|
|
17
|
-
* isHM 是否健管师,
|
|
18
|
-
* single 单发随访、满意度
|
|
19
|
-
* shareType 分享类型 + filterInitRef 筛选条件
|
|
20
|
-
* }
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
export var caleParmsData = function caleParmsData(paramsInfo) {
|
|
24
|
-
var _ref = paramsInfo || {},
|
|
25
|
-
_form = _ref._form,
|
|
26
|
-
subIndex = _ref.subIndex,
|
|
27
|
-
parentTreeCode = _ref.parentTreeCode,
|
|
28
|
-
index = _ref.index,
|
|
29
|
-
subItemIndex = _ref.subItemIndex,
|
|
30
|
-
isHM = _ref.isHM,
|
|
31
|
-
single = _ref.single,
|
|
32
|
-
shareType = _ref.shareType,
|
|
33
|
-
filterInitRef = _ref.filterInitRef,
|
|
34
|
-
visibleStatus = _ref.visibleStatus;
|
|
35
|
-
var params = {};
|
|
36
|
-
if (isHM) {
|
|
37
|
-
var subIndexParams = _form && _form.getFieldValue('cardList')[subIndex] || {};
|
|
38
|
-
var _ref2 = subIndexParams.remindList && subIndexParams.remindList[index] || {},
|
|
39
|
-
type = _ref2.type,
|
|
40
|
-
_ref2$remindDrugList = _ref2.remindDrugList,
|
|
41
|
-
remindDrugList = _ref2$remindDrugList === void 0 ? [] : _ref2$remindDrugList,
|
|
42
|
-
categoryType = _ref2.categoryType,
|
|
43
|
-
disease = _ref2.disease;
|
|
44
|
-
if (type !== TemplateType.CHINESE_MEDICINE) {
|
|
45
|
-
params = caleParms(remindDrugList[subItemIndex].categoryType, remindDrugList[subItemIndex].disease, parentTreeCode);
|
|
46
|
-
} else {
|
|
47
|
-
params = caleParms(categoryType, disease, parentTreeCode);
|
|
48
|
-
}
|
|
49
|
-
} else if (shareType) {
|
|
50
|
-
// 处理分享的额外查询参数
|
|
51
|
-
var _subIndexParams = _form && _form.getFieldsValue() || {};
|
|
52
|
-
var _ref3 = _subIndexParams || {},
|
|
53
|
-
ownerType = _ref3.ownerType;
|
|
54
|
-
params = _objectSpread(_objectSpread({}, filterInitRef), {}, {
|
|
55
|
-
principalType: ownerType || filterInitRef.principalType
|
|
56
|
-
});
|
|
57
|
-
} else if (single) {
|
|
58
|
-
var _subIndexParams2 = _form && _form.getFieldsValue() || {};
|
|
59
|
-
var _ref4 = _subIndexParams2 || {},
|
|
60
|
-
secondGroup = _ref4.secondGroup,
|
|
61
|
-
diseaseIds = _ref4.diseaseIds,
|
|
62
|
-
filterType = _ref4.filterType;
|
|
63
|
-
if (filterType === FilterTypeEnum.FUZZY_SEARCH) {
|
|
64
|
-
params = {
|
|
65
|
-
parentTreeCode: parentTreeCode,
|
|
66
|
-
visibleStatus: visibleStatus
|
|
67
|
-
};
|
|
68
|
-
} else {
|
|
69
|
-
params = _objectSpread(_objectSpread({}, caleParms(secondGroup, diseaseIds, parentTreeCode)), {}, {
|
|
70
|
-
visibleStatus: visibleStatus
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
} else {
|
|
74
|
-
var _subIndexParams3 = _form && _form.getFieldValue('cardList')[subIndex] || {};
|
|
75
|
-
var _ref5 = _subIndexParams3 || {},
|
|
76
|
-
_categoryType = _ref5.categoryType,
|
|
77
|
-
_disease = _ref5.disease;
|
|
78
|
-
params = caleParms(_categoryType, _disease, parentTreeCode);
|
|
79
|
-
}
|
|
80
|
-
return params;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
// 处理参数
|
|
84
|
-
export var caleParms = function caleParms(categoryType, disease, parentTreeCode) {
|
|
85
|
-
if (categoryType && disease) {
|
|
86
|
-
return {
|
|
87
|
-
treeCodes: [categoryType],
|
|
88
|
-
diseaseIds: Array.isArray(disease) ? disease : [disease]
|
|
89
|
-
};
|
|
90
|
-
} else if (categoryType) {
|
|
91
|
-
return {
|
|
92
|
-
treeCodes: [categoryType]
|
|
93
|
-
};
|
|
94
|
-
} else if (Array.isArray(disease) ? disease.length > 0 : disease) {
|
|
95
|
-
return {
|
|
96
|
-
diseaseIds: Array.isArray(disease) ? disease : [disease],
|
|
97
|
-
parentTreeCode: parentTreeCode
|
|
98
|
-
};
|
|
99
|
-
} else {
|
|
100
|
-
return {
|
|
101
|
-
parentTreeCode: parentTreeCode
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
};
|
|
@@ -93,10 +93,9 @@ var Index = function Index(props) {
|
|
|
93
93
|
case 0:
|
|
94
94
|
setSelectState(true);
|
|
95
95
|
_additionalParameters = dynamicParameter && beforeSearch ? beforeSearch(dynamicParameter) : additionalParameters;
|
|
96
|
-
|
|
97
|
-
_context2.next = 5;
|
|
96
|
+
_context2.next = 4;
|
|
98
97
|
return inquireDiseases(_objectSpread(_defineProperty(_defineProperty(_defineProperty({}, searchValue, paramsRef.current), "pageNo", pageRef.current), "pageSize", 10), _additionalParameters ? _additionalParameters : {}));
|
|
99
|
-
case
|
|
98
|
+
case 4:
|
|
100
99
|
data = _context2.sent;
|
|
101
100
|
if (data.code === "OK") {
|
|
102
101
|
target = data.result;
|
|
@@ -106,7 +105,7 @@ var Index = function Index(props) {
|
|
|
106
105
|
setStoreList(storeListRef.current || []);
|
|
107
106
|
setSelectState(false);
|
|
108
107
|
}
|
|
109
|
-
case
|
|
108
|
+
case 6:
|
|
110
109
|
case "end":
|
|
111
110
|
return _context2.stop();
|
|
112
111
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import * as echarts from 'echarts';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export default function Index(props) {
|
|
5
|
+
var id = props.id,
|
|
6
|
+
option = props.option,
|
|
7
|
+
style = props.style;
|
|
8
|
+
useEffect(function () {
|
|
9
|
+
var chartDom = document.getElementById(id);
|
|
10
|
+
var myChart = echarts.init(chartDom);
|
|
11
|
+
option && myChart.setOption(option);
|
|
12
|
+
}, [option]);
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
id: id,
|
|
15
|
+
style: style
|
|
16
|
+
});
|
|
17
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,3 +12,5 @@ export { default as BigImage } from './components/BigImage';
|
|
|
12
12
|
export { default as VideoProgressModal } from './components/VideoProgressModal';
|
|
13
13
|
export { default as NumberInput } from './components/NumberInput';
|
|
14
14
|
export { default as TabsMode } from './components/TabsMode';
|
|
15
|
+
export { default as ReactEcharts } from './components/ReactEcharts';
|
|
16
|
+
export { default as TestBtn } from './business/TestBtn';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// 纯组件
|
|
1
2
|
export { default as MyBtn } from "./components/MyBtn";
|
|
2
3
|
export { default as FilterRadio } from "./components/FilterRadio";
|
|
3
4
|
export { default as SelectMax } from "./components/SelectMax";
|
|
@@ -11,4 +12,8 @@ export { default as SuperCascader } from "./components/SuperCascader";
|
|
|
11
12
|
export { default as BigImage } from "./components/BigImage";
|
|
12
13
|
export { default as VideoProgressModal } from "./components/VideoProgressModal";
|
|
13
14
|
export { default as NumberInput } from "./components/NumberInput";
|
|
14
|
-
export { default as TabsMode } from "./components/TabsMode";
|
|
15
|
+
export { default as TabsMode } from "./components/TabsMode";
|
|
16
|
+
export { default as ReactEcharts } from "./components/ReactEcharts";
|
|
17
|
+
|
|
18
|
+
// 业务组件
|
|
19
|
+
export { default as TestBtn } from "./business/TestBtn";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yilianjituan/yilian_dgerm",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.25",
|
|
4
4
|
"description": "A react library developed with dumi",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -68,7 +68,8 @@
|
|
|
68
68
|
"lodash": "^4.17.20",
|
|
69
69
|
"qs": "^6.9.7",
|
|
70
70
|
"react": ">=16.9.0",
|
|
71
|
-
"react-dom": ">=16.9.0"
|
|
71
|
+
"react-dom": ">=16.9.0",
|
|
72
|
+
"echarts": "^5.0.0"
|
|
72
73
|
},
|
|
73
74
|
"devDependencies": {
|
|
74
75
|
"@commitlint/cli": "^17.1.2",
|