@zgfe/modules-settings 2.0.0-zhongyuan.12 → 2.0.0-zhongyuan.14

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.
@@ -14,6 +14,8 @@ declare let apis: {
14
14
  editVirtualSourceApp: string;
15
15
  };
16
16
  setting: {
17
+ queryRealTimeData: string;
18
+ updateStatus: string;
17
19
  updateCompanyName: string;
18
20
  updateLicense: string;
19
21
  groupInfos: string;
@@ -16,6 +16,8 @@ var apis = {
16
16
  editVirtualSourceApp: '/user/editSourceApp.jsp' // 修改虚拟应用的来源应用配置
17
17
  },
18
18
  setting: {
19
+ queryRealTimeData: '/zg/web/v2/newapp/delay',
20
+ updateStatus: '/zg/web/v2/list/status',
19
21
  updateCompanyName: '/company/v2updateInfo.jsp',
20
22
  updateLicense: apiPrefix + '/system/license',
21
23
  groupInfos: '/auth/groupInfos.jsp',
@@ -7,6 +7,19 @@ export interface ApplicationItem {
7
7
  appVersion: number;
8
8
  appVersionName: string;
9
9
  platform: number[];
10
+ children?: ApplicationListChildren[];
11
+ status?: number;
12
+ joinDatabaseDelay: string;
13
+ realTimeDelay: string;
14
+ startTime: string;
15
+ stopTime: string;
16
+ }
17
+ export interface ApplicationListChildren {
18
+ label: string;
19
+ key: 'appVersionName' | 'name' | 'platform' | 'status' | 'realTimeDelay' | 'joinDatabaseDelay' | 'startTime' | 'stopTime';
20
+ type: string;
21
+ style?: any;
22
+ list?: number[];
10
23
  }
11
24
  declare const Application: React.FC<{
12
25
  companyId: number;
@@ -17,7 +17,6 @@ import React, { useEffect, useState, useRef, useContext } from 'react';
17
17
  import request from '../../../utils/ajax';
18
18
  import apis from '../../../constants/api';
19
19
  import { notification, Tooltip, Modal, Row, Col, Drawer, Button, Divider, message } from 'antd';
20
- import Card from '../../../components/card';
21
20
  import { BizGlobalDataContext, BizLoading, IconFont } from '@zgfe/business-lib';
22
21
  import ApplicationForm from './applicationForm';
23
22
  import './index.less';
@@ -65,7 +64,7 @@ var Application = function Application(_ref) {
65
64
  var settingRef = useRef();
66
65
  var handleQueryList = /*#__PURE__*/function () {
67
66
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
68
- var _res$data, _res$data2, _res$data4, _res$data5, res, _res$data3;
67
+ var _res$data, _res$data2, _res$data5, _res$data6, _res$data7, res, _res$data3, _res$data4;
69
68
  return _regeneratorRuntime().wrap(function _callee$(_context) {
70
69
  while (1) switch (_context.prev = _context.next) {
71
70
  case 0:
@@ -92,26 +91,67 @@ var Application = function Application(_ref) {
92
91
  item.platform = item.platform.reverse();
93
92
  }
94
93
  });
94
+ //添加列表数据
95
+ res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.list.forEach(function (item) {
96
+ item.children = [{
97
+ label: '',
98
+ key: 'name',
99
+ type: 'text',
100
+ style: {
101
+ fontWeight: 'bold',
102
+ fontSize: '14px',
103
+ color: '#000000',
104
+ minWidth: '100px'
105
+ }
106
+ }, {
107
+ label: '实时数据延迟',
108
+ key: 'realTimeDelay',
109
+ type: 'text'
110
+ }, {
111
+ label: '入库数据延迟',
112
+ key: 'joinDatabaseDelay',
113
+ type: 'text'
114
+ }, {
115
+ label: '接入平台',
116
+ key: 'platform',
117
+ type: 'icon',
118
+ list: item.platform
119
+ }, {
120
+ label: '版本',
121
+ key: 'appVersionName',
122
+ type: 'text'
123
+ }, {
124
+ label: item.status ? '开始时间' : '停止时间 ',
125
+ key: item.status ? 'startTime' : 'stopTime',
126
+ type: 'text'
127
+ }, {
128
+ label: '状态',
129
+ key: 'status',
130
+ type: 'status'
131
+ }];
132
+ });
95
133
  }
96
- setList((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.list) || []);
134
+ setList((res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list) || []);
97
135
  // 如果无应用,自定展示新建应用弹窗
98
- if (!(res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list)) {
136
+ if (!(res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.list)) {
99
137
  handleAddClick();
100
138
  }
101
- _context.next = 17;
139
+ //对实时渲染数据进行处理
140
+ getRealTimeData((res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.list) || []);
141
+ _context.next = 18;
102
142
  break;
103
- case 13:
104
- _context.prev = 13;
143
+ case 14:
144
+ _context.prev = 14;
105
145
  _context.t0 = _context["catch"](1);
106
146
  setLoading(false);
107
147
  notification.error({
108
148
  message: _context.t0
109
149
  });
110
- case 17:
150
+ case 18:
111
151
  case "end":
112
152
  return _context.stop();
113
153
  }
114
- }, _callee, null, [[1, 13]]);
154
+ }, _callee, null, [[1, 14]]);
115
155
  }));
