@vtx/modals2 5.0.24 → 5.0.26
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/lib/index.js +2 -1
- package/lib/vtx-car-modal/api.js +241 -1
- package/lib/vtx-car-modal/components/Info/index.js +34 -9
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +276 -0
- package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +155 -0
- package/lib/vtx-car-modal/content/Jzlj/Alarm/index.less +34 -0
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +256 -0
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.less +20 -0
- package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +99 -0
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +357 -0
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.less +57 -0
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +77 -0
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +282 -0
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.less +53 -0
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +175 -0
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.less +12 -0
- package/lib/vtx-car-modal/content/Jzlj/index.js +12 -0
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +1 -0
- package/lib/vtx-car-modal/content/index.js +2 -1
- package/lib/vtx-car-modal/imgs/jzlj/pjrcc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/jzlj/pjrcc_light.png +0 -0
- package/lib/vtx-car-modal/imgs/jzlj/pjryl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/jzlj/pjryl_light.png +0 -0
- package/lib/vtx-car-modal/imgs/jzlj/rl_lds_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/jzlj/rl_lds_light.png +0 -0
- package/lib/vtx-car-modal/imgs/jzlj/rl_yl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/jzlj/rl_yl_light.png +0 -0
- package/lib/vtx-car-modal/index.js +65 -9
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +1 -1
- package/lib/vtx-jzlj-ysqy-modal/api.js +37 -0
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +79 -0
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.less +17 -0
- package/lib/vtx-jzlj-ysqy-modal/components/index.js +2 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-ysqy-modal/index.js +72 -0
- package/lib/vtx-jzlj-ysqy-modal/style/index.js +1 -0
- package/lib/vtx-jzlj-ysqy-modal/style/index.less +1 -0
- package/lib/vtx-shxq-modal/api.js +2 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -22,4 +22,5 @@ export { default as VtxZfModal } from "./vtx-zf-modal";
|
|
|
22
22
|
// 建筑垃圾产品弹窗
|
|
23
23
|
export { default as VtxJzljGcxmModal } from "./vtx-jzlj-gcxm-modal"; // 建筑垃圾-工程项目
|
|
24
24
|
export { default as VtxJzljXncModal } from "./vtx-jzlj-xnc-modal"; // 建筑垃圾-消纳场
|
|
25
|
-
export { default as VtxJzljDfTpdModal } from "./vtx-jzlj-df-tpd-modal"; // 建筑垃圾-处置场/调配点
|
|
25
|
+
export { default as VtxJzljDfTpdModal } from "./vtx-jzlj-df-tpd-modal"; // 建筑垃圾-处置场/调配点
|
|
26
|
+
export { default as VtxJzljYsqyModal } from "./vtx-jzlj-ysqy-modal"; // 建筑垃圾-运输企业
|
package/lib/vtx-car-modal/api.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["carCode", "page", "size"],
|
|
3
|
+
_excluded2 = ["id", "page", "size"],
|
|
4
|
+
_excluded3 = ["carId", "stepThreeOperateTimeLeft", "stepThreeOperateTimeRight", "page", "size"],
|
|
5
|
+
_excluded4 = ["carId", "startDate", "endDate"];
|
|
6
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
7
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -1024,4 +1030,238 @@ export var carIdentityMap = new Map([['innerCode', '自编号'], ['carCode', '
|
|
|
1024
1030
|
['photoTwoIds', '图片']]);
|
|
1025
1031
|
export var carConfigMap = new Map([['carLabel', '车辆厂牌'], ['productionDate', '出厂日期'], ['productionPlace', '出厂地'], ['ownWeight', '自有重量(T)'], ['curbWeight', '整备质量(Kg)'], ['regulationWeight', '核定载质量(Kg)'], ['carUseWayName', '车辆用途'], ['carPropertyName', '车辆性质'], ['carAttrOneName', '车辆属性1'], ['carAttrTwoName', '车辆属性2'], ['regulationPerson', '核定载员(人)'], ['carWorkingWidth', '车辆作业宽度(米)'], ['driveLicensePhotoIds', '行驶证照片']]);
|
|
1026
1032
|
export var carAuditMap = new Map([['annualReviewDate', '年审日期'], ['maturityDate', '到期日期'], ['annualAuditFee', '年审费用(元)']]);
|
|
1027
|
-
export var carSYMap = new Map([['matchingMethodStr', '匹配方式'], ['productTypeName', '垃圾类型'], ['collectMethodStr', '收运方式'], ['collectModeName', '收运模式'], ['taskGenerationMethodStr', '任务生成方式']]);
|
|
1033
|
+
export var carSYMap = new Map([['matchingMethodStr', '匹配方式'], ['productTypeName', '垃圾类型'], ['collectMethodStr', '收运方式'], ['collectModeName', '收运模式'], ['taskGenerationMethodStr', '任务生成方式']]);
|
|
1034
|
+
|
|
1035
|
+
// 建筑垃圾车辆
|
|
1036
|
+
export var JzljService = {
|
|
1037
|
+
// 总览其他信息:二维码、生效中处置证、联单、报警
|
|
1038
|
+
useZlOtherInfo: function useZlOtherInfo(_ref22) {
|
|
1039
|
+
var id = _ref22.id,
|
|
1040
|
+
startDate = _ref22.startDate,
|
|
1041
|
+
endDate = _ref22.endDate,
|
|
1042
|
+
url = _ref22.url;
|
|
1043
|
+
var _useRequest43 = useRequest(function () {
|
|
1044
|
+
return http.get("".concat(prefix, "/cloud/jzlj/web/api/gis/real/time/carBaseInfo"), {
|
|
1045
|
+
body: {
|
|
1046
|
+
id: id,
|
|
1047
|
+
startDate: startDate,
|
|
1048
|
+
endDate: endDate,
|
|
1049
|
+
url: url
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
}, {
|
|
1053
|
+
refreshDeps: [id, startDate, endDate, url]
|
|
1054
|
+
}),
|
|
1055
|
+
zlOtherInfoRes = _useRequest43.data;
|
|
1056
|
+
return {
|
|
1057
|
+
zlOtherInfoData: (zlOtherInfoRes === null || zlOtherInfoRes === void 0 ? void 0 : zlOtherInfoRes.data) || {}
|
|
1058
|
+
};
|
|
1059
|
+
},
|
|
1060
|
+
// 运行信息
|
|
1061
|
+
useDailyCarRun: function useDailyCarRun(_ref23) {
|
|
1062
|
+
var _dailyCarRunRes$data, _dailyCarRunRes$data2;
|
|
1063
|
+
var id = _ref23.id,
|
|
1064
|
+
startDate = _ref23.startDate,
|
|
1065
|
+
endDate = _ref23.endDate;
|
|
1066
|
+
var _useRequest44 = useRequest(function () {
|
|
1067
|
+
return http.get("".concat(prefix, "/cloud/gps-reborn/report/dailyCarRun/list"), {
|
|
1068
|
+
body: {
|
|
1069
|
+
carIds: id,
|
|
1070
|
+
reportDateStart: startDate,
|
|
1071
|
+
reportDateEnd: endDate
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
}, {
|
|
1075
|
+
refreshDeps: [id, startDate, endDate]
|
|
1076
|
+
}),
|
|
1077
|
+
dailyCarRunRes = _useRequest44.data;
|
|
1078
|
+
return {
|
|
1079
|
+
dailyCarRunData: dailyCarRunRes !== null && dailyCarRunRes !== void 0 && (_dailyCarRunRes$data = dailyCarRunRes.data) !== null && _dailyCarRunRes$data !== void 0 && _dailyCarRunRes$data.length ? (dailyCarRunRes === null || dailyCarRunRes === void 0 || (_dailyCarRunRes$data2 = dailyCarRunRes.data) === null || _dailyCarRunRes$data2 === void 0 ? void 0 : _dailyCarRunRes$data2[0]) || {} : {}
|
|
1080
|
+
};
|
|
1081
|
+
},
|
|
1082
|
+
// 近7天运行分析
|
|
1083
|
+
useYxfx: function useYxfx(_ref24) {
|
|
1084
|
+
var id = _ref24.id,
|
|
1085
|
+
startDate = _ref24.startDate,
|
|
1086
|
+
endDate = _ref24.endDate;
|
|
1087
|
+
var _useRequest45 = useRequest(function () {
|
|
1088
|
+
return http.get("".concat(prefix, "/cloud/jzlj/web/dz/kanban/carWorkAnalyse"), {
|
|
1089
|
+
body: {
|
|
1090
|
+
id: id,
|
|
1091
|
+
startDate: startDate,
|
|
1092
|
+
endDate: endDate
|
|
1093
|
+
}
|
|
1094
|
+
});
|
|
1095
|
+
}, {
|
|
1096
|
+
refreshDeps: [id, startDate, endDate]
|
|
1097
|
+
}),
|
|
1098
|
+
yxfxRes = _useRequest45.data,
|
|
1099
|
+
loading = _useRequest45.loading;
|
|
1100
|
+
return {
|
|
1101
|
+
yxfxData: (yxfxRes === null || yxfxRes === void 0 ? void 0 : yxfxRes.data) || [],
|
|
1102
|
+
loading: loading
|
|
1103
|
+
};
|
|
1104
|
+
},
|
|
1105
|
+
// 处置证信息-分页
|
|
1106
|
+
czzPage: function czzPage(_ref25) {
|
|
1107
|
+
var carCode = _ref25.carCode,
|
|
1108
|
+
page = _ref25.page,
|
|
1109
|
+
size = _ref25.size,
|
|
1110
|
+
restParams = _objectWithoutProperties(_ref25, _excluded);
|
|
1111
|
+
return http.get("/cloud/jzlj/web/api/disposal/certificate/info/page", {
|
|
1112
|
+
body: _objectSpread({
|
|
1113
|
+
page: page,
|
|
1114
|
+
size: size,
|
|
1115
|
+
effectiveCarCode: carCode
|
|
1116
|
+
}, restParams)
|
|
1117
|
+
});
|
|
1118
|
+
},
|
|
1119
|
+
// 处置证信息-饼图
|
|
1120
|
+
czzPie: function czzPie(_ref26) {
|
|
1121
|
+
var id = _ref26.id,
|
|
1122
|
+
page = _ref26.page,
|
|
1123
|
+
size = _ref26.size,
|
|
1124
|
+
restParams = _objectWithoutProperties(_ref26, _excluded2);
|
|
1125
|
+
return http.get("/cloud/jzlj//web/api/gis/real/time/carCzzPieChart", {
|
|
1126
|
+
body: _objectSpread({
|
|
1127
|
+
page: page,
|
|
1128
|
+
size: size,
|
|
1129
|
+
id: id
|
|
1130
|
+
}, restParams)
|
|
1131
|
+
});
|
|
1132
|
+
},
|
|
1133
|
+
// 建筑垃圾枚举
|
|
1134
|
+
fetchJzljEnum: function fetchJzljEnum(enumName) {
|
|
1135
|
+
var _useRequest46 = useRequest(function () {
|
|
1136
|
+
return http.get("/cloud/jzlj/common/loadEnumValue", {
|
|
1137
|
+
body: {
|
|
1138
|
+
enumName: enumName
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}, {
|
|
1142
|
+
refreshDeps: [enumName]
|
|
1143
|
+
}),
|
|
1144
|
+
_useRequest46$data = _useRequest46.data,
|
|
1145
|
+
data = _useRequest46$data === void 0 ? {} : _useRequest46$data;
|
|
1146
|
+
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
1147
|
+
},
|
|
1148
|
+
// 联单-分页
|
|
1149
|
+
ldPage: function ldPage(_ref27) {
|
|
1150
|
+
var carId = _ref27.carId,
|
|
1151
|
+
stepThreeOperateTimeLeft = _ref27.stepThreeOperateTimeLeft,
|
|
1152
|
+
stepThreeOperateTimeRight = _ref27.stepThreeOperateTimeRight,
|
|
1153
|
+
page = _ref27.page,
|
|
1154
|
+
size = _ref27.size,
|
|
1155
|
+
restParams = _objectWithoutProperties(_ref27, _excluded3);
|
|
1156
|
+
return http.get("/cloud/jzlj/web/api/car/transport/joint/order/record/page", {
|
|
1157
|
+
body: _objectSpread({
|
|
1158
|
+
page: page,
|
|
1159
|
+
size: size,
|
|
1160
|
+
carId: carId,
|
|
1161
|
+
stepThreeOperateTimeLeft: stepThreeOperateTimeLeft,
|
|
1162
|
+
stepThreeOperateTimeRight: stepThreeOperateTimeRight
|
|
1163
|
+
}, restParams)
|
|
1164
|
+
});
|
|
1165
|
+
},
|
|
1166
|
+
ldChart: function ldChart(_ref28) {
|
|
1167
|
+
var id = _ref28.id,
|
|
1168
|
+
startDate = _ref28.startDate,
|
|
1169
|
+
endDate = _ref28.endDate;
|
|
1170
|
+
return http.get("".concat(prefix, "/cloud/jzlj/web/dz/kanban/carWorkAnalyse"), {
|
|
1171
|
+
body: {
|
|
1172
|
+
id: id,
|
|
1173
|
+
startDate: startDate,
|
|
1174
|
+
endDate: endDate
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
},
|
|
1178
|
+
// 联单-统计
|
|
1179
|
+
ldTotal: function ldTotal(_ref29) {
|
|
1180
|
+
var carId = _ref29.carId,
|
|
1181
|
+
startDate = _ref29.startDate,
|
|
1182
|
+
endDate = _ref29.endDate,
|
|
1183
|
+
restParams = _objectWithoutProperties(_ref29, _excluded4);
|
|
1184
|
+
return http.get("/cloud/jzlj/web/api/gis/real/time/jcssJzJointOrderSummaryStatistics", {
|
|
1185
|
+
body: _objectSpread({
|
|
1186
|
+
carId: carId,
|
|
1187
|
+
stepThreeOperateTimeLeft: startDate + ' 00:00:00',
|
|
1188
|
+
stepThreeOperateTimeRight: endDate + ' 23:59:59'
|
|
1189
|
+
}, restParams)
|
|
1190
|
+
});
|
|
1191
|
+
},
|
|
1192
|
+
page_tccs: function page_tccs(_ref30) {
|
|
1193
|
+
var id = _ref30.id,
|
|
1194
|
+
startTime = _ref30.startTime,
|
|
1195
|
+
endTime = _ref30.endTime,
|
|
1196
|
+
page = _ref30.page,
|
|
1197
|
+
size = _ref30.size;
|
|
1198
|
+
return http.get("/cloud/jzlj/web/api/car/parking/timeout/alarm/job/page", {
|
|
1199
|
+
body: {
|
|
1200
|
+
page: page,
|
|
1201
|
+
size: size,
|
|
1202
|
+
carId: id,
|
|
1203
|
+
alarmTimeLeft: startTime,
|
|
1204
|
+
alarmTimeRight: endTime
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
},
|
|
1208
|
+
page_lxpl: function page_lxpl(_ref31) {
|
|
1209
|
+
var id = _ref31.id,
|
|
1210
|
+
startTime = _ref31.startTime,
|
|
1211
|
+
endTime = _ref31.endTime,
|
|
1212
|
+
page = _ref31.page,
|
|
1213
|
+
size = _ref31.size;
|
|
1214
|
+
return http.get("/cloud/jzlj/web/api/car/route/deviation/alarm/job/page", {
|
|
1215
|
+
body: {
|
|
1216
|
+
page: page,
|
|
1217
|
+
size: size,
|
|
1218
|
+
carId: id,
|
|
1219
|
+
alarmTimeLeft: startTime,
|
|
1220
|
+
alarmTimeRight: endTime
|
|
1221
|
+
}
|
|
1222
|
+
});
|
|
1223
|
+
},
|
|
1224
|
+
// 报警汇总-饼图
|
|
1225
|
+
useAlarmSummary: function useAlarmSummary(_ref32) {
|
|
1226
|
+
var carId = _ref32.carId,
|
|
1227
|
+
startDate = _ref32.startDate,
|
|
1228
|
+
endDate = _ref32.endDate;
|
|
1229
|
+
var _useRequest47 = useRequest(function () {
|
|
1230
|
+
return http.get("/cloud/jzlj/web/dz/kanban/carAlarmTypeCountSummaryInfo", {
|
|
1231
|
+
body: {
|
|
1232
|
+
carId: carId,
|
|
1233
|
+
startDate: startDate,
|
|
1234
|
+
endDate: endDate,
|
|
1235
|
+
alarmTypes: 'parkingTimeout,routeDeviation'
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
}, {
|
|
1239
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1240
|
+
}),
|
|
1241
|
+
alarmSummaryRes = _useRequest47.data;
|
|
1242
|
+
return {
|
|
1243
|
+
alarmSummaryData: (alarmSummaryRes === null || alarmSummaryRes === void 0 ? void 0 : alarmSummaryRes.data) || {}
|
|
1244
|
+
};
|
|
1245
|
+
},
|
|
1246
|
+
// 报警趋势-折线图
|
|
1247
|
+
useAlarmTrend: function useAlarmTrend(_ref33) {
|
|
1248
|
+
var id = _ref33.id,
|
|
1249
|
+
startDate = _ref33.startDate,
|
|
1250
|
+
endDate = _ref33.endDate;
|
|
1251
|
+
var _useRequest48 = useRequest(function () {
|
|
1252
|
+
return http.get("/cloud/jzlj/web/api/gis/real/time/carOrderAlarmAnalyse", {
|
|
1253
|
+
body: {
|
|
1254
|
+
id: id,
|
|
1255
|
+
startDate: startDate,
|
|
1256
|
+
endDate: endDate
|
|
1257
|
+
}
|
|
1258
|
+
});
|
|
1259
|
+
}, {
|
|
1260
|
+
refreshDeps: [id, startDate, endDate]
|
|
1261
|
+
}),
|
|
1262
|
+
alarmTrendRes = _useRequest48.data;
|
|
1263
|
+
return {
|
|
1264
|
+
alarmTrendData: (alarmTrendRes === null || alarmTrendRes === void 0 ? void 0 : alarmTrendRes.data) || []
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
2
6
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
7
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -24,8 +28,14 @@ import speedIcon from "../../imgs/factor/speed.png";
|
|
|
24
28
|
import { CarContext } from "../../index";
|
|
25
29
|
import "./index.less";
|
|
26
30
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
var Info = function Info() {
|
|
31
|
+
var Info = function Info(_ref) {
|
|
28
32
|
var _info$geoLocation;
|
|
33
|
+
var _ref$showQrCode = _ref.showQrCode,
|
|
34
|
+
showQrCode = _ref$showQrCode === void 0 ? false : _ref$showQrCode,
|
|
35
|
+
_ref$extraList = _ref.extraList,
|
|
36
|
+
extraList = _ref$extraList === void 0 ? [] : _ref$extraList,
|
|
37
|
+
_ref$showListImg = _ref.showListImg,
|
|
38
|
+
showListImg = _ref$showListImg === void 0 ? true : _ref$showListImg;
|
|
29
39
|
var _useContext = useContext(CarContext),
|
|
30
40
|
info = _useContext.info,
|
|
31
41
|
detail = _useContext.detail,
|
|
@@ -48,6 +58,10 @@ var Info = function Info() {
|
|
|
48
58
|
key: 'contact'
|
|
49
59
|
}, {
|
|
50
60
|
key: 'contactWay'
|
|
61
|
+
}, {
|
|
62
|
+
key: 'invoiceCode'
|
|
63
|
+
}, {
|
|
64
|
+
key: 'certificateCode'
|
|
51
65
|
}, {
|
|
52
66
|
key: 'drivingLicenseCode'
|
|
53
67
|
}].filter(function (item) {
|
|
@@ -60,10 +74,18 @@ var Info = function Info() {
|
|
|
60
74
|
value: detail === null || detail === void 0 ? void 0 : detail[item.key]
|
|
61
75
|
});
|
|
62
76
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
77
|
+
if (showQrCode) {
|
|
78
|
+
data.push({
|
|
79
|
+
label: '车辆二维码',
|
|
80
|
+
key: 'qrCode',
|
|
81
|
+
value: detail.qrCode,
|
|
82
|
+
componentType: 'qrCode'
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
var _ref2 = info !== null && info !== void 0 && (_info$geoLocation = info.geoLocation) !== null && _info$geoLocation !== void 0 && _info$geoLocation.lngLats ? info.geoLocation.lngLats.split(',') : [],
|
|
86
|
+
_ref3 = _slicedToArray(_ref2, 2),
|
|
87
|
+
lng = _ref3[0],
|
|
88
|
+
lat = _ref3[1];
|
|
67
89
|
var mapPoints = lng && lat ? [{
|
|
68
90
|
lng: lng,
|
|
69
91
|
lat: lat,
|
|
@@ -76,15 +98,15 @@ var Info = function Info() {
|
|
|
76
98
|
name: '今日行驶',
|
|
77
99
|
unit: 'km',
|
|
78
100
|
value: (info === null || info === void 0 ? void 0 : info.mileage) || 0,
|
|
79
|
-
img: isDark ? darkRunIcon : runIcon,
|
|
101
|
+
img: showListImg ? isDark ? darkRunIcon : runIcon : null,
|
|
80
102
|
fontType: 'blue'
|
|
81
103
|
}, {
|
|
82
104
|
name: '当前速度',
|
|
83
105
|
unit: 'km/h',
|
|
84
106
|
value: (info === null || info === void 0 ? void 0 : info.gpsSpeed) || 0,
|
|
85
|
-
img: isDark ? darkSpeedIcon : speedIcon,
|
|
107
|
+
img: showListImg ? isDark ? darkSpeedIcon : speedIcon : null,
|
|
86
108
|
fontType: 'blue'
|
|
87
|
-
}];
|
|
109
|
+
}].concat(_toConsumableArray(extraList));
|
|
88
110
|
return /*#__PURE__*/_jsx(Col, {
|
|
89
111
|
flex: '400px',
|
|
90
112
|
style: {
|
|
@@ -101,7 +123,10 @@ var Info = function Info() {
|
|
|
101
123
|
}), (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(Unmanned.Monitor, {
|
|
102
124
|
carId: id
|
|
103
125
|
}) : /*#__PURE__*/_jsx(VmFactorList, {
|
|
104
|
-
list: list
|
|
126
|
+
list: list,
|
|
127
|
+
style: {
|
|
128
|
+
justifyContent: 'space-around'
|
|
129
|
+
}
|
|
105
130
|
}), /*#__PURE__*/_jsx("div", {
|
|
106
131
|
className: 'vm-car-map-wrap',
|
|
107
132
|
children: /*#__PURE__*/_jsx(VmMap, {
|
|
@@ -10,7 +10,7 @@ import * as echarts from 'echarts';
|
|
|
10
10
|
import { useContext, useState } from 'react';
|
|
11
11
|
import { VmBarCharts, VmFactor, VmLineCharts, VmWrapper } from "../../../../_components";
|
|
12
12
|
import useSettings from "../../../../_hooks/useSettings";
|
|
13
|
-
import { secondToFormatTime, secondToFormatTimeArray } from "../../../../_util";
|
|
13
|
+
import { secondToFormatTime, secondToFormatTimeArray, transformRgb } from "../../../../_util";
|
|
14
14
|
import { BaseService } from "../../../api";
|
|
15
15
|
import Info from "../../../components/Info";
|
|
16
16
|
import darkDurationIcon from "../../../imgs/factor/dark_duration.png";
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useAntdTable } from 'ahooks';
|
|
14
|
+
import dayjs from 'dayjs';
|
|
15
|
+
import { useEffect, useState } from 'react';
|
|
16
|
+
import { VmFilter, VmTable, VmWrapper } from "../../../../_components";
|
|
17
|
+
import { JzljService } from "../../../api";
|
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
export default function Bottom(_ref) {
|
|
20
|
+
var id = _ref.id,
|
|
21
|
+
alarmTypeList = _ref.alarmTypeList,
|
|
22
|
+
alarmType = _ref.alarmType,
|
|
23
|
+
startDate = _ref.startDate,
|
|
24
|
+
endDate = _ref.endDate,
|
|
25
|
+
setIframeModalInfo = _ref.setIframeModalInfo;
|
|
26
|
+
var _useState = useState(alarmType),
|
|
27
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
+
tabKey = _useState2[0],
|
|
29
|
+
setTabKey = _useState2[1];
|
|
30
|
+
useEffect(function () {
|
|
31
|
+
if (alarmType === 'all') {
|
|
32
|
+
setTabKey('parkingTimeout');
|
|
33
|
+
} else {
|
|
34
|
+
setTabKey(alarmType);
|
|
35
|
+
}
|
|
36
|
+
}, [alarmType]);
|
|
37
|
+
useEffect(function () {
|
|
38
|
+
submit();
|
|
39
|
+
}, [tabKey, startDate, endDate]);
|
|
40
|
+
var columns_tccs = [['运输单位', 'transportUnitName', {
|
|
41
|
+
width: 150,
|
|
42
|
+
ellipsis: true
|
|
43
|
+
}], ['行政区划', 'divisionName', {
|
|
44
|
+
width: 150
|
|
45
|
+
}], ['报警开始时间', 'alarmStartTime', {
|
|
46
|
+
width: 180
|
|
47
|
+
}], ['报警结束时间', 'alarmEndTime', {
|
|
48
|
+
width: 180
|
|
49
|
+
}], ['停车时长', 'parkingDurationStr', {
|
|
50
|
+
width: 180
|
|
51
|
+
}], ['处置状态', 'processStatusChs', {
|
|
52
|
+
width: 100,
|
|
53
|
+
render: function render(text, record) {
|
|
54
|
+
return text ? /*#__PURE__*/_jsx("span", {
|
|
55
|
+
style: {
|
|
56
|
+
color: record !== null && record !== void 0 && record.processStatus ? '#52c41a' : '#f5222d'
|
|
57
|
+
},
|
|
58
|
+
children: text
|
|
59
|
+
}) : '-';
|
|
60
|
+
}
|
|
61
|
+
}], ['处置结果', 'processResultChs', {
|
|
62
|
+
width: 120,
|
|
63
|
+
render: function render(text, record) {
|
|
64
|
+
return text ? /*#__PURE__*/_jsx("span", {
|
|
65
|
+
style: {
|
|
66
|
+
color: (record === null || record === void 0 ? void 0 : record.processResult) == 'yx' ? '#52c41a' : '#f5222d'
|
|
67
|
+
},
|
|
68
|
+
children: text
|
|
69
|
+
}) : '-';
|
|
70
|
+
}
|
|
71
|
+
}], ['操作', 'action', {
|
|
72
|
+
width: 60,
|
|
73
|
+
fixed: 'right',
|
|
74
|
+
render: function render(_text, record) {
|
|
75
|
+
return /*#__PURE__*/_jsx("a", {
|
|
76
|
+
onClick: function onClick() {
|
|
77
|
+
setIframeModalInfo({
|
|
78
|
+
visible: true,
|
|
79
|
+
title: '停车超时',
|
|
80
|
+
src: "/jzlj/#/intelligentWarmAnalysis?activeKey=OverTime&id=".concat(record.id, "&carId=").concat(record.carId, "&startTime=").concat(record.alarmStartTime, "&endTime=").concat(record.alarmEndTime)
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
children: "\u67E5\u770B"
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}]];
|
|
87
|
+
var columns_lxpl = [['行政区划', 'divisionName', {
|
|
88
|
+
width: 150
|
|
89
|
+
}], ['运输起点', 'startingPointName', {
|
|
90
|
+
width: 150,
|
|
91
|
+
ellipsis: true
|
|
92
|
+
}], ['运输终点', 'endingPointName', {
|
|
93
|
+
width: 150,
|
|
94
|
+
ellipsis: true
|
|
95
|
+
}], ['报警开始时间', 'alarmStartTime', {
|
|
96
|
+
width: 180
|
|
97
|
+
}], ['报警结束时间', 'alarmEndTime', {
|
|
98
|
+
width: 180
|
|
99
|
+
}], ['处置状态', 'processStatusChs', {
|
|
100
|
+
width: 150,
|
|
101
|
+
render: function render(text, record) {
|
|
102
|
+
return text ? /*#__PURE__*/_jsx("span", {
|
|
103
|
+
style: {
|
|
104
|
+
color: record !== null && record !== void 0 && record.processStatus ? '#52c41a' : '#f5222d'
|
|
105
|
+
},
|
|
106
|
+
children: text
|
|
107
|
+
}) : '-';
|
|
108
|
+
}
|
|
109
|
+
}], ['处置结果', 'processResultChs', {
|
|
110
|
+
width: 150,
|
|
111
|
+
render: function render(text, record) {
|
|
112
|
+
return text ? /*#__PURE__*/_jsx("span", {
|
|
113
|
+
style: {
|
|
114
|
+
color: (record === null || record === void 0 ? void 0 : record.processResult) == 'yx' ? '#52c41a' : '#f5222d'
|
|
115
|
+
},
|
|
116
|
+
children: text
|
|
117
|
+
}) : '-';
|
|
118
|
+
}
|
|
119
|
+
}], ['操作', 'action', {
|
|
120
|
+
width: 60,
|
|
121
|
+
fixed: 'right',
|
|
122
|
+
render: function render(_text, record) {
|
|
123
|
+
return /*#__PURE__*/_jsx("a", {
|
|
124
|
+
onClick: function onClick() {
|
|
125
|
+
setIframeModalInfo({
|
|
126
|
+
visible: true,
|
|
127
|
+
title: '路线偏移',
|
|
128
|
+
src: "/jzlj/#/intelligentWarmAnalysis?activeKey=RouteDeviation&id=".concat(record.id, "&carId=").concat(record.carId, "&startTime=").concat(record.alarmStartTime, "&endTime=").concat(record.alarmEndTime)
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
children: "\u67E5\u770B"
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}]];
|
|
135
|
+
var columns_ylyc = [['运输单位', 'transportUnitName', {
|
|
136
|
+
width: 180,
|
|
137
|
+
ellipsis: true
|
|
138
|
+
}], ['行政区划', 'divisionName', {
|
|
139
|
+
width: 150
|
|
140
|
+
}], ['运输起点', 'ysqdName', {
|
|
141
|
+
width: 180,
|
|
142
|
+
ellipsis: true
|
|
143
|
+
}], ['运输终点', 'yszdName', {
|
|
144
|
+
width: 180,
|
|
145
|
+
ellipsis: true
|
|
146
|
+
}], ['建筑垃圾类别', 'rubbishTypeChs', {
|
|
147
|
+
width: 150
|
|
148
|
+
}], ['核准有效期', 'effectiveDateRange', {
|
|
149
|
+
width: 200
|
|
150
|
+
}], ['报警生成时间', 'createTime', {
|
|
151
|
+
width: 200
|
|
152
|
+
}], ['核准量(吨)', 'declareTransportWeight', {
|
|
153
|
+
width: 130,
|
|
154
|
+
align: 'right',
|
|
155
|
+
sorter: true
|
|
156
|
+
}], ['实际运量(吨)', 'actualTransportWeight', {
|
|
157
|
+
width: 130,
|
|
158
|
+
align: 'right',
|
|
159
|
+
sorter: true
|
|
160
|
+
}], ['偏差比', 'offsetStr', {
|
|
161
|
+
width: 180,
|
|
162
|
+
align: 'right',
|
|
163
|
+
sorter: true,
|
|
164
|
+
render: function render(text, record) {
|
|
165
|
+
return text ? /*#__PURE__*/_jsx("span", {
|
|
166
|
+
style: {
|
|
167
|
+
color: record.offset > 0 ? '#52c41a' : '#f5222d'
|
|
168
|
+
},
|
|
169
|
+
children: text
|
|
170
|
+
}) : '-';
|
|
171
|
+
}
|
|
172
|
+
}], ['处置状态', 'processStatusChs', {
|
|
173
|
+
width: 150,
|
|
174
|
+
render: function render(text, record) {
|
|
175
|
+
return text ? /*#__PURE__*/_jsx("span", {
|
|
176
|
+
style: {
|
|
177
|
+
color: record !== null && record !== void 0 && record.processStatus ? '#52c41a' : '#f5222d'
|
|
178
|
+
},
|
|
179
|
+
children: text
|
|
180
|
+
}) : '-';
|
|
181
|
+
}
|
|
182
|
+
}], ['处置结果', 'processResultChs', {
|
|
183
|
+
width: 150,
|
|
184
|
+
render: function render(text, record) {
|
|
185
|
+
return text ? /*#__PURE__*/_jsx("span", {
|
|
186
|
+
style: {
|
|
187
|
+
color: (record === null || record === void 0 ? void 0 : record.processResult) == 'yx' ? '#52c41a' : '#f5222d'
|
|
188
|
+
},
|
|
189
|
+
children: text
|
|
190
|
+
}) : '-';
|
|
191
|
+
}
|
|
192
|
+
}], ['操作', 'action', {
|
|
193
|
+
width: 60,
|
|
194
|
+
fixed: 'right',
|
|
195
|
+
render: function render(_text, record) {
|
|
196
|
+
return /*#__PURE__*/_jsx("a", {
|
|
197
|
+
onClick: function onClick() {
|
|
198
|
+
setIframeModalInfo({
|
|
199
|
+
visible: true,
|
|
200
|
+
title: '运量异常',
|
|
201
|
+
src: "/jzlj/#/intelligentWarmAnalysis?activeKey=TransparentAlarm&id=".concat(record.id, "&carId=").concat(record.carId, "&startTime=").concat(record.alarmStartTime, "&endTime=").concat(record.alarmEndTime)
|
|
202
|
+
});
|
|
203
|
+
},
|
|
204
|
+
children: "\u67E5\u770B"
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}]];
|
|
208
|
+
var columns = (tabKey === 'parkingTimeout' ? columns_tccs : tabKey === 'routeDeviation' ? columns_lxpl : tabKey === 'transportAbnormal' ? columns_ylyc : columns_tccs).map(function (item) {
|
|
209
|
+
return _objectSpread({
|
|
210
|
+
title: item[0],
|
|
211
|
+
dataIndex: item[1],
|
|
212
|
+
key: item[1]
|
|
213
|
+
}, item[2]);
|
|
214
|
+
});
|
|
215
|
+
var getTableData = function getTableData(_ref2) {
|
|
216
|
+
var current = _ref2.current,
|
|
217
|
+
pageSize = _ref2.pageSize;
|
|
218
|
+
var method = tabKey === 'parkingTimeout' ? JzljService.page_tccs : tabKey === 'routeDeviation' ? JzljService.page_lxpl : JzljService.page_tccs;
|
|
219
|
+
if (!method) {
|
|
220
|
+
return {
|
|
221
|
+
total: 0,
|
|
222
|
+
list: []
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
return method({
|
|
226
|
+
id: id,
|
|
227
|
+
startTime: dayjs(startDate).format('YYYY-MM-DD 00:00:00'),
|
|
228
|
+
endTime: dayjs(endDate).format('YYYY-MM-DD 23:59:59'),
|
|
229
|
+
page: current - 1,
|
|
230
|
+
// size: pageSize,
|
|
231
|
+
size: 9999
|
|
232
|
+
}).then(function (res) {
|
|
233
|
+
var _res$data, _res$data2;
|
|
234
|
+
return {
|
|
235
|
+
total: (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.total) || 0,
|
|
236
|
+
list: (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.rows) || []
|
|
237
|
+
};
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
var _useAntdTable = useAntdTable(getTableData, {
|
|
241
|
+
defaultPageSize: 10
|
|
242
|
+
}),
|
|
243
|
+
tableProps = _useAntdTable.tableProps,
|
|
244
|
+
search = _useAntdTable.search;
|
|
245
|
+
var submit = search.submit,
|
|
246
|
+
reset = search.reset;
|
|
247
|
+
var myTableProps = _objectSpread(_objectSpread({}, tableProps), {}, {
|
|
248
|
+
rowKey: 'id',
|
|
249
|
+
columns: columns,
|
|
250
|
+
indexFixed: true,
|
|
251
|
+
pagination: false
|
|
252
|
+
});
|
|
253
|
+
return /*#__PURE__*/_jsx(VmWrapper, {
|
|
254
|
+
title: "\u62A5\u8B66\u660E\u7EC6",
|
|
255
|
+
extraLeft: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
256
|
+
options: alarmTypeList.filter(function (item) {
|
|
257
|
+
return item.value !== 'all';
|
|
258
|
+
}).map(function (item) {
|
|
259
|
+
return {
|
|
260
|
+
value: item.value,
|
|
261
|
+
label: item.text
|
|
262
|
+
};
|
|
263
|
+
}),
|
|
264
|
+
style: {
|
|
265
|
+
width: 120
|
|
266
|
+
},
|
|
267
|
+
placeholder: "\u62A5\u8B66\u7C7B\u578B",
|
|
268
|
+
value: tabKey,
|
|
269
|
+
allowClear: false,
|
|
270
|
+
onChange: function onChange(val) {
|
|
271
|
+
setTabKey(val);
|
|
272
|
+
}
|
|
273
|
+
}),
|
|
274
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({}, myTableProps))
|
|
275
|
+
});
|
|
276
|
+
}
|