@zgfe/modules-settings 2.1.0-zhongyuan.2 → 2.1.0-zhongyuan.21

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.
Files changed (33) hide show
  1. package/es/components/importMetaDialog/index.d.ts +2 -0
  2. package/es/components/importMetaDialog/index.js +18 -3
  3. package/es/constants/api.d.ts +4 -0
  4. package/es/constants/api.js +12 -7
  5. package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
  6. package/es/modules/companySetting/application/index.js +5 -6
  7. package/es/modules/companySetting/application/index.less +144 -144
  8. package/es/modules/companySetting/index.js +37 -33
  9. package/es/modules/companySetting/user/index.js +29 -24
  10. package/es/modules/companySetting/user/invite.js +3 -16
  11. package/es/modules/createDemand/demo/selectPoint.js +0 -1
  12. package/es/modules/createDemand/index.js +7 -6
  13. package/es/modules/createDemand/styles/index.less +403 -403
  14. package/es/modules/createDemand_bf/demo/index.js +0 -1
  15. package/es/modules/createDemand_bf/index.js +0 -1
  16. package/es/modules/dealDemand/demo/index.js +0 -1
  17. package/es/modules/dealDemand/index.js +0 -2
  18. package/es/modules/demandManage/styles/index.less +155 -155
  19. package/es/modules/pointMap/createMetaDrawer.js +78 -47
  20. package/es/modules/pointMap/pageInfo.js +28 -15
  21. package/es/modules/pointMap/styles/index.less +8 -0
  22. package/es/modules/pointMap/styles/tree.less +18 -0
  23. package/es/modules/pointMap/tree.js +191 -117
  24. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +26 -20
  25. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +3 -2
  26. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +10 -8
  27. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +2 -2
  28. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +7 -9
  29. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +29 -16
  30. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +1 -1
  31. package/es/modules/systemSetting/document-setting/index.js +7 -6
  32. package/es/modules/systemSetting/index.js +13 -15
  33. package/package.json +3 -3
@@ -33,10 +33,11 @@ var clear = function clear(_ref) {
33
33
  request((currentDetail === null || currentDetail === void 0 ? void 0 : currentDetail.id) ? apis.dict.tagUpdate : apis.dict.tagSave, {
34
34
  method: 'post',
35
35
  data: {
36
+ id: currentDetail === null || currentDetail === void 0 ? void 0 : currentDetail.id,
36
37
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
37
- name: values.name,
38
+ labelName: values.labelName,
38
39
  remark: values.remark,
39
- type: type
40
+ labelType: type
40
41
  }
41
42
  }).then(function (res) {
42
43
  if (!res) return;
@@ -58,7 +59,7 @@ var clear = function clear(_ref) {
58
59
  useEffect(function () {
59
60
  if (currentDetail) {
60
61
  formRef.setFieldsValue({
61
- name: currentDetail.name,
62
+ labelName: currentDetail.labelName,
62
63
  remark: currentDetail.remark
63
64
  });
64
65
  }
@@ -70,10 +71,7 @@ var clear = function clear(_ref) {
70
71
  title: /*#__PURE__*/React.createElement("div", null, currentDetail ? '修改' : '创建', "\u6807\u7B7E", /*#__PURE__*/React.createElement("div", {
71
72
  className: "clearLoc-drawerCloseIcon",
72
73
  onClick: onClose
73
- }, /*#__PURE__*/React.createElement(CloseOutlined, {
74
- onPointerEnterCapture: undefined,
75
- onPointerLeaveCapture: undefined
76
- }))),
74
+ }, /*#__PURE__*/React.createElement(CloseOutlined, null))),
77
75
  onClose: onClose,
78
76
  closeIcon: false,
79
77
  open: open,
@@ -94,14 +92,14 @@ var clear = function clear(_ref) {
94
92
  span: 20
95
93
  },
96
94
  initialValues: {
97
- name: '',
95
+ labelName: '',
98
96
  desctiption: ''
99
97
  },
100
98
  onFinish: onFinish,
101
99
  labelAlign: "right"
102
100
  }, /*#__PURE__*/React.createElement(Form.Item, {
103
101
  label: "\u6807\u7B7E\u540D",
104
- name: "name",
102
+ name: "labelName",
105
103
  rules: [{
106
104
  required: true,
107
105
  message: '请输入标签名'
@@ -26,7 +26,8 @@ var locationTagManagement = function locationTagManagement(_ref) {
26
26
  var title = _ref.title,
27
27
  type = _ref.type;
28
28
  var _useContext = useContext(BizGlobalDataContext),
29
- currentApp = _useContext.currentApp;
29
+ currentApp = _useContext.currentApp,
30
+ showProdDownload = _useContext.showProdDownload;
30
31
  var columns = [{
31
32
  title: '序号',
32
33
  dataIndex: 'index',
@@ -40,8 +41,8 @@ var locationTagManagement = function locationTagManagement(_ref) {
40
41
  width: 80
41
42
  }, {
42
43
  title: title + '名',
43
- dataIndex: 'name',
44
- key: 'name',
44
+ dataIndex: 'labelName',
45
+ key: 'labelName',
45
46
  render: function render(text) {
46
47
  return /*#__PURE__*/React.createElement(Tooltip, {
47
48
  title: text
@@ -56,8 +57,8 @@ var locationTagManagement = function locationTagManagement(_ref) {
56
57
  }
57
58
  }, {
58
59
  title: '创建人',
59
- dataIndex: 'createUser',
60
- key: 'createUser',
60
+ dataIndex: 'creatorName',
61
+ key: 'creatorName',
61
62
  width: 140
62
63
  }, {
63
64
  title: '备注',
@@ -100,6 +101,7 @@ var locationTagManagement = function locationTagManagement(_ref) {
100
101
  addLocShow = _useState4[0],
101
102
  setAddlocShow = _useState4[1];
102
103
  var handleAddLoc = function handleAddLoc() {
104
+ setDetail(undefined);
103
105
  setAddlocShow(true);
104
106
  };
105
107
  // 导入标签
@@ -124,14 +126,17 @@ var locationTagManagement = function locationTagManagement(_ref) {
124
126
  exportLoading = _useState10[0],
125
127
  setExportLoading = _useState10[1];
126
128
  var onExport = function onExport() {
127
- if (!exportLoading) return;
129
+ var fileNames = ['位置标签列表', '业务标签列表', '触发标签列表'];
130
+ if (exportLoading) return;
128
131
  setExportLoading(true);
129
132
  request(apis.dict.tagDownload, {
130
133
  method: 'post',
131
134
  data: {
132
- appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
135
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
136
+ labelType: type
133
137
  },
134
- responseType: 'blob'
138
+ responseType: 'blob',
139
+ fileName: "".concat(fileNames[type - 1], "_").concat(moment().format('YYYYMMDD'))
135
140
  }).then(function () {
136
141
  setExportLoading(false);
137
142
  }).catch(function () {
@@ -151,18 +156,18 @@ var locationTagManagement = function locationTagManagement(_ref) {
151
156
  }, []);
152
157
  //分页搜索
153
158
  var getList = function getList() {
154
- request(apis.dict.getTagList, {
159
+ request(apis.dict.getTagPage, {
155
160
  method: 'post',
156
161
  data: {
157
162
  pageNo: tableParams.current,
158
163
  pageSize: tableParams.pageSize,
159
164
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
160
- type: type
165
+ labelType: type
161
166
  }
162
167
  }).then(function (res) {
163
168
  if (!res) return;
164
169
  if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
165
- setLocList(res.data.data);
170
+ setLocList(res.data.labelList);
166
171
  // 总页数
167
172
  setTableParams(function (pre) {
168
173
  return _objectSpread(_objectSpread({}, pre), {}, {
@@ -210,15 +215,15 @@ var locationTagManagement = function locationTagManagement(_ref) {
210
215
  className: "".concat(className)
211
216
  }, /*#__PURE__*/React.createElement("div", {
212
217
  className: "".concat(className, "-searchTop")
213
- }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
218
+ }, /*#__PURE__*/React.createElement(Space, null, showProdDownload && (/*#__PURE__*/React.createElement(Button, {
214
219
  onClick: onExport,
215
220
  loading: exportLoading
216
- }, /*#__PURE__*/React.createElement(ToTopOutlined, null), "\u5BFC\u51FA"), /*#__PURE__*/React.createElement(Button, {
221
+ }, /*#__PURE__*/React.createElement(ToTopOutlined, null), "\u5BFC\u51FA")), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
217
222
  type: "primary",
218
223
  onClick: function onClick() {
219
224
  return setOpenImportModal(true);
220
225
  }
221
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u5BFC\u5165", title), /*#__PURE__*/React.createElement(Button, {
226
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u5BFC\u5165", title)), /*#__PURE__*/React.createElement(Button, {
222
227
  type: "primary",
223
228
  onClick: handleAddLoc
224
229
  }, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u521B\u5EFA", title))), /*#__PURE__*/React.createElement(Table, {
@@ -228,7 +233,8 @@ var locationTagManagement = function locationTagManagement(_ref) {
228
233
  columns: columns,
229
234
  onChange: handlePage,
230
235
  scroll: {
231
- x: 992
236
+ x: 992,
237
+ y: 390
232
238
  }
233
239
  }), addLocShow && (/*#__PURE__*/React.createElement(CreateLoc, {
234
240
  type: type,
@@ -245,7 +251,14 @@ var locationTagManagement = function locationTagManagement(_ref) {
245
251
  onCancel: function onCancel() {
246
252
  setOpenImportModal(false);
247
253
  },
248
- onSuccess: function onSuccess(result) {}
254
+ showHistory: true,
255
+ params: {
256
+ labelType: type
257
+ },
258
+ onSuccess: function onSuccess(result) {
259
+ setOpenImportModal(false);
260
+ getList();
261
+ }
249
262
  })));
250
263
  };
251
264
  export default locationTagManagement;
@@ -1,6 +1,6 @@
1
1
  export interface DetailType {
2
2
  id: number;
3
- name: string;
3
+ labelName: string;
4
4
  remark: string;
5
5
  }
6
6
  export interface List {
@@ -34,7 +34,7 @@ var beforeUpload = function beforeUpload(file) {
34
34
  if (!isLt2M) {
35
35
  message.error('文件不能大于100M');
36
36
  }
37
- return isLt2M;
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, 'll');
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 : '1'),
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
- key: '1',
55
- label: '通知配置',
56
- content: /*#__PURE__*/React.createElement(Notice, {
57
- bizType: 1
58
- })
59
- }, {
60
- key: '3',
61
- label: 'kpi通知配置',
62
- content: /*#__PURE__*/React.createElement(Notice, {
63
- bizType: 2
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],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.1.0-zhongyuan.2",
3
+ "version": "2.1.0-zhongyuan.21",
4
4
  "private": false,
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "@types/lodash": "^4.14.182",
51
51
  "@umijs/fabric": "^2.8.1",
52
52
  "@umijs/test": "^3.0.5",
53
- "@zgfe/business-lib": "1.2.70-hxd.5",
53
+ "@zgfe/business-lib": "1.2.71-hxd.11",
54
54
  "@zgfe/modules-demo-manage": "1.0.5-zhongyuan.0",
55
55
  "@zgfe/modules-dm": "1.0.56-zhongyuan.1",
56
56
  "antd": "^4.22.6",
@@ -67,7 +67,7 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "d567e909df16d3e8b1fdea55cb831c0085e779fe",
70
+ "gitHead": "aa46d7fb05bf927eef75e3aa99d526f45daba984",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }