@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.
Files changed (66) hide show
  1. package/es/components/importMetaDialog/index.d.ts +13 -0
  2. package/es/components/importMetaDialog/index.js +217 -0
  3. package/es/components/importMetaDialog/styles/index.less +115 -0
  4. package/es/constants/api.d.ts +30 -0
  5. package/es/constants/api.js +43 -1
  6. package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
  7. package/es/modules/companySetting/application/applicationForm.d.ts +1 -0
  8. package/es/modules/companySetting/application/applicationForm.js +34 -4
  9. package/es/modules/companySetting/application/index.d.ts +13 -0
  10. package/es/modules/companySetting/application/index.js +276 -104
  11. package/es/modules/companySetting/application/index.less +32 -14
  12. package/es/modules/companySetting/index.js +37 -33
  13. package/es/modules/companySetting/operationLog/index.js +22 -5
  14. package/es/modules/companySetting/user/index.js +29 -24
  15. package/es/modules/companySetting/user/invite.js +30 -102
  16. package/es/modules/createDemand/constants.d.ts +15 -2
  17. package/es/modules/createDemand/constants.js +57 -4
  18. package/es/modules/createDemand/demo/selectPoint.js +1 -2
  19. package/es/modules/createDemand/index.d.ts +0 -1
  20. package/es/modules/createDemand/index.js +793 -179
  21. package/es/modules/createDemand/styles/index.less +127 -1
  22. package/es/modules/createDemand_bf/demo/index.js +0 -1
  23. package/es/modules/createDemand_bf/index.js +0 -1
  24. package/es/modules/dealDemand/demo/index.js +0 -1
  25. package/es/modules/dealDemand/demo/selectPoint.js +1 -1
  26. package/es/modules/dealDemand/index.js +0 -2
  27. package/es/modules/demandManage/index.js +174 -178
  28. package/es/modules/demandManage/styles/index.less +155 -215
  29. package/es/modules/messageList/index.d.ts +1 -1
  30. package/es/modules/messageList/index.js +6 -6
  31. package/es/modules/personalSetting/demo/index.d.ts +3 -0
  32. package/es/modules/personalSetting/demo/index.js +12 -0
  33. package/es/modules/personalSetting/index.js +11 -1
  34. package/es/modules/personalSetting/info/index.js +23 -5
  35. package/es/modules/pointMap/createMetaDrawer.d.ts +5 -0
  36. package/es/modules/pointMap/createMetaDrawer.js +827 -0
  37. package/es/modules/pointMap/pageInfo.js +401 -179
  38. package/es/modules/pointMap/record.d.ts +7 -0
  39. package/es/modules/pointMap/record.js +521 -0
  40. package/es/modules/pointMap/styles/index.less +127 -0
  41. package/es/modules/pointMap/styles/pageInfo.less +195 -0
  42. package/es/modules/pointMap/styles/tree.css +164 -145
  43. package/es/modules/pointMap/styles/tree.less +174 -149
  44. package/es/modules/pointMap/tree.js +232 -88
  45. package/es/modules/pointMap/types.d.ts +88 -0
  46. package/es/modules/pointMap/types.js +1 -0
  47. package/es/modules/systemSetting/Dictionary.d.ts +5 -2
  48. package/es/modules/systemSetting/Dictionary.js +54 -370
  49. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.d.ts +9 -0
  50. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +245 -0
  51. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -0
  52. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.d.ts +4 -0
  53. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +207 -0
  54. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +10 -0
  55. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.js +1 -0
  56. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.d.ts +10 -0
  57. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +124 -0
  58. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/css/index.less +32 -0
  59. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.d.ts +7 -0
  60. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +264 -0
  61. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +9 -0
  62. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.js +1 -0
  63. package/es/modules/systemSetting/document-setting/index.js +7 -6
  64. package/es/modules/systemSetting/index.js +16 -16
  65. package/es/types/personal.d.ts +1 -0
  66. package/package.json +74 -74
@@ -16,9 +16,8 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
16
16
  import React, { useEffect, useState, useRef, useContext } from 'react';
17
17
  import request from '../../../utils/ajax';
18
18
  import apis from '../../../constants/api';
19
- import { notification, Tooltip, Modal, Row, Col, Drawer, Button, Divider, message } from 'antd';
20
- import Card from '../../../components/card';
21
- import { BizGlobalDataContext, BizLoading, IconFont } from '@zgfe/business-lib';
19
+ import { notification, Tooltip, Modal, Drawer, Button, Divider, message, Table, Spin } from 'antd';
20
+ import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
22
21
  import ApplicationForm from './applicationForm';
