@vtx/modals2 6.0.0-beta.0 → 6.0.0-beta.10
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/_components/index.js +1 -0
- package/lib/_components/vm-appraisal-info/api.js +55 -0
- package/lib/_components/vm-appraisal-info/imgs/count.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/count_light.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract_light.png +0 -0
- package/lib/_components/vm-appraisal-info/index.js +230 -0
- package/lib/_components/vm-appraisal-info/index.less +7 -0
- package/lib/_components/vm-calendar/index.js +3 -4
- package/lib/_components/vm-factor/index.js +2 -1
- package/lib/_components/vm-filter/index.js +8 -8
- package/lib/_components/vm-filter/style/index.less +7 -11
- package/lib/_components/vm-info-collection/index.js +3 -2
- package/lib/_components/vm-line-charts/index.js +4 -1
- package/lib/_components/vm-progress/index.js +2 -1
- package/lib/_components/vm-repair-maintain/index.js +34 -2
- package/lib/_components/vm-table/index.js +3 -3
- package/lib/_components/vm-tag/index.js +2 -1
- package/lib/_components/vm-title/index.js +2 -1
- package/lib/_components/vm-video/HistoryGrid.js +53 -3
- package/lib/_components/vm-video/RealtimeGrid.js +24 -3
- package/lib/_components/vm-video/index.js +99 -37
- package/lib/_components/vm-video/index.less +18 -14
- package/lib/_components/vm-wrapper/index.js +1 -1
- package/lib/_components/vm-wrapper/style/index.less +4 -2
- package/lib/_hooks/useGetChannels.js +20 -6
- package/lib/_service/index.js +7 -33
- package/lib/_util/http.js +32 -5
- package/lib/_util/index.js +6 -5
- package/lib/hooks/useTranslation.js +21 -23
- package/lib/locales/en.json +140 -1
- package/lib/locales/zh-CN.json +142 -3
- package/lib/vtx-base-modal/Tabs/index.js +2 -1
- package/lib/vtx-base-modal/index.js +2 -1
- package/lib/vtx-car-modal/api.js +415 -25
- package/lib/vtx-car-modal/components/Info/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/EleUse/index.js +218 -0
- package/lib/vtx-car-modal/content/Common/EleUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.js +230 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +376 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.js +201 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/index.js +9 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +2 -1
- package/lib/vtx-car-modal/imgs/czb_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/czb_bg_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +31 -9
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +2 -5
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +7 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +8 -4
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +2 -2
- package/lib/vtx-cp-modal/index.js +12 -12
- package/lib/vtx-default-modal/index.js +7 -6
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +2 -2
- package/lib/vtx-df-modal/index.js +7 -15
- package/lib/vtx-kh-modal/components/Record/index.js +1 -205
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +50 -33
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +3 -3
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +9 -1
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +8 -1
- package/lib/vtx-road-modal/index.js +6 -3
- package/lib/vtx-road-modal/utils/url.js +12 -0
- package/lib/vtx-shxq-modal/api.js +2 -2
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +2 -2
- package/lib/vtx-shxq-modal/index.js +21 -4
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +4 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-wr-modal/index.js +28 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +4 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +5 -4
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +12 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +10 -5
- package/lib/vtx-zzz-modal/index.js +28 -22
- package/package.json +6 -6
package/lib/_components/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { default as VmCalendar, VmCalendarInner, VmCalendarPercent } from "./vm-
|
|
|
3
3
|
export { default as VmCardStatistics } from "./vm-card-statistics";
|
|
4
4
|
export { default as VmCustom } from "./vm-custom";
|
|
5
5
|
export { default as VmEmpty } from "./vm-empty";
|
|
6
|
+
export { default as VmAppraisalInfo } from "./vm-appraisal-info";
|
|
6
7
|
export { default as VmExtraTab } from "./vm-extra-tab";
|
|
7
8
|
export { default as VmFactor } from "./vm-factor";
|
|
8
9
|
export { default as VmFactorList } from "./vm-factor-list";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { request } from '@vtx/utils';
|
|
2
|
+
import { useRequest } from 'ahooks';
|
|
3
|
+
var BaseService = {
|
|
4
|
+
useKhInfo: function useKhInfo(id, startDate, endDate, checkActivityCode) {
|
|
5
|
+
var _useRequest = useRequest(function () {
|
|
6
|
+
return request.get('/cloud/zykh-reborn/kanban/resourceInfo', {
|
|
7
|
+
data: {
|
|
8
|
+
resourceId: id,
|
|
9
|
+
coordType: 'wgs84',
|
|
10
|
+
startDate: startDate,
|
|
11
|
+
endDate: endDate,
|
|
12
|
+
checkActivityCode: checkActivityCode
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}, {
|
|
16
|
+
ready: !!id,
|
|
17
|
+
refreshDeps: [id, startDate, endDate, checkActivityCode]
|
|
18
|
+
}),
|
|
19
|
+
res = _useRequest.data;
|
|
20
|
+
return {
|
|
21
|
+
khRes: (res === null || res === void 0 ? void 0 : res.data) || {}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var ReocrdService = {
|
|
26
|
+
useRecordInfo: function useRecordInfo(id, startDate, endDate, checkActivityCode, page, sort) {
|
|
27
|
+
var _useRequest2 = useRequest(function () {
|
|
28
|
+
return request.get('/cloud/zykh-reborn/kanban/recordRulePage', {
|
|
29
|
+
data: {
|
|
30
|
+
resourceId: id,
|
|
31
|
+
startDate: startDate,
|
|
32
|
+
endDate: endDate,
|
|
33
|
+
checkActivityCode: checkActivityCode,
|
|
34
|
+
page: page,
|
|
35
|
+
size: 10,
|
|
36
|
+
sort: sort
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}, {
|
|
40
|
+
ready: !!id,
|
|
41
|
+
refreshDeps: [id, startDate, endDate, checkActivityCode, page, sort]
|
|
42
|
+
}),
|
|
43
|
+
recordRes = _useRequest2.data,
|
|
44
|
+
loading = _useRequest2.loading;
|
|
45
|
+
var records = (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {
|
|
46
|
+
total: 0,
|
|
47
|
+
rows: []
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
records: records,
|
|
51
|
+
loading: loading
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export { BaseService, ReocrdService };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,230 @@
|
|
|
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 _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; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12
|
+
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."); }
|
|
13
|
+
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); }
|
|
14
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
15
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
16
|
+
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; }
|
|
17
|
+
import { VtxImage } from '@vtx/components';
|
|
18
|
+
import { useSetState } from 'ahooks';
|
|
19
|
+
import dayjs from 'dayjs';
|
|
20
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
21
|
+
import useSettings from "../../_hooks/useSettings";
|
|
22
|
+
import VmFactor from "../vm-factor";
|
|
23
|
+
import VmFilter from "../vm-filter";
|
|
24
|
+
import VmTable from "../vm-table";
|
|
25
|
+
import VmWrapper from "../vm-wrapper";
|
|
26
|
+
import { BaseService, ReocrdService } from "./api";
|
|
27
|
+
import "./index.less";
|
|
28
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
export var APPRAISAL_TAB_KEY = 'appraisal';
|
|
30
|
+
export var getAppraisalTab = function getAppraisalTab() {
|
|
31
|
+
return {
|
|
32
|
+
key: APPRAISAL_TAB_KEY,
|
|
33
|
+
title: translateLocaleText("t('vtxwrmodal.assessmentInformation')")
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export var isAppraisalTab = function isAppraisalTab(tab) {
|
|
37
|
+
return (tab === null || tab === void 0 ? void 0 : tab.key) === APPRAISAL_TAB_KEY || "".concat((tab === null || tab === void 0 ? void 0 : tab.key) || '').endsWith('-appraisal');
|
|
38
|
+
};
|
|
39
|
+
export var insertAppraisalTab = function insertAppraisalTab() {
|
|
40
|
+
var tabs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
41
|
+
if (!Array.isArray(tabs) || tabs.length === 0) {
|
|
42
|
+
return tabs;
|
|
43
|
+
}
|
|
44
|
+
if (tabs.some(isAppraisalTab)) {
|
|
45
|
+
return tabs;
|
|
46
|
+
}
|
|
47
|
+
var customIndex = tabs.findIndex(function (tab) {
|
|
48
|
+
return !!(tab !== null && tab !== void 0 && tab.url);
|
|
49
|
+
});
|
|
50
|
+
if (customIndex === -1) {
|
|
51
|
+
return [].concat(_toConsumableArray(tabs), [getAppraisalTab()]);
|
|
52
|
+
}
|
|
53
|
+
return [].concat(_toConsumableArray(tabs.slice(0, customIndex)), [getAppraisalTab()], _toConsumableArray(tabs.slice(customIndex)));
|
|
54
|
+
};
|
|
55
|
+
var AppraisalInfo = function AppraisalInfo(props) {
|
|
56
|
+
var _useSettings = useSettings(),
|
|
57
|
+
isDark = _useSettings.isDark;
|
|
58
|
+
var id = props.id;
|
|
59
|
+
var _useSetState = useSetState({
|
|
60
|
+
pagination: {
|
|
61
|
+
current: 1,
|
|
62
|
+
pageSize: 10,
|
|
63
|
+
total: 0
|
|
64
|
+
},
|
|
65
|
+
startDate: dayjs().startOf('M'),
|
|
66
|
+
endDate: dayjs(),
|
|
67
|
+
checkActivityCode: '1',
|
|
68
|
+
sort: ''
|
|
69
|
+
}),
|
|
70
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
71
|
+
state = _useSetState2[0],
|
|
72
|
+
setState = _useSetState2[1];
|
|
73
|
+
var pagination = state.pagination,
|
|
74
|
+
startDate = state.startDate,
|
|
75
|
+
endDate = state.endDate,
|
|
76
|
+
checkActivityCode = state.checkActivityCode,
|
|
77
|
+
sort = state.sort;
|
|
78
|
+
var _BaseService$useKhInf = BaseService.useKhInfo(id, startDate.format('YYYY-MM-DD'), endDate.format('YYYY-MM-DD'), checkActivityCode === '1' ? '' : checkActivityCode),
|
|
79
|
+
khRes = _BaseService$useKhInf.khRes;
|
|
80
|
+
var _ReocrdService$useRec = ReocrdService.useRecordInfo(id, startDate.format('YYYY-MM-DD'), endDate.format('YYYY-MM-DD'), checkActivityCode === '1' ? '' : checkActivityCode, pagination.current - 1, sort),
|
|
81
|
+
records = _ReocrdService$useRec.records,
|
|
82
|
+
loading = _ReocrdService$useRec.loading;
|
|
83
|
+
var columns = [{
|
|
84
|
+
title: translateLocaleText("t('vtxkhmodal.image')"),
|
|
85
|
+
dataIndex: 'photos',
|
|
86
|
+
key: 'photos',
|
|
87
|
+
width: 120,
|
|
88
|
+
render: function render(text) {
|
|
89
|
+
var photos = JSON.parse(text || '[]');
|
|
90
|
+
var a = [].concat(_toConsumableArray(photos), _toConsumableArray(photos), _toConsumableArray(photos), _toConsumableArray(photos));
|
|
91
|
+
return (photos === null || photos === void 0 ? void 0 : photos.length) > 0 ? /*#__PURE__*/_jsx(VtxImage.PreviewGroup, {
|
|
92
|
+
children: a.map(function (ele, index) {
|
|
93
|
+
return /*#__PURE__*/_jsx(VtxImage, {
|
|
94
|
+
src: "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(ele.id),
|
|
95
|
+
style: {
|
|
96
|
+
width: 80,
|
|
97
|
+
height: 80,
|
|
98
|
+
visibility: index > 0 ? 'hidden' : 'visible'
|
|
99
|
+
},
|
|
100
|
+
alt: ele.name
|
|
101
|
+
}, index);
|
|
102
|
+
})
|
|
103
|
+
}) : '--';
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
title: translateLocaleText("t('vtxkhmodal.hours')"),
|
|
107
|
+
dataIndex: 'checkDate',
|
|
108
|
+
key: 'checkDate',
|
|
109
|
+
width: 150,
|
|
110
|
+
ellipsis: true
|
|
111
|
+
}, {
|
|
112
|
+
title: translateLocaleText("t('vtxkhmodal.assessmentActivity')"),
|
|
113
|
+
dataIndex: 'checkActivityName',
|
|
114
|
+
key: 'checkActivityName',
|
|
115
|
+
width: 200
|
|
116
|
+
}, {
|
|
117
|
+
title: translateLocaleText("t('vtxkhmodal.assessor')"),
|
|
118
|
+
dataIndex: 'checkUserName',
|
|
119
|
+
key: 'checkUserName'
|
|
120
|
+
}, {
|
|
121
|
+
title: translateLocaleText("t('vtxkhmodal.group')"),
|
|
122
|
+
dataIndex: 'ruleGroupName',
|
|
123
|
+
key: 'ruleGroupName'
|
|
124
|
+
}, {
|
|
125
|
+
title: translateLocaleText("t('vtxkhmodal.assessmentStandard')"),
|
|
126
|
+
dataIndex: 'ruleName',
|
|
127
|
+
key: 'ruleName',
|
|
128
|
+
width: 150
|
|
129
|
+
}, {
|
|
130
|
+
title: translateLocaleText("t('vtxkhmodal.score')"),
|
|
131
|
+
dataIndex: 'deductPoints',
|
|
132
|
+
key: 'deductPoints',
|
|
133
|
+
align: 'right'
|
|
134
|
+
}];
|
|
135
|
+
var pageChange = function pageChange(page) {
|
|
136
|
+
setState({
|
|
137
|
+
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
138
|
+
current: page
|
|
139
|
+
})
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
var tableProps = {
|
|
143
|
+
pagination: _objectSpread(_objectSpread({}, pagination), {}, {
|
|
144
|
+
total: records.total,
|
|
145
|
+
defaultPageSize: 10,
|
|
146
|
+
onChange: pageChange
|
|
147
|
+
}),
|
|
148
|
+
height: 384,
|
|
149
|
+
loading: loading,
|
|
150
|
+
dataSource: records.rows,
|
|
151
|
+
onChange: function onChange(_pagination, _filters, sorter) {
|
|
152
|
+
if (sorter.order) {
|
|
153
|
+
var order = sorter.order === 'ascend' ? 'asc' : 'desc';
|
|
154
|
+
setState({
|
|
155
|
+
sort: "".concat(sorter.field, ",").concat(order)
|
|
156
|
+
});
|
|
157
|
+
} else {
|
|
158
|
+
setState({
|
|
159
|
+
sort: ''
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
var filterChange = function filterChange(dateValue) {
|
|
165
|
+
setState({
|
|
166
|
+
startDate: dateValue[0],
|
|
167
|
+
endDate: dateValue[1]
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
171
|
+
title: translateLocaleText("t('vtxkhmodal.details')"),
|
|
172
|
+
filterType: "rangePicker",
|
|
173
|
+
dateValue: [startDate, endDate],
|
|
174
|
+
filterChange: filterChange,
|
|
175
|
+
extraLeft: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
176
|
+
options: [{
|
|
177
|
+
value: '1',
|
|
178
|
+
label: translateLocaleText("t('export.all')")
|
|
179
|
+
}, {
|
|
180
|
+
value: 'RCDC',
|
|
181
|
+
label: translateLocaleText("t('vtxkhmodal.day')")
|
|
182
|
+
}, {
|
|
183
|
+
value: 'ZXDC',
|
|
184
|
+
label: translateLocaleText("t('vtxkhmodal.specialSupervision')")
|
|
185
|
+
}, {
|
|
186
|
+
value: 'DSFCP',
|
|
187
|
+
label: translateLocaleText("t('vtxkhmodal.thirdPartyEvaluation')")
|
|
188
|
+
}, {
|
|
189
|
+
value: 'RCXC',
|
|
190
|
+
label: translateLocaleText("t('vtxkhmodal.day2')")
|
|
191
|
+
}],
|
|
192
|
+
style: {
|
|
193
|
+
width: 132
|
|
194
|
+
},
|
|
195
|
+
value: checkActivityCode,
|
|
196
|
+
onChange: function onChange(e) {
|
|
197
|
+
return setState({
|
|
198
|
+
checkActivityCode: e
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}),
|
|
202
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
203
|
+
className: "kh-record-summary",
|
|
204
|
+
children: [{
|
|
205
|
+
name: translateLocaleText("t('vtxkhmodal.times')"),
|
|
206
|
+
value: khRes === null || khRes === void 0 ? void 0 : khRes.monthCheckTims,
|
|
207
|
+
key: 'count',
|
|
208
|
+
unit: translateLocaleText("t('common.timesUnit')"),
|
|
209
|
+
fontType: 'blue'
|
|
210
|
+
}, {
|
|
211
|
+
name: translateLocaleText("t('vtxkhmodal.totalDeductedPoints')"),
|
|
212
|
+
value: khRes === null || khRes === void 0 ? void 0 : khRes.monthDeductPoint,
|
|
213
|
+
key: 'subtract',
|
|
214
|
+
unit: translateLocaleText("t('vtxkhmodal.scoreUnit')"),
|
|
215
|
+
fontType: 'red'
|
|
216
|
+
}].map(function (ele) {
|
|
217
|
+
return /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({}, ele), {}, {
|
|
218
|
+
img: require("./imgs/".concat(ele.key).concat(isDark ? '' : '_light', ".png")),
|
|
219
|
+
unitStyle: {
|
|
220
|
+
fontSize: 14
|
|
221
|
+
}
|
|
222
|
+
}), ele.key);
|
|
223
|
+
})
|
|
224
|
+
}), /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
225
|
+
columns: columns,
|
|
226
|
+
rowKey: "id"
|
|
227
|
+
}, tableProps))]
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
export default AppraisalInfo;
|
|
@@ -9,15 +9,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9
9
|
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; }
|
|
10
10
|
import { Calendar, Progress } from 'antd';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
|
-
import dayjs from "../../_util/setupDayjs";
|
|
13
12
|
import useSettings from "../../_hooks/useSettings";
|
|
14
13
|
import "./style";
|
|
15
|
-
import zhCN from 'antd/es/calendar/locale/zh_CN.js';
|
|
16
14
|
import enUS from 'antd/es/calendar/locale/en_US.js';
|
|
17
|
-
import
|
|
15
|
+
import zhCN from 'antd/es/calendar/locale/zh_CN.js';
|
|
18
16
|
import BlockA from "../../_imgs/block_alarm.png";
|
|
19
17
|
import BlockN from "../../_imgs/block_normal.png";
|
|
20
18
|
import { transformRgb } from "../../_util";
|
|
19
|
+
import { getRuntimeLanguage } from "./../../hooks/useTranslation.js";
|
|
21
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
21
|
var prefix = 'vm-calendar';
|
|
23
22
|
function VmCalendar(props) {
|
|
@@ -40,7 +39,7 @@ function VmCalendar(props) {
|
|
|
40
39
|
'--height': height + 'px'
|
|
41
40
|
}),
|
|
42
41
|
children: /*#__PURE__*/_jsx(Calendar, _objectSpread({
|
|
43
|
-
locale:
|
|
42
|
+
locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS,
|
|
44
43
|
headerRender: function headerRender() {
|
|
45
44
|
return null;
|
|
46
45
|
},
|
|
@@ -5,6 +5,7 @@ import _ from 'lodash';
|
|
|
5
5
|
import { Fragment } from 'react';
|
|
6
6
|
import useSettings from "../../_hooks/useSettings";
|
|
7
7
|
import { DownIcon, UpIcon } from "../../_util/iconSvgHtml";
|
|
8
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
8
9
|
import "./style";
|
|
9
10
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
11
|
export default function VmFactor(_ref) {
|
|
@@ -20,7 +21,7 @@ export default function VmFactor(_ref) {
|
|
|
20
21
|
compare = _ref.compare,
|
|
21
22
|
compareValue = _ref.compareValue,
|
|
22
23
|
_ref$compareName = _ref.compareName,
|
|
23
|
-
compareName = _ref$compareName === void 0 ? '
|
|
24
|
+
compareName = _ref$compareName === void 0 ? translateLocaleText("t('_components.comparedWithYesterday')") : _ref$compareName,
|
|
24
25
|
_ref$compareUnit = _ref.compareUnit,
|
|
25
26
|
compareUnit = _ref$compareUnit === void 0 ? '' : _ref$compareUnit,
|
|
26
27
|
_ref$isError = _ref.isError,
|
|
@@ -13,14 +13,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
13
13
|
import { SearchOutlined } from '@ant-design/icons';
|
|
14
14
|
import { useDebounce } from 'ahooks';
|
|
15
15
|
import { DatePicker, Input, Select } from 'antd';
|
|
16
|
-
import zhCN from 'antd/es/date-picker/locale/zh_CN';
|
|
17
16
|
import enUS from 'antd/es/date-picker/locale/en_US';
|
|
18
|
-
import
|
|
19
|
-
import "
|
|
17
|
+
import zhCN from 'antd/es/date-picker/locale/zh_CN';
|
|
18
|
+
import { getRuntimeLanguage, translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
20
19
|
import { useEffect, useState } from 'react';
|
|
21
20
|
import useSettings from "../../_hooks/useSettings";
|
|
22
|
-
import "
|
|
21
|
+
import "../../_util/setupDayjs";
|
|
23
22
|
import VmEmpty from "../vm-empty";
|
|
23
|
+
import "./style";
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
var RangePicker = DatePicker.RangePicker,
|
|
26
26
|
MonthPicker = DatePicker.MonthPicker,
|
|
@@ -42,7 +42,7 @@ export var VMRangePicker = function VMRangePicker(props) {
|
|
|
42
42
|
},
|
|
43
43
|
allowClear: false
|
|
44
44
|
}, props), {}, {
|
|
45
|
-
locale:
|
|
45
|
+
locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS
|
|
46
46
|
}));
|
|
47
47
|
};
|
|
48
48
|
export var VMDatePicker = function VMDatePicker(props) {
|
|
@@ -57,7 +57,7 @@ export var VMDatePicker = function VMDatePicker(props) {
|
|
|
57
57
|
},
|
|
58
58
|
allowClear: false
|
|
59
59
|
}, props), {}, {
|
|
60
|
-
locale:
|
|
60
|
+
locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS
|
|
61
61
|
}));
|
|
62
62
|
};
|
|
63
63
|
export var VMMonthPicker = function VMMonthPicker(props) {
|
|
@@ -72,7 +72,7 @@ export var VMMonthPicker = function VMMonthPicker(props) {
|
|
|
72
72
|
},
|
|
73
73
|
allowClear: false
|
|
74
74
|
}, props), {}, {
|
|
75
|
-
locale:
|
|
75
|
+
locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS
|
|
76
76
|
}));
|
|
77
77
|
};
|
|
78
78
|
export var VMYearPicker = function VMYearPicker(props) {
|
|
@@ -87,7 +87,7 @@ export var VMYearPicker = function VMYearPicker(props) {
|
|
|
87
87
|
},
|
|
88
88
|
allowClear: false
|
|
89
89
|
}, props), {}, {
|
|
90
|
-
locale:
|
|
90
|
+
locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS
|
|
91
91
|
}));
|
|
92
92
|
};
|
|
93
93
|
export var VMSelect = function VMSelect(props) {
|
|
@@ -58,28 +58,24 @@
|
|
|
58
58
|
--border-color: #0b6baf;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
border: 1px solid var(--border-color) !important;
|
|
65
|
-
}
|
|
61
|
+
background: var(--bg-color) !important;
|
|
62
|
+
border-radius: 6px !important;
|
|
63
|
+
border: 1px solid var(--border-color) !important;
|
|
66
64
|
.ant-select-selection-placeholder {
|
|
67
65
|
color: var(--color);
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
&:hover {
|
|
71
|
-
.ant-select
|
|
69
|
+
.ant-select {
|
|
72
70
|
border: 1px solid var(--hover-color) !important;
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
&.dark {
|
|
76
|
-
.ant-select-
|
|
77
|
-
|
|
78
|
-
color: white;
|
|
79
|
-
}
|
|
74
|
+
.ant-select-content-value {
|
|
75
|
+
color: white;
|
|
80
76
|
}
|
|
81
77
|
|
|
82
|
-
.ant-select-
|
|
78
|
+
.ant-select-suffix {
|
|
83
79
|
color: white;
|
|
84
80
|
}
|
|
85
81
|
}
|
|
@@ -12,6 +12,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
12
12
|
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); }
|
|
13
13
|
import { VtxImage, VtxUpload } from '@vtx/components';
|
|
14
14
|
import { isNumber } from 'lodash';
|
|
15
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
15
16
|
import "./style";
|
|
16
17
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
18
|
function InfoCollection(props) {
|
|
@@ -57,7 +58,7 @@ function InfoCollection(props) {
|
|
|
57
58
|
className: "ellipsis info-label-b-text",
|
|
58
59
|
children: [item.label, " \uFF1A"]
|
|
59
60
|
})
|
|
60
|
-
}), item.label === '
|
|
61
|
+
}), item.label === translateLocaleText("t('vtxrestaurantmodal.address')") || item.isAddress ? /*#__PURE__*/_jsx("div", {
|
|
61
62
|
className: "value",
|
|
62
63
|
style: style,
|
|
63
64
|
title: item.value || '',
|
|
@@ -123,7 +124,7 @@ var ValueDom = function ValueDom(componentType, value, isTitle) {
|
|
|
123
124
|
node = lngLats;
|
|
124
125
|
break;
|
|
125
126
|
case 'SWITCH':
|
|
126
|
-
node = value || (value ? '
|
|
127
|
+
node = value || (value ? translateLocaleText("t('common.yes')") : translateLocaleText("t('common.no')"));
|
|
127
128
|
break;
|
|
128
129
|
case 'GARBAGE_CAN':
|
|
129
130
|
var arr = [];
|
|
@@ -64,7 +64,9 @@ var LineCharts = function LineCharts(_ref) {
|
|
|
64
64
|
}],
|
|
65
65
|
legend: _objectSpread({
|
|
66
66
|
show: showLegend,
|
|
67
|
-
|
|
67
|
+
left: '10%',
|
|
68
|
+
top: 0,
|
|
69
|
+
height: 24,
|
|
68
70
|
type: 'scroll',
|
|
69
71
|
itemGap: 8,
|
|
70
72
|
itemHeight: 2,
|
|
@@ -84,6 +86,7 @@ var LineCharts = function LineCharts(_ref) {
|
|
|
84
86
|
grid: _objectSpread({
|
|
85
87
|
left: 50,
|
|
86
88
|
right: 50,
|
|
89
|
+
top: showLegend ? 40 : 20,
|
|
87
90
|
bottom: showDataZoom ? 50 : 20
|
|
88
91
|
}, gridOption),
|
|
89
92
|
xAxis: _objectSpread({
|
|
@@ -9,6 +9,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9
9
|
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; }
|
|
10
10
|
import { Progress } from 'antd';
|
|
11
11
|
import useSettings from "../../_hooks/useSettings";
|
|
12
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
12
13
|
import "./style";
|
|
13
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
15
|
export function Line(props) {
|
|
@@ -52,7 +53,7 @@ var Circle = function Circle(props) {
|
|
|
52
53
|
_props$width2 = props.width,
|
|
53
54
|
width = _props$width2 === void 0 ? 120 : _props$width2,
|
|
54
55
|
_props$name = props.name,
|
|
55
|
-
name = _props$name === void 0 ? '
|
|
56
|
+
name = _props$name === void 0 ? translateLocaleText("t('_components.effectiveOperationRate')") : _props$name,
|
|
56
57
|
_props$unit = props.unit,
|
|
57
58
|
unit = _props$unit === void 0 ? '%' : _props$unit,
|
|
58
59
|
info = props.info,
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
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."); }
|
|
3
|
+
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); }
|
|
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); }
|
|
6
|
+
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; }
|
|
1
7
|
import { translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
2
|
-
/**
|
|
3
|
-
* 通用-维保信息
|
|
8
|
+
/**
|
|
9
|
+
* 通用-维保信息
|
|
4
10
|
*/
|
|
5
11
|
|
|
6
12
|
import { Col, Row } from 'antd';
|
|
@@ -13,6 +19,32 @@ import RmRecord from "./RmRecord";
|
|
|
13
19
|
import RmType from "./RmType";
|
|
14
20
|
import "./style";
|
|
15
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
export var REPAIR_MAINTAIN_TAB_KEY = 'rm';
|
|
23
|
+
export var getRepairMaintainTab = function getRepairMaintainTab() {
|
|
24
|
+
return {
|
|
25
|
+
key: REPAIR_MAINTAIN_TAB_KEY,
|
|
26
|
+
title: translateLocaleText("t('vtxcarmodal.maintenanceInformation')")
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export var isRepairMaintainTab = function isRepairMaintainTab(tab) {
|
|
30
|
+
return (tab === null || tab === void 0 ? void 0 : tab.key) === REPAIR_MAINTAIN_TAB_KEY || (tab === null || tab === void 0 ? void 0 : tab.key) === 'default-rm' || "".concat((tab === null || tab === void 0 ? void 0 : tab.key) || '').endsWith('-rm');
|
|
31
|
+
};
|
|
32
|
+
export var insertRepairMaintainTab = function insertRepairMaintainTab() {
|
|
33
|
+
var tabs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
34
|
+
if (!Array.isArray(tabs) || tabs.length === 0) {
|
|
35
|
+
return tabs;
|
|
36
|
+
}
|
|
37
|
+
if (tabs.some(isRepairMaintainTab)) {
|
|
38
|
+
return tabs;
|
|
39
|
+
}
|
|
40
|
+
var customIndex = tabs.findIndex(function (tab) {
|
|
41
|
+
return !!(tab !== null && tab !== void 0 && tab.url);
|
|
42
|
+
});
|
|
43
|
+
if (customIndex === -1) {
|
|
44
|
+
return [].concat(_toConsumableArray(tabs), [getRepairMaintainTab()]);
|
|
45
|
+
}
|
|
46
|
+
return [].concat(_toConsumableArray(tabs.slice(0, customIndex)), [getRepairMaintainTab()], _toConsumableArray(tabs.slice(customIndex)));
|
|
47
|
+
};
|
|
16
48
|
var RepaireMaintain = function RepaireMaintain(props) {
|
|
17
49
|
var id = props.id;
|
|
18
50
|
var date = dayjs().format('YYYY-MM-DD');
|
|
@@ -21,12 +21,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
21
21
|
import { DownOutlined, ExportOutlined } from '@ant-design/icons';
|
|
22
22
|
import { useMemoizedFn, useSetState } from 'ahooks';
|
|
23
23
|
import { Button, ConfigProvider, Dropdown, Table } from 'antd';
|
|
24
|
-
import zhCN from 'antd/es/locale/zh_CN';
|
|
25
24
|
import enUS from 'antd/es/locale/en_US';
|
|
25
|
+
import zhCN from 'antd/es/locale/zh_CN';
|
|
26
26
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
27
27
|
import useSettings from "../../_hooks/useSettings";
|
|
28
28
|
import "./style";
|
|
29
|
-
import {
|
|
29
|
+
import { getRuntimeLanguage, translateLocaleText } from "./../../hooks/useTranslation.js";
|
|
30
30
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
31
|
var VMTable = function VMTable(props) {
|
|
32
32
|
var _props$rowKey = props.rowKey,
|
|
@@ -136,7 +136,7 @@ var VMTable = function VMTable(props) {
|
|
|
136
136
|
}
|
|
137
137
|
}, [JSON.stringify(dataSource), JSON.stringify(currentLayer)]);
|
|
138
138
|
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
139
|
-
locale:
|
|
139
|
+
locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS,
|
|
140
140
|
children: /*#__PURE__*/_jsx(Table, _objectSpread({
|
|
141
141
|
className: "vm-table ".concat(isDark ? 'dark' : ''),
|
|
142
142
|
ref: tableRef,
|
|
@@ -5,13 +5,14 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
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
7
|
import useSettings from "../../_hooks/useSettings";
|
|
8
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
8
9
|
import "./style";
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
export default function VmWrapper(props) {
|
|
11
12
|
var _useSettings = useSettings(),
|
|
12
13
|
isDark = _useSettings.isDark;
|
|
13
14
|
var _props$title = props.title,
|
|
14
|
-
title = _props$title === void 0 ? '
|
|
15
|
+
title = _props$title === void 0 ? translateLocaleText("t('_components.basicInformation')") : _props$title,
|
|
15
16
|
_props$type = props.type,
|
|
16
17
|
type = _props$type === void 0 ? 'blue' : _props$type,
|
|
17
18
|
_props$style = props.style,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import classnames from 'classnames';
|
|
2
2
|
import useSettings from "../../_hooks/useSettings";
|
|
3
3
|
import { ClockIcon } from "../../_util/iconSvgHtml";
|
|
4
|
+
import { translateLocaleText } from "../../hooks/useTranslation.js";
|
|
4
5
|
import "./style";
|
|
5
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
7
|
export default function VmWrapper(props) {
|
|
7
8
|
var _useSettings = useSettings(),
|
|
8
9
|
isDark = _useSettings.isDark;
|
|
9
10
|
var _props$title = props.title,
|
|
10
|
-
title = _props$title === void 0 ? '
|
|
11
|
+
title = _props$title === void 0 ? translateLocaleText("t('_components.basicInformation')") : _props$title,
|
|
11
12
|
_props$time = props.time,
|
|
12
13
|
time = _props$time === void 0 ? '' : _props$time,
|
|
13
14
|
_props$border = props.border,
|