@zgfe/modules-settings 2.0.0-zhongyuan.0 → 2.0.0-zhongyuan.2
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/es/modules/pointMap/styles/tree.css +7 -4
- package/es/modules/pointMap/styles/tree.less +5 -2
- package/es/modules/pointMap/tree.js +6 -4
- package/es/modules/systemSetting/Dictionary.js +1 -1
- package/es/modules/systemSetting/document-setting/index.js +44 -35
- package/es/modules/systemSetting/index.js +6 -7
- package/package.json +1 -1
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
}
|
|
32
32
|
.setting-point-map-tree-search {
|
|
33
33
|
position: relative;
|
|
34
|
-
margin-top: 16px;
|
|
35
34
|
display: grid;
|
|
36
|
-
align-items: center;
|
|
37
|
-
grid-template-columns: 1fr 80px;
|
|
38
35
|
grid-gap: 16px;
|
|
36
|
+
grid-template-columns: 1fr 20px;
|
|
37
|
+
align-items: center;
|
|
38
|
+
margin-top: 16px;
|
|
39
39
|
}
|
|
40
40
|
.setting-point-map-tree-search .qrcode-img {
|
|
41
41
|
display: inline-flex;
|
|
42
42
|
flex-direction: column;
|
|
43
43
|
align-items: center;
|
|
44
44
|
width: 200px;
|
|
45
|
-
|
|
45
|
+
height: 200px;
|
|
46
46
|
padding: 20px;
|
|
47
47
|
}
|
|
48
48
|
.setting-point-map-tree-search .qrcode-img > div {
|
|
@@ -57,6 +57,9 @@
|
|
|
57
57
|
height: 144px;
|
|
58
58
|
margin-top: 10px;
|
|
59
59
|
}
|
|
60
|
+
.setting-point-map-tree-search .ant-popover-placement-bottom .ant-popover-arrow {
|
|
61
|
+
left: 84% ;
|
|
62
|
+
}
|
|
60
63
|
.setting-point-map-tree-search .loading .ant-spin-nested-loading {
|
|
61
64
|
padding-top: 138px;
|
|
62
65
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
position: relative;
|
|
33
33
|
display: grid;
|
|
34
34
|
grid-gap: 16px;
|
|
35
|
-
grid-template-columns: 1fr
|
|
35
|
+
grid-template-columns: 1fr 20px;
|
|
36
36
|
align-items: center;
|
|
37
37
|
margin-top: 16px;
|
|
38
38
|
.qrcode-img {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
align-items: center;
|
|
42
42
|
width: 200px;
|
|
43
|
-
|
|
43
|
+
height: 200px;
|
|
44
44
|
padding: 20px;
|
|
45
45
|
> div {
|
|
46
46
|
text-align: center;
|
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
margin-top: 10px;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
.ant-popover-placement-bottom .ant-popover-arrow {
|
|
59
|
+
left: 84%;
|
|
60
|
+
}
|
|
58
61
|
.loading {
|
|
59
62
|
.ant-spin-nested-loading {
|
|
60
63
|
padding-top: 138px;
|
|
@@ -597,11 +597,13 @@ var pointMap = function pointMap(props) {
|
|
|
597
597
|
popupClassName: "".concat(classPrefix, "-search-popup")
|
|
598
598
|
}), /*#__PURE__*/React.createElement(IconFont, {
|
|
599
599
|
type: "sousuo"
|
|
600
|
-
})), /*#__PURE__*/React.createElement(
|
|
600
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
601
|
+
className: "".concat(classPrefix, "-search-pop")
|
|
602
|
+
}, /*#__PURE__*/React.createElement(Popover, {
|
|
601
603
|
open: qrCodeShareShow,
|
|
602
604
|
content: /*#__PURE__*/React.createElement("div", {
|
|
603
605
|
className: "".concat(qrCodeLoading ? 'loading' : '', " qrcode-img")
|
|
604
|
-
}, /*#__PURE__*/React.createElement("div", null, "\u624B\u673A\u626B\u7801\
|
|
606
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u624B\u673A\u626B\u7801\u67E5\u770B\u57CB\u70B9\u5730\u56FE"), /*#__PURE__*/React.createElement(Spin, {
|
|
605
607
|
spinning: qrCodeLoading
|
|
606
608
|
}, qrCodeShare && /*#__PURE__*/React.createElement("img", {
|
|
607
609
|
src: qrCodeShare
|
|
@@ -615,8 +617,8 @@ var pointMap = function pointMap(props) {
|
|
|
615
617
|
}, /*#__PURE__*/React.createElement("div", {
|
|
616
618
|
id: "share-qrcode-box"
|
|
617
619
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
618
|
-
type: "
|
|
619
|
-
})
|
|
620
|
+
type: "erweima"
|
|
621
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
620
622
|
className: "".concat(classPrefix, "-tree")
|
|
621
623
|
}, treeData && treeData.length ? (/*#__PURE__*/React.createElement(Tree, {
|
|
622
624
|
ref: treeRef,
|
|
@@ -71,7 +71,7 @@ var Dictionary = function Dictionary() {
|
|
|
71
71
|
}, o);
|
|
72
72
|
});
|
|
73
73
|
setDictionaryList(newArr);
|
|
74
|
-
setCurrentTypeId(function () {
|
|
74
|
+
newArr && newArr.length > 0 && setCurrentTypeId(function () {
|
|
75
75
|
getDictionaryContentList(newArr[0].key, searchValue);
|
|
76
76
|
return newArr[0].key;
|
|
77
77
|
});
|
|
@@ -53,11 +53,14 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
53
53
|
var _useContext = useContext(BizGlobalDataContext),
|
|
54
54
|
projectList = _useContext.projectList,
|
|
55
55
|
currentUser = _useContext.currentUser;
|
|
56
|
-
console.log(currentUser, 'currentUser');
|
|
57
56
|
var _useState = useState([]),
|
|
58
57
|
_useState2 = _slicedToArray(_useState, 2),
|
|
59
58
|
documentList = _useState2[0],
|
|
60
59
|
setDocumentList = _useState2[1];
|
|
60
|
+
var _useState3 = useState([]),
|
|
61
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
62
|
+
newDocumentList = _useState4[0],
|
|
63
|
+
setNewDocumentList = _useState4[1];
|
|
61
64
|
var currentObj = useRef();
|
|
62
65
|
var columns = [{
|
|
63
66
|
title: '序号',
|
|
@@ -162,27 +165,27 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
162
165
|
}
|
|
163
166
|
});
|
|
164
167
|
};
|
|
165
|
-
var
|
|
166
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
167
|
-
documentFlagLoading = _useState4[0],
|
|
168
|
-
setDocumentFlagLoading = _useState4[1];
|
|
169
|
-
var _useState5 = useState(''),
|
|
168
|
+
var _useState5 = useState(false),
|
|
170
169
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
var _useState7 = useState(false),
|
|
170
|
+
documentFlagLoading = _useState6[0],
|
|
171
|
+
setDocumentFlagLoading = _useState6[1];
|
|
172
|
+
var _useState7 = useState(''),
|
|
175
173
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
searchValue = _useState8[0],
|
|
175
|
+
setSearchValue = _useState8[1];
|
|
176
|
+
// 文件上传
|
|
177
|
+
var _useState9 = useState(false),
|
|
178
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
179
|
+
isOpenUploadModal = _useState10[0],
|
|
180
|
+
setIsOpenUploadModal = _useState10[1];
|
|
178
181
|
var handleValueCancel = function handleValueCancel() {
|
|
179
182
|
setIsOpenUploadModal(false);
|
|
180
183
|
setDocumentFlagLoading(false);
|
|
181
184
|
};
|
|
182
|
-
var
|
|
183
|
-
|
|
184
|
-
fileList =
|
|
185
|
-
setFileList =
|
|
185
|
+
var _useState11 = useState(),
|
|
186
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
187
|
+
fileList = _useState12[0],
|
|
188
|
+
setFileList = _useState12[1];
|
|
186
189
|
var props = {
|
|
187
190
|
name: 'file',
|
|
188
191
|
multiple: true,
|
|
@@ -220,26 +223,26 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
220
223
|
});
|
|
221
224
|
};
|
|
222
225
|
// 共享 分享类型 1指定应用 2指定成员 3仅自己 4所有成员
|
|
223
|
-
var
|
|
224
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
225
|
-
isOpenShareModal = _useState12[0],
|
|
226
|
-
setIsOpenShareModal = _useState12[1];
|
|
227
|
-
var _useState13 = useState(),
|
|
226
|
+
var _useState13 = useState(false),
|
|
228
227
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
var _useState15 = useState(
|
|
228
|
+
isOpenShareModal = _useState14[0],
|
|
229
|
+
setIsOpenShareModal = _useState14[1];
|
|
230
|
+
var _useState15 = useState(4),
|
|
232
231
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
currentShareType = _useState16[0],
|
|
233
|
+
setCurrentShareType = _useState16[1];
|
|
235
234
|
var _useState17 = useState([]),
|
|
236
235
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
adminOptionList = _useState18[0],
|
|
237
|
+
setAdminOptionList = _useState18[1]; // 成员列表
|
|
239
238
|
var _useState19 = useState([]),
|
|
240
239
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
currentAppArr = _useState20[0],
|
|
241
|
+
setCurrentAppArr = _useState20[1]; // 选中的应用id
|
|
242
|
+
var _useState21 = useState([]),
|
|
243
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
244
|
+
currentUserArr = _useState22[0],
|
|
245
|
+
setCurrentUserArr = _useState22[1]; // 选中的成员id
|
|
243
246
|
var handleShareCancel = function handleShareCancel() {
|
|
244
247
|
setIsOpenShareModal(false);
|
|
245
248
|
setCurrentUserArr([]);
|
|
@@ -312,7 +315,12 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
312
315
|
setDocumentFlagLoading(false);
|
|
313
316
|
});
|
|
314
317
|
};
|
|
315
|
-
|
|
318
|
+
useEffect(function () {
|
|
319
|
+
var searchList = searchValue ? documentList.filter(function (o) {
|
|
320
|
+
return o.name.includes(searchValue);
|
|
321
|
+
}) : documentList;
|
|
322
|
+
setNewDocumentList(searchList);
|
|
323
|
+
}, [documentList, searchValue]);
|
|
316
324
|
return /*#__PURE__*/React.createElement("div", {
|
|
317
325
|
className: "".concat(pageName),
|
|
318
326
|
id: "DocumentSetting1",
|
|
@@ -346,9 +354,9 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
346
354
|
value: searchValue,
|
|
347
355
|
onChange: function onChange(e) {
|
|
348
356
|
(e === null || e === void 0 ? void 0 : e.target) && setSearchValue(function () {
|
|
349
|
-
var _e$target
|
|
350
|
-
getFileList(e
|
|
351
|
-
return e === null || e === void 0 ? void 0 : (_e$
|
|
357
|
+
var _e$target;
|
|
358
|
+
// getFileList(e?.target?.value);
|
|
359
|
+
return e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
352
360
|
});
|
|
353
361
|
}
|
|
354
362
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -357,9 +365,10 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
357
365
|
return setIsOpenUploadModal(true);
|
|
358
366
|
}
|
|
359
367
|
}, "\u4E0A\u4F20")), /*#__PURE__*/React.createElement(Table, {
|
|
368
|
+
key: 'id',
|
|
360
369
|
columns: columns,
|
|
361
370
|
loading: documentFlagLoading,
|
|
362
|
-
dataSource:
|
|
371
|
+
dataSource: newDocumentList,
|
|
363
372
|
pagination: false
|
|
364
373
|
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
365
374
|
title: "\u4E0A\u4F20",
|
|
@@ -9,6 +9,7 @@ import { DesktopOutlined } from '@ant-design/icons';
|
|
|
9
9
|
import Notice from './notice';
|
|
10
10
|
import Approvalmanage from './approvalmanage';
|
|
11
11
|
import SettingTabs from '../../components/settingTabs';
|
|
12
|
+
import Dictionary from './Dictionary';
|
|
12
13
|
import { DemoManage } from '@zgfe/modules-demo-manage';
|
|
13
14
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
14
15
|
import CreateProcess from '../createProcess';
|
|
@@ -72,13 +73,11 @@ var SystemSetting = function SystemSetting(_ref) {
|
|
|
72
73
|
key: '5',
|
|
73
74
|
label: '接口管理',
|
|
74
75
|
content: /*#__PURE__*/React.createElement(AuthUrl, null)
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
// },
|
|
81
|
-
{
|
|
76
|
+
}, {
|
|
77
|
+
key: '6',
|
|
78
|
+
label: '字典管理',
|
|
79
|
+
content: /*#__PURE__*/React.createElement(Dictionary, null)
|
|
80
|
+
}, {
|
|
82
81
|
key: '7',
|
|
83
82
|
label: '文档库',
|
|
84
83
|
content: /*#__PURE__*/React.createElement(DocumentSetting, null)
|