23
22
  import './index.less';
24
23
  import ApplicationSetting from './applicationSetting';
@@ -63,9 +62,131 @@ var Application = function Application(_ref) {
63
62
  setLoading = _useState8[1];
64
63
  var formRef = useRef();
65
64
  var settingRef = useRef();
65
+ var columns = [{
66
+ title: '应用名称',
67
+ dataIndex: 'name',
68
+ width: 220,
69
+ ellipsis: true,
70
+ render: function render(data) {
71
+ return /*#__PURE__*/React.createElement(Tooltip, {
72
+ title: data,
73
+ placement: "top"
74
+ }, /*#__PURE__*/React.createElement("span", {
75
+ className: "".concat(classPrefix, "-contentList-item-name")
76
+ }, data));
77
+ }
78
+ }, {
79
+ title: '应用Id',
80
+ dataIndex: 'appId',
81
+ ellipsis: true,
82
+ width: 120,
83
+ render: function render(data) {
84
+ return data || '-';
85
+ }
86
+ }, {
87
+ title: '入库数据延迟',
88
+ dataIndex: 'joinDatabaseDelay',
89
+ ellipsis: true,
90
+ width: 150,
91
+ render: function render(data) {
92
+ return data || '-';
93
+ }
94
+ }, {
95
+ title: '接入平台',
96
+ dataIndex: 'platform',
97
+ width: 110,
98
+ render: function render(data) {
99
+ return data && (data === null || data === void 0 ? void 0 : data.length) > 0 ? data === null || data === void 0 ? void 0 : data.map(function (plat) {
100
+ return /*#__PURE__*/React.createElement(Tooltip, {
101
+ title: getPlatText(plat),
102
+ placement: "top"
103
+ }, /*#__PURE__*/React.createElement("span", {
104
+ key: plat,
105
+ className: "icon-".concat(getPlatIcon(plat))
106
+ }));
107
+ }) : '未接入平台';
108
+ }
109
+ }, {
110
+ title: '版本',
111
+ dataIndex: 'appVersionName',
112
+ width: 100
113
+ }, {
114
+ title: '状态切换时间',
115
+ dataIndex: 'stopTime',
116
+ ellipsis: true,
117
+ width: 170,
118
+ render: function render(data) {
119
+ return data || '-';
120
+ }
121
+ }, {
122
+ title: '状态',
123
+ dataIndex: 'status',
124
+ width: 100,
125
+ render: function render(data) {
126
+ return /*#__PURE__*/React.createElement("span", {
127
+ className: "".concat(classPrefix, "-contentList-item-status")
128
+ }, /*#__PURE__*/React.createElement("span", {
129
+ className: "".concat(classPrefix, "-contentList-item-status-icon").concat(data || 0)
130
+ }), data ? '运行中' : '关闭');
131
+ }
132
+ }, {
133
+ title: '操作',
134
+ dataIndex: 'operation',
135
+ width: 300,
136
+ render: function render(text, record) {
137
+ return /*#__PURE__*/React.createElement("div", {
138
+ className: "".concat(classPrefix, "-contentList-btn")
139
+ }, /*#__PURE__*/React.createElement(Button, {
140
+ type: "link",
141
+ style: {
142
+ padding: '0 10px'
143
+ },
144
+ disabled: !authority[1716284934],
145
+ onClick: function onClick() {
146
+ return authority[1716284934] && landleStatusClick(record);
147
+ }
148
+ }, record.status ? '关闭' : '开启'), /*#__PURE__*/React.createElement(Button, {
149
+ type: "link",
150
+ style: {
151
+ padding: '0 10px'
152
+ },
153
+ disabled: !authority[1716284360],
154
+ onClick: function onClick() {
155
+ return authority[1716284360] && handleEditClick(record);
156
+ }
157
+ }, "\u4FEE\u6539\u540D\u79F0"), /*#__PURE__*/React.createElement(Button, {
158
+ type: "link",
159
+ style: {
160
+ padding: '0 10px'
161
+ },
162
+ disabled: !authority[10101],
163
+ onClick: function onClick() {
164
+ return authority[10101] && handleDeleteClick(record);
165
+ }
166
+ }, "\u5220\u9664"), !isOpen && (/*#__PURE__*/React.createElement(Button, {
167
+ type: "link",
168
+ style: {
169
+ padding: '0 10px'
170
+ },
171
+ disabled: !authority[1716285396],
172
+ onClick: function onClick() {
173
+ return authority[1716285396] && handleSettingClick(record);
174
+ }
175
+ }, "\u8BBE\u7F6E")), isOpen && (/*#__PURE__*/React.createElement(Button, {
176
+ type: "link",
177
+ style: {
178
+ padding: '0 10px'
179
+ },
180
+ disabled: !authority[1716284934],
181
+ onClick: function onClick() {
182
+ return authority[1716284934] && openMainPart && openMainPart(record.id, record.name);
183
+ }
184
+ }, "\u4E3B\u4F53\u7BA1\u7406")));
185
+ }
186
+ }];
66
187
  var handleQueryList = /*#__PURE__*/function () {
67
188
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
68
- var _res$data, _res$data2, _res$data4, _res$data5, res, _res$data3;
189
+ var _res$data, _res$data2, _res$data4, _res$data5, _res$data6, res, _res$data3;
69
190
  return _regeneratorRuntime().wrap(function _callee$(_context) {
70
191
  while (1) switch (_context.prev = _context.next) {
71
192
  case 0:
@@ -98,20 +219,22 @@ var Application = function Application(_ref) {
98
219
  if (!(res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list)) {
99
220
  handleAddClick();
100
221
  }
101
- _context.next = 17;
222
+ //对实时渲染数据进行处理
223
+ getRealTimeData((res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.list) || []);
224
+ _context.next = 18;
102
225
  break;
103
- case 13:
104
- _context.prev = 13;
226
+ case 14:
227
+ _context.prev = 14;
105
228
  _context.t0 = _context["catch"](1);
106
229
  setLoading(false);
107
230
  notification.error({
108
231
  message: _context.t0
109
232
  });
110
- case 17:
233
+ case 18:
111
234
  case "end":
112
235
  return _context.stop();
113
236
  }
114
- }, _callee, null, [[1, 13]]);
237
+ }, _callee, null, [[1, 14]]);
115
238
  }));
