xh-lab-rc 0.16.13 → 0.16.14
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/dist/LabDGTreeSelect/index.js +7 -6
- package/dist/LabDGTreeSelect/style.less +79 -77
- package/dist/LabFilePreview/index.d.ts +10 -0
- package/dist/LabFilePreview/index.js +257 -0
- package/dist/LabFilePreview/style.less +78 -0
- package/dist/LabGroupTree/index.d.ts +1 -1
- package/dist/LabGroupTree/index.js +26 -15
- package/dist/LabGroupTree/style.less +93 -104
- package/dist/LabGroupTree/typing.d.ts +1 -1
- package/dist/LabMultipleSelect/index.d.ts +18 -0
- package/dist/LabMultipleSelect/index.js +130 -0
- package/dist/LabMultipleSelect/style.less +27 -0
- package/dist/LabPictureCarousel/index.js +4 -6
- package/dist/LabPictureCarousel/style.less +0 -4
- package/dist/components/Iconfont/iconfont.js +22 -23
- package/dist/components/Iconfont/index.js +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -10
- package/package.json +82 -82
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
/*
|
|
3
|
-
* @Author: zy
|
|
4
|
-
* @Date: 2024-04-08 11:49:50
|
|
5
|
-
* @LastEditors:
|
|
6
|
-
* @LastEditTime:
|
|
7
|
-
* @Description: 科室/专业组树形下拉
|
|
2
|
+
/*
|
|
3
|
+
* @Author: zy
|
|
4
|
+
* @Date: 2024-04-08 11:49:50
|
|
5
|
+
* @LastEditors:
|
|
6
|
+
* @LastEditTime:
|
|
7
|
+
* @Description: 科室/专业组树形下拉
|
|
8
8
|
*/
|
|
9
9
|
import { Iconfont } from "../components";
|
|
10
10
|
import { TreeSelect } from 'antd';
|
|
@@ -111,6 +111,7 @@ var LabDGTreeSelect = function LabDGTreeSelect(_ref) {
|
|
|
111
111
|
onChange: handClear,
|
|
112
112
|
placeholder: placeholder,
|
|
113
113
|
treeNodeFilterProp: "title",
|
|
114
|
+
className: "lab-tree-select",
|
|
114
115
|
popupClassName: "lab-group-tree-select"
|
|
115
116
|
});
|
|
116
117
|
};
|
|
@@ -1,77 +1,79 @@
|
|
|
1
|
-
.lab-group-tree-select {
|
|
2
|
-
.ant-select-tree-list-holder-inner
|
|
3
|
-
.ant-select-tree-treenode
|
|
4
|
-
.ant-select-tree-node-content-wrapper {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 70%;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
border-radius: 0;
|
|
10
|
-
|
|
11
|
-
&:hover {
|
|
12
|
-
background: none;
|
|
13
|
-
|
|
14
|
-
.ant-select-tree-title {
|
|
15
|
-
background-color: #d0e4ff;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&.ant-select-tree-node-selected {
|
|
20
|
-
background: none;
|
|
21
|
-
|
|
22
|
-
.ant-select-tree-title {
|
|
23
|
-
background-color: #d0e4ff;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ant-select-tree-iconEle {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
flex-shrink: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ant-select-tree-title {
|
|
35
|
-
padding: 0 4px;
|
|
36
|
-
color: #1a1b20;
|
|
37
|
-
font-size: 13px;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
white-space: nowrap !important;
|
|
40
|
-
overflow: hidden !important;
|
|
41
|
-
text-overflow: ellipsis !important;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.
|
|
47
|
-
height: 28px;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
.lab-group-tree-select {
|
|
2
|
+
.ant-select-tree-list-holder-inner
|
|
3
|
+
.ant-select-tree-treenode
|
|
4
|
+
.ant-select-tree-node-content-wrapper {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: 70%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
border-radius: 0;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
background: none;
|
|
13
|
+
|
|
14
|
+
.ant-select-tree-title {
|
|
15
|
+
background-color: #d0e4ff;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.ant-select-tree-node-selected {
|
|
20
|
+
background: none;
|
|
21
|
+
|
|
22
|
+
.ant-select-tree-title {
|
|
23
|
+
background-color: #d0e4ff;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ant-select-tree-iconEle {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ant-select-tree-title {
|
|
35
|
+
padding: 0 4px;
|
|
36
|
+
color: #1a1b20;
|
|
37
|
+
font-size: 13px;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
white-space: nowrap !important;
|
|
40
|
+
overflow: hidden !important;
|
|
41
|
+
text-overflow: ellipsis !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.lab-tree-select {
|
|
47
|
+
height: 28px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ant-select {
|
|
51
|
+
.ant-select-selector {
|
|
52
|
+
font-size: 13px;
|
|
53
|
+
border-radius: 2px;
|
|
54
|
+
|
|
55
|
+
.ant-select-selection-search {
|
|
56
|
+
inset-inline-start: 6px;
|
|
57
|
+
inset-inline-end: 26px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ant-select-single:not(.ant-select-customize-input) {
|
|
63
|
+
.ant-select-selector {
|
|
64
|
+
padding: 0 6px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ant-select-dropdown {
|
|
69
|
+
border-radius: 2px;
|
|
70
|
+
|
|
71
|
+
.ant-select-tree .ant-select-tree-switcher {
|
|
72
|
+
border-radius: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ant-select-tree-switcher-icon {
|
|
76
|
+
color: #868b9c;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
/*
|
|
4
|
+
* @Author: xqy
|
|
5
|
+
* @Date: 2024-04-10 11:04:12
|
|
6
|
+
* @LastEditors: xqy
|
|
7
|
+
* @LastEditTime: 2024-11-26 18:12:47
|
|
8
|
+
* @Description: 文件预览(支持pdf切换预览)
|
|
9
|
+
*/
|
|
10
|
+
import { LeftOutlined, RightOutlined, RotateLeftOutlined, RotateRightOutlined, ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons';
|
|
11
|
+
import { Divider } from 'antd';
|
|
12
|
+
import cn from 'classnames';
|
|
13
|
+
import React, { useEffect, useState } from 'react';
|
|
14
|
+
import { LabPdfView } from "./..";
|
|
15
|
+
import "./style.less";
|
|
16
|
+
var LabFilePreview = function LabFilePreview(props) {
|
|
17
|
+
var _list$curIndex, _list$curIndex2, _list$curIndex3, _list$curIndex4;
|
|
18
|
+
var imgList = props.imgList,
|
|
19
|
+
_props$curImgIndex = props.curImgIndex,
|
|
20
|
+
curImgIndex = _props$curImgIndex === void 0 ? 0 : _props$curImgIndex,
|
|
21
|
+
_props$fileField = props.fileField,
|
|
22
|
+
fileField = _props$fileField === void 0 ? {
|
|
23
|
+
filePath: 'filePath',
|
|
24
|
+
fileName: 'fileName'
|
|
25
|
+
} : _props$fileField,
|
|
26
|
+
isSwitchPreviw = props.isSwitchPreviw;
|
|
27
|
+
var _useState = useState(curImgIndex),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
curIndex = _useState2[0],
|
|
30
|
+
setCurIndex = _useState2[1];
|
|
31
|
+
var _useState3 = useState(1),
|
|
32
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
33
|
+
scale = _useState4[0],
|
|
34
|
+
setScale = _useState4[1]; //初始缩放比例
|
|
35
|
+
var _useState5 = useState([]),
|
|
36
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
37
|
+
list = _useState6[0],
|
|
38
|
+
setList = _useState6[1]; //图片的数组
|
|
39
|
+
var _useState7 = useState(0),
|
|
40
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
41
|
+
rotatinNum = _useState8[0],
|
|
42
|
+
setRotatinNum = _useState8[1]; //旋转次数
|
|
43
|
+
//底部操作按钮
|
|
44
|
+
var _useState9 = useState([{
|
|
45
|
+
type: 'enlarge',
|
|
46
|
+
typeName: '放大(+)',
|
|
47
|
+
icon: /*#__PURE__*/React.createElement(ZoomInOutlined, {
|
|
48
|
+
className: "footer-icon"
|
|
49
|
+
}),
|
|
50
|
+
disabled: false,
|
|
51
|
+
disableName: '已是最大比例'
|
|
52
|
+
}, {
|
|
53
|
+
type: 'narrow',
|
|
54
|
+
typeName: '缩小(-)',
|
|
55
|
+
icon: /*#__PURE__*/React.createElement(ZoomOutOutlined, {
|
|
56
|
+
className: "footer-icon"
|
|
57
|
+
}),
|
|
58
|
+
disabled: false,
|
|
59
|
+
disableName: '已是最小比例'
|
|
60
|
+
}, {
|
|
61
|
+
type: 'turnLeft',
|
|
62
|
+
typeName: '向左旋转',
|
|
63
|
+
icon: /*#__PURE__*/React.createElement(RotateLeftOutlined, {
|
|
64
|
+
className: "footer-icon"
|
|
65
|
+
}),
|
|
66
|
+
disabled: false
|
|
67
|
+
}, {
|
|
68
|
+
type: 'turnRight',
|
|
69
|
+
typeName: '向右旋转',
|
|
70
|
+
icon: /*#__PURE__*/React.createElement(RotateRightOutlined, {
|
|
71
|
+
className: "footer-icon"
|
|
72
|
+
}),
|
|
73
|
+
disabled: false
|
|
74
|
+
}]),
|
|
75
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
76
|
+
footerBtns = _useState10[0],
|
|
77
|
+
setFooterBtns = _useState10[1];
|
|
78
|
+
|
|
79
|
+
/**鼠标滚轮实现图片的放大缩小 */
|
|
80
|
+
var handleWheel = function handleWheel(event) {
|
|
81
|
+
// event.preventDefault() //阻止默认的滚动行为,防止浏览器默认进行页面滚动
|
|
82
|
+
var scaleChange = event.deltaY > 0 ? -0.1 : 0.1;
|
|
83
|
+
//计算缩放比例,限制缩放比例在(0.5到4之间),防止过大或过小
|
|
84
|
+
var newScale = Math.min(Math.max(0.2, scale + scaleChange), 4);
|
|
85
|
+
//更新缩放的那一张比例
|
|
86
|
+
var updatedList = _toConsumableArray(list);
|
|
87
|
+
updatedList[curIndex].scale = newScale;
|
|
88
|
+
setList(updatedList);
|
|
89
|
+
setScale(newScale);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
//点击切换事件
|
|
93
|
+
var carouselClick = function carouselClick(type) {
|
|
94
|
+
setScale(1); //重置初始的缩放比例
|
|
95
|
+
setRotatinNum(0); //重置初始的缩放比例
|
|
96
|
+
if (type === 'lt') {
|
|
97
|
+
//向左切换
|
|
98
|
+
if (curIndex === 0) {
|
|
99
|
+
//当前的索引为0,获取最后一张图片
|
|
100
|
+
setCurIndex((list === null || list === void 0 ? void 0 : list.length) - 1);
|
|
101
|
+
return;
|
|
102
|
+
} else {
|
|
103
|
+
//获取上一张的图片
|
|
104
|
+
setCurIndex(curIndex - 1);
|
|
105
|
+
}
|
|
106
|
+
} else {
|
|
107
|
+
//向右切换
|
|
108
|
+
if (curIndex === (list === null || list === void 0 ? void 0 : list.length) - 1) {
|
|
109
|
+
//索引为最后一张,还切换就是切换到第一张
|
|
110
|
+
setCurIndex(0);
|
|
111
|
+
} else {
|
|
112
|
+
//获取下一张的图片
|
|
113
|
+
setCurIndex(curIndex + 1);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
//图片放大缩小
|
|
119
|
+
var toZoomInOut = function toZoomInOut(type) {
|
|
120
|
+
var ratios = type === 'enlarge' ? scale + 0.2 : scale - 0.2; //比例
|
|
121
|
+
var newScale = Math.min(Math.max(0.2, ratios), 4);
|
|
122
|
+
var updatedList = _toConsumableArray(list);
|
|
123
|
+
updatedList[curIndex].scale = newScale;
|
|
124
|
+
setList(updatedList);
|
|
125
|
+
setScale(newScale);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
//左右旋转图片
|
|
129
|
+
var toTurnHandle = function toTurnHandle(direction) {
|
|
130
|
+
var newRotateNum = rotatinNum;
|
|
131
|
+
if (direction === 'l') {
|
|
132
|
+
newRotateNum = rotatinNum - 1;
|
|
133
|
+
} else {
|
|
134
|
+
newRotateNum = rotatinNum + 1;
|
|
135
|
+
}
|
|
136
|
+
//更新缩放的那一张比例
|
|
137
|
+
var updatedList = _toConsumableArray(list);
|
|
138
|
+
updatedList[curIndex].roteAngle = newRotateNum * 90;
|
|
139
|
+
setList(updatedList);
|
|
140
|
+
setRotatinNum(newRotateNum);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
//底部按钮点击事件(enlarge - 放大,narrow - 缩小,turnLeft - 左转, turnRight - 右转)
|
|
144
|
+
var clickHandle = function clickHandle(type) {
|
|
145
|
+
switch (type) {
|
|
146
|
+
case 'enlarge':
|
|
147
|
+
toZoomInOut('enlarge');
|
|
148
|
+
break;
|
|
149
|
+
case 'narrow':
|
|
150
|
+
toZoomInOut('narrow');
|
|
151
|
+
break;
|
|
152
|
+
case 'turnLeft':
|
|
153
|
+
toTurnHandle('l');
|
|
154
|
+
break;
|
|
155
|
+
case 'turnRight':
|
|
156
|
+
toTurnHandle('r');
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
useEffect(function () {
|
|
163
|
+
if (Array.isArray(imgList) && imgList.length) {
|
|
164
|
+
var filePath = fileField.filePath,
|
|
165
|
+
fileName = fileField.fileName;
|
|
166
|
+
var arr = imgList.map(function (i) {
|
|
167
|
+
var _i$filePath, _i$filePath2;
|
|
168
|
+
var name = i[fileName] ? i[fileName] : (_i$filePath = i[filePath]) === null || _i$filePath === void 0 ? void 0 : _i$filePath.split('/').pop();
|
|
169
|
+
var type = (_i$filePath2 = i[filePath]) === null || _i$filePath2 === void 0 ? void 0 : _i$filePath2.substring(i[filePath].lastIndexOf('.') + 1);
|
|
170
|
+
return {
|
|
171
|
+
fileType: type === null || type === void 0 ? void 0 : type.toLowerCase(),
|
|
172
|
+
filePath: i[filePath],
|
|
173
|
+
fileName: name,
|
|
174
|
+
scale: 1,
|
|
175
|
+
roteAngle: 0
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
setList(arr);
|
|
179
|
+
}
|
|
180
|
+
}, [imgList]);
|
|
181
|
+
useEffect(function () {
|
|
182
|
+
setCurIndex(curImgIndex);
|
|
183
|
+
}, [curImgIndex]);
|
|
184
|
+
useEffect(function () {
|
|
185
|
+
var newBtns = _toConsumableArray(footerBtns);
|
|
186
|
+
if (scale <= 0.2) {
|
|
187
|
+
//最小的放大比例,缩小禁用
|
|
188
|
+
newBtns[1].disabled = true;
|
|
189
|
+
newBtns[0].disabled = false;
|
|
190
|
+
} else if (scale >= 4) {
|
|
191
|
+
//放大禁用
|
|
192
|
+
newBtns[1].disabled = false;
|
|
193
|
+
newBtns[0].disabled = true;
|
|
194
|
+
} else {
|
|
195
|
+
newBtns[1].disabled = false;
|
|
196
|
+
newBtns[0].disabled = false;
|
|
197
|
+
}
|
|
198
|
+
setFooterBtns(newBtns);
|
|
199
|
+
}, [scale]);
|
|
200
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
201
|
+
className: cn('file-preview')
|
|
202
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
203
|
+
className: "contentPart"
|
|
204
|
+
}, list[curIndex] && Object.keys(list[curIndex]).length && /*#__PURE__*/React.createElement("div", {
|
|
205
|
+
className: "contentDiv"
|
|
206
|
+
}, ((_list$curIndex = list[curIndex]) === null || _list$curIndex === void 0 ? void 0 : _list$curIndex.fileType) === 'pdf' ? /*#__PURE__*/React.createElement(LabPdfView, {
|
|
207
|
+
showMode: 0,
|
|
208
|
+
src: list[curIndex].filePath
|
|
209
|
+
}) : /*#__PURE__*/React.createElement("img", {
|
|
210
|
+
style: {
|
|
211
|
+
maxWidth: '100%',
|
|
212
|
+
maxHeight: '100%',
|
|
213
|
+
transform: "rotate(".concat(list[curIndex].roteAngle, "deg) scale3d(").concat(list[curIndex].scale, ", ").concat(list[curIndex].scale, ", 1)"),
|
|
214
|
+
transition: 'transform 0.25s ease',
|
|
215
|
+
// 添加平滑的缩放过渡效果
|
|
216
|
+
cursor: 'grab'
|
|
217
|
+
},
|
|
218
|
+
src: (_list$curIndex2 = list[curIndex]) === null || _list$curIndex2 === void 0 ? void 0 : _list$curIndex2.filePath,
|
|
219
|
+
onWheel: handleWheel,
|
|
220
|
+
key: (_list$curIndex3 = list[curIndex]) === null || _list$curIndex3 === void 0 ? void 0 : _list$curIndex3.filePath
|
|
221
|
+
}))), ((_list$curIndex4 = list[curIndex]) === null || _list$curIndex4 === void 0 ? void 0 : _list$curIndex4.fileType) !== 'pdf' && /*#__PURE__*/React.createElement("div", {
|
|
222
|
+
className: "footer"
|
|
223
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
224
|
+
className: "operate-btn"
|
|
225
|
+
}, (imgList === null || imgList === void 0 ? void 0 : imgList.length) > 1 && isSwitchPreviw && /*#__PURE__*/React.createElement("div", {
|
|
226
|
+
className: "footer-page",
|
|
227
|
+
title: "\u4E0A\u4E00\u5F20"
|
|
228
|
+
}, /*#__PURE__*/React.createElement(LeftOutlined, {
|
|
229
|
+
className: "footer-icon",
|
|
230
|
+
onClick: function onClick() {
|
|
231
|
+
return carouselClick('lt');
|
|
232
|
+
}
|
|
233
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
234
|
+
className: "page-text"
|
|
235
|
+
}, curIndex + 1, "/", imgList === null || imgList === void 0 ? void 0 : imgList.length), /*#__PURE__*/React.createElement(RightOutlined, {
|
|
236
|
+
className: "footer-icon",
|
|
237
|
+
onClick: function onClick() {
|
|
238
|
+
return carouselClick('rt');
|
|
239
|
+
},
|
|
240
|
+
title: "\u4E0B\u4E00\u5F20"
|
|
241
|
+
})), (imgList === null || imgList === void 0 ? void 0 : imgList.length) > 1 && /*#__PURE__*/React.createElement(Divider, {
|
|
242
|
+
type: "vertical",
|
|
243
|
+
style: {
|
|
244
|
+
background: '#edf1f51a'
|
|
245
|
+
}
|
|
246
|
+
}), footerBtns.map(function (item) {
|
|
247
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
248
|
+
onClick: function onClick() {
|
|
249
|
+
return clickHandle(item.type);
|
|
250
|
+
},
|
|
251
|
+
key: item.type,
|
|
252
|
+
className: item.disabled ? 'disable-btn' : '',
|
|
253
|
+
title: item.disabled ? item.disableName : item.typeName
|
|
254
|
+
}, item.icon);
|
|
255
|
+
}))));
|
|
256
|
+
};
|
|
257
|
+
export default LabFilePreview;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.file-preview {
|
|
2
|
+
background-color: #0d0d0dcc;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
.contentPart {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
|
|
13
|
+
.contentDiv {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: auto;
|
|
21
|
+
|
|
22
|
+
img {
|
|
23
|
+
height: 100vh;
|
|
24
|
+
position: absolute;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.pdfStyle {
|
|
28
|
+
width: 100vw;
|
|
29
|
+
height: 100vh;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.footer {
|
|
35
|
+
position: absolute;
|
|
36
|
+
bottom: 0;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 48px;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
background-color: rgb(21, 21, 21);
|
|
43
|
+
|
|
44
|
+
.operate-btn {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
color: #fff;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.footer-icon {
|
|
51
|
+
font-size: 18px;
|
|
52
|
+
color: #fff;
|
|
53
|
+
padding: 6px 12px;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.footer-page {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
|
|
61
|
+
.page-text {
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
padding: 0 12px;
|
|
64
|
+
margin: 0 8px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.disable-btn {
|
|
69
|
+
.footer-icon {
|
|
70
|
+
color: #b6b9c4;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
::selection {
|
|
76
|
+
background: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style.less';
|
|
3
3
|
import type { IGtreeProps } from './typing';
|
|
4
|
-
declare const LabGroupTree: ({ treeData, GBeforeIcon,
|
|
4
|
+
declare const LabGroupTree: ({ treeData, GBeforeIcon, showIcon, isShowNum, isCustomTree, treeProperties, onExpand, onSelect, childTitleNode, extraNodeProps, ...restProps }: IGtreeProps) => React.JSX.Element;
|
|
5
5
|
export default LabGroupTree;
|
|
@@ -3,15 +3,16 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
4
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
|
-
var _excluded = ["treeData", "GBeforeIcon", "
|
|
7
|
-
/*
|
|
8
|
-
* @Author: xqy
|
|
9
|
-
* @Date: 2024-03-18 16:23:10
|
|
10
|
-
* @LastEditors: xqy
|
|
11
|
-
* @LastEditTime: 2024-
|
|
12
|
-
* @Description:专业组树形
|
|
6
|
+
var _excluded = ["treeData", "GBeforeIcon", "showIcon", "isShowNum", "isCustomTree", "treeProperties", "onExpand", "onSelect", "childTitleNode", "extraNodeProps"];
|
|
7
|
+
/*
|
|
8
|
+
* @Author: xqy
|
|
9
|
+
* @Date: 2024-03-18 16:23:10
|
|
10
|
+
* @LastEditors: xqy
|
|
11
|
+
* @LastEditTime: 2024-11-22 16:11:10
|
|
12
|
+
* @Description:专业组树形
|
|
13
13
|
*/
|
|
14
14
|
import { Iconfont } from "../components";
|
|
15
|
+
import { MinusSquareOutlined, PlusSquareOutlined } from '@ant-design/icons';
|
|
15
16
|
import { Tree } from 'antd';
|
|
16
17
|
import React, { useMemo } from 'react';
|
|
17
18
|
import "./style.less";
|
|
@@ -20,11 +21,25 @@ var IconTypes = {
|
|
|
20
21
|
// 检验专业组
|
|
21
22
|
'2': 'icon-guan',
|
|
22
23
|
// 管理专业组
|
|
24
|
+
'3': 'icon-yuan',
|
|
25
|
+
// 院区
|
|
23
26
|
'4': 'icon-ke',
|
|
24
27
|
// 科室
|
|
25
28
|
'10': 'icon-lei',
|
|
26
29
|
// 公共分类
|
|
27
|
-
'11': 'icon-lei'
|
|
30
|
+
'11': 'icon-lei',
|
|
31
|
+
// 管理专业组级公共分类
|
|
32
|
+
'111': 'icon-ji',
|
|
33
|
+
// 机构实例
|
|
34
|
+
'112': 'icon-ji',
|
|
35
|
+
// 机构 (显示为'机构')
|
|
36
|
+
'113': 'icon-ke',
|
|
37
|
+
// 科室 (显示为'科室')
|
|
38
|
+
'114': 'icon-bei',
|
|
39
|
+
// 备案实验室
|
|
40
|
+
'121': 'icon-fen',
|
|
41
|
+
// 分类
|
|
42
|
+
'122': 'icon-lei' // 类型
|
|
28
43
|
};
|
|
29
44
|
var LabGroupTree = function LabGroupTree(_ref) {
|
|
30
45
|
var _ref$treeData = _ref.treeData,
|
|
@@ -39,12 +54,6 @@ var LabGroupTree = function LabGroupTree(_ref) {
|
|
|
39
54
|
}
|
|
40
55
|
});
|
|
41
56
|
} : _ref$GBeforeIcon,
|
|
42
|
-
_ref$showLine = _ref.showLine,
|
|
43
|
-
showLine = _ref$showLine === void 0 ? {
|
|
44
|
-
showLeafIcon: function showLeafIcon() {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
} : _ref$showLine,
|
|
48
57
|
_ref$showIcon = _ref.showIcon,
|
|
49
58
|
showIcon = _ref$showIcon === void 0 ? true : _ref$showIcon,
|
|
50
59
|
_ref$isShowNum = _ref.isShowNum,
|
|
@@ -182,7 +191,9 @@ var LabGroupTree = function LabGroupTree(_ref) {
|
|
|
182
191
|
width: '100%'
|
|
183
192
|
},
|
|
184
193
|
showIcon: showIcon,
|
|
185
|
-
|
|
194
|
+
switcherIcon: function switcherIcon(props) {
|
|
195
|
+
return props !== null && props !== void 0 && props.expanded ? /*#__PURE__*/React.createElement(MinusSquareOutlined, null) : /*#__PURE__*/React.createElement(PlusSquareOutlined, null);
|
|
196
|
+
},
|
|
186
197
|
titleRender: customTitle,
|
|
187
198
|
fieldNames: {
|
|
188
199
|
title: 'NAME',
|