116
156
  return function handleQueryList() {
117
157
  return _ref2.apply(this, arguments);
@@ -120,52 +160,6 @@ var Application = function Application(_ref) {
120
160
  useEffect(function () {
121
161
  handleQueryList();
122
162
  }, []);
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
163
  var handleAddClick = /*#__PURE__*/function () {
170
164
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
171
165
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
@@ -177,7 +171,7 @@ var Application = function Application(_ref) {
177
171
  onCancel: function onCancel() {},
178
172
  onOk: function () {
179
173
  var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
180
- var _formRef$current, _formRef$current2, _res$data6, data, res;
174
+ var _formRef$current, _formRef$current2, _res$data8, data, res;
181
175
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
182
176
  while (1) switch (_context2.prev = _context2.next) {
183
177
  case 0:
@@ -207,7 +201,7 @@ var Application = function Application(_ref) {
207
201
  message.success('创建成功');
208
202
  handleQueryList();
209
203
  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
204
+ id: res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.appId
211
205
  });
212
206
  _context2.next = 19;
213
207
  break;
@@ -248,7 +242,7 @@ var Application = function Application(_ref) {
248
242
  while (1) switch (_context5.prev = _context5.next) {
249
243
  case 0:
250
244
  Modal.confirm(_objectSpread(_objectSpread({}, modalConfig), {}, {
251
- title: '编辑应用',
245
+ title: '修改名称',
252
246
  icon: null,
253
247
  onCancel: function onCancel() {},
254
248
  onOk: function () {
@@ -319,8 +313,8 @@ var Application = function Application(_ref) {
319
313
  // 主体开关关闭时,设置的是默认主体
320
314
  var handleSettingClick = /*#__PURE__*/function () {
321
315
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(record) {
322
- var _res$data7, _res$data8, _res$data8$results;
323
- var res, _res$data9, mainPart;
316
+ var _res$data9, _res$data10, _res$data10$results;
317
+ var res, _res$data11, mainPart;
324
318
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
325
319
  while (1) switch (_context6.prev = _context6.next) {
326
320
  case 0:
@@ -334,8 +328,8 @@ var Application = function Application(_ref) {
334
328
  });
335
329
  case 2:
336
330
  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];
331
+ if ((res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.results) && (res === null || res === void 0 ? void 0 : (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : (_res$data10$results = _res$data10.results) === null || _res$data10$results === void 0 ? void 0 : _res$data10$results.length) > 0) {
332
+ mainPart = res === null || res === void 0 ? void 0 : (_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : _res$data11.results[0];
339
333
  setProfile(mainPart);
340
334
  setShowSetting(true);
341
335
  }
@@ -484,6 +478,126 @@ var Application = function Application(_ref) {
484
478
  return _ref7.apply(this, arguments);
485
479
  };
486
480
  }();
481
+ // 应用状态开关
482
+ // 0:关闭 1:开启
483
+ var landleStatusClick = /*#__PURE__*/function () {
484
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(props) {
485
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
486
+ while (1) switch (_context11.prev = _context11.next) {
487
+ case 0:
488
+ Modal.confirm(_objectSpread(_objectSpread({}, modalConfig), {}, {
489
+ title: props.status ? '关闭应用' : '开启应用',
490
+ content: props.status ? '关闭应用后,应用将不再接收数据' : '开启应用后,应用将开始接收数据',
491
+ icon: null,
492
+ onCancel: function onCancel() {},
493
+ onOk: function () {
494
+ var _onOk4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
495
+ var res;
496
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
497
+ while (1) switch (_context10.prev = _context10.next) {
498
+ case 0:
499
+ _context10.prev = 0;
500
+ _context10.next = 3;
501
+ return request(apis.setting.updateStatus, {
502
+ method: 'post',
503
+ data: {
504
+ companyId: companyId,
505
+ projectId: props === null || props === void 0 ? void 0 : props.id,
506
+ status: props.status ? 0 : 1
507
+ },
508
+ intercept: false
509
+ });
510
+ case 3:
511
+ res = _context10.sent;
512
+ if (['101000', '100000'].includes(res === null || res === void 0 ? void 0 : res.code)) {
513
+ _context10.next = 7;
514
+ break;
515
+ }
516
+ message.error(res === null || res === void 0 ? void 0 : res.msg);
517
+ return _context10.abrupt("return", Promise.reject());
518
+ case 7:
519
+ message.success(props.status ? '关闭应用成功' : '开启应用成功');
520
+ handleQueryList();
521
+ _context10.next = 15;
522
+ break;
523
+ case 11:
524
+ _context10.prev = 11;
525
+ _context10.t0 = _context10["catch"](0);
526
+ console.log('catch', _context10.t0);
527
+ return _context10.abrupt("return", Promise.reject(_context10.t0));
528
+ case 15:
529
+ case "end":
530
+ return _context10.stop();
531
+ }
532
+ }, _callee10, null, [[0, 11]]);
533
+ }));
534
+ function onOk() {
535
+ return _onOk4.apply(this, arguments);
536
+ }
537
+ return onOk;
538
+ }()
539
+ }));
540
+ case 1:
541
+ case "end":
542
+ return _context11.stop();
543
+ }
544
+ }, _callee11);
545
+ }));
546
+ return function landleStatusClick(_x4) {
547
+ return _ref8.apply(this, arguments);
548
+ };
549
+ }();
550
+ // 获取实时渲染数据
551
+ var getRealTimeData = /*#__PURE__*/function () {
552
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(list) {
553
+ var res, newList;
554
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
555
+ while (1) switch (_context12.prev = _context12.next) {
556
+ case 0:
557
+ _context12.prev = 0;
558
+ _context12.next = 3;
559
+ return request(apis.setting.queryRealTimeData, {
560
+ method: 'get',
561
+ data: {}
562
+ });
563
+ case 3:
564
+ res = _context12.sent;
565
+ if (['101000', '100000'].includes(res === null || res === void 0 ? void 0 : res.code)) {
566
+ _context12.next = 6;
567
+ break;
568
+ }
569
+ return _context12.abrupt("return", Promise.reject());
570
+ case 6:
571
+ if (res === null || res === void 0 ? void 0 : res.data) {
572
+ newList = list.map(function (item) {
573
+ var obj = item;
574
+ //对相关数据进行合并
575
+ res.data.forEach(function (resItem) {
576
+ if (item.id === resItem.appId) {
577
+ obj = Object.assign(item, resItem);
578
+ return;
579
+ }
580
+ });
581
+ return obj;
582
+ });
583
+ setList(newList);
584
+ }
585
+ _context12.next = 12;
586
+ break;
587
+ case 9:
588
+ _context12.prev = 9;
589
+ _context12.t0 = _context12["catch"](0);
590
+ return _context12.abrupt("return", Promise.reject(_context12.t0));
591
+ case 12:
592
+ case "end":
593
+ return _context12.stop();
594
+ }
595
+ }, _callee12, null, [[0, 9]]);
596
+ }));
597
+ return function getRealTimeData(_x5) {
598
+ return _ref9.apply(this, arguments);
599
+ };
600
+ }();
487
601
  return /*#__PURE__*/React.createElement("div", {
488
602
  className: "".concat(classPrefix)
489
603
  }, /*#__PURE__*/React.createElement("div", {
@@ -501,40 +615,92 @@ var Application = function Application(_ref) {
501
615
  size: "small",
502
616
  onClick: handleAddClick
503
617
  }, "\u521B\u5EFA\u5E94\u7528")), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Row, {
504
- gutter: [16, 16]
618
+ className: "".concat(classPrefix, "-rowContent"),
619
+ gutter: [0, 16]
505
620
  }, list.length > 0 && (list === null || list === void 0 ? void 0 : list.map(function (item) {
506
- var _item$platform2;
507
621
  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),
622
+ className: "".concat(classPrefix, "-contentList")
623
+ }, item.children && item.children.length > 0 && item.children.map(function (child) {
624
+ var _child$list, _child$list2, _child$list3;
625
+ return /*#__PURE__*/React.createElement("div", {
626
+ className: "".concat(classPrefix, "-contentList-item")
627
+ }, child.label && (/*#__PURE__*/React.createElement("div", {
628
+ className: "".concat(classPrefix, "-contentList-item-label")
629
+ }, child.label)), /*#__PURE__*/React.createElement("div", {
630
+ className: "".concat(classPrefix, "-contentList-item-value")
631
+ }, child.type === 'icon' && child.list && ((_child$list = child.list) === null || _child$list === void 0 ? void 0 : _child$list.length) > 0 && ((_child$list2 = child.list) === null || _child$list2 === void 0 ? void 0 : _child$list2.map(function (plat) {
632
+ return /*#__PURE__*/React.createElement(Tooltip, {
633
+ title: getPlatText(plat),
634
+ placement: "top"
635
+ }, /*#__PURE__*/React.createElement("span", {
636
+ key: plat,
637
+ className: "icon-".concat(getPlatIcon(plat))
638
+ }));
639
+ })), child.type === 'icon' && ((_child$list3 = child.list) === null || _child$list3 === void 0 ? void 0 : _child$list3.length) === 0 && (/*#__PURE__*/React.createElement("span", {
640
+ className: "".concat(classPrefix, "-contentList-item-label-text")
641
+ }, "\u672A\u63A5\u5165\u6570\u636E")), child.type === 'text' && (/*#__PURE__*/React.createElement(Tooltip, {
642
+ title: item[child.key],
516
643
  placement: "top"
517
644
  }, /*#__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, {
645
+ className: "".concat(classPrefix, "-contentList-item-label-text"),
646
+ style: child.style
647
+ }, item[child.key] || '-'))), child.type === 'status' && (/*#__PURE__*/React.createElement("span", {
648
+ className: "".concat(classPrefix, "-contentList-item-status")
649
+ }, /*#__PURE__*/React.createElement("span", {
650
+ className: "".concat(classPrefix, "-contentList-item-status-icon").concat(item[child.key] || 0)
651
+ }), item[child.key] ? '运行中' : '关闭'))));
652
+ }), /*#__PURE__*/React.createElement("div", {
653
+ className: "".concat(classPrefix, "-contentList-btn")
654
+ }, /*#__PURE__*/React.createElement(Button, {
655
+ type: "link",
656
+ style: {
657
+ padding: '0 10px'
658
+ },
659
+ disabled: !authority[1716284934],
660
+ onClick: function onClick() {
661
+ return authority[1716284934] && landleStatusClick(item);
662
+ }
663
+ }, item.status ? '关闭' : '开启'), /*#__PURE__*/React.createElement(Button, {
664
+ type: "link",
665
+ style: {
666
+ padding: '0 10px'
667
+ },
668
+ disabled: !authority[1716284360],
669
+ onClick: function onClick() {
670
+ return authority[1716284360] && handleEditClick(item);
671
+ }
672
+ }, "\u4FEE\u6539\u540D\u79F0"), /*#__PURE__*/React.createElement(Button, {
673
+ type: "link",
674
+ style: {
675
+ padding: '0 10px'
676
+ },
677
+ disabled: !authority[10101],
678
+ onClick: function onClick() {
679
+ return authority[10101] && handleDeleteClick(item);
680
+ }
681
+ }, "\u5220\u9664"), !isOpen && (/*#__PURE__*/React.createElement(Button, {
682
+ type: "link",
683
+ style: {
684
+ padding: '0 10px'
685
+ },
686
+ disabled: !authority[1716285396],
687
+ onClick: function onClick() {
688
+ return authority[1716285396] && handleSettingClick(item);
689
+ }
690
+ }, "\u8BBE\u7F6E")), isOpen && (/*#__PURE__*/React.createElement(Button, {
691
+ type: "link",
522
692
  style: {
523
693
  padding: '0 10px'
524
694
  },
525
695
  disabled: !authority[1716284934],
526
696
  onClick: function onClick() {
527
- return openMainPart && openMainPart(item.id, item.name);
697
+ return authority[1716284934] && openMainPart && openMainPart(item.id, item.name);
528
698
  }
529
699
  }, "\u4E3B\u4F53\u7BA1\u7406"))));
530
700
  return /*#__PURE__*/React.createElement(Col, {
531
701
  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
- })));
702
+ span: 24
703
+ }, content);
538
704
  })), loading && /*#__PURE__*/React.createElement(BizLoading, null)), /*#__PURE__*/React.createElement(Drawer, {
539
705
  className: "".concat(classPrefix, "-drawer"),
540
706
  open: showSetting,
@@ -1,126 +1,168 @@
1
- .application {
2
- min-height: 400px;
3
- overflow-x: hidden;
4
- overflow-y: auto;
5
-
6
- &-modal {
7
- .ant-modal-body {
8
- padding: 24px !important;
9
- }
10
- .ant-modal-confirm-body .ant-modal-confirm-title {
11
- color: #000;
12
- font-size: 24px;
13
- line-height: 24px;
14
- }
15
-
16
- .ant-modal-confirm-body .ant-modal-confirm-content {
17
- margin-top: 0;
18
- padding-top: 24px;
19
- }
20
-
21
- .ant-modal-close {
22
- padding-top: 8px;
23
- padding-right: 6px;
24
-
25
- &-x {
26
- color: #021429;
27
- font-size: 24px;
28
- }
29
- }
30
- }
31
-
32
- &-drawer {
33
- .ant-drawer-header-title {
34
- flex-direction: row-reverse;
35
- }
36
- }
37
-
38
- .bsicon {
39
- color: #9aa1a9;
40
- font-size: 16px !important;
41
- }
42
- .bsicon:hover {
43
- color: var(--io-i-, #165dff);
44
- }
45
-
46
- .bsicon.shanchu:hover {
47
- color: #fb5547;
48
- }
49
-
50
- .zhuge.icon-shanchu:hover {
51
- color: #fb5547;
52
- }
53
-
54
- &-alert-info {
55
- background-color: #e6f7ff;
56
- border: 1px solid #91d5ff;
57
- border-radius: 2px;
58
- }
59
-
60
- &-form {
61
- display: flex;
62
- align-items: center;
63
- justify-content: space-between;
64
-
65
- &-item {
66
- display: flex;
67
- gap: 8px;
68
- align-items: center;
69
-
70
- .bsicon {
71
- color: #fd9f41;
72
- }
73
-
74
- .bsicon:hover {
75
- color: var(--io-i-, #fd9f41);
76
- }
77
- }
78
-
79
- .ant-btn-sm {
80
- height: 32px;
81
- padding: 4px 16px;
82
- }
83
- }
84
-
85
- .ant-divider-horizontal {
86
- margin: 14px 0;
87
- }
88
-
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
- .biz-loading-container.loading {
104
- margin-top: 100px;
105
- }
106
-
107
- &-disabled,
108
- &-disabled:hover,
109
- &-disabled:focus {
110
- cursor: not-allowed !important;
111
- }
112
-
113
- .ant-btn-primary[disabled],
114
- .ant-btn-primary[disabled]:hover,
115
- .ant-btn-primary[disabled]:focus,
116
- .ant-btn-primary[disabled]:active {
117
- color: #fff;
118
- background: var(--io-i2-, #d0dfff);
119
- border: 1px solid #d0dfff;
120
- }
121
-
122
- .settings-card {
123
- gap: 6px;
124
- height: 120px;
125
- }
126
- }
1
+ .application {
2
+ height: 100%;
3
+ min-height: 400px;
4
+ overflow-x: hidden;
5
+ overflow-y: auto;
6
+
7
+ &-modal {
8
+ .ant-modal-body {
9
+ padding: 24px !important;
10
+ }
11
+ .ant-modal-confirm-body .ant-modal-confirm-title {
12
+ color: #000;
13
+ font-size: 24px;
14
+ line-height: 24px;
15
+ }
16
+
17
+ .ant-modal-confirm-body .ant-modal-confirm-content {
18
+ margin-top: 0;
19
+ padding-top: 24px;
20
+ }
21
+
22
+ .ant-modal-close {
23
+ padding-top: 8px;
24
+ padding-right: 6px;
25
+
26
+ &-x {
27
+ color: #021429;
28
+ font-size: 24px;
29
+ }
30
+ }
31
+ }
32
+
33
+ &-drawer {
34
+ .ant-drawer-header-title {
35
+ flex-direction: row-reverse;
36
+ }
37
+ }
38
+
39
+ .bsicon {
40
+ color: #9aa1a9;
41
+ font-size: 16px !important;
42
+ }
43
+ .bsicon:hover {
44
+ color: var(--io-i-, #165dff);
45
+ }
46
+
47
+ .bsicon.shanchu:hover {
48
+ color: #fb5547;
49
+ }
50
+
51
+ .zhuge.icon-shanchu:hover {
52
+ color: #fb5547;
53
+ }
54
+
55
+ &-alert-info {
56
+ background-color: #e6f7ff;
57
+ border: 1px solid #91d5ff;
58
+ border-radius: 2px;
59
+ }
60
+
61
+ &-form {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: space-between;
65
+
66
+ &-item {
67
+ display: flex;
68
+ gap: 8px;
69
+ align-items: center;
70
+
71
+ .bsicon {
72
+ color: #fd9f41;
73
+ }
74
+
75
+ .bsicon:hover {
76
+ color: var(--io-i-, #fd9f41);
77
+ }
78
+ }
79
+
80
+ .ant-btn-sm {
81
+ height: 32px;
82
+ padding: 4px 16px;
83
+ }
84
+ }
85
+
86
+ .ant-divider-horizontal {
87
+ margin: 14px 0;
88
+ }
89
+
90
+ .biz-loading-container.loading {
91
+ margin-top: 100px;
92
+ }
93
+
94
+ &-disabled,
95
+ &-disabled:hover,
96
+ &-disabled:focus {
97
+ cursor: not-allowed !important;
98
+ }
99
+
100
+ .ant-btn-primary[disabled],
101
+ .ant-btn-primary[disabled]:hover,
102
+ .ant-btn-primary[disabled]:focus,
103
+ .ant-btn-primary[disabled]:active {
104
+ color: #fff;
105
+ background: var(--io-i2-, #d0dfff);
106
+ border: 1px solid #d0dfff;
107
+ }
108
+
109
+ .settings-card {
110
+ gap: 6px;
111
+ height: 120px;
112
+ }
113
+ &-rowContent {
114
+ height: calc(100vh - 254px);
115
+ overflow: auto;
116
+ }
117
+ &-contentList {
118
+ display: grid;
119
+ grid-template-columns: 240px repeat(6, minmax(95px, 1fr)) 260px;
120
+ align-items: center;
121
+ &-item {
122
+ flex: 1;
123
+ color: var(--io-N6-, #67727f);
124
+ text-align: center;
125
+ &-label {
126
+ font-size: 14px;
127
+ }
128
+ &-value {
129
+ display: flex;
130
+ grid-gap: 4px;
131
+ gap: 4px;
132
+ align-items: center;
133
+ justify-content: center;
134
+ white-space: nowrap;
135
+ }
136
+ &-label-text {
137
+ overflow: hidden;
138
+ white-space: nowrap;
139
+ text-overflow: ellipsis;
140
+ }
141
+ &-status-icon0,
142
+ &-status-icon1 {
143
+ display: inline-block;
144
+ width: 6px;
145
+ height: 6px;
146
+ margin-right: 3px;
147
+ border-radius: 50%;
148
+ transform: translateY(-1px);
149
+ }
150
+ &-status-icon0 {
151
+ background: #67727f;
152
+ }
153
+ &-status-icon1 {
154
+ background: #165dff;
155
+ }
156
+ }
157
+ &-btn {
158
+ position: sticky;
159
+ top: 0;
160
+ right: 0;
161
+ display: flex;
162
+ align-items: center;
163
+ height: 100%;
164
+ background-color: #fff;
165
+ box-shadow: -12px 0px 8px -8px #0505050f;
166
+ }
167
+ }
168
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.0.0-zhongyuan.12",
3
+ "version": "2.0.0-zhongyuan.14",
4
4
  "private": false,
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -67,7 +67,7 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "ff4b48c7cc2c7d9fca6878dfcad019a2e1a708af",
70
+ "gitHead": "38ca5f4e9f496998bb9f5845cc880059e46da1a1",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }