@zgfe/modules-settings 2.1.0-zhongyuan.13 → 2.1.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.
|
@@ -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([]),
|
|
@@ -303,7 +304,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
303
304
|
var isZip = regex.test(file.name);
|
|
304
305
|
var is10M = file.size < 50 * 1024 * 1024;
|
|
305
306
|
if (!isZip || !is10M) {
|
|
306
|
-
message.error("\u4EC5\u652F\u6301\u4E0A\u4F20\u4E00\u4E2A50M\u4EE5\u5185\u7684Word\u3001Excel\u3001PDF\u3001ZIP\
|
|
307
|
+
message.error("\u4EC5\u652F\u6301\u4E0A\u4F20\u4E00\u4E2A50M\u4EE5\u5185\u7684Word\u3001Excel\u3001PDF\u3001ZIP\u3001RAR\u683C\u5F0F\u538B\u7F29\u5305\u9644\u4EF6");
|
|
307
308
|
} else {
|
|
308
309
|
// setValueLoading(true);
|
|
309
310
|
var formData = new FormData();
|
|
@@ -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\
|
|
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"),
|
|
@@ -26,7 +26,8 @@ var locationTagManagement = function locationTagManagement(_ref) {
|
|
|
26
26
|
var title = _ref.title,
|
|
27
27
|
type = _ref.type;
|
|
28
28
|
var _useContext = useContext(BizGlobalDataContext),
|
|
29
|
-
currentApp = _useContext.currentApp
|
|
29
|
+
currentApp = _useContext.currentApp,
|
|
30
|
+
showProdDownload = _useContext.showProdDownload;
|
|
30
31
|
var columns = [{
|
|
31
32
|
title: '序号',
|
|
32
33
|
dataIndex: 'index',
|
|
@@ -214,10 +215,10 @@ var locationTagManagement = function locationTagManagement(_ref) {
|
|
|
214
215
|
className: "".concat(className)
|
|
215
216
|
}, /*#__PURE__*/React.createElement("div", {
|
|
216
217
|
className: "".concat(className, "-searchTop")
|
|
217
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
|
|
218
|
+
}, /*#__PURE__*/React.createElement(Space, null, showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
218
219
|
onClick: onExport,
|
|
219
220
|
loading: exportLoading
|
|
220
|
-
}, /*#__PURE__*/React.createElement(ToTopOutlined, null), "\u5BFC\u51FA"), /*#__PURE__*/React.createElement(Button, {
|
|
221
|
+
}, /*#__PURE__*/React.createElement(ToTopOutlined, null), "\u5BFC\u51FA")), /*#__PURE__*/React.createElement(Button, {
|
|
221
222
|
type: "primary",
|
|
222
223
|
onClick: function onClick() {
|
|
223
224
|
return setOpenImportModal(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.1.0-zhongyuan.
|
|
3
|
+
"version": "2.1.0-zhongyuan.14",
|
|
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.
|
|
53
|
+
"@zgfe/business-lib": "1.2.70-hxd.31",
|
|
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": "
|
|
70
|
+
"gitHead": "e1be86f4478c808b6ffa46be62200c893b527166",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|