@zgfe/modules-settings 2.0.0-zhongyuan.37 → 2.0.0-zhongyuan.38
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.
- package/es/modules/pointMap/pageInfo.js +37 -31
- package/package.json +2 -2
|
@@ -205,38 +205,38 @@ var PageInfo = function PageInfo(props) {
|
|
|
205
205
|
uuid: res.data.detail.uuid,
|
|
206
206
|
zosFileKey: res.data.detail.zosFileKey
|
|
207
207
|
} : undefined);
|
|
208
|
-
if (!isSelect) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
208
|
+
// if (!isSelect) {
|
|
209
|
+
// getPointTree()
|
|
210
|
+
setEventAttrList(res.data.eventInfos ? res.data.eventInfos.map(function (item, index) {
|
|
211
|
+
return {
|
|
212
|
+
id: item.id,
|
|
213
|
+
eventId: item.eventId,
|
|
214
|
+
eventName: item.eventName,
|
|
215
|
+
describe: item.pointDescribe,
|
|
216
|
+
pointSelect: item.pointSelect,
|
|
217
|
+
pv: item.pv,
|
|
218
|
+
imgPath: item.zosImgUrl ? getImgUrl(item.zosImgUrl, props.pageData.id) : '',
|
|
219
|
+
key: uuid(),
|
|
220
|
+
index: index,
|
|
221
|
+
approvalStatus: item.approvalStatus,
|
|
222
|
+
operationType: item.operationType,
|
|
223
|
+
del: item.del || 0
|
|
224
|
+
};
|
|
225
|
+
}) : []);
|
|
226
|
+
//计算出当前上线和下线总合数量
|
|
227
|
+
setNavList(navList.map(function (nav) {
|
|
228
|
+
var sum = 0;
|
|
229
|
+
res.data.eventInfos && res.data.eventInfos.map(function (item, index) {
|
|
230
|
+
if (nav.value == item.del) {
|
|
231
|
+
sum += 1;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return _objectSpread(_objectSpread({}, nav), {}, {
|
|
235
|
+
sum: sum
|
|
236
|
+
});
|
|
237
|
+
}));
|
|
239
238
|
}
|
|
239
|
+
// }
|
|
240
240
|
}).catch(function (err) {
|
|
241
241
|
console.log(err);
|
|
242
242
|
});
|
|
@@ -1088,6 +1088,12 @@ var PageInfo = function PageInfo(props) {
|
|
|
1088
1088
|
rowKey: 'uuid',
|
|
1089
1089
|
dataSource: (eventAttrList || []).filter(function (item) {
|
|
1090
1090
|
return new RegExp(_.escapeRegExp(eventKey), 'i').test(item.eventName || '');
|
|
1091
|
+
}).filter(function (res) {
|
|
1092
|
+
if (isEdit || isSelect) {
|
|
1093
|
+
return true;
|
|
1094
|
+
} else {
|
|
1095
|
+
return res.del == navIndex;
|
|
1096
|
+
}
|
|
1091
1097
|
}),
|
|
1092
1098
|
scroll: {
|
|
1093
1099
|
y: window.innerHeight - 380
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.0.0-zhongyuan.
|
|
3
|
+
"version": "2.0.0-zhongyuan.38",
|
|
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": "
|
|
70
|
+
"gitHead": "318b607984cc23edfa0b881ba5116de2d0d1cabb",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|