116
239
  return function handleQueryList() {
117
240
  return _ref2.apply(this, arguments);
@@ -120,52 +243,6 @@ var Application = function Application(_ref) {
120
243
  useEffect(function () {
121
244
  handleQueryList();
122
245
  }, []);
123
- var btnNodes = function btnNodes() {
124
- var array = [{
125
- Element: function Element(props) {
126
- return /*#__PURE__*/React.createElement(Tooltip, {
127
- title: "\u7F16\u8F91",
128
- placement: "top"
129
- }, /*#__PURE__*/React.createElement("span", _objectSpread({}, props)));
130
- },
131
- options: {
132
- className: "zhuge icon-bianji2 ".concat(!authority[1716284360] ? classPrefix + '-disabled' : ''),
133
- onClick: function onClick(props) {
134
- return authority[1716284360] && handleEditClick(props);
135
- }
136
- }
137
- }, {
138
- Element: function Element(props) {
139
- return /*#__PURE__*/React.createElement(Tooltip, {
140
- title: "\u5220\u9664",
141
- placement: "top"
142
- }, /*#__PURE__*/React.createElement("span", _objectSpread({}, props)));
143
- },
144
- options: {
145
- className: "zhuge icon-shanchu ".concat(!authority[10101] ? classPrefix + '-disabled' : ''),
146
- onClick: function onClick(props) {
147
- return authority[10101] && handleDeleteClick(props);
148
- }
149
- }
150
- }];
151
- if (!isOpen) {
152
- return [{
153
- Element: function Element(props) {
154
- return /*#__PURE__*/React.createElement(Tooltip, {
155
- title: "\u8BBE\u7F6E",
156
- placement: "top"
157
- }, /*#__PURE__*/React.createElement("span", _objectSpread({}, props)));
158
- },
159
- options: {
160
- className: "zhuge icon-shezhi ".concat(!authority[1716285396] ? classPrefix + '-disabled' : ''),
161
- onClick: function onClick(props) {
162
- return authority[1716285396] && handleSettingClick(props);
163
- }
164
- }
165
- }].concat(array);
166
- }
167
- return array;
168
- };
169
246
  var handleAddClick = /*#__PURE__*/function () {
170
247
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
171
248
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
@@ -177,7 +254,7 @@ var Application = function Application(_ref) {
177
254
  onCancel: function onCancel() {},
178
255
  onOk: function () {
179
256
  var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
180
- var _formRef$current, _formRef$current2, _res$data6, data, res;
257
+ var _formRef$current, _formRef$current2, _res$data7, data, res;
181
258
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
182
259
  while (1) switch (_context2.prev = _context2.next) {
183
260
  case 0:
@@ -207,7 +284,7 @@ var Application = function Application(_ref) {
207
284
  message.success('创建成功');
208
285
  handleQueryList();
209
286
  settingCallback && settingCallback('settingAddApplicationCallback', {
210
- id: res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.appId
287
+ id: res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.appId
211
288
  });
212
289
  _context2.next = 19;
213
290
  break;
@@ -248,7 +325,7 @@ var Application = function Application(_ref) {
248
325
  while (1) switch (_context5.prev = _context5.next) {
249
326
  case 0:
250
327
  Modal.confirm(_objectSpread(_objectSpread({}, modalConfig), {}, {
251
- title: '编辑应用',
328
+ title: '修改名称',
252
329
  icon: null,
253
330
  onCancel: function onCancel() {},
254
331
  onOk: function () {
@@ -319,8 +396,8 @@ var Application = function Application(_ref) {
319
396
  // 主体开关关闭时,设置的是默认主体
320
397
  var handleSettingClick = /*#__PURE__*/function () {
321
398
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(record) {
322
- var _res$data7, _res$data8, _res$data8$results;
323
- var res, _res$data9, mainPart;
399
+ var _res$data8, _res$data9, _res$data9$results;
400
+ var res, _res$data10, mainPart;
324
401
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
325
402
  while (1) switch (_context6.prev = _context6.next) {
326
403
  case 0:
@@ -334,8 +411,8 @@ var Application = function Application(_ref) {
334
411
  });
335
412
  case 2:
336
413
  res = _context6.sent;
337
- if ((res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.results) && (res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : (_res$data8$results = _res$data8.results) === null || _res$data8$results === void 0 ? void 0 : _res$data8$results.length) > 0) {
338
- mainPart = res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.results[0];
414
+ if ((res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.results) && (res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : (_res$data9$results = _res$data9.results) === null || _res$data9$results === void 0 ? void 0 : _res$data9$results.length) > 0) {
415
+ mainPart = res === null || res === void 0 ? void 0 : (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.results[0];
339
416
  setProfile(mainPart);
340
417
  setShowSetting(true);
341
418
  }
@@ -466,24 +543,144 @@ var Application = function Application(_ref) {
466
543
  case 12:
467
544
  message.success(res === null || res === void 0 ? void 0 : res.msg);
468
545
  setShowSetting(false);
469
- console.log(res);
470
- _context9.next = 21;
546
+ _context9.next = 20;
471
547
  break;
472
- case 17:
473
- _context9.prev = 17;
548
+ case 16:
549
+ _context9.prev = 16;
474
550
  _context9.t0 = _context9["catch"](0);
475
551
  console.log(_context9.t0);
476
552
  setShowSetting(false);
477
- case 21:
553
+ case 20:
478
554
  case "end":
479
555
  return _context9.stop();
480
556
  }
481
- }, _callee9, null, [[0, 17]]);
557
+ }, _callee9, null, [[0, 16]]);
482
558
  }));
483
559
  return function handleSettingSave() {
484
560
  return _ref7.apply(this, arguments);
485
561
  };
486
562
  }();
563
+ // 应用状态开关
564
+ // 0:关闭 1:开启
565
+ var landleStatusClick = /*#__PURE__*/function () {
566
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(props) {
567
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
568
+ while (1) switch (_context11.prev = _context11.next) {
569
+ case 0:
570
+ Modal.confirm(_objectSpread(_objectSpread({}, modalConfig), {}, {
571
+ title: props.status ? '是否确定关闭应用?' : '开启应用',
572
+ content: props.status ? '应用关闭期间,所有数据将彻底丢失,且实时数据无法被订阅!请谨慎操作!' : '开启应用后,应用将开始接收数据',
573
+ icon: null,
574
+ onCancel: function onCancel() {},
575
+ onOk: function () {
576
+ var _onOk4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
577
+ var res;
578
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
579
+ while (1) switch (_context10.prev = _context10.next) {
580
+ case 0:
581
+ _context10.prev = 0;
582
+ _context10.next = 3;
583
+ return request(apis.setting.updateStatus, {
584
+ method: 'post',
585
+ data: {
586
+ companyId: companyId,
587
+ projectId: props === null || props === void 0 ? void 0 : props.id,
588
+ status: props.status ? 0 : 1
589
+ },
590
+ intercept: false
591
+ });
592
+ case 3:
593
+ res = _context10.sent;
594
+ if (['101000', '100000'].includes(res === null || res === void 0 ? void 0 : res.code)) {
595
+ _context10.next = 7;
596
+ break;
597
+ }
598
+ message.error(res === null || res === void 0 ? void 0 : res.msg);
599
+ return _context10.abrupt("return", Promise.reject());
600
+ case 7:
601
+ message.success(props.status ? '关闭应用成功' : '开启应用成功');
602
+ handleQueryList();
603
+ _context10.next = 15;
604
+ break;
605
+ case 11:
606
+ _context10.prev = 11;
607
+ _context10.t0 = _context10["catch"](0);
608
+ console.log('catch', _context10.t0);
609
+ return _context10.abrupt("return", Promise.reject(_context10.t0));
610
+ case 15:
611
+ case "end":
612
+ return _context10.stop();
613
+ }
614
+ }, _callee10, null, [[0, 11]]);
615
+ }));
616
+ function onOk() {
617
+ return _onOk4.apply(this, arguments);
618
+ }
619
+ return onOk;
620
+ }()
621
+ }));
622
+ case 1:
623
+ case "end":
624
+ return _context11.stop();
625
+ }
626
+ }, _callee11);
627
+ }));
628
+ return function landleStatusClick(_x4) {
629
+ return _ref8.apply(this, arguments);
630
+ };
631
+ }();
632
+ // 获取实时渲染数据
633
+ var getRealTimeData = /*#__PURE__*/function () {
634
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(list) {
635
+ var res, newList;
636
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
637
+ while (1) switch (_context12.prev = _context12.next) {
638
+ case 0:
639
+ _context12.prev = 0;
640
+ _context12.next = 3;
641
+ return request(apis.setting.queryRealTimeData, {
642
+ method: 'get',
643
+ data: {}
644
+ });
645
+ case 3:
646
+ res = _context12.sent;
647
+ if (['101000', '100000'].includes(res === null || res === void 0 ? void 0 : res.code)) {
648
+ _context12.next = 6;
649
+ break;
650
+ }
651
+ return _context12.abrupt("return", Promise.reject());
652
+ case 6:
653
+ if (res === null || res === void 0 ? void 0 : res.data) {
654
+ newList = list.map(function (item) {
655
+ var obj = item;
656
+ //对相关数据进行合并
657
+ res.data.forEach(function (resItem) {
658
+ if (item.id === resItem.appId) {
659
+ item.joinDatabaseDelay = resItem.joinDatabaseDelay;
660
+ item.realTimeDelay = resItem.realTimeDelay;
661
+ return;
662
+ }
663
+ });
664
+ return obj;
665
+ });
666
+ setList(newList);
667
+ }
668
+ _context12.next = 12;
669
+ break;
670
+ case 9:
671
+ _context12.prev = 9;
672
+ _context12.t0 = _context12["catch"](0);
673
+ return _context12.abrupt("return", Promise.reject(_context12.t0));
674
+ case 12:
675
+ case "end":
676
+ return _context12.stop();
677
+ }
678
+ }, _callee12, null, [[0, 9]]);
679
+ }));
680
+ return function getRealTimeData(_x5) {
681
+ return _ref9.apply(this, arguments);
682
+ };
683
+ }();
487
684
  return /*#__PURE__*/React.createElement("div", {
488
685
  className: "".concat(classPrefix)
489
686
  }, /*#__PURE__*/React.createElement("div", {
@@ -500,42 +697,17 @@ var Application = function Application(_ref) {
500
697
  type: "primary",
501
698
  size: "small",
502
699
  onClick: handleAddClick
503
- }, "\u521B\u5EFA\u5E94\u7528")), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Row, {
504
- gutter: [16, 16]
505
- }, list.length > 0 && (list === null || list === void 0 ? void 0 : list.map(function (item) {
506
- var _item$platform2;
507
- var content = /*#__PURE__*/React.createElement("div", {
508
- className: "".concat(classPrefix, "-content")
509
- }, /*#__PURE__*/React.createElement("div", {
510
- className: "".concat(classPrefix, "-content-item")
511
- }, /*#__PURE__*/React.createElement("div", null, "\u7248\u672C\uFF1A", item.appVersionName), /*#__PURE__*/React.createElement("div", {
512
- className: "".concat(classPrefix, "-content-item-platform")
513
- }, "\u63A5\u5165\u5E73\u53F0\uFF1A", (item === null || item === void 0 ? void 0 : (_item$platform2 = item.platform) === null || _item$platform2 === void 0 ? void 0 : _item$platform2.length) > 0 ? item === null || item === void 0 ? void 0 : item.platform.map(function (item) {
514
- return /*#__PURE__*/React.createElement(Tooltip, {
515
- title: getPlatText(item),
516
- placement: "top"
517
- }, /*#__PURE__*/React.createElement("span", {
518
- key: item,
519
- className: "icon-".concat(getPlatIcon(item))
520
- }));
521
- }) : '未接入数据')), isOpen && (/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
522
- style: {
523
- padding: '0 10px'
524
- },
525
- disabled: !authority[1716284934],
526
- onClick: function onClick() {
527
- return openMainPart && openMainPart(item.id, item.name);
528
- }
529
- }, "\u4E3B\u4F53\u7BA1\u7406"))));
530
- return /*#__PURE__*/React.createElement(Col, {
531
- key: item.id,
532
- span: 8
533
- }, /*#__PURE__*/React.createElement(Card, _objectSpread(_objectSpread({}, item), {}, {
534
- title: item.name,
535
- btnNodes: btnNodes(),
536
- content: content
537
- })));
538
- })), loading && /*#__PURE__*/React.createElement(BizLoading, null)), /*#__PURE__*/React.createElement(Drawer, {
700
+ }, "\u521B\u5EFA\u5E94\u7528")), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Spin, {
701
+ spinning: loading
702
+ }, /*#__PURE__*/React.createElement(Table, {
703
+ dataSource: list,
704
+ columns: columns,
705
+ pagination: false,
706
+ scroll: {
707
+ x: 1000,
708
+ y: 500
709
+ }
710
+ })), /*#__PURE__*/React.createElement(Drawer, {
539
711
  className: "".concat(classPrefix, "-drawer"),
540
712
  open: showSetting,
541
713
  closable: true,
@@ -1,4 +1,5 @@
1
1
  .application {
2
+ height: 100%;
2
3
  min-height: 400px;
3
4
  overflow-x: hidden;
4
5
  overflow-y: auto;
@@ -86,20 +87,6 @@
86
87
  margin: 14px 0;
87
88
  }
88
89
 
89
- &-content {
90
- display: flex;
91
- align-items: flex-end;
92
- justify-content: space-between;
93
-
94
- &-item-platform {
95
- display: flex;
96
- gap: 4px;
97
- align-items: center;
98
- justify-content: flex-start;
99
- white-space: nowrap;
100
- }
101
- }
102
-
103
90
  .biz-loading-container.loading {
104
91
  margin-top: 100px;
105
92
  }
@@ -123,4 +110,35 @@
123
110
  gap: 6px;
124
111
  height: 120px;
125
112
  }
113
+ &-rowContent {
114
+ height: calc(100vh - 302px);
115
+ overflow: overlay;
116
+ }
117
+ &-contentList-label {
118
+ display: grid;
119
+ grid-template-columns: 230px repeat(4, minmax(90px, 1fr)) 135px 90px 260px;
120
+ align-items: center;
121
+ padding-right: 14px;
122
+ border-bottom: 1px solid #ecedf0;
123
+ }
124
+ &-contentList-item-name {
125
+ color: #000;
126
+ font-weight: bold;
127
+ font-size: 14px;
128
+ }
129
+ &-contentList-item-status-icon0,
130
+ &-contentList-item-status-icon1 {
131
+ display: inline-block;
132
+ width: 6px;
133
+ height: 6px;
134
+ margin-right: 3px;
135
+ border-radius: 50%;
136
+ transform: translateY(-1px);
137
+ }
138
+ &-contentList-item-status-icon0 {
139
+ background: #67727f;
140
+ }
141
+ &-contentList-item-status-icon1 {
142
+ background: #165dff;
143
+ }
126
144
  }
@@ -18,13 +18,10 @@ import React, { useContext, useEffect, useState } from 'react';
18
18
  import './index.less';
19
19
  import { BizGlobalDataContext } from '@zgfe/business-lib';
20
20
  import { Tabs } from 'antd';
21
- import Info from './info';
22
21
  import User from './user';
23
22
  import VirtualApp from './virtualApp';
24
- import Cost from './cost';
25
23
  import WechatBinding from './wechatBinding';
26
24
  import OperationLog from './operationLog';
27
- import DepartmentList from './department';
28
25
  import RoleList from './role';
29
26
  import Business from './business';
30
27
  import Application from './application';
@@ -59,7 +56,7 @@ var CompanySetting = function CompanySetting(props) {
59
56
  var _useState7 = useState(false),
60
57
  _useState8 = _slicedToArray(_useState7, 2),
61
58
  setIsShowCreateApp = _useState8[1];
62
- var _useState9 = useState(currentPath ? currentPath : 'info'),
59
+ var _useState9 = useState(currentPath ? currentPath : 'user'),
63
60
  _useState10 = _slicedToArray(_useState9, 2),
64
61
  activeKey = _useState10[0],
65
62
  setActiveKey = _useState10[1]; // 默认值
@@ -157,17 +154,21 @@ var CompanySetting = function CompanySetting(props) {
157
154
  }
158
155
  }));
159
156
  };
160
- var items = [{
161
- key: 'info',
162
- label: '公司信息',
163
- children: (/*#__PURE__*/React.createElement(Info, {
164
- ENVIRONMENT: ENVIRONMENT,
165
- companyId: currentUser.companyId,
166
- companyName: currentUser.companyName,
167
- changeCompanyNameCallback: changeCompanyNameCallback
168
- })),
169
- hidden: !authority[10078]
170
- }, {
157
+ var items = [
158
+ // {
159
+ // key: 'info',
160
+ // label: '公司信息',
161
+ // children: (
162
+ // <Info
163
+ // ENVIRONMENT={ENVIRONMENT}
164
+ // companyId={currentUser!.companyId as number}
165
+ // companyName={currentUser!.companyName}
166
+ // changeCompanyNameCallback={changeCompanyNameCallback}
167
+ // />
168
+ // ),
169
+ // hidden: !authority[10078],
170
+ // },
171
+ {
171
172
  key: 'user',
172
173
  label: '成员管理',
173
174
  children: (/*#__PURE__*/React.createElement(User, {
@@ -196,15 +197,19 @@ var CompanySetting = function CompanySetting(props) {
196
197
  companyId: currentUser.companyId
197
198
  }),
198
199
  hidden: !authority[10080]
199
- }, {
200
- key: 'department',
201
- label: '部门管理',
202
- children: (/*#__PURE__*/React.createElement(DepartmentList, {
203
- companyId: currentUser.companyId,
204
- closeCreateCallback: closeCreateCallback
205
- })),
206
- hidden: !authority[10081]
207
- }, {
200
+ },
201
+ // {
202
+ // key: 'department',
203
+ // label: '部门管理',
204
+ // children: (
205
+ // <DepartmentList
206
+ // companyId={currentUser!.companyId as number}
207
+ // closeCreateCallback={closeCreateCallback}
208
+ // />
209
+ // ),
210
+ // hidden: !authority[10081],
211
+ // },
212
+ {
208
213
  key: 'business',
209
214
  label: '业务',
210
215
  children: /*#__PURE__*/React.createElement(Business, {
@@ -233,15 +238,14 @@ var CompanySetting = function CompanySetting(props) {
233
238
  editVirtualAppCallback: editVirtualAppCallback
234
239
  })),
235
240
  hidden: !showVirtualApp
236
- }, {
237
- key: 'cost',
238
- label: '套餐',
239
- children: /*#__PURE__*/React.createElement(Cost, {
240
- ENVIRONMENT: ENVIRONMENT,
241
- companyId: currentUser.companyId
242
- }),
243
- hidden: !authority[10083]
244
- }, {
241
+ },
242
+ // {
243
+ // key: 'cost',
244
+ // label: '套餐',
245
+ // children: <Cost ENVIRONMENT={ENVIRONMENT} companyId={currentUser!.companyId as number} />,
246
+ // hidden: !authority[10083],
247
+ // },
248
+ {
245
249
  key: 'weChatBinding',
246
250
  label: '微信账号绑定',
247
251
  children: /*#__PURE__*/React.createElement(WechatBinding, null),