@zgfe/modules-settings 1.2.51-zhongyuan.8 → 2.0.0-zhongyuan.0
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/constants/api.d.ts +2 -0
- package/es/constants/api.js +4 -1
- package/es/modules/createDemand/demo/selectPoint.js +11 -2
- package/es/modules/pointMap/demo/index.js +14 -6
- package/es/modules/pointMap/index.d.ts +1 -0
- package/es/modules/pointMap/index.js +1 -0
- package/es/modules/pointMap/tree.js +6 -3
- package/es/modules/systemSetting/Dictionary.js +4 -6
- package/es/modules/systemSetting/authUrl.js +2 -2
- package/es/modules/systemSetting/document-setting/index.js +59 -22
- package/es/modules/systemSetting/index.css +57 -0
- package/es/modules/systemSetting/index.js +10 -10
- package/es/modules/systemSetting/index.less +20 -1
- package/package.json +4 -3
package/es/constants/api.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ declare let apis: {
|
|
|
49
49
|
getDocumentFileList: string;
|
|
50
50
|
downloadDocument: string;
|
|
51
51
|
deleteDocumentFile: string;
|
|
52
|
+
shareAPP: string;
|
|
52
53
|
queryDeptList: string;
|
|
53
54
|
addDept: string;
|
|
54
55
|
updateDept: string;
|
|
@@ -147,5 +148,6 @@ declare let apis: {
|
|
|
147
148
|
updateMenuCode: string;
|
|
148
149
|
deleteMenuCode: string;
|
|
149
150
|
sharePanel: string;
|
|
151
|
+
sharePointMap: string;
|
|
150
152
|
};
|
|
151
153
|
export default apis;
|
package/es/constants/api.js
CHANGED
|
@@ -56,6 +56,7 @@ var apis = {
|
|
|
56
56
|
getDocumentFileList: '/zg/web/v2/company/document/queryDocument',
|
|
57
57
|
downloadDocument: '/zg/web/v2/company/document/downloadDocument',
|
|
58
58
|
deleteDocumentFile: '/zg/web/v2/company/document/deleteDocument',
|
|
59
|
+
shareAPP: '/zg/web/v2/company/document/shareDocument',
|
|
59
60
|
// 部门管理
|
|
60
61
|
queryDeptList: '/zg/web/v2/company/setting/queryDeptList',
|
|
61
62
|
addDept: '/zg/web/v2/company/setting/addDept',
|
|
@@ -204,6 +205,8 @@ var apis = {
|
|
|
204
205
|
updateMenuCode: '/zg/web/v2/systemSettings/update-menu',
|
|
205
206
|
deleteMenuCode: '/zg/web/v2/systemSettings/delete-menu',
|
|
206
207
|
// 分享二维码图片
|
|
207
|
-
sharePanel: '/zg/web/v2/wx_subscribe/sharePanel'
|
|
208
|
+
sharePanel: '/zg/web/v2/wx_subscribe/sharePanel',
|
|
209
|
+
// 分享埋点地图二维码图片
|
|
210
|
+
sharePointMap: '/zg/web/v2/wx_subscribe/sharePointMap'
|
|
208
211
|
};
|
|
209
212
|
export default apis;
|
|
@@ -42,8 +42,17 @@ export default (function (props) {
|
|
|
42
42
|
} : {});
|
|
43
43
|
setIsShowSelectList(true);
|
|
44
44
|
};
|
|
45
|
+
// 接收树数据
|
|
46
|
+
var _useState5 = useState(''),
|
|
47
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
48
|
+
selectTreeName = _useState6[0],
|
|
49
|
+
setSelectTreeName = _useState6[1]; // 树选中的页面
|
|
50
|
+
var setTreeData = function setTreeData(name) {
|
|
51
|
+
setSelectTreeName(name);
|
|
52
|
+
};
|
|
45
53
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PointMap, _objectSpread(_objectSpread({}, props), {}, {
|
|
46
|
-
setIsShowSelectList: initFun
|
|
54
|
+
setIsShowSelectList: initFun,
|
|
55
|
+
setTreeData: setTreeData
|
|
47
56
|
})), isShowSelectList ? (/*#__PURE__*/React.createElement("div", {
|
|
48
57
|
style: {
|
|
49
58
|
position: 'absolute',
|
|
@@ -84,6 +93,6 @@ export default (function (props) {
|
|
|
84
93
|
isSingleSelect: true,
|
|
85
94
|
onChangeSelectObj: setSelectObj,
|
|
86
95
|
selectObj: selectObj,
|
|
87
|
-
selectTreeName:
|
|
96
|
+
selectTreeName: selectTreeName
|
|
88
97
|
})))) : null);
|
|
89
98
|
});
|
|
@@ -26,17 +26,20 @@ export default (function () {
|
|
|
26
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
27
|
isShowSelectList = _useState2[0],
|
|
28
28
|
setIsShowSelectList = _useState2[1];
|
|
29
|
-
var _useState3 = useState(),
|
|
29
|
+
var _useState3 = useState(''),
|
|
30
30
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
selectTreeName = _useState4[0],
|
|
32
|
+
setSelectTreeName = _useState4[1]; // 树选中的页面
|
|
33
|
+
var _useState5 = useState(),
|
|
34
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
35
|
+
selectObj = _useState6[0],
|
|
36
|
+
setSelectObj = _useState6[1];
|
|
33
37
|
var save = function save() {
|
|
34
38
|
pointMapCallbackFun && pointMapCallbackFun(selectObj);
|
|
35
39
|
setIsShowSelectList(false);
|
|
36
40
|
};
|
|
37
41
|
var initFun = function initFun(callbackFun, data) {
|
|
38
42
|
pointMapCallbackFun = callbackFun;
|
|
39
|
-
console.log('initFun', data);
|
|
40
43
|
setSelectObj(data && data.eventId ? {
|
|
41
44
|
selectEventList: [{
|
|
42
45
|
event_id: data.eventId,
|
|
@@ -46,6 +49,10 @@ export default (function () {
|
|
|
46
49
|
} : {});
|
|
47
50
|
setIsShowSelectList(true);
|
|
48
51
|
};
|
|
52
|
+
// 接收树数据
|
|
53
|
+
var setTreeData = function setTreeData(name) {
|
|
54
|
+
setSelectTreeName(name);
|
|
55
|
+
};
|
|
49
56
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
50
57
|
defaultApp: 99825
|
|
51
58
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -53,7 +60,8 @@ export default (function () {
|
|
|
53
60
|
height: 500
|
|
54
61
|
}
|
|
55
62
|
}, /*#__PURE__*/React.createElement(DemandManage, {
|
|
56
|
-
setIsShowSelectList: initFun
|
|
63
|
+
setIsShowSelectList: initFun,
|
|
64
|
+
setTreeData: setTreeData
|
|
57
65
|
}), isShowSelectList ? (/*#__PURE__*/React.createElement("div", {
|
|
58
66
|
style: {
|
|
59
67
|
position: 'absolute',
|
|
@@ -94,6 +102,6 @@ export default (function () {
|
|
|
94
102
|
isSingleSelect: true,
|
|
95
103
|
onChangeSelectObj: setSelectObj,
|
|
96
104
|
selectObj: selectObj,
|
|
97
|
-
selectTreeName:
|
|
105
|
+
selectTreeName: selectTreeName
|
|
98
106
|
})))) : null));
|
|
99
107
|
});
|
|
@@ -92,6 +92,7 @@ var pointMap = function pointMap(props) {
|
|
|
92
92
|
pageStatusIsEdit: pageStatusIsEdit,
|
|
93
93
|
onChangePage: function onChangePage(data) {
|
|
94
94
|
setPageData(data);
|
|
95
|
+
props.setTreeData && props.setTreeData(data.treeName + '_点击'); // 树选择发生变化元事件名称一起变化
|
|
95
96
|
},
|
|
96
97
|
refreshPage: function refreshPage() {
|
|
97
98
|
return setKey(new Date().getTime());
|
|
@@ -195,8 +195,10 @@ var pointMap = function pointMap(props) {
|
|
|
195
195
|
if (!selectedKeys) {
|
|
196
196
|
setSelectedKeys((res === null || res === void 0 ? void 0 : res.data) ? [res === null || res === void 0 ? void 0 : res.data[0].id] : undefined);
|
|
197
197
|
props.onChangePage((res === null || res === void 0 ? void 0 : res.data) ? _objectSpread(_objectSpread({}, res === null || res === void 0 ? void 0 : res.data[0]), {}, {
|
|
198
|
-
currentPointVersion: currentPointVersion
|
|
198
|
+
currentPointVersion: currentPointVersion,
|
|
199
|
+
treeName: res === null || res === void 0 ? void 0 : res.data[0].name
|
|
199
200
|
}) : undefined);
|
|
201
|
+
// props.onChangePage(res?.data ? { ...res?.data[0], currentPointVersion } : undefined);
|
|
200
202
|
}
|
|
201
203
|
setChangeNameId(undefined);
|
|
202
204
|
}
|
|
@@ -490,11 +492,12 @@ var pointMap = function pointMap(props) {
|
|
|
490
492
|
setqrCodeShareShow(open);
|
|
491
493
|
if (qrCodeShare === '') {
|
|
492
494
|
setQrCodeLoading(true);
|
|
493
|
-
request(apis.
|
|
495
|
+
request(apis.sharePointMap, {
|
|
494
496
|
method: 'post',
|
|
495
497
|
data: {
|
|
496
498
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
497
|
-
platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0
|
|
499
|
+
platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0,
|
|
500
|
+
isDemo: 0
|
|
498
501
|
}
|
|
499
502
|
}).then(function (res) {
|
|
500
503
|
setqrCodeShare("data:image/png;base64,".concat(res.data));
|
|
@@ -20,8 +20,6 @@ import apis from '../../constants/api';
|
|
|
20
20
|
import request from '../../utils/ajax';
|
|
21
21
|
import DictionaryType from './DictionaryType';
|
|
22
22
|
import moment from 'moment';
|
|
23
|
-
var emptyData = require('./img/empty-data.png');
|
|
24
|
-
console.log(emptyData, 'emptyData');
|
|
25
23
|
var pageName = 'DictionaryPage';
|
|
26
24
|
var Dictionary = function Dictionary() {
|
|
27
25
|
var _useState = useState(false),
|
|
@@ -49,8 +47,8 @@ var Dictionary = function Dictionary() {
|
|
|
49
47
|
getList();
|
|
50
48
|
};
|
|
51
49
|
useEffect(function () {
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
setLoadingStatus(true);
|
|
51
|
+
getList();
|
|
54
52
|
}, []);
|
|
55
53
|
var getList = function getList() {
|
|
56
54
|
request(apis.setting.getDictionaryList, {
|
|
@@ -284,8 +282,8 @@ var Dictionary = function Dictionary() {
|
|
|
284
282
|
}
|
|
285
283
|
}, dictionaryList.length < 1 && !loadingStatus && (/*#__PURE__*/React.createElement("div", {
|
|
286
284
|
className: "".concat(pageName, "-emptyDom")
|
|
287
|
-
}, /*#__PURE__*/React.createElement("
|
|
288
|
-
|
|
285
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
286
|
+
className: "".concat(pageName, "-emptyDom-img")
|
|
289
287
|
}), /*#__PURE__*/React.createElement("p", {
|
|
290
288
|
className: "".concat(pageName, "-emptyDom-tip")
|
|
291
289
|
}, "\u8BF7\u5148\u6DFB\u52A0\u5B57\u5178\u7C7B\u578B"), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -120,7 +120,7 @@ var AuthUrl = function AuthUrl() {
|
|
|
120
120
|
menuCode: searchObj.menuCode
|
|
121
121
|
}
|
|
122
122
|
}).then(function (res) {
|
|
123
|
-
if (res.code == '100000') {
|
|
123
|
+
if (res && (res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
124
124
|
setDataSource(res.data);
|
|
125
125
|
}
|
|
126
126
|
});
|
|
@@ -152,7 +152,7 @@ var AuthUrl = function AuthUrl() {
|
|
|
152
152
|
methodType: values.methodType
|
|
153
153
|
}
|
|
154
154
|
}).then(function (res) {
|
|
155
|
-
if (res.code
|
|
155
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
156
156
|
setIsOpenModal(false);
|
|
157
157
|
setCurrentObj({
|
|
158
158
|
url: '',
|
|
@@ -14,7 +14,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
14
14
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
15
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
16
16
|
import React, { useEffect, useState, useRef, useContext } from 'react';
|
|
17
|
-
import { Button, Modal, Space, Table, Input, message, Radio, Upload, Select, Tooltip } from 'antd';
|
|
17
|
+
import { Button, Modal, Space, Table, Input, message, Radio, Spin, Upload, Select, Tooltip } from 'antd';
|
|
18
18
|
import { InboxOutlined, SearchOutlined } from '@ant-design/icons';
|
|
19
19
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
20
20
|
import moment from 'moment';
|
|
@@ -25,9 +25,9 @@ var Dragger = Upload.Dragger;
|
|
|
25
25
|
var pageName = 'DocumentSetting';
|
|
26
26
|
var confirm = Modal.confirm;
|
|
27
27
|
var beforeUpload = function beforeUpload(file) {
|
|
28
|
-
var isJpgOrPng = file.type == 'application/x-zip-compressed';
|
|
28
|
+
var isJpgOrPng = file.type == 'application/x-zip-compressed' || file.type == 'application/x-compressed';
|
|
29
29
|
if (!isJpgOrPng) {
|
|
30
|
-
message.error('只能传入是ZIP文件');
|
|
30
|
+
message.error('只能传入是ZIP或者RAR文件');
|
|
31
31
|
}
|
|
32
32
|
var isLt2M = file.size / 1024 / 1024 < 100;
|
|
33
33
|
if (!isLt2M) {
|
|
@@ -51,8 +51,10 @@ var downloadFile = function downloadFile(resData, name) {
|
|
|
51
51
|
};
|
|
52
52
|
var DocumentSetting = function DocumentSetting() {
|
|
53
53
|
var _useContext = useContext(BizGlobalDataContext),
|
|
54
|
-
projectList = _useContext.projectList
|
|
55
|
-
|
|
54
|
+
projectList = _useContext.projectList,
|
|
55
|
+
currentUser = _useContext.currentUser;
|
|
56
|
+
console.log(currentUser, 'currentUser');
|
|
57
|
+
var _useState = useState([]),
|
|
56
58
|
_useState2 = _slicedToArray(_useState, 2),
|
|
57
59
|
documentList = _useState2[0],
|
|
58
60
|
setDocumentList = _useState2[1];
|
|
@@ -89,12 +91,12 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
89
91
|
currentObj.current = record;
|
|
90
92
|
exportEvent();
|
|
91
93
|
}
|
|
92
|
-
}, "\u4E0B\u8F7D"), /*#__PURE__*/React.createElement("a", {
|
|
94
|
+
}, "\u4E0B\u8F7D"), record.isSharePower == 1 && (/*#__PURE__*/React.createElement("a", {
|
|
93
95
|
onClick: function onClick() {
|
|
94
96
|
setIsOpenShareModal(true);
|
|
95
97
|
currentObj.current = record;
|
|
96
98
|
}
|
|
97
|
-
}, "\u5206\u4EAB"), /*#__PURE__*/React.createElement("a", {
|
|
99
|
+
}, "\u5206\u4EAB")), /*#__PURE__*/React.createElement("a", {
|
|
98
100
|
onClick: function onClick() {
|
|
99
101
|
currentObj.current = record;
|
|
100
102
|
confirm({
|
|
@@ -120,15 +122,18 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
120
122
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
121
123
|
while (1) switch (_context.prev = _context.next) {
|
|
122
124
|
case 0:
|
|
125
|
+
// window.open(`${apis.setting.downloadDocument}?id=${currentObj.current?.id}`);
|
|
126
|
+
// downloadFile()
|
|
123
127
|
request(apis.setting.downloadDocument, {
|
|
124
|
-
method: '
|
|
125
|
-
|
|
128
|
+
method: 'get',
|
|
129
|
+
params: {
|
|
126
130
|
id: (_currentObj$current = currentObj.current) === null || _currentObj$current === void 0 ? void 0 : _currentObj$current.id
|
|
127
131
|
},
|
|
128
132
|
responseType: 'blob',
|
|
129
|
-
fileName: (_currentObj$current2 = currentObj.current) === null || _currentObj$current2 === void 0 ? void 0 : _currentObj$current2.name
|
|
133
|
+
fileName: (_currentObj$current2 = currentObj.current) === null || _currentObj$current2 === void 0 ? void 0 : _currentObj$current2.name,
|
|
134
|
+
isExcel: true
|
|
130
135
|
}).then(function (res) {
|
|
131
|
-
console.log(res, '');
|
|
136
|
+
console.log(res, 'll');
|
|
132
137
|
});
|
|
133
138
|
case 1:
|
|
134
139
|
case "end":
|
|
@@ -214,7 +219,7 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
214
219
|
}
|
|
215
220
|
});
|
|
216
221
|
};
|
|
217
|
-
// 共享
|
|
222
|
+
// 共享 分享类型 1指定应用 2指定成员 3仅自己 4所有成员
|
|
218
223
|
var _useState11 = useState(false),
|
|
219
224
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
220
225
|
isOpenShareModal = _useState12[0],
|
|
@@ -239,7 +244,7 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
239
244
|
setIsOpenShareModal(false);
|
|
240
245
|
setCurrentUserArr([]);
|
|
241
246
|
setCurrentAppArr([]);
|
|
242
|
-
setCurrentShareType(
|
|
247
|
+
setCurrentShareType(4);
|
|
243
248
|
};
|
|
244
249
|
var onShareChange = function onShareChange(e) {
|
|
245
250
|
setCurrentShareType(e.target.value);
|
|
@@ -287,7 +292,26 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
287
292
|
var handleUserSelect = function handleUserSelect(value) {
|
|
288
293
|
setCurrentUserArr(value);
|
|
289
294
|
};
|
|
290
|
-
var saveShare = function saveShare() {
|
|
295
|
+
var saveShare = function saveShare() {
|
|
296
|
+
var _currentObj$current4;
|
|
297
|
+
request(apis.setting.shareAPP, {
|
|
298
|
+
method: 'post',
|
|
299
|
+
data: {
|
|
300
|
+
type: currentShareType,
|
|
301
|
+
id: (_currentObj$current4 = currentObj.current) === null || _currentObj$current4 === void 0 ? void 0 : _currentObj$current4.id,
|
|
302
|
+
shareIds: currentShareType == 1 ? currentAppArr : currentUserArr
|
|
303
|
+
}
|
|
304
|
+
}).then(function (res) {
|
|
305
|
+
if (res && (res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
306
|
+
message.error('分享成功!');
|
|
307
|
+
handleShareCancel();
|
|
308
|
+
} else {
|
|
309
|
+
message.error('查询失败,联系管理员');
|
|
310
|
+
}
|
|
311
|
+
}).finally(function () {
|
|
312
|
+
setDocumentFlagLoading(false);
|
|
313
|
+
});
|
|
314
|
+
};
|
|
291
315
|
// end
|
|
292
316
|
return /*#__PURE__*/React.createElement("div", {
|
|
293
317
|
className: "".concat(pageName),
|
|
@@ -297,7 +321,20 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
297
321
|
}
|
|
298
322
|
}, /*#__PURE__*/React.createElement("div", {
|
|
299
323
|
className: "".concat(pageName, "-header")
|
|
300
|
-
}, "\u6587\u6863\u5E93"), /*#__PURE__*/React.createElement("div", {
|
|
324
|
+
}, "\u6587\u6863\u5E93"), documentList.length < 1 && !documentFlagLoading && (/*#__PURE__*/React.createElement("div", {
|
|
325
|
+
className: "".concat(pageName, "-emptyDom")
|
|
326
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
327
|
+
className: "".concat(pageName, "-emptyDom-img")
|
|
328
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
329
|
+
className: "".concat(pageName, "-emptyDom-tip")
|
|
330
|
+
}, "\u6682\u65E0\u6587\u6863\uFF0C\u8BF7\u5148\u4E0A\u4F20"), /*#__PURE__*/React.createElement(Button, {
|
|
331
|
+
type: "primary",
|
|
332
|
+
onClick: function onClick() {
|
|
333
|
+
return setIsOpenUploadModal(true);
|
|
334
|
+
}
|
|
335
|
+
}, "\u4E0A\u4F20"))), documentFlagLoading && /*#__PURE__*/React.createElement(Spin, {
|
|
336
|
+
tip: "\u52A0\u8F7D\u4E2D"
|
|
337
|
+
}), documentList && documentList.length > 0 && !documentFlagLoading && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
301
338
|
className: "".concat(pageName, "-search")
|
|
302
339
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
303
340
|
bordered: false,
|
|
@@ -324,7 +361,7 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
324
361
|
loading: documentFlagLoading,
|
|
325
362
|
dataSource: documentList,
|
|
326
363
|
pagination: false
|
|
327
|
-
}), /*#__PURE__*/React.createElement(Modal, {
|
|
364
|
+
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
328
365
|
title: "\u4E0A\u4F20",
|
|
329
366
|
okText: "\u786E\u5B9A",
|
|
330
367
|
cancelText: "\u53D6\u6D88",
|
|
@@ -369,10 +406,10 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
369
406
|
},
|
|
370
407
|
size: 20
|
|
371
408
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
372
|
-
value:
|
|
409
|
+
value: 4
|
|
373
410
|
}, "\u6240\u4EE5\u6210\u5458"), /*#__PURE__*/React.createElement(Radio, {
|
|
374
|
-
value:
|
|
375
|
-
}, "\u6307\u5B9A\u5E94\u7528\uFF08\u6240\u6709\u62E5\u6709\u8BE5\u5E94\u7528\u6743\u9650\u7684\u89D2\u8272\uFF09"), currentShareType ==
|
|
411
|
+
value: 1
|
|
412
|
+
}, "\u6307\u5B9A\u5E94\u7528\uFF08\u6240\u6709\u62E5\u6709\u8BE5\u5E94\u7528\u6743\u9650\u7684\u89D2\u8272\uFF09"), currentShareType == 1 ? (/*#__PURE__*/React.createElement(React.Fragment, null, currentAppArr.length > 2 ? (/*#__PURE__*/React.createElement(Tooltip, {
|
|
376
413
|
title: function title() {
|
|
377
414
|
return projectList.filter(function (o) {
|
|
378
415
|
return currentAppArr.includes(o.projectId);
|
|
@@ -411,8 +448,8 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
411
448
|
options: projectList,
|
|
412
449
|
onChange: handleAppSelect
|
|
413
450
|
})))) : null, /*#__PURE__*/React.createElement(Radio, {
|
|
414
|
-
value:
|
|
415
|
-
}, "\u6307\u5B9A\u6210\u5458"), currentShareType ==
|
|
451
|
+
value: 2
|
|
452
|
+
}, "\u6307\u5B9A\u6210\u5458"), currentShareType == 2 ? (/*#__PURE__*/React.createElement(React.Fragment, null, currentUserArr.length > 2 ? (/*#__PURE__*/React.createElement(Tooltip, {
|
|
416
453
|
title: function title() {
|
|
417
454
|
return adminOptionList.filter(function (o) {
|
|
418
455
|
return currentUserArr.includes(o.id);
|
|
@@ -461,7 +498,7 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
461
498
|
options: adminOptionList,
|
|
462
499
|
onChange: handleUserSelect
|
|
463
500
|
})))) : null, /*#__PURE__*/React.createElement(Radio, {
|
|
464
|
-
value:
|
|
501
|
+
value: 3
|
|
465
502
|
}, "\u4EC5\u81EA\u5DF1")))));
|
|
466
503
|
};
|
|
467
504
|
export default DocumentSetting;
|
|
@@ -13,6 +13,22 @@
|
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
margin: 0px 0px 16px;
|
|
15
15
|
}
|
|
16
|
+
.DictionaryPage-emptyDom {
|
|
17
|
+
margin: 50px 0px 0px;
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
.DictionaryPage-emptyDom-img {
|
|
21
|
+
display: block;
|
|
22
|
+
width: 248px;
|
|
23
|
+
height: 200px;
|
|
24
|
+
margin: auto;
|
|
25
|
+
background-image: url('img/empty-data.png');
|
|
26
|
+
background-size: 100%;
|
|
27
|
+
}
|
|
28
|
+
.DictionaryPage-emptyDom-tip {
|
|
29
|
+
margin: 0px 0px 10px;
|
|
30
|
+
color: #999;
|
|
31
|
+
}
|
|
16
32
|
.DictionaryPage .ant-tabs-nav {
|
|
17
33
|
padding-right: 10%;
|
|
18
34
|
}
|
|
@@ -60,6 +76,9 @@
|
|
|
60
76
|
text-align: center;
|
|
61
77
|
vertical-align: middle;
|
|
62
78
|
}
|
|
79
|
+
.DictionaryPage-modal .ant-input-affix-wrapper {
|
|
80
|
+
vertical-align: middle;
|
|
81
|
+
}
|
|
63
82
|
.DictionaryPage-modal .DictionaryPage-modal-content {
|
|
64
83
|
padding: 10px 16px 0px;
|
|
65
84
|
}
|
|
@@ -75,8 +94,19 @@
|
|
|
75
94
|
border-bottom: 1px solid #f2f3f4;
|
|
76
95
|
}
|
|
77
96
|
.DictionaryPage-modal-content-itemLeft {
|
|
97
|
+
position: relative;
|
|
78
98
|
display: inline-block;
|
|
79
99
|
flex: 1;
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
.DictionaryPage-modal-content-itemLeft .error-tip {
|
|
103
|
+
position: absolute;
|
|
104
|
+
bottom: -28px;
|
|
105
|
+
left: 3px;
|
|
106
|
+
width: 100%;
|
|
107
|
+
color: red;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
letter-spacing: 1px;
|
|
80
110
|
}
|
|
81
111
|
.DictionaryPage-modal-content-itemRight {
|
|
82
112
|
display: inline-block;
|
|
@@ -102,3 +132,30 @@
|
|
|
102
132
|
justify-content: space-between;
|
|
103
133
|
margin: 16px 0px;
|
|
104
134
|
}
|
|
135
|
+
.DocumentSetting-header {
|
|
136
|
+
height: 48px;
|
|
137
|
+
line-height: 48px;
|
|
138
|
+
border-bottom: 1px solid #e8efff;
|
|
139
|
+
}
|
|
140
|
+
.DocumentSetting-search {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: space-between;
|
|
144
|
+
margin: 16px 0px 16px;
|
|
145
|
+
}
|
|
146
|
+
.DocumentSetting-emptyDom {
|
|
147
|
+
margin: 50px 0px 0px;
|
|
148
|
+
text-align: center;
|
|
149
|
+
}
|
|
150
|
+
.DocumentSetting-emptyDom-img {
|
|
151
|
+
display: block;
|
|
152
|
+
width: 248px;
|
|
153
|
+
height: 200px;
|
|
154
|
+
margin: auto;
|
|
155
|
+
background-image: url('img/empty-data.png');
|
|
156
|
+
background-size: 100%;
|
|
157
|
+
}
|
|
158
|
+
.DocumentSetting-emptyDom-tip {
|
|
159
|
+
margin: 0px 0px 10px;
|
|
160
|
+
color: #999;
|
|
161
|
+
}
|
|
@@ -9,11 +9,11 @@ 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';
|
|
13
12
|
import { DemoManage } from '@zgfe/modules-demo-manage';
|
|
14
13
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
15
14
|
import CreateProcess from '../createProcess';
|
|
16
15
|
import AuthUrl from './authUrl';
|
|
16
|
+
import DocumentSetting from './document-setting';
|
|
17
17
|
import './index.less';
|
|
18
18
|
var refreshList = void 0;
|
|
19
19
|
var SystemSetting = function SystemSetting(_ref) {
|
|
@@ -72,17 +72,17 @@ var SystemSetting = function SystemSetting(_ref) {
|
|
|
72
72
|
key: '5',
|
|
73
73
|
label: '接口管理',
|
|
74
74
|
content: /*#__PURE__*/React.createElement(AuthUrl, null)
|
|
75
|
-
},
|
|
76
|
-
key: '6',
|
|
77
|
-
label: '字典管理',
|
|
78
|
-
content: /*#__PURE__*/React.createElement(Dictionary, null)
|
|
79
|
-
}
|
|
75
|
+
},
|
|
80
76
|
// {
|
|
81
|
-
// key: '
|
|
82
|
-
// label: '
|
|
83
|
-
// content: <
|
|
77
|
+
// key: '6',
|
|
78
|
+
// label: '字典管理',
|
|
79
|
+
// content: <Dictionary />,
|
|
84
80
|
// },
|
|
85
|
-
|
|
81
|
+
{
|
|
82
|
+
key: '7',
|
|
83
|
+
label: '文档库',
|
|
84
|
+
content: /*#__PURE__*/React.createElement(DocumentSetting, null)
|
|
85
|
+
}];
|
|
86
86
|
if ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.isAdmin) && /demomanage/i.test(window.location.search)) {
|
|
87
87
|
items.push({
|
|
88
88
|
key: '2',
|
|
@@ -19,10 +19,13 @@
|
|
|
19
19
|
&-emptyDom {
|
|
20
20
|
margin: 50px 0px 0px;
|
|
21
21
|
text-align: center;
|
|
22
|
-
img {
|
|
22
|
+
&-img {
|
|
23
23
|
display: block;
|
|
24
24
|
width: 248px;
|
|
25
|
+
height: 200px;
|
|
25
26
|
margin: auto;
|
|
27
|
+
background-image: url('./img/empty-data.png');
|
|
28
|
+
background-size: 100%;
|
|
26
29
|
}
|
|
27
30
|
&-tip {
|
|
28
31
|
margin: 0px 0px 10px;
|
|
@@ -147,4 +150,20 @@
|
|
|
147
150
|
justify-content: space-between;
|
|
148
151
|
margin: 16px 0px 16px;
|
|
149
152
|
}
|
|
153
|
+
&-emptyDom {
|
|
154
|
+
margin: 50px 0px 0px;
|
|
155
|
+
text-align: center;
|
|
156
|
+
&-img {
|
|
157
|
+
display: block;
|
|
158
|
+
width: 248px;
|
|
159
|
+
height: 200px;
|
|
160
|
+
margin: auto;
|
|
161
|
+
background-image: url('./img/empty-data.png');
|
|
162
|
+
background-size: 100%;
|
|
163
|
+
}
|
|
164
|
+
&-tip {
|
|
165
|
+
margin: 0px 0px 10px;
|
|
166
|
+
color: #999;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
150
169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-zhongyuan.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"dom-to-image": "^2.6.0",
|
|
39
39
|
"echarts": "^5.5.1",
|
|
40
40
|
"echarts-for-react": "^3.0.2",
|
|
41
|
+
"html2canvas": "^1.4.1",
|
|
41
42
|
"jspdf": "^2.5.1",
|
|
42
43
|
"react": "^16.12.0 || ^17.0.0",
|
|
43
44
|
"react-router-dom": "^6.8.2"
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"@types/lodash": "^4.14.182",
|
|
50
51
|
"@umijs/fabric": "^2.8.1",
|
|
51
52
|
"@umijs/test": "^3.0.5",
|
|
52
|
-
"@zgfe/business-lib": "1.2.70-hxd.
|
|
53
|
+
"@zgfe/business-lib": "1.2.70-hxd.5",
|
|
53
54
|
"@zgfe/modules-demo-manage": "1.0.5-zhongyuan.0",
|
|
54
55
|
"@zgfe/modules-dm": "1.0.56-zhongyuan.1",
|
|
55
56
|
"antd": "^4.22.6",
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"publishConfig": {
|
|
67
68
|
"access": "public"
|
|
68
69
|
},
|
|
69
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "e45349b4aba8221a7481a4911c65147b64079c0e",
|
|
70
71
|
"gitHooks": {
|
|
71
72
|
"pre-commit": "lint-staged"
|
|
72
73
|
}
|