@zgfe/modules-settings 2.0.0-zhongyuan.9 → 2.1.0-zhongyuan-set.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/components/importMetaDialog/index.d.ts +13 -0
- package/es/components/importMetaDialog/index.js +217 -0
- package/es/components/importMetaDialog/styles/index.less +115 -0
- package/es/constants/api.d.ts +30 -0
- package/es/constants/api.js +43 -1
- package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
- package/es/modules/companySetting/application/applicationForm.d.ts +1 -0
- package/es/modules/companySetting/application/applicationForm.js +34 -4
- package/es/modules/companySetting/application/index.d.ts +13 -0
- package/es/modules/companySetting/application/index.js +276 -104
- package/es/modules/companySetting/application/index.less +32 -14
- package/es/modules/companySetting/index.js +37 -33
- package/es/modules/companySetting/operationLog/index.js +22 -5
- package/es/modules/companySetting/user/index.js +29 -24
- package/es/modules/companySetting/user/invite.js +30 -102
- package/es/modules/createDemand/constants.d.ts +15 -2
- package/es/modules/createDemand/constants.js +57 -4
- package/es/modules/createDemand/demo/selectPoint.js +1 -2
- package/es/modules/createDemand/index.d.ts +0 -1
- package/es/modules/createDemand/index.js +793 -179
- package/es/modules/createDemand/styles/index.less +127 -1
- package/es/modules/createDemand_bf/demo/index.js +0 -1
- package/es/modules/createDemand_bf/index.js +0 -1
- package/es/modules/dealDemand/demo/index.js +0 -1
- package/es/modules/dealDemand/demo/selectPoint.js +1 -1
- package/es/modules/dealDemand/index.js +0 -2
- package/es/modules/demandManage/index.js +174 -178
- package/es/modules/demandManage/styles/index.less +155 -215
- package/es/modules/messageList/index.d.ts +1 -1
- package/es/modules/messageList/index.js +6 -6
- package/es/modules/personalSetting/demo/index.d.ts +3 -0
- package/es/modules/personalSetting/demo/index.js +12 -0
- package/es/modules/personalSetting/index.js +11 -1
- package/es/modules/personalSetting/info/index.js +23 -5
- package/es/modules/pointMap/createMetaDrawer.d.ts +5 -0
- package/es/modules/pointMap/createMetaDrawer.js +827 -0
- package/es/modules/pointMap/pageInfo.js +401 -179
- package/es/modules/pointMap/record.d.ts +7 -0
- package/es/modules/pointMap/record.js +521 -0
- package/es/modules/pointMap/styles/index.less +127 -0
- package/es/modules/pointMap/styles/pageInfo.less +195 -0
- package/es/modules/pointMap/styles/tree.css +164 -145
- package/es/modules/pointMap/styles/tree.less +174 -149
- package/es/modules/pointMap/tree.js +232 -88
- package/es/modules/pointMap/types.d.ts +88 -0
- package/es/modules/pointMap/types.js +1 -0
- package/es/modules/systemSetting/Dictionary.d.ts +5 -2
- package/es/modules/systemSetting/Dictionary.js +54 -370
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.d.ts +9 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +245 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.d.ts +4 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +207 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +10 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.js +1 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.d.ts +10 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +124 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/css/index.less +32 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.d.ts +7 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +264 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +9 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.js +1 -0
- package/es/modules/systemSetting/document-setting/index.js +7 -6
- package/es/modules/systemSetting/index.js +16 -16
- package/es/types/personal.d.ts +1 -0
- package/package.json +74 -74
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.clearLoc {
|
|
2
|
+
height: 100%;
|
|
3
|
+
padding: 24px;
|
|
4
|
+
background: #fff;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
&-searchTop {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 1fr;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-items: self-end;
|
|
12
|
+
margin-bottom: 20px;
|
|
13
|
+
}
|
|
14
|
+
&-modal {
|
|
15
|
+
.ant-modal-body {
|
|
16
|
+
height: 350px;
|
|
17
|
+
}
|
|
18
|
+
.ant-picker-dropdown {
|
|
19
|
+
top: 133px !important;
|
|
20
|
+
left: 13px !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
&-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
}
|
|
28
|
+
&-drawerCloseIcon {
|
|
29
|
+
float: right;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
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(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : 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
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
+
import { Table, Button, Space, Modal, message, Tooltip, Typography } from 'antd';
|
|
14
|
+
import { ToTopOutlined, PlusOutlined } from '@ant-design/icons';
|
|
15
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
16
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
17
|
+
import ImportMetaDialog from '../../../../components/importMetaDialog';
|
|
18
|
+
import CreateLoc from './create';
|
|
19
|
+
import request from '../../../../utils/ajax';
|
|
20
|
+
import apis from '../../../../constants/api';
|
|
21
|
+
import './css/index.less';
|
|
22
|
+
import moment from 'moment';
|
|
23
|
+
var Text = Typography.Text;
|
|
24
|
+
var className = 'clearLoc';
|
|
25
|
+
var locationTagManagement = function locationTagManagement(_ref) {
|
|
26
|
+
var title = _ref.title,
|
|
27
|
+
type = _ref.type;
|
|
28
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
29
|
+
currentApp = _useContext.currentApp,
|
|
30
|
+
showProdDownload = _useContext.showProdDownload;
|
|
31
|
+
var columns = [{
|
|
32
|
+
title: '序号',
|
|
33
|
+
dataIndex: 'index',
|
|
34
|
+
key: 'index',
|
|
35
|
+
render: function render() {
|
|
36
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
37
|
+
args[_key] = arguments[_key];
|
|
38
|
+
}
|
|
39
|
+
return "".concat(args.pop() + 1);
|
|
40
|
+
},
|
|
41
|
+
width: 80
|
|
42
|
+
}, {
|
|
43
|
+
title: title + '名',
|
|
44
|
+
dataIndex: 'labelName',
|
|
45
|
+
key: 'labelName',
|
|
46
|
+
render: function render(text) {
|
|
47
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
48
|
+
title: text
|
|
49
|
+
}, /*#__PURE__*/React.createElement(Text, null, text));
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
title: '创建时间',
|
|
53
|
+
width: 220,
|
|
54
|
+
dataIndex: 'createTime',
|
|
55
|
+
render: function render(text) {
|
|
56
|
+
return moment(text).format('YYYY-MM-DD HH:mm:ss');
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
title: '创建人',
|
|
60
|
+
dataIndex: 'creatorName',
|
|
61
|
+
key: 'creatorName',
|
|
62
|
+
width: 140
|
|
63
|
+
}, {
|
|
64
|
+
title: '备注',
|
|
65
|
+
dataIndex: 'remark',
|
|
66
|
+
render: function render(text) {
|
|
67
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
68
|
+
title: text
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Text, null, text));
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
title: '操作',
|
|
73
|
+
key: 'action',
|
|
74
|
+
width: 160,
|
|
75
|
+
render: function render(_, record) {
|
|
76
|
+
return /*#__PURE__*/React.createElement(Space, {
|
|
77
|
+
size: "middle"
|
|
78
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
79
|
+
onClick: function onClick() {
|
|
80
|
+
return getDetail(record);
|
|
81
|
+
}
|
|
82
|
+
}, "\u7F16\u8F91"), /*#__PURE__*/React.createElement("a", {
|
|
83
|
+
onClick: function onClick() {
|
|
84
|
+
return handleDeleteLoc(record === null || record === void 0 ? void 0 : record.id);
|
|
85
|
+
}
|
|
86
|
+
}, "\u5220\u9664"));
|
|
87
|
+
}
|
|
88
|
+
}];
|
|
89
|
+
// 编辑标签
|
|
90
|
+
var _useState = useState(),
|
|
91
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
92
|
+
detail = _useState2[0],
|
|
93
|
+
setDetail = _useState2[1];
|
|
94
|
+
var getDetail = function getDetail(record) {
|
|
95
|
+
setDetail(record);
|
|
96
|
+
setAddlocShow(true);
|
|
97
|
+
};
|
|
98
|
+
// 新建标签显示
|
|
99
|
+
var _useState3 = useState(false),
|
|
100
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
101
|
+
addLocShow = _useState4[0],
|
|
102
|
+
setAddlocShow = _useState4[1];
|
|
103
|
+
var handleAddLoc = function handleAddLoc() {
|
|
104
|
+
setDetail(undefined);
|
|
105
|
+
setAddlocShow(true);
|
|
106
|
+
};
|
|
107
|
+
// 导入标签
|
|
108
|
+
var _useState5 = useState(false),
|
|
109
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
110
|
+
openImportModal = _useState6[0],
|
|
111
|
+
setOpenImportModal = _useState6[1];
|
|
112
|
+
/**
|
|
113
|
+
* 标签列表, 搜索名称 删除标签
|
|
114
|
+
*/
|
|
115
|
+
var _useState7 = useState([]),
|
|
116
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
117
|
+
locList = _useState8[0],
|
|
118
|
+
setLocList = _useState8[1];
|
|
119
|
+
var handlePage = function handlePage(pagination) {
|
|
120
|
+
setTableParams(pagination);
|
|
121
|
+
getList();
|
|
122
|
+
};
|
|
123
|
+
//标签导出
|
|
124
|
+
var _useState9 = useState(false),
|
|
125
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
126
|
+
exportLoading = _useState10[0],
|
|
127
|
+
setExportLoading = _useState10[1];
|
|
128
|
+
var onExport = function onExport() {
|
|
129
|
+
var fileNames = ['位置标签列表', '业务标签列表', '触发标签列表'];
|
|
130
|
+
if (exportLoading) return;
|
|
131
|
+
setExportLoading(true);
|
|
132
|
+
request(apis.dict.tagDownload, {
|
|
133
|
+
method: 'post',
|
|
134
|
+
data: {
|
|
135
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
136
|
+
labelType: type
|
|
137
|
+
},
|
|
138
|
+
responseType: 'blob',
|
|
139
|
+
fileName: "".concat(fileNames[type - 1], "_").concat(moment().format('YYYYMMDD'))
|
|
140
|
+
}).then(function () {
|
|
141
|
+
setExportLoading(false);
|
|
142
|
+
}).catch(function () {
|
|
143
|
+
setExportLoading(false);
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
var _useState11 = useState({
|
|
147
|
+
current: 1,
|
|
148
|
+
pageSize: 10,
|
|
149
|
+
total: 0
|
|
150
|
+
}),
|
|
151
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
152
|
+
tableParams = _useState12[0],
|
|
153
|
+
setTableParams = _useState12[1];
|
|
154
|
+
useEffect(function () {
|
|
155
|
+
getList();
|
|
156
|
+
}, []);
|
|
157
|
+
//分页搜索
|
|
158
|
+
var getList = function getList() {
|
|
159
|
+
request(apis.dict.getTagPage, {
|
|
160
|
+
method: 'post',
|
|
161
|
+
data: {
|
|
162
|
+
pageNo: tableParams.current,
|
|
163
|
+
pageSize: tableParams.pageSize,
|
|
164
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
165
|
+
labelType: type
|
|
166
|
+
}
|
|
167
|
+
}).then(function (res) {
|
|
168
|
+
if (!res) return;
|
|
169
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
170
|
+
setLocList(res.data.labelList);
|
|
171
|
+
// 总页数
|
|
172
|
+
setTableParams(function (pre) {
|
|
173
|
+
return _objectSpread(_objectSpread({}, pre), {}, {
|
|
174
|
+
total: res.data.total
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
} else {
|
|
178
|
+
message.error('查询列表失败!');
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
//删除
|
|
183
|
+
var handleDeleteLoc = function handleDeleteLoc(id) {
|
|
184
|
+
Modal.confirm({
|
|
185
|
+
// wrapClassName: `${classPrefix}-confirm`,
|
|
186
|
+
title: '提示',
|
|
187
|
+
icon: null,
|
|
188
|
+
closable: true,
|
|
189
|
+
content: '您确定要删除当前标签?',
|
|
190
|
+
okText: '确定',
|
|
191
|
+
cancelText: '取消',
|
|
192
|
+
onOk: function onOk() {
|
|
193
|
+
handleDeleteMap(id);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
var handleDeleteMap = function handleDeleteMap(id) {
|
|
198
|
+
request(apis.dict.tagDelete, {
|
|
199
|
+
method: 'post',
|
|
200
|
+
data: {
|
|
201
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
202
|
+
id: id
|
|
203
|
+
}
|
|
204
|
+
}).then(function (res) {
|
|
205
|
+
if (!res) return;
|
|
206
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
207
|
+
message.success("\u6807\u7B7E\u5220\u9664\u6210\u529F\uFF01");
|
|
208
|
+
getList();
|
|
209
|
+
} else {
|
|
210
|
+
message.error('标签删除失败!');
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
215
|
+
className: "".concat(className)
|
|
216
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
217
|
+
className: "".concat(className, "-searchTop")
|
|
218
|
+
}, /*#__PURE__*/React.createElement(Space, null, showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
219
|
+
onClick: onExport,
|
|
220
|
+
loading: exportLoading
|
|
221
|
+
}, /*#__PURE__*/React.createElement(ToTopOutlined, null), "\u5BFC\u51FA")), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
222
|
+
type: "primary",
|
|
223
|
+
onClick: function onClick() {
|
|
224
|
+
return setOpenImportModal(true);
|
|
225
|
+
}
|
|
226
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u5BFC\u5165", title)), /*#__PURE__*/React.createElement(Button, {
|
|
227
|
+
type: "primary",
|
|
228
|
+
onClick: handleAddLoc
|
|
229
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u521B\u5EFA", title))), /*#__PURE__*/React.createElement(Table, {
|
|
230
|
+
rowKey: "locId",
|
|
231
|
+
dataSource: locList,
|
|
232
|
+
pagination: tableParams,
|
|
233
|
+
columns: columns,
|
|
234
|
+
onChange: handlePage,
|
|
235
|
+
scroll: {
|
|
236
|
+
x: 992,
|
|
237
|
+
y: 390
|
|
238
|
+
}
|
|
239
|
+
}), addLocShow && (/*#__PURE__*/React.createElement(CreateLoc, {
|
|
240
|
+
type: type,
|
|
241
|
+
addLocShow: addLocShow,
|
|
242
|
+
currentDetail: detail || null,
|
|
243
|
+
onSetclose: function onSetclose() {
|
|
244
|
+
setAddlocShow(false);
|
|
245
|
+
getList();
|
|
246
|
+
}
|
|
247
|
+
})), openImportModal && (/*#__PURE__*/React.createElement(ImportMetaDialog, {
|
|
248
|
+
uploadFile: apis.dict.tagUpload,
|
|
249
|
+
downloadTempleUrl: apis.dict.tagTemplate,
|
|
250
|
+
fileName: "\u5BFC\u5165\u6A21\u677F",
|
|
251
|
+
onCancel: function onCancel() {
|
|
252
|
+
setOpenImportModal(false);
|
|
253
|
+
},
|
|
254
|
+
showHistory: true,
|
|
255
|
+
params: {
|
|
256
|
+
labelType: type
|
|
257
|
+
},
|
|
258
|
+
onSuccess: function onSuccess(result) {
|
|
259
|
+
setOpenImportModal(false);
|
|
260
|
+
getList();
|
|
261
|
+
}
|
|
262
|
+
})));
|
|
263
|
+
};
|
|
264
|
+
export default locationTagManagement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -34,7 +34,7 @@ var beforeUpload = function beforeUpload(file) {
|
|
|
34
34
|
if (!isLt2M) {
|
|
35
35
|
message.error('文件不能大于100M');
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return false;
|
|
38
38
|
};
|
|
39
39
|
var downloadFile = function downloadFile(resData, name) {
|
|
40
40
|
var blob = resData.data;
|
|
@@ -53,6 +53,7 @@ var downloadFile = function downloadFile(resData, name) {
|
|
|
53
53
|
var DocumentSetting = function DocumentSetting() {
|
|
54
54
|
var _useContext = useContext(BizGlobalDataContext),
|
|
55
55
|
projectList = _useContext.projectList,
|
|
56
|
+
showProdDownload = _useContext.showProdDownload,
|
|
56
57
|
currentUser = _useContext.currentUser;
|
|
57
58
|
var _useState = useState([]),
|
|
58
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -93,12 +94,12 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
93
94
|
render: function render(_, record) {
|
|
94
95
|
return /*#__PURE__*/React.createElement(Space, {
|
|
95
96
|
size: "middle"
|
|
96
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
97
|
+
}, showProdDownload && (/*#__PURE__*/React.createElement("a", {
|
|
97
98
|
onClick: function onClick() {
|
|
98
99
|
currentObj.current = record;
|
|
99
100
|
exportEvent();
|
|
100
101
|
}
|
|
101
|
-
}, "\u4E0B\u8F7D"), record.isSharePower == 1 && (/*#__PURE__*/React.createElement("a", {
|
|
102
|
+
}, "\u4E0B\u8F7D")), record.isSharePower == 1 && (/*#__PURE__*/React.createElement("a", {
|
|
102
103
|
onClick: function onClick() {
|
|
103
104
|
setIsOpenShareModal(true);
|
|
104
105
|
currentObj.current = record;
|
|
@@ -140,7 +141,7 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
140
141
|
fileName: (_currentObj$current2 = currentObj.current) === null || _currentObj$current2 === void 0 ? void 0 : _currentObj$current2.name,
|
|
141
142
|
isExcel: true
|
|
142
143
|
}).then(function (res) {
|
|
143
|
-
console.log(res
|
|
144
|
+
console.log(res);
|
|
144
145
|
});
|
|
145
146
|
case 1:
|
|
146
147
|
case "end":
|
|
@@ -387,12 +388,12 @@ var DocumentSetting = function DocumentSetting() {
|
|
|
387
388
|
return e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
388
389
|
});
|
|
389
390
|
}
|
|
390
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
391
|
+
}), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
391
392
|
type: "primary",
|
|
392
393
|
onClick: function onClick() {
|
|
393
394
|
return setIsOpenUploadModal(true);
|
|
394
395
|
}
|
|
395
|
-
}, "\u4E0A\u4F20")), /*#__PURE__*/React.createElement(Table, {
|
|
396
|
+
}, "\u4E0A\u4F20"))), /*#__PURE__*/React.createElement(Table, {
|
|
396
397
|
key: 'id',
|
|
397
398
|
columns: columns,
|
|
398
399
|
loading: documentFlagLoading,
|
|
@@ -6,7 +6,6 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useContext, useState } from 'react';
|
|
8
8
|
import { DesktopOutlined } from '@ant-design/icons';
|
|
9
|
-
import Notice from './notice';
|
|
10
9
|
import Approvalmanage from './approvalmanage';
|
|
11
10
|
import SettingTabs from '../../components/settingTabs';
|
|
12
11
|
import Dictionary from './Dictionary';
|
|
@@ -23,7 +22,7 @@ var SystemSetting = function SystemSetting(_ref) {
|
|
|
23
22
|
currentUser = _useContext.currentUser,
|
|
24
23
|
authority = _useContext.authority,
|
|
25
24
|
route = _useContext.route;
|
|
26
|
-
var _useState = useState(route && route.query && route.query.key ? route.query.key : '
|
|
25
|
+
var _useState = useState(route && route.query && route.query.key ? route.query.key : '4'),
|
|
27
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28
27
|
key = _useState2[0],
|
|
29
28
|
setKey = _useState2[1];
|
|
@@ -50,19 +49,18 @@ var SystemSetting = function SystemSetting(_ref) {
|
|
|
50
49
|
setIsRead(isRead);
|
|
51
50
|
setIsShowProcess(true);
|
|
52
51
|
};
|
|
53
|
-
var items = [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}, {
|
|
52
|
+
var items = [
|
|
53
|
+
// {
|
|
54
|
+
// key: '1',
|
|
55
|
+
// label: '通知配置',
|
|
56
|
+
// content: <Notice bizType={1} />,
|
|
57
|
+
// },
|
|
58
|
+
// {
|
|
59
|
+
// key: '3',
|
|
60
|
+
// label: 'kpi通知配置',
|
|
61
|
+
// content: <Notice bizType={2} />,
|
|
62
|
+
// },
|
|
63
|
+
{
|
|
66
64
|
key: '4',
|
|
67
65
|
label: '审批管理',
|
|
68
66
|
hidden: !authority[1722839049],
|
|
@@ -76,7 +74,9 @@ var SystemSetting = function SystemSetting(_ref) {
|
|
|
76
74
|
}, {
|
|
77
75
|
key: '6',
|
|
78
76
|
label: '字典管理',
|
|
79
|
-
content: /*#__PURE__*/React.createElement(Dictionary,
|
|
77
|
+
content: /*#__PURE__*/React.createElement(Dictionary, {
|
|
78
|
+
onShowProcess: onShowProcess
|
|
79
|
+
})
|
|
80
80
|
}, {
|
|
81
81
|
key: '7',
|
|
82
82
|
label: '文档库',
|
package/es/types/personal.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"private": false,
|
|
5
|
-
"module": "es/index.js",
|
|
6
|
-
"typings": "es/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"es"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "father-build",
|
|
12
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
13
|
-
"docs:build": "dumi build",
|
|
14
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
15
|
-
"prepublishOnly": "npm run build",
|
|
16
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
17
|
-
"pub": "lerna publish",
|
|
18
|
-
"start": "dumi dev",
|
|
19
|
-
"test": "umi-test",
|
|
20
|
-
"test:coverage": "umi-test --coverage"
|
|
21
|
-
},
|
|
22
|
-
"lint-staged": {
|
|
23
|
-
"*.{js,jsx,less,md,json}": [
|
|
24
|
-
"prettier --write"
|
|
25
|
-
],
|
|
26
|
-
"*.ts?(x)": [
|
|
27
|
-
"prettier --parser=typescript --write"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@antv/layout": "^0.3.25",
|
|
32
|
-
"@antv/x6": "^1.33.1",
|
|
33
|
-
"@antv/x6-react-components": "^1.1.15",
|
|
34
|
-
"@antv/x6-react-shape": "^1.6.1",
|
|
35
|
-
"@types/dom-to-image": "^2.6.7",
|
|
36
|
-
"canvg": "^4.0.2",
|
|
37
|
-
"clipboard": "^2.0.11",
|
|
38
|
-
"dom-to-image": "^2.6.0",
|
|
39
|
-
"echarts": "^5.5.1",
|
|
40
|
-
"echarts-for-react": "^3.0.2",
|
|
41
|
-
"html2canvas": "^1.4.1",
|
|
42
|
-
"jspdf": "^2.5.1",
|
|
43
|
-
"react": "^16.12.0 || ^17.0.0",
|
|
44
|
-
"react-router-dom": "^6.8.2"
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@testing-library/jest-dom": "^5.15.1",
|
|
48
|
-
"@testing-library/react": "^12.1.2",
|
|
49
|
-
"@types/jest": "^27.0.3",
|
|
50
|
-
"@types/lodash": "^4.14.182",
|
|
51
|
-
"@umijs/fabric": "^2.8.1",
|
|
52
|
-
"@umijs/test": "^3.0.5",
|
|
53
|
-
"@zgfe/business-lib": "1.2.
|
|
54
|
-
"@zgfe/modules-demo-manage": "1.0.5-zhongyuan.0",
|
|
55
|
-
"@zgfe/modules-dm": "1.0.56-zhongyuan.1",
|
|
56
|
-
"antd": "^4.22.6",
|
|
57
|
-
"dumi": "^1.1.0",
|
|
58
|
-
"father-build": "^1.17.2",
|
|
59
|
-
"gh-pages": "^3.0.0",
|
|
60
|
-
"lerna": "^5.1.7",
|
|
61
|
-
"lint-staged": "^10.0.7",
|
|
62
|
-
"lodash": "^4.17.21",
|
|
63
|
-
"prettier": "^2.2.1",
|
|
64
|
-
"umi-request": "^1.4.0",
|
|
65
|
-
"yorkie": "^2.0.0"
|
|
66
|
-
},
|
|
67
|
-
"publishConfig": {
|
|
68
|
-
"access": "public"
|
|
69
|
-
},
|
|
70
|
-
"gitHead": "
|
|
71
|
-
"gitHooks": {
|
|
72
|
-
"pre-commit": "lint-staged"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@zgfe/modules-settings",
|
|
3
|
+
"version": "2.1.0-zhongyuan-set.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"module": "es/index.js",
|
|
6
|
+
"typings": "es/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"es"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "father-build",
|
|
12
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
13
|
+
"docs:build": "dumi build",
|
|
14
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
17
|
+
"pub": "lerna publish",
|
|
18
|
+
"start": "dumi dev",
|
|
19
|
+
"test": "umi-test",
|
|
20
|
+
"test:coverage": "umi-test --coverage"
|
|
21
|
+
},
|
|
22
|
+
"lint-staged": {
|
|
23
|
+
"*.{js,jsx,less,md,json}": [
|
|
24
|
+
"prettier --write"
|
|
25
|
+
],
|
|
26
|
+
"*.ts?(x)": [
|
|
27
|
+
"prettier --parser=typescript --write"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@antv/layout": "^0.3.25",
|
|
32
|
+
"@antv/x6": "^1.33.1",
|
|
33
|
+
"@antv/x6-react-components": "^1.1.15",
|
|
34
|
+
"@antv/x6-react-shape": "^1.6.1",
|
|
35
|
+
"@types/dom-to-image": "^2.6.7",
|
|
36
|
+
"canvg": "^4.0.2",
|
|
37
|
+
"clipboard": "^2.0.11",
|
|
38
|
+
"dom-to-image": "^2.6.0",
|
|
39
|
+
"echarts": "^5.5.1",
|
|
40
|
+
"echarts-for-react": "^3.0.2",
|
|
41
|
+
"html2canvas": "^1.4.1",
|
|
42
|
+
"jspdf": "^2.5.1",
|
|
43
|
+
"react": "^16.12.0 || ^17.0.0",
|
|
44
|
+
"react-router-dom": "^6.8.2"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@testing-library/jest-dom": "^5.15.1",
|
|
48
|
+
"@testing-library/react": "^12.1.2",
|
|
49
|
+
"@types/jest": "^27.0.3",
|
|
50
|
+
"@types/lodash": "^4.14.182",
|
|
51
|
+
"@umijs/fabric": "^2.8.1",
|
|
52
|
+
"@umijs/test": "^3.0.5",
|
|
53
|
+
"@zgfe/business-lib": "1.2.71-hxd.11",
|
|
54
|
+
"@zgfe/modules-demo-manage": "1.0.5-zhongyuan.0",
|
|
55
|
+
"@zgfe/modules-dm": "1.0.56-zhongyuan.1",
|
|
56
|
+
"antd": "^4.22.6",
|
|
57
|
+
"dumi": "^1.1.0",
|
|
58
|
+
"father-build": "^1.17.2",
|
|
59
|
+
"gh-pages": "^3.0.0",
|
|
60
|
+
"lerna": "^5.1.7",
|
|
61
|
+
"lint-staged": "^10.0.7",
|
|
62
|
+
"lodash": "^4.17.21",
|
|
63
|
+
"prettier": "^2.2.1",
|
|
64
|
+
"umi-request": "^1.4.0",
|
|
65
|
+
"yorkie": "^2.0.0"
|
|
66
|
+
},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
},
|
|
70
|
+
"gitHead": "fad8f4db780d0a3e86a320836033e70809bebbc1",
|
|
71
|
+
"gitHooks": {
|
|
72
|
+
"pre-commit": "lint-staged"
|
|
73
|
+
}
|
|
74
|
+
}
|