@riil-frontend/component-topology 11.0.32 → 11.0.34

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.
@@ -80,10 +80,11 @@
80
80
  .upload-btn {
81
81
  // margin-top: 12px;
82
82
  width: 100%;
83
- height: 130px;
83
+ height: 130px !important;
84
84
  display: flex;
85
85
  flex-direction: column;
86
86
  text-align: center;
87
+
87
88
  .content {
88
89
  position: absolute;
89
90
  top: 0;
@@ -33,7 +33,7 @@
33
33
  font-size: 12px;
34
34
  font-family: PingFangSC-Medium, PingFang SC;
35
35
  font-weight: 500;
36
- color: #4D6277;
36
+ color:$color-text1-4;
37
37
  line-height: 17px;
38
38
  }
39
39
 
@@ -9,9 +9,6 @@ import React, { useEffect } from 'react';
9
9
  import variables from '@alifd/theme-19926/variables.js';
10
10
  import textStyles from "../../../../../../common/text.module.scss";
11
11
  import NodeRelateResourceButton from "./NodeRelateResourceButton";
12
- import PlatformDisplay from "./PlatformDisplay";
13
- import BindIpInput from "./BindIpInput";
14
- import { isUniqueIp } from "../../../../../../../networkTopo/utils/exitLinkUtil";
15
12
  var Option = _Select.Option;
16
13
  var CollapsePanel = _Collapse.Panel;
17
14
 
@@ -29,7 +26,7 @@ function getBindType(values) {
29
26
  return values.attrObject.bindType;
30
27
  }
31
28
 
32
- if (values.tag && !values.tag.startsWith('ip:')) {
29
+ if (values.tag) {
33
30
  return 'resource';
34
31
  }
35
32
 
@@ -43,7 +40,7 @@ export default function Data(props) {
43
40
  values = props.values,
44
41
  _onChange = props.onChange,
45
42
  editorProps = props.editorProps;
46
- var bindType = getBindType(values); // console.log("node, values", node, values);
43
+ var bindType = getBindType(values);
47
44
 
48
45
  var field = _Field.useField({
49
46
  autoUnmount: false,
@@ -116,7 +113,7 @@ export default function Data(props) {
116
113
  }, /*#__PURE__*/React.createElement(_Form, {
117
114
  field: field,
118
115
  labelAlign: "top"
119
- }, (!values.tag || bindType === 'ip') && /*#__PURE__*/React.createElement(_Form.Item, {
116
+ }, !values.tag && /*#__PURE__*/React.createElement(_Form.Item, {
120
117
  label: "\u5173\u8054\u7C7B\u578B"
121
118
  }, /*#__PURE__*/React.createElement(_Select, {
122
119
  name: "bindType",
@@ -130,9 +127,7 @@ export default function Data(props) {
130
127
  value: "none"
131
128
  }, "\u672A\u5173\u8054"), /*#__PURE__*/React.createElement(Option, {
132
129
  value: "resource"
133
- }, "\u5173\u8054\u8D44\u6E90"), /*#__PURE__*/React.createElement(Option, {
134
- value: "ip"
135
- }, "\u5173\u8054IP"), RelateTopoTree && /*#__PURE__*/React.createElement(Option, {
130
+ }, "\u5173\u8054\u8D44\u6E90"), RelateTopoTree && /*#__PURE__*/React.createElement(Option, {
136
131
  value: "topo"
137
132
  }, "\u5173\u8054\u62D3\u6251"))), bindType === 'resource' && /*#__PURE__*/React.createElement(_Form.Item, {
138
133
  label: "\u5173\u8054\u8D44\u6E90"
@@ -156,35 +151,11 @@ export default function Data(props) {
156
151
  topo: topo,
157
152
  topoEditApi: topoEditApi,
158
153
  nodeBindResourceDrawerComponent: editorProps.nodeBindResourceDrawerComponent
159
- }))), bindType === 'ip' &&
160
- /*#__PURE__*/
161
- // <Form.Item
162
- // label="关联IP"
163
- // // style={{ display: "flex" }}
164
- // pattern={
165
- // /^((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))$/
166
- // }
167
- // patternTrigger="onBlur"
168
- // patternMessage="IP地址格式不正确"
169
- // >
170
- React.createElement(BindIpInput, {
171
- nodeElement: node,
172
- values: values,
173
- topo: topo,
174
- fieldItem: field,
175
- topoEditApi: topoEditApi,
176
- placeholder: "\u8BF7\u8F93\u5165",
177
- name: "attrObject.bindIp",
178
- onChange: _onChange,
179
- maxLength: 128
180
- }) // </Form.Item>
181
- , bindType === 'topo' && RelateTopoTree && /*#__PURE__*/React.createElement(_Form.Item, {
154
+ }))), bindType === 'topo' && RelateTopoTree && /*#__PURE__*/React.createElement(_Form.Item, {
182
155
  label: "\u5173\u8054\u62D3\u6251"
183
156
  }, /*#__PURE__*/React.createElement(RelateTopoTree, {
184
157
  name: "attrObject.bindTopo",
185
158
  topo: topo,
186
159
  onChange: handleBindTopoChange
187
- })), (editorProps === null || editorProps === void 0 ? void 0 : editorProps.topoType) === 'cmpTopo' && node.getTag() && /*#__PURE__*/React.createElement(_Form.Item, {
188
- label: "\u6240\u5C5E\u5E73\u53F0"
189
- }, /*#__PURE__*/React.createElement(PlatformDisplay, props)))));
160
+ })))));
190
161
  }
@@ -566,7 +566,7 @@ var useTopoEdit = function useTopoEdit(params) {
566
566
 
567
567
  function _bindViewResources() {
568
568
  _bindViewResources = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(data) {
569
- var config, result, _elements;
569
+ var config, _yield$editDispatcher3, elements;
570
570
 
571
571
  return _regeneratorRuntime.wrap(function _callee12$(_context12) {
572
572
  while (1) {
@@ -583,19 +583,15 @@ var useTopoEdit = function useTopoEdit(params) {
583
583
  return editDispatchers.fetchDataByConfig();
584
584
 
585
585
  case 6:
586
- result = _context12.sent;
587
- console.log("fetchDataByConfig", result);
588
-
589
- if (result) {
590
- _elements = result.elements;
591
- saveBind(TopoEvent.DATA_TYPE_RESOURCE_COMBO, _elements); // 临时放这里,仅拓扑中心有
586
+ _yield$editDispatcher3 = _context12.sent;
587
+ elements = _yield$editDispatcher3.elements;
588
+ saveBind(TopoEvent.DATA_TYPE_RESOURCE_COMBO, elements); // 临时放这里,仅拓扑中心有
592
589
 
593
- if (topo.linkDynamicStyleExecutor) {
594
- topo.linkDynamicStyleExecutor.execute();
595
- }
590
+ if (topo.linkDynamicStyleExecutor) {
591
+ topo.linkDynamicStyleExecutor.execute();
596
592
  }
597
593
 
598
- case 9:
594
+ case 10:
599
595
  case "end":
600
596
  return _context12.stop();
601
597
  }
@@ -611,7 +607,7 @@ var useTopoEdit = function useTopoEdit(params) {
611
607
 
612
608
  function _addLayerResources() {
613
609
  _addLayerResources = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(group, newResourceIds) {
614
- var _yield$editDispatcher3, elements, newElements;
610
+ var _yield$editDispatcher4, elements, newElements;
615
611
 
616
612
  return _regeneratorRuntime.wrap(function _callee13$(_context13) {
617
613
  while (1) {
@@ -627,8 +623,8 @@ var useTopoEdit = function useTopoEdit(params) {
627
623
  return editDispatchers.fetchDataByConfig();
628
624
 
629
625
  case 5:
630
- _yield$editDispatcher3 = _context13.sent;
631
- elements = _yield$editDispatcher3.elements;
626
+ _yield$editDispatcher4 = _context13.sent;
627
+ elements = _yield$editDispatcher4.elements;
632
628
  // 2022-11-10 修复 添加资源后分层重新布局问题,仅布局新增资源。替换api topo.updateElements(data)
633
629
  newElements = findUNExistedElements(elements);
634
630
  rlog.debug("添加分层资源", {
@@ -1033,7 +1029,7 @@ var useTopoEdit = function useTopoEdit(params) {
1033
1029
 
1034
1030
  function _relateNodeIp() {
1035
1031
  _relateNodeIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(txtValue, nodeElement) {
1036
- var dm, isUnique, ip, configObj, configData, _elements2, newLinkElements, newLink, newLinkGroup, createElementsData, _htTopo;
1032
+ var dm, isUnique, ip, configObj, configData, _elements, newLinkElements, newLink, newLinkGroup, createElementsData, _htTopo;
1037
1033
 
1038
1034
  return _regeneratorRuntime.wrap(function _callee15$(_context15) {
1039
1035
  while (1) {
@@ -1056,7 +1052,7 @@ var useTopoEdit = function useTopoEdit(params) {
1056
1052
  isUnique = isUniqueIp(dm, txtValue, nodeElement); // 获取关联链路
1057
1053
 
1058
1054
  if (!isUnique) {
1059
- _context15.next = 24;
1055
+ _context15.next = 23;
1060
1056
  break;
1061
1057
  }
1062
1058
 
@@ -1080,8 +1076,8 @@ var useTopoEdit = function useTopoEdit(params) {
1080
1076
  case 16:
1081
1077
  configData = _context15.sent;
1082
1078
  // console.log("configData",configObj, configData);
1083
- _elements2 = configData.elements;
1084
- newLinkElements = findUNExistedLinkElements(_elements2); // console.log("configData", configData, newLinkElements);
1079
+ _elements = configData.elements;
1080
+ newLinkElements = findUNExistedLinkElements(_elements); // console.log("configData", configData, newLinkElements);
1085
1081
 
1086
1082
  newLink = newLinkElements.filter(function (item) {
1087
1083
  return item.type === "link";
@@ -1096,8 +1092,7 @@ var useTopoEdit = function useTopoEdit(params) {
1096
1092
  nodes: [],
1097
1093
  links: newLink,
1098
1094
  linkGroups: newLinkGroup
1099
- };
1100
- console.log("createElementsData", createElementsData);
1095
+ }; // console.log("createElementsData", createElementsData);
1101
1096
 
1102
1097
  if ([].concat(newLink, newLinkGroup).length > 0) {
1103
1098
  _htTopo = topo.getHtTopo();
@@ -1105,7 +1100,7 @@ var useTopoEdit = function useTopoEdit(params) {
1105
1100
  _htTopo.createElements(createElementsData);
1106
1101
  }
1107
1102
 
1108
- case 24:
1103
+ case 23:
1109
1104
  case "end":
1110
1105
  return _context15.stop();
1111
1106
  }
@@ -24,7 +24,7 @@ import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
24
24
  import SelectionModel from "./SelectionModel";
25
25
  import CiCache from "./cache/CiCache"; // eslint-disable-next-line no-undef
26
26
 
27
- var version = typeof "11.0.32" === 'string' ? "11.0.32" : null;
27
+ var version = typeof "11.0.34" === 'string' ? "11.0.34" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -1,34 +1,170 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _extends from "@babel/runtime/helpers/extends";
2
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
4
  import { request } from '@riil-frontend/component-topology-utils';
4
5
  import { TOPO_API_ROOT } from "./constants";
6
+ var API_ROOT = TOPO_API_ROOT;
7
+ /**
8
+ * 拓扑图(看做一个容器)的“父容器”ID
9
+ */
10
+
11
+ export var TOPO_PARENT_ID = -2;
12
+ /**
13
+ * 拓扑图(看做一个容器)的容器ID
14
+ */
15
+
16
+ export var TOPO_GROUP_ID = -1;
17
+ var DEFAULT_QUERY = {
18
+ current: 1,
19
+ pageSize: 200,
20
+ sortBy: 'name',
21
+ sortOrder: 'asc'
22
+ };
23
+
24
+ function prepareResourceParams(conditions, query) {
25
+ if (query === void 0) {
26
+ query = DEFAULT_QUERY;
27
+ }
28
+
29
+ var dynamicRes = conditions.dynamic,
30
+ staticRes = conditions["static"],
31
+ stateValue = conditions.stateValue;
32
+ var dynamicCondition = dynamicRes && {
33
+ stateValue: stateValue,
34
+ condition: dynamicRes
35
+ } || undefined;
36
+
37
+ if (dynamicCondition && query) {
38
+ dynamicCondition.currentPage = query.current;
39
+ dynamicCondition.pageSize = query.pageSize;
40
+ dynamicCondition.sort = query.sortBy + " " + query.sortOrder;
41
+ }
42
+
43
+ return {
44
+ dynamicCondition: dynamicCondition,
45
+ fixedConditionIdList: (staticRes || []).filter(function (ciId) {
46
+ return !ciId.startsWith('ip:');
47
+ }),
48
+ linkIps: (staticRes || []).filter(function (ciId) {
49
+ return ciId.startsWith('ip:');
50
+ }).map(function (ciId) {
51
+ return ciId.replace('ip:', '');
52
+ })
53
+ };
54
+ }
55
+
56
+ function prepareGroupParams(modifiedGroups) {
57
+ if (modifiedGroups === void 0) {
58
+ modifiedGroups = [];
59
+ }
60
+
61
+ var groups = modifiedGroups.map(function (group, index) {
62
+ var id = group.id,
63
+ layout = group.layout,
64
+ _group$parentId = group.parentId,
65
+ parentId = _group$parentId === void 0 ? TOPO_GROUP_ID : _group$parentId,
66
+ _group$name = group.name,
67
+ name = _group$name === void 0 ? '' : _group$name,
68
+ expanded = group.expanded,
69
+ _group$styles = group.styles,
70
+ styles = _group$styles === void 0 ? {} : _group$styles,
71
+ resources = group.resources,
72
+ tag = group.tag;
73
+
74
+ if (!resources) {
75
+ return null;
76
+ }
77
+
78
+ var topoGroup = {
79
+ id: id,
80
+ layout: layout,
81
+ parentId: parentId,
82
+ name: name,
83
+ styles: JSON.stringify(expanded !== undefined ? _extends({}, styles, {
84
+ showExpanded: expanded
85
+ }) : styles),
86
+ order: index,
87
+ tag: tag
88
+ };
89
+ return {
90
+ topoGroup: topoGroup,
91
+ condition: prepareResourceParams(resources)
92
+ };
93
+ }).filter(Boolean);
94
+ return {
95
+ groups: groups
96
+ };
97
+ }
98
+
5
99
  export default {
6
100
  /**
7
- * 保存拓扑绘制数据(第三方库内部结构,无需关心含义)
101
+ * 查询拓扑数据
8
102
  * @param {Number} id Topo ID
9
- * @param {String} data ht拓扑序列化数据
103
+ * @param {Object} resources
104
+ * @param {Array} groups
10
105
  * @returns
11
106
  */
12
- saveSerializeData: function saveSerializeData(id, data) {
107
+ getTopoDataByResource: function getTopoDataByResource(id, resources, groups, exportLinkIdList) {
13
108
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
109
+ var data, obj;
14
110
  return _regeneratorRuntime.wrap(function _callee$(_context) {
15
111
  while (1) {
16
112
  switch (_context.prev = _context.next) {
17
113
  case 0:
18
- _context.next = 2;
114
+ data = Array.isArray(groups) ? groups : [];
115
+
116
+ if (resources) {
117
+ data.push({
118
+ parentId: TOPO_PARENT_ID,
119
+ order: 100,
120
+ resources: resources
121
+ });
122
+ }
123
+
124
+ obj = prepareGroupParams(data);
125
+ _context.next = 5;
126
+ return request.post(API_ROOT + "/structure/byCondition/" + id, _extends({}, obj, {
127
+ exportLinkIdList: exportLinkIdList
128
+ }));
129
+
130
+ case 5:
131
+ return _context.abrupt("return", _context.sent);
132
+
133
+ case 6:
134
+ case "end":
135
+ return _context.stop();
136
+ }
137
+ }
138
+ }, _callee);
139
+ }))();
140
+ },
141
+
142
+ /**
143
+ * 保存拓扑绘制数据(第三方库内部结构,无需关心含义)
144
+ * @param {Number} id Topo ID
145
+ * @param {String} data ht拓扑序列化数据
146
+ * @returns
147
+ */
148
+ saveSerializeData: function saveSerializeData(id, data) {
149
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
150
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
151
+ while (1) {
152
+ switch (_context2.prev = _context2.next) {
153
+ case 0:
154
+ _context2.next = 2;
19
155
  return request.post(TOPO_API_ROOT + "/structure/" + id, {
20
156
  data: data
21
157
  });
22
158
 
23
159
  case 2:
24
- return _context.abrupt("return", _context.sent);
160
+ return _context2.abrupt("return", _context2.sent);
25
161
 
26
162
  case 3:
27
163
  case "end":
28
- return _context.stop();
164
+ return _context2.stop();
29
165
  }
30
166
  }
31
- }, _callee);
167
+ }, _callee2);
32
168
  }))();
33
169
  }
34
170
  };
@@ -53,40 +53,6 @@ export default function (engine) {
53
53
  }, _callee);
54
54
  }))();
55
55
  },
56
- // 根据ci的id获取属性的值
57
- getCiArrByIds: function getCiArrByIds(conditions, state) {
58
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
59
- var resIdsList, result;
60
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
61
- while (1) {
62
- switch (_context2.prev = _context2.next) {
63
- case 0:
64
- resIdsList = state.topoBizMod.resAndMetrics.resIdsList; // rlog.debug('根据ci的id获取属性的值-getCiArrByIds', resIdsList);
65
- // const ciIds = encodeURIComponent(resIdsList);
66
-
67
- _context2.prev = 1;
68
- _context2.next = 4;
69
- return topoServer.getBatchCiArr({
70
- ids: resIdsList
71
- });
72
-
73
- case 4:
74
- result = _context2.sent;
75
- return _context2.abrupt("return", result.content);
76
-
77
- case 8:
78
- _context2.prev = 8;
79
- _context2.t0 = _context2["catch"](1);
80
- return _context2.abrupt("return", null);
81
-
82
- case 11:
83
- case "end":
84
- return _context2.stop();
85
- }
86
- }
87
- }, _callee2, null, [[1, 8]]);
88
- }))();
89
- },
90
56
 
91
57
  /**
92
58
  * 设置属性和指标
@@ -7,7 +7,6 @@ import { request } from '@riil-frontend/component-topology-utils';
7
7
  import rlog from '@riil-frontend/component-topology-utils/es/rlog';
8
8
  import blackList from "./blacklist";
9
9
  import { TOPO_API_ROOT } from "./constants";
10
- import { commonQuery } from "../cmdb";
11
10
  import { getBatchCi as _getBatchCi, getBatchCiMetric as _getBatchCiMetric } from "../model";
12
11
  import { processByConditionResult, processExitLink } from "../../utils/exitLinkUtil";
13
12
  var API_ROOT = TOPO_API_ROOT;
@@ -28,10 +27,6 @@ var DEFAULT_QUERY = {
28
27
  sortOrder: 'asc'
29
28
  };
30
29
 
31
- function isAvailableArray(arr) {
32
- return arr && Array.isArray(arr) && arr.length > 0;
33
- }
34
-
35
30
  function prepareResourceParams(conditions, query) {
36
31
  if (query === void 0) {
37
32
  query = DEFAULT_QUERY;
@@ -39,10 +34,7 @@ function prepareResourceParams(conditions, query) {
39
34
 
40
35
  var dynamicRes = conditions.dynamic,
41
36
  staticRes = conditions["static"],
42
- stateValue = conditions.stateValue; // if (isNull(dynamicRes) && isNull(staticRes)) {
43
- // return null;
44
- // }
45
-
37
+ stateValue = conditions.stateValue;
46
38
  var dynamicCondition = dynamicRes && {
47
39
  stateValue: stateValue,
48
40
  condition: dynamicRes
@@ -454,7 +446,7 @@ export default _extends({
454
446
  while (1) {
455
447
  switch (_context13.prev = _context13.next) {
456
448
  case 0:
457
- data = isAvailableArray(groups) ? groups : [];
449
+ data = Array.isArray(groups) ? groups : [];
458
450
 
459
451
  if (resources) {
460
452
  data.push({
@@ -503,7 +495,7 @@ export default _extends({
503
495
  switch (_context14.prev = _context14.next) {
504
496
  case 0:
505
497
  groups = config.groups, resources = config.resources, exportLinkIdList = config.exportLinkIdList, otherConfig = _objectWithoutPropertiesLoose(config, _excluded);
506
- newGroups = isAvailableArray(groups) ? groups : [];
498
+ newGroups = Array.isArray(groups) ? groups : [];
507
499
 
508
500
  if (resources) {
509
501
  // 新建拓扑时
@@ -638,46 +630,6 @@ export default _extends({
638
630
  }))();
639
631
  },
640
632
 
641
- /**
642
- * 根据资源id获取属性及属性值
643
- * @param {*} params Topo ID
644
- */
645
- getAttributesByIds: function getAttributesByIds(params) {
646
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
647
- var _params$ids;
648
-
649
- var param;
650
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
651
- while (1) {
652
- switch (_context19.prev = _context19.next) {
653
- case 0:
654
- if (!(((_params$ids = params.ids) === null || _params$ids === void 0 ? void 0 : _params$ids.length) > 0)) {
655
- _context19.next = 6;
656
- break;
657
- }
658
-
659
- param = {
660
- condition: "id('" + params.ids.join("','") + "')",
661
- sort: 'index DESC',
662
- currentPage: 1,
663
- pageSize: params.ids.length > 10 ? params.ids.length : 10
664
- };
665
- rlog.debug('getAttributesByIds', param);
666
- _context19.next = 5;
667
- return commonQuery(param);
668
-
669
- case 5:
670
- return _context19.abrupt("return", _context19.sent);
671
-
672
- case 6:
673
- case "end":
674
- return _context19.stop();
675
- }
676
- }
677
- }, _callee19);
678
- }))();
679
- },
680
-
681
633
  /**
682
634
  * 批量查询ci信息接口
683
635
  * @param {*} params Topo ID
@@ -702,47 +654,28 @@ export default _extends({
702
654
  }
703
655
  },
704
656
 
705
- /**
706
- * 批量查询ci属性
707
- * @param {*} params Topo ID
708
- */
709
- getBatchCiArr: function getBatchCiArr(params) {
710
- var _params$ids2;
711
-
712
- if (((_params$ids2 = params.ids) === null || _params$ids2 === void 0 ? void 0 : _params$ids2.length) > 0) {
713
- var param = {
714
- condition: "id('" + params.ids.join("','") + "')",
715
- sort: 'name asc',
716
- currentPage: 1,
717
- pageSize: 999
718
- }; // rlog.debug('getBatchCi', param);
719
-
720
- return commonQuery(param);
721
- }
722
- },
723
-
724
657
  /**
725
658
  * 批量查询ci指标属性
726
659
  * @param {*} params Topo ID
727
660
  */
728
661
  getBatchCiPolling: function getBatchCiPolling(params) {
729
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20() {
730
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
662
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
663
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
731
664
  while (1) {
732
- switch (_context20.prev = _context20.next) {
665
+ switch (_context19.prev = _context19.next) {
733
666
  case 0:
734
- _context20.next = 2;
667
+ _context19.next = 2;
735
668
  return request.post(TOPO_API_ROOT + "/attributes/polling", params);
736
669
 
737
670
  case 2:
738
- return _context20.abrupt("return", _context20.sent);
671
+ return _context19.abrupt("return", _context19.sent);
739
672
 
740
673
  case 3:
741
674
  case "end":
742
- return _context20.stop();
675
+ return _context19.stop();
743
676
  }
744
677
  }
745
- }, _callee20);
678
+ }, _callee19);
746
679
  }))();
747
680
  }
748
681
  });
@@ -80,10 +80,11 @@
80
80
  .upload-btn {
81
81
  // margin-top: 12px;
82
82
  width: 100%;
83
- height: 130px;
83
+ height: 130px !important;
84
84
  display: flex;
85
85
  flex-direction: column;
86
86
  text-align: center;
87
+
87
88
  .content {
88
89
  position: absolute;
89
90
  top: 0;
@@ -33,7 +33,7 @@
33
33
  font-size: 12px;
34
34
  font-family: PingFangSC-Medium, PingFang SC;
35
35
  font-weight: 500;
36
- color: #4D6277;
36
+ color:$color-text1-4;
37
37
  line-height: 17px;
38
38
  }
39
39