@zgfe/modules-settings 2.1.0-zhongyuan.14 → 2.1.0-zhongyuan.16

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.
@@ -50,8 +50,7 @@ var CreateDemand = function CreateDemand(props) {
50
50
  isDemo = _useContext.isDemo,
51
51
  authority = _useContext.authority,
52
52
  routes = _useContext.routes,
53
- router = _useContext.router,
54
- showProdDownload = _useContext.showProdDownload;
53
+ router = _useContext.router;
55
54
  // 属性列表加载中
56
55
  // const [loading, setLoading] = useState(true);
57
56
  var _useState = useState([]),
@@ -1020,7 +1019,7 @@ var CreateDemand = function CreateDemand(props) {
1020
1019
  style: {
1021
1020
  color: '#021429'
1022
1021
  }
1023
- }, demandDescribe ? demandDescribe.length : 0), /*#__PURE__*/React.createElement("span", null, "/1000")))), showProdDownload && (/*#__PURE__*/React.createElement("div", {
1022
+ }, demandDescribe ? demandDescribe.length : 0), /*#__PURE__*/React.createElement("span", null, "/1000")))), /*#__PURE__*/React.createElement("div", {
1024
1023
  className: "".concat(classPrefix, "-info-item")
1025
1024
  }, /*#__PURE__*/React.createElement("div", {
1026
1025
  className: "".concat(classPrefix, "-info-item-txt")
@@ -1053,7 +1052,7 @@ var CreateDemand = function CreateDemand(props) {
1053
1052
  type: "tianjia1"
1054
1053
  }), "\u6DFB\u52A0\u6587\u4EF6")), /*#__PURE__*/React.createElement("div", {
1055
1054
  className: "".concat(classPrefix, "-info-item-content-tip")
1056
- }, "\uFF08\u652F\u6301 Word\u3001Excel\u3001PDF\u3001ZIP\u3001RAR \u683C\u5F0F\u300150M\u4EE5\u5185\uFF09")))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
1055
+ }, "\uFF08\u652F\u6301 Word\u3001Excel\u3001PDF\u3001ZIP\u3001RAR \u683C\u5F0F\u300150M\u4EE5\u5185\uFF09"))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
1057
1056
  className: "".concat(classPrefix, "-info-item")
1058
1057
  }, /*#__PURE__*/React.createElement("div", {
1059
1058
  className: "".concat(classPrefix, "-info-item-txt")
@@ -1254,11 +1253,11 @@ var CreateDemand = function CreateDemand(props) {
1254
1253
  }
1255
1254
  }, "\u5173\u95ED\u9700\u6C42")), demandType == 'edit' && /*#__PURE__*/React.createElement(Button, {
1256
1255
  onClick: onBack
1257
- }, "\u53D6\u6D88"), !isDemo && authority[1724922574] && demandStatus > 0 && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
1256
+ }, "\u53D6\u6D88"), !isDemo && authority[1724922574] && demandStatus > 0 && (/*#__PURE__*/React.createElement(Button, {
1258
1257
  shape: "round",
1259
1258
  className: "button",
1260
1259
  onClick: exportPDF
1261
- }, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo && authority[1724922705] && pointEventInfo && !!pointEventInfo.length && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
1260
+ }, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo && authority[1724922705] && pointEventInfo && !!pointEventInfo.length && (/*#__PURE__*/React.createElement(Button, {
1262
1261
  shape: "round",
1263
1262
  className: "button",
1264
1263
  onClick: downloadData
@@ -100,8 +100,7 @@ var pointMap = function pointMap(props) {
100
100
  var _useContext = useContext(BizGlobalDataContext),
101
101
  currentApp = _useContext.currentApp,
102
102
  route = _useContext.route,
103
- authority = _useContext.authority,
104
- showProdDownload = _useContext.showProdDownload;
103
+ authority = _useContext.authority;
105
104
  var _useState11 = useState([]),
106
105
  _useState12 = _slicedToArray(_useState11, 2),
107
106
  pointVersionList = _useState12[0],
@@ -692,7 +691,7 @@ var pointMap = function pointMap(props) {
692
691
  })))), /*#__PURE__*/React.createElement("a", {
693
692
  className: "".concat(classPrefix, "-select-box"),
694
693
  onClick: downloadHelpFile
695
- }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null), "\u5E2E\u52A9"), showProdDownload && (/*#__PURE__*/React.createElement("a", {
694
+ }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null), "\u5E2E\u52A9"), "(", /*#__PURE__*/React.createElement("a", {
696
695
  className: "".concat(classPrefix, "-select-box"),
697
696
  onClick: function onClick() {
698
697
  if (!authority[1724922774]) {
@@ -703,7 +702,7 @@ var pointMap = function pointMap(props) {
703
702
  }
704
703
  }, /*#__PURE__*/React.createElement(IconFont, {
705
704
  type: "xiazai1"
706
- }), "\u5BFC\u5165\u9875\u9762"))), /*#__PURE__*/React.createElement("div", {
705
+ }), "\u5BFC\u5165\u9875\u9762"), ")"), /*#__PURE__*/React.createElement("div", {
707
706
  className: "".concat(classPrefix, "-search")
708
707
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
709
708
  className: "".concat(classPrefix, "-search-selectType"),
@@ -22,7 +22,8 @@ var clearDict = function clearDict(_ref) {
22
22
  onSetclose = _ref.onSetclose,
23
23
  currentDictDetail = _ref.currentDictDetail;
24
24
  var _useContext = useContext(BizGlobalDataContext),
25
- currentApp = _useContext.currentApp;
25
+ currentApp = _useContext.currentApp,
26
+ showProdDownload = _useContext.showProdDownload;
26
27
  var _useState = useState(addDictShow),
27
28
  _useState2 = _slicedToArray(_useState, 2),
28
29
  open = _useState2[0],
@@ -220,10 +221,10 @@ var clearDict = function clearDict(_ref) {
220
221
  }, /*#__PURE__*/React.createElement(Button, {
221
222
  type: "primary",
222
223
  onClick: onHandlePush
223
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u6DFB\u52A0\u503C"), /*#__PURE__*/React.createElement(Button, {
224
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u6DFB\u52A0\u503C"), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
224
225
  type: "primary",
225
226
  onClick: onHandleUploading
226
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u4ECE\u6587\u4EF6\u6DFB\u52A0"))), openImportModal && (/*#__PURE__*/React.createElement(ImportMetaDialog, {
227
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u4ECE\u6587\u4EF6\u6DFB\u52A0")))), openImportModal && /*#__PURE__*/React.createElement(ImportMetaDialog, {
227
228
  uploadFile: apis.dict.dictUpload,
228
229
  downloadTempleUrl: apis.dict.dictTemplate,
229
230
  fileName: "\u5C5E\u6027\u503C\u5BFC\u5165\u6A21\u677F",
@@ -239,6 +240,6 @@ var clearDict = function clearDict(_ref) {
239
240
  }))));
240
241
  setOpenImportModal(false);
241
242
  }
242
- })));
243
+ }));
243
244
  };
244
245
  export default clearDict;
@@ -218,12 +218,12 @@ var locationTagManagement = function locationTagManagement(_ref) {
218
218
  }, /*#__PURE__*/React.createElement(Space, null, showProdDownload && (/*#__PURE__*/React.createElement(Button, {
219
219
  onClick: onExport,
220
220
  loading: exportLoading
221
- }, /*#__PURE__*/React.createElement(ToTopOutlined, null), "\u5BFC\u51FA")), /*#__PURE__*/React.createElement(Button, {
221
+ }, /*#__PURE__*/React.createElement(ToTopOutlined, null), "\u5BFC\u51FA")), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
222
222
  type: "primary",
223
223
  onClick: function onClick() {
224
224
  return setOpenImportModal(true);
225
225
  }
226
- }, /*#__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, {
227
227
  type: "primary",
228
228
  onClick: handleAddLoc
229
229
  }, /*#__PURE__*/React.createElement(PlusOutlined, null), "\u521B\u5EFA", title))), /*#__PURE__*/React.createElement(Table, {
@@ -244,7 +244,7 @@ var locationTagManagement = function locationTagManagement(_ref) {
244
244
  setAddlocShow(false);
245
245
  getList();
246
246
  }
247
- })), openImportModal && (/*#__PURE__*/React.createElement(ImportMetaDialog, {
247
+ })), openImportModal && /*#__PURE__*/React.createElement(ImportMetaDialog, {
248
248
  uploadFile: apis.dict.tagUpload,
249
249
  downloadTempleUrl: apis.dict.tagTemplate,
250
250
  fileName: "\u5BFC\u5165\u6A21\u677F",
@@ -259,6 +259,6 @@ var locationTagManagement = function locationTagManagement(_ref) {
259
259
  setOpenImportModal(false);
260
260
  getList();
261
261
  }
262
- })));
262
+ }));
263
263
  };
264
264
  export default locationTagManagement;
@@ -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),
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.1.0-zhongyuan.14",
3
+ "version": "2.1.0-zhongyuan.16",
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.31",
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": "e1be86f4478c808b6ffa46be62200c893b527166",
70
+ "gitHead": "7f9bc65c47c126d4c3a3fb1ac2554f28b78715f5",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }