@zgfe/modules-settings 2.1.0-zhongyuan.17 → 2.1.0-zhongyuan.18

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,7 +50,8 @@ var CreateDemand = function CreateDemand(props) {
50
50
  isDemo = _useContext.isDemo,
51
51
  authority = _useContext.authority,
52
52
  routes = _useContext.routes,
53
- router = _useContext.router;
53
+ router = _useContext.router,
54
+ showProdDownload = _useContext.showProdDownload;
54
55
  // 属性列表加载中
55
56
  // const [loading, setLoading] = useState(true);
56
57
  var _useState = useState([]),
@@ -1019,7 +1020,7 @@ var CreateDemand = function CreateDemand(props) {
1019
1020
  style: {
1020
1021
  color: '#021429'
1021
1022
  }
1022
- }, demandDescribe ? demandDescribe.length : 0), /*#__PURE__*/React.createElement("span", null, "/1000")))), /*#__PURE__*/React.createElement("div", {
1023
+ }, demandDescribe ? demandDescribe.length : 0), /*#__PURE__*/React.createElement("span", null, "/1000")))), showProdDownload && (/*#__PURE__*/React.createElement("div", {
1023
1024
  className: "".concat(classPrefix, "-info-item")
1024
1025
  }, /*#__PURE__*/React.createElement("div", {
1025
1026
  className: "".concat(classPrefix, "-info-item-txt")
@@ -1052,7 +1053,7 @@ var CreateDemand = function CreateDemand(props) {
1052
1053
  type: "tianjia1"
1053
1054
  }), "\u6DFB\u52A0\u6587\u4EF6")), /*#__PURE__*/React.createElement("div", {
1054
1055
  className: "".concat(classPrefix, "-info-item-content-tip")
1055
- }, "\uFF08\u652F\u6301 Word\u3001Excel\u3001PDF\u3001ZIP\u3001RAR \u683C\u5F0F\u300150M\u4EE5\u5185\uFF09"))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
1056
+ }, "\uFF08\u652F\u6301 Word\u3001Excel\u3001PDF\u3001ZIP\u3001RAR \u683C\u5F0F\u300150M\u4EE5\u5185\uFF09")))))), (demandStatus == 101 || demandStatus == 102) && (/*#__PURE__*/React.createElement("div", {
1056
1057
  className: "".concat(classPrefix, "-info-item")
1057
1058
  }, /*#__PURE__*/React.createElement("div", {
1058
1059
  className: "".concat(classPrefix, "-info-item-txt")
@@ -1253,11 +1254,11 @@ var CreateDemand = function CreateDemand(props) {
1253
1254
  }
1254
1255
  }, "\u5173\u95ED\u9700\u6C42")), demandType == 'edit' && /*#__PURE__*/React.createElement(Button, {
1255
1256
  onClick: onBack
1256
- }, "\u53D6\u6D88"), !isDemo && authority[1724922574] && demandStatus > 0 && (/*#__PURE__*/React.createElement(Button, {
1257
+ }, "\u53D6\u6D88"), !isDemo && authority[1724922574] && demandStatus > 0 && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
1257
1258
  shape: "round",
1258
1259
  className: "button",
1259
1260
  onClick: exportPDF
1260
- }, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo && authority[1724922705] && pointEventInfo && !!pointEventInfo.length && (/*#__PURE__*/React.createElement(Button, {
1261
+ }, "\u5BFC\u51FA\u9700\u6C42PDF")), !isDemo && authority[1724922705] && pointEventInfo && !!pointEventInfo.length && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
1261
1262
  shape: "round",
1262
1263
  className: "button",
1263
1264
  onClick: downloadData
@@ -100,7 +100,8 @@ 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;
103
+ authority = _useContext.authority,
104
+ showProdDownload = _useContext.showProdDownload;
104
105
  var _useState11 = useState([]),
105
106
  _useState12 = _slicedToArray(_useState11, 2),
106
107
  pointVersionList = _useState12[0],
@@ -691,7 +692,7 @@ var pointMap = function pointMap(props) {
691
692
  })))), /*#__PURE__*/React.createElement("a", {
692
693
  className: "".concat(classPrefix, "-select-box"),
693
694
  onClick: downloadHelpFile
694
- }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null), "\u5E2E\u52A9"), /*#__PURE__*/React.createElement("a", {
695
+ }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null), "\u5E2E\u52A9"), showProdDownload && (/*#__PURE__*/React.createElement("a", {
695
696
  className: "".concat(classPrefix, "-select-box"),
696
697
  onClick: function onClick() {
697
698
  if (!authority[1724922774]) {
@@ -702,7 +703,7 @@ var pointMap = function pointMap(props) {
702
703
  }
703
704
  }, /*#__PURE__*/React.createElement(IconFont, {
704
705
  type: "xiazai1"
705
- }), "\u5BFC\u5165\u9875\u9762")), /*#__PURE__*/React.createElement("div", {
706
+ }), "\u5BFC\u5165\u9875\u9762"))), /*#__PURE__*/React.createElement("div", {
706
707
  className: "".concat(classPrefix, "-search")
707
708
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
708
709
  className: "".concat(classPrefix, "-search-selectType"),
@@ -94,12 +94,12 @@ var DocumentSetting = function DocumentSetting() {
94
94
  render: function render(_, record) {
95
95
  return /*#__PURE__*/React.createElement(Space, {
96
96
  size: "middle"
97
- }, /*#__PURE__*/React.createElement("a", {
97
+ }, showProdDownload && (/*#__PURE__*/React.createElement("a", {
98
98
  onClick: function onClick() {
99
99
  currentObj.current = record;
100
100
  exportEvent();
101
101
  }
102
- }, "\u4E0B\u8F7D"), record.isSharePower == 1 && (/*#__PURE__*/React.createElement("a", {
102
+ }, "\u4E0B\u8F7D")), record.isSharePower == 1 && (/*#__PURE__*/React.createElement("a", {
103
103
  onClick: function onClick() {
104
104
  setIsOpenShareModal(true);
105
105
  currentObj.current = record;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.1.0-zhongyuan.17",
3
+ "version": "2.1.0-zhongyuan.18",
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": "143b10bf0fc6d647b6e9241c040a9ce9de01d95d",
70
+ "gitHead": "0658ef363698b6d268a6ea48c652c78069e1d053",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }