@zgfe/modules-dm 1.0.56-zhongyuan.19 → 1.0.56-zhongyuan.21
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.
|
@@ -69,6 +69,9 @@ var RightDetail = function RightDetail(props) {
|
|
|
69
69
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
70
70
|
isEdit = _useState12[0],
|
|
71
71
|
setIsEdit = _useState12[1];
|
|
72
|
+
useEffect(function () {
|
|
73
|
+
setIsEdit(false);
|
|
74
|
+
}, [currentTreeData]);
|
|
72
75
|
var beforeUpload = /*#__PURE__*/function () {
|
|
73
76
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
74
77
|
var isJpgOrPng, isLt10M;
|
|
@@ -113,10 +116,8 @@ var RightDetail = function RightDetail(props) {
|
|
|
113
116
|
};
|
|
114
117
|
var handleRemoveFile = function handleRemoveFile(file) {
|
|
115
118
|
console.log(file, imageUrl, 'kk');
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
setImageUrl(newArr);
|
|
119
|
+
// const newArr = imageUrl?.filter((o) => o.name != file.name);
|
|
120
|
+
setImageUrl([]);
|
|
120
121
|
setImagePath('');
|
|
121
122
|
};
|
|
122
123
|
var uploadImg = function uploadImg(file) {
|
|
@@ -196,20 +197,20 @@ var RightDetail = function RightDetail(props) {
|
|
|
196
197
|
pageName: currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.pageAttrName
|
|
197
198
|
}
|
|
198
199
|
}).then(function (res) {
|
|
199
|
-
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7;
|
|
200
|
+
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8;
|
|
200
201
|
setLoadingDetail(false);
|
|
201
202
|
pageDetailForm.setFieldsValue({
|
|
202
203
|
pageName: currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.pageAttrName,
|
|
203
|
-
remarkName: res.data.remark || (currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.remarkAttrName),
|
|
204
|
-
description: (res === null || res === void 0 ? void 0 : (_res$
|
|
204
|
+
remarkName: (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.remark) || (currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.remarkAttrName),
|
|
205
|
+
description: (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.pageDescribe) || ''
|
|
205
206
|
});
|
|
206
207
|
setCurrentTreeDetail(res === null || res === void 0 ? void 0 : res.data);
|
|
207
|
-
setImagePath(res === null || res === void 0 ? void 0 : (_res$
|
|
208
|
-
(res === null || res === void 0 ? void 0 : (_res$
|
|
208
|
+
setImagePath(res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.pagePath);
|
|
209
|
+
(res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.pageUrl) ? setImageUrl([{
|
|
209
210
|
status: 'done',
|
|
210
|
-
name: res === null || res === void 0 ? void 0 : (_res$
|
|
211
|
-
url: (res === null || res === void 0 ? void 0 : (_res$
|
|
212
|
-
uid: res === null || res === void 0 ? void 0 : (_res$
|
|
211
|
+
name: res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.pagePath,
|
|
212
|
+
url: (res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.pageUrl) && getImgUrl(res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.pageUrl, '-99'),
|
|
213
|
+
uid: res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.pagePath
|
|
213
214
|
}]) : setImageUrl([]);
|
|
214
215
|
});
|
|
215
216
|
}
|
|
@@ -495,8 +496,8 @@ var RightDetail = function RightDetail(props) {
|
|
|
495
496
|
userGroup: [0]
|
|
496
497
|
}
|
|
497
498
|
}).then(function (res) {
|
|
498
|
-
var _res$
|
|
499
|
-
resolve((res === null || res === void 0 ? void 0 : (_res$
|
|
499
|
+
var _res$data9, _res$data9$series, _res$data9$series$, _res$data9$series$$va;
|
|
500
|
+
resolve((res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : (_res$data9$series = _res$data9.series) === null || _res$data9$series === void 0 ? void 0 : (_res$data9$series$ = _res$data9$series[0]) === null || _res$data9$series$ === void 0 ? void 0 : (_res$data9$series$$va = _res$data9$series$.values) === null || _res$data9$series$$va === void 0 ? void 0 : _res$data9$series$$va[0]) || 0);
|
|
500
501
|
});
|
|
501
502
|
});
|
|
502
503
|
};
|
|
@@ -557,11 +558,14 @@ var RightDetail = function RightDetail(props) {
|
|
|
557
558
|
}]
|
|
558
559
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
559
560
|
showCount: true,
|
|
561
|
+
disabled: true,
|
|
560
562
|
maxLength: 20
|
|
561
563
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
562
564
|
label: "\u5907\u6CE8\u540D\u79F0",
|
|
563
565
|
name: "remarkName"
|
|
564
|
-
}, /*#__PURE__*/React.createElement(Input,
|
|
566
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
567
|
+
disabled: true
|
|
568
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
565
569
|
label: "\u9875\u9762\u5C55\u793A"
|
|
566
570
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Upload, {
|
|
567
571
|
listType: "picture-card",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.56-zhongyuan.
|
|
3
|
+
"version": "1.0.56-zhongyuan.21",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"umi-request": "^1.4.0",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "11cb3cdf6a37cbefb4f6e80c82598e68afbf223c",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|