@vtx/modals2 6.0.0-beta.1 → 6.0.0-beta.11
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-bar-charts/index.js +1 -1
- package/lib/_components/vm-calendar/index.js +3 -4
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-factor/index.js +2 -1
- package/lib/_components/vm-factor-list/index.less +11 -11
- 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 +6 -2
- 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/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/components/Info/index.less +6 -6
- 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/OilConsumption/index.less +6 -6
- 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/WaterConsumption/index.less +6 -6
- 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-cc-unit-modal/components/BaseInfo/index.less +6 -6
- 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-device-modal/components/DataAnalysis/index.less +66 -66
- 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/Basic/index.less +16 -16
- 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/components/LaneCalendar/index.js +3 -0
- 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 +30 -24
- package/package.json +92 -92
|
@@ -19,7 +19,7 @@ var Content = function Content(_ref) {
|
|
|
19
19
|
id: id
|
|
20
20
|
});
|
|
21
21
|
var infoData = [{
|
|
22
|
-
label: '
|
|
22
|
+
label: translateLocaleText("t('vtxrestaurantmodal.contractNumber')"),
|
|
23
23
|
value: data.contractNumber,
|
|
24
24
|
key: 'contractNumber'
|
|
25
25
|
}, {
|
|
@@ -48,8 +48,13 @@ var Content = function Content(_ref) {
|
|
|
48
48
|
value: data.time,
|
|
49
49
|
key: 'time'
|
|
50
50
|
}] : []), [{
|
|
51
|
-
label: '
|
|
52
|
-
value: data.garbageType === 'fqyz' ? "
|
|
51
|
+
label: translateLocaleText("t('vtxrestaurantmodal.transportVolume')"),
|
|
52
|
+
value: data.garbageType === 'fqyz' ? translateLocaleText("t('vtxrestaurantmodal.transportVolumeWeekMonthValue')", {
|
|
53
|
+
week: data.trafficWeek || '-',
|
|
54
|
+
month: data.trafficMonth || '-'
|
|
55
|
+
}) : translateLocaleText("t('vtxrestaurantmodal.transportVolumeDayValue')", {
|
|
56
|
+
day: data.trafficDay || '-'
|
|
57
|
+
}),
|
|
53
58
|
key: 'trafficDay'
|
|
54
59
|
}], _toConsumableArray(data.garbageType === 'fqyz' ? [{
|
|
55
60
|
label: translateLocaleText("t('vtxrestaurantmodal.times2')"),
|
|
@@ -60,39 +65,47 @@ var Content = function Content(_ref) {
|
|
|
60
65
|
value: data.time,
|
|
61
66
|
key: 'time'
|
|
62
67
|
}, {
|
|
63
|
-
label: '
|
|
68
|
+
label: translateLocaleText("t('vtxrestaurantmodal.paymentMethod')"),
|
|
64
69
|
value: data.paymentMethod,
|
|
65
70
|
key: 'paymentMethod'
|
|
66
71
|
}] : [{
|
|
67
|
-
label: '
|
|
68
|
-
value: "
|
|
72
|
+
label: translateLocaleText("t('vtxrestaurantmodal.contractAmount')"),
|
|
73
|
+
value: translateLocaleText("t('common.value.yuanPerYear')", {
|
|
74
|
+
value: data.contractAmount || '-'
|
|
75
|
+
}),
|
|
69
76
|
key: 'contractAmount'
|
|
70
77
|
}]), [{
|
|
71
|
-
label: '
|
|
72
|
-
value: "
|
|
78
|
+
label: translateLocaleText("t('vtxrestaurantmodal.firstPartyClassificationPenalty')"),
|
|
79
|
+
value: translateLocaleText("t('common.value.yuanPerTon')", {
|
|
80
|
+
value: data.classifyPenalty || '-'
|
|
81
|
+
}),
|
|
73
82
|
key: 'classifyPenalty'
|
|
74
83
|
}], _toConsumableArray(data.garbageType === 'fqyz' ? [{
|
|
75
|
-
label: '
|
|
76
|
-
value: "
|
|
84
|
+
label: translateLocaleText("t('vtxrestaurantmodal.agreementViolationTerminationPeriod')"),
|
|
85
|
+
value: translateLocaleText("t('common.value.days')", {
|
|
86
|
+
value: data.terminationPeriod || '-'
|
|
87
|
+
}),
|
|
77
88
|
key: 'terminationPeriod'
|
|
78
89
|
}] : [{
|
|
79
90
|
label: translateLocaleText("t('vtxrestaurantmodal.otherUnitItems')"),
|
|
80
|
-
value: "
|
|
91
|
+
value: translateLocaleText("t('common.value.yuanPerTimes')", {
|
|
92
|
+
value: data.transferOtherPenalty || '-'
|
|
93
|
+
}),
|
|
81
94
|
key: 'terminationPeriod'
|
|
82
95
|
}]));
|
|
83
96
|
var columns = [{
|
|
84
|
-
title: '
|
|
97
|
+
title: translateLocaleText("t('vtxrestaurantmodal.capacity')"),
|
|
85
98
|
dataIndex: 'capacity',
|
|
86
99
|
align: 'center'
|
|
87
100
|
}, {
|
|
88
|
-
title: '
|
|
101
|
+
title: translateLocaleText("t('vtxrestaurantmodal.bucketCount')"),
|
|
89
102
|
dataIndex: 'barrelage',
|
|
90
103
|
align: 'center'
|
|
91
104
|
}];
|
|
92
105
|
var token = getVtxToken('token');
|
|
93
106
|
return /*#__PURE__*/_jsx("div", {
|
|
94
107
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
95
|
-
title: "
|
|
108
|
+
title: translateLocaleText("t('vtxrestaurantmodal.contractInformation')"),
|
|
96
109
|
rightContent: /*#__PURE__*/_jsxs(Space, {
|
|
97
110
|
children: [/*#__PURE__*/_jsx(Button, {
|
|
98
111
|
onClick: function onClick() {
|
|
@@ -125,7 +138,7 @@ var Content = function Content(_ref) {
|
|
|
125
138
|
width: "50%",
|
|
126
139
|
ellipsis: true
|
|
127
140
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
128
|
-
title: '
|
|
141
|
+
title: translateLocaleText("t('vtxrestaurantmodal.freeBucketConfiguration')")
|
|
129
142
|
}), /*#__PURE__*/_jsx(VmTable, {
|
|
130
143
|
columns: columns,
|
|
131
144
|
dataSource: [{
|
|
@@ -139,22 +152,26 @@ var Content = function Content(_ref) {
|
|
|
139
152
|
pagination: false
|
|
140
153
|
}), /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
141
154
|
data: [{
|
|
142
|
-
label: '
|
|
143
|
-
value: "
|
|
155
|
+
label: translateLocaleText("t('vtxrestaurantmodal.deposit')"),
|
|
156
|
+
value: translateLocaleText("t('common.value.yuan')", {
|
|
157
|
+
value: data.deposit || '-'
|
|
158
|
+
}),
|
|
144
159
|
key: 'deposit'
|
|
145
160
|
}].concat(_toConsumableArray(data.garbageType === 'ccfqw' ? [{
|
|
146
|
-
label: '
|
|
147
|
-
value: "
|
|
161
|
+
label: translateLocaleText("t('vtxrestaurantmodal.smallBucketConfiguration')"),
|
|
162
|
+
value: translateLocaleText("t('common.value.count')", {
|
|
163
|
+
value: data.keg || '-'
|
|
164
|
+
}),
|
|
148
165
|
key: 'keg'
|
|
149
166
|
}] : [])),
|
|
150
167
|
horizontal: true,
|
|
151
168
|
width: "50%",
|
|
152
169
|
ellipsis: true
|
|
153
170
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
154
|
-
title: '
|
|
171
|
+
title: translateLocaleText("t('vtxrestaurantmodal.firstPartyInformation')")
|
|
155
172
|
}), /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
156
173
|
data: [{
|
|
157
|
-
label: '
|
|
174
|
+
label: translateLocaleText("t('vtxrestaurantmodal.signature')"),
|
|
158
175
|
value: data.firstSign,
|
|
159
176
|
key: 'firstSign',
|
|
160
177
|
render: data.firstSign ? function () {
|
|
@@ -165,7 +182,7 @@ var Content = function Content(_ref) {
|
|
|
165
182
|
src: "/cloudFile/common/downloadFile?id=".concat(data === null || data === void 0 ? void 0 : data.firstSign, "&token=").concat(token),
|
|
166
183
|
maskClassName: 'maskClass'
|
|
167
184
|
},
|
|
168
|
-
alt: "
|
|
185
|
+
alt: translateLocaleText("t('vtxrestaurantmodal.signature')"),
|
|
169
186
|
style: {
|
|
170
187
|
width: 100,
|
|
171
188
|
height: 100
|
|
@@ -173,16 +190,16 @@ var Content = function Content(_ref) {
|
|
|
173
190
|
});
|
|
174
191
|
} : undefined
|
|
175
192
|
}, {
|
|
176
|
-
label: '
|
|
193
|
+
label: translateLocaleText("t('vtxrestaurantmodal.signatureSeal')"),
|
|
177
194
|
value: data.firstSignature,
|
|
178
195
|
key: 'firstSignature',
|
|
179
196
|
componentType: 'image'
|
|
180
197
|
}, {
|
|
181
|
-
label: '
|
|
198
|
+
label: translateLocaleText("t('vtxrestaurantmodal.legalRepresentative')"),
|
|
182
199
|
value: data.firstRepresentative,
|
|
183
200
|
key: 'firstRepresentative'
|
|
184
201
|
}, {
|
|
185
|
-
label: '
|
|
202
|
+
label: translateLocaleText("t('vtxrestaurantmodal.authorizedAgent')"),
|
|
186
203
|
value: data.firstProxy,
|
|
187
204
|
key: 'firstProxy'
|
|
188
205
|
}, {
|
|
@@ -191,7 +208,7 @@ var Content = function Content(_ref) {
|
|
|
191
208
|
key: 'firstMailingAddress',
|
|
192
209
|
isAddress: true
|
|
193
210
|
}, {
|
|
194
|
-
label: '
|
|
211
|
+
label: translateLocaleText("t('vtxrestaurantmodal.contactPhone')"),
|
|
195
212
|
value: data.firstPhone,
|
|
196
213
|
key: 'firstPhone',
|
|
197
214
|
isAddress: true
|
|
@@ -200,10 +217,10 @@ var Content = function Content(_ref) {
|
|
|
200
217
|
width: "50%",
|
|
201
218
|
ellipsis: true
|
|
202
219
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
203
|
-
title: '
|
|
220
|
+
title: translateLocaleText("t('vtxrestaurantmodal.secondPartyInformation')")
|
|
204
221
|
}), /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
205
222
|
data: [{
|
|
206
|
-
label: '
|
|
223
|
+
label: translateLocaleText("t('vtxrestaurantmodal.signature')"),
|
|
207
224
|
value: data.secondSign,
|
|
208
225
|
key: 'secondSign',
|
|
209
226
|
render: data.secondSign ? function () {
|
|
@@ -214,7 +231,7 @@ var Content = function Content(_ref) {
|
|
|
214
231
|
src: "/cloudFile/common/downloadFile?id=".concat(data === null || data === void 0 ? void 0 : data.secondSign, "&token=").concat(token),
|
|
215
232
|
maskClassName: 'maskClass'
|
|
216
233
|
},
|
|
217
|
-
alt: "
|
|
234
|
+
alt: translateLocaleText("t('vtxrestaurantmodal.signature')"),
|
|
218
235
|
style: {
|
|
219
236
|
width: 100,
|
|
220
237
|
height: 100
|
|
@@ -222,16 +239,16 @@ var Content = function Content(_ref) {
|
|
|
222
239
|
});
|
|
223
240
|
} : undefined
|
|
224
241
|
}, {
|
|
225
|
-
label: '
|
|
242
|
+
label: translateLocaleText("t('vtxrestaurantmodal.signatureSeal')"),
|
|
226
243
|
value: data.collectSignature,
|
|
227
244
|
key: 'collectSignature',
|
|
228
245
|
componentType: 'image'
|
|
229
246
|
}, {
|
|
230
|
-
label: '
|
|
247
|
+
label: translateLocaleText("t('vtxrestaurantmodal.legalRepresentative')"),
|
|
231
248
|
value: data.secondRepresentative,
|
|
232
249
|
key: 'secondRepresentative'
|
|
233
250
|
}, {
|
|
234
|
-
label: '
|
|
251
|
+
label: translateLocaleText("t('vtxrestaurantmodal.authorizedAgent')"),
|
|
235
252
|
value: data.secondProxy,
|
|
236
253
|
key: 'secondProxy'
|
|
237
254
|
}, {
|
|
@@ -240,7 +257,7 @@ var Content = function Content(_ref) {
|
|
|
240
257
|
key: 'secondMailingAddress',
|
|
241
258
|
isAddress: true
|
|
242
259
|
}, {
|
|
243
|
-
label: '
|
|
260
|
+
label: translateLocaleText("t('vtxrestaurantmodal.contactPhone')"),
|
|
244
261
|
value: data.secondPhone,
|
|
245
262
|
key: 'secondPhone',
|
|
246
263
|
isAddress: true
|
|
@@ -123,7 +123,7 @@ var SignAndContract = function SignAndContract() {
|
|
|
123
123
|
dataIndex: 'signTime',
|
|
124
124
|
width: 120
|
|
125
125
|
}, {
|
|
126
|
-
title: '
|
|
126
|
+
title: translateLocaleText("t('vtxrestaurantmodal.transportVolume')"),
|
|
127
127
|
dataIndex: 'trafficDay',
|
|
128
128
|
align: 'right',
|
|
129
129
|
width: 120
|
|
@@ -167,7 +167,7 @@ var SignAndContract = function SignAndContract() {
|
|
|
167
167
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
168
168
|
span: 24,
|
|
169
169
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
170
|
-
title: '
|
|
170
|
+
title: translateLocaleText("t('vtxrestaurantmodal.signingInformation')"),
|
|
171
171
|
children: /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
172
172
|
data: dataSource,
|
|
173
173
|
horizontal: true,
|
|
@@ -178,7 +178,7 @@ var SignAndContract = function SignAndContract() {
|
|
|
178
178
|
}), /*#__PURE__*/_jsx(Col, {
|
|
179
179
|
span: 24,
|
|
180
180
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
181
|
-
title: '
|
|
181
|
+
title: translateLocaleText("t('vtxrestaurantmodal.contractInformation')"),
|
|
182
182
|
children: /*#__PURE__*/_jsx(VmTable, _objectSpread(_objectSpread({
|
|
183
183
|
columns: columns
|
|
184
184
|
}, tableProps), {}, {
|
|
@@ -20,6 +20,7 @@ import { VmEmpty, VmProgress, VmTable, VmTag, VmWrapper } from "../../../_compon
|
|
|
20
20
|
import useSettings from "../../../_hooks/useSettings";
|
|
21
21
|
import { BaseService } from "../../api";
|
|
22
22
|
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
23
|
+
import { buildIframeQuery } from "../../utils/url";
|
|
23
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
25
|
var Work = function Work(props) {
|
|
25
26
|
var id = props.id,
|
|
@@ -127,7 +128,14 @@ var Work = function Work(props) {
|
|
|
127
128
|
if (prefixList.length === 2) {
|
|
128
129
|
prefix = "/".concat(prefixList[0]);
|
|
129
130
|
}
|
|
130
|
-
var
|
|
131
|
+
var query = buildIframeQuery(location.href.split('?')[1], {
|
|
132
|
+
carId: record.carId,
|
|
133
|
+
theme: theme === 'blue' ? 'dark' : theme,
|
|
134
|
+
startTime: dayjs(date).format('YYYY-MM-DD 00:00:00'),
|
|
135
|
+
endTime: dayjs(date).format('YYYY-MM-DD 23:59:59'),
|
|
136
|
+
roadId: record.roadId
|
|
137
|
+
});
|
|
138
|
+
var src = "".concat(prefix, "/carHistory/#/zyqsHistory?").concat(query);
|
|
131
139
|
setIframeModalInfo({
|
|
132
140
|
title: translateLocaleText("t('vtxroadmodal.vehicleTrack')"),
|
|
133
141
|
visible: true,
|
|
@@ -18,6 +18,7 @@ import { useMemo, useState } from 'react';
|
|
|
18
18
|
import { VmBarCharts, VmEmpty, VmProgress, VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
19
19
|
import useSettings from "../../../_hooks/useSettings";
|
|
20
20
|
import { LaneService } from "../../api";
|
|
21
|
+
import { buildIframeQuery } from "../../utils/url";
|
|
21
22
|
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
22
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
24
|
export var getPercentInfo = function getPercentInfo(percent) {
|
|
@@ -220,7 +221,13 @@ var Work = function Work(props) {
|
|
|
220
221
|
if (prefixList.length === 2) {
|
|
221
222
|
prefix = "/".concat(prefixList[0]);
|
|
222
223
|
}
|
|
223
|
-
var
|
|
224
|
+
var query = buildIframeQuery(location.href.split('?')[1], {
|
|
225
|
+
carId: record.workCarId,
|
|
226
|
+
theme: theme === 'blue' ? 'dark' : theme,
|
|
227
|
+
startTime: dayjs(day).format('YYYY-MM-DD 00:00:00'),
|
|
228
|
+
endTime: dayjs(day).format('YYYY-MM-DD 23:59:59')
|
|
229
|
+
});
|
|
230
|
+
var src = "".concat(prefix, "/carHistory/#/zyqsLaneHistory?").concat(query);
|
|
224
231
|
setIframeModalInfo({
|
|
225
232
|
title: translateLocaleText("t('vtxroadmodal.vehicleTrack')"),
|
|
226
233
|
visible: true,
|
|
@@ -58,6 +58,9 @@ var Calendar = function Calendar(_ref) {
|
|
|
58
58
|
}
|
|
59
59
|
var dateCellRender = function dateCellRender(value) {
|
|
60
60
|
var date = dayjs(value).format('YYYY-MM-DD');
|
|
61
|
+
if (dayjs().isBefore(dayjs(value))) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
61
64
|
var info = calendarInfo[date];
|
|
62
65
|
var _ref2 = info || {},
|
|
63
66
|
planMileage = _ref2.planMileage,
|
|
@@ -12,6 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { useSetState } from 'ahooks';
|
|
14
14
|
import { VmIframeModal } from "../_components";
|
|
15
|
+
import Appraisal, { insertAppraisalTab } from "../_components/vm-appraisal-info";
|
|
15
16
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
16
17
|
import VtxBaseModal from "../vtx-base-modal";
|
|
17
18
|
import { BaseService } from "./api";
|
|
@@ -25,8 +26,8 @@ var TABS_CALENDAR = 'calendar';
|
|
|
25
26
|
var TABS_LANE_BASE = 'lane-base';
|
|
26
27
|
var TABS_LANE_STATIC = 'lane-statistical';
|
|
27
28
|
var TABS_LANE_CALENDAR = 'lane-calendar';
|
|
29
|
+
var TABS_APPRAISAL = 'appraisal';
|
|
28
30
|
var VtxRoadModal = function VtxRoadModal(props) {
|
|
29
|
-
var _contents;
|
|
30
31
|
var id = props.id,
|
|
31
32
|
title = props.title,
|
|
32
33
|
subTitle = props.subTitle,
|
|
@@ -84,7 +85,9 @@ var VtxRoadModal = function VtxRoadModal(props) {
|
|
|
84
85
|
var laneCalendarContent = /*#__PURE__*/_jsx(LaneCalendar, {
|
|
85
86
|
id: id
|
|
86
87
|
});
|
|
87
|
-
var contents =
|
|
88
|
+
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, baseContent), TABS_STATIC, statisticalContent), TABS_CALENDAR, calendarContent), TABS_LANE_BASE, laneBaseContent), TABS_LANE_STATIC, laneStatisticalContent), TABS_LANE_CALENDAR, laneCalendarContent), TABS_APPRAISAL, /*#__PURE__*/_jsx(Appraisal, {
|
|
89
|
+
id: id
|
|
90
|
+
}));
|
|
88
91
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
89
92
|
children: [visible && /*#__PURE__*/_jsx(VtxBaseModal, {
|
|
90
93
|
title: title,
|
|
@@ -93,7 +96,7 @@ var VtxRoadModal = function VtxRoadModal(props) {
|
|
|
93
96
|
theme: theme,
|
|
94
97
|
visible: visible,
|
|
95
98
|
onCancel: onCancel,
|
|
96
|
-
tabs: tabsData,
|
|
99
|
+
tabs: insertAppraisalTab(tabsData),
|
|
97
100
|
tabChose: tabChose,
|
|
98
101
|
startDate: startDate,
|
|
99
102
|
endDate: endDate,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var buildIframeQuery = function buildIframeQuery() {
|
|
2
|
+
var routeQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
3
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4
|
+
var searchParams = new URLSearchParams(routeQuery || '');
|
|
5
|
+
Object.keys(params).forEach(function (key) {
|
|
6
|
+
var value = params[key];
|
|
7
|
+
if (value !== undefined && value !== null) {
|
|
8
|
+
searchParams.set(key, value);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
return searchParams.toString().replace(/\+/g, '%20');
|
|
12
|
+
};
|
|
@@ -43,8 +43,8 @@ var BaseService = {
|
|
|
43
43
|
value: info === null || info === void 0 ? void 0 : info.divisionName
|
|
44
44
|
}, {
|
|
45
45
|
label: translateLocaleText("t('vtxshxqmodal.type2')"),
|
|
46
|
-
key: '
|
|
47
|
-
value: info === null || info === void 0 ? void 0 : info.
|
|
46
|
+
key: 'facilityClassName',
|
|
47
|
+
value: info === null || info === void 0 ? void 0 : info.facilityClassName
|
|
48
48
|
}, {
|
|
49
49
|
label: translateLocaleText("t('vtxshxqmodal.pointQuantityItems')"),
|
|
50
50
|
key: 'throwPointNum',
|
|
@@ -11,8 +11,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
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
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
14
|
-
/**
|
|
15
|
-
* 作业明细-列表
|
|
14
|
+
/**
|
|
15
|
+
* 作业明细-列表
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
import { useSetState } from 'ahooks';
|
|
@@ -3,19 +3,26 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
4
|
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); }
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
+
import Appraisal from "../_components/vm-appraisal-info";
|
|
6
7
|
import VmCustom from "../_components/vm-custom";
|
|
8
|
+
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
9
|
+
import VmVideo, { insertVideoTab } from "../_components/vm-video";
|
|
10
|
+
import useGetChannels from "../_hooks/useGetChannels";
|
|
7
11
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
8
12
|
import VtxBaseModal from "../vtx-base-modal";
|
|
13
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
9
14
|
import { BaseService } from "./api";
|
|
10
15
|
import { AlarmRecord, BaseInfo, Tfd, ThrowCalendar, ThrowRecord } from "./components";
|
|
11
16
|
import "./style";
|
|
12
|
-
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
13
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
18
|
var TABS_BASE = 'base';
|
|
15
19
|
var TABS_CALENDAR = 'calendar';
|
|
16
20
|
var TABS_THROW = 'throw';
|
|
17
21
|
var TABS_ALARM = 'alarm';
|
|
18
22
|
var TABS_TFD = 'tfd';
|
|
23
|
+
var TABS_APPRAISAL = 'appraisal';
|
|
24
|
+
var TABS_VIDEO = 'video';
|
|
25
|
+
var TABS_RM = 'rm';
|
|
19
26
|
var tabs = [{
|
|
20
27
|
key: TABS_BASE,
|
|
21
28
|
title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')")
|
|
@@ -56,11 +63,15 @@ var VtxShxqModal = function VtxShxqModal(props) {
|
|
|
56
63
|
baseInfo = _BaseService$useBaseI.baseInfo;
|
|
57
64
|
var _useGetConfig = useGetConfig(info.typeCode, tabs),
|
|
58
65
|
tabsData = _useGetConfig.tabsData;
|
|
66
|
+
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode) && (tabsData === null || tabsData === void 0 ? void 0 : tabsData.findIndex(function (ele) {
|
|
67
|
+
return ele.key === 'video';
|
|
68
|
+
})) > -1),
|
|
69
|
+
channels = _useGetChannels.channels;
|
|
59
70
|
var tabsList = useMemo(function () {
|
|
60
71
|
var tabsList = tabsData;
|
|
61
|
-
return tabsList;
|
|
62
|
-
}, [JSON.stringify(tabsData)]);
|
|
63
|
-
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
|
|
72
|
+
return insertVideoTab(tabsList, channels);
|
|
73
|
+
}, [JSON.stringify(tabsData), JSON.stringify(channels)]);
|
|
74
|
+
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
|
|
64
75
|
id: id,
|
|
65
76
|
info: info,
|
|
66
77
|
baseInfo: baseInfo,
|
|
@@ -76,6 +87,12 @@ var VtxShxqModal = function VtxShxqModal(props) {
|
|
|
76
87
|
})), TABS_TFD, /*#__PURE__*/_jsx(Tfd, {
|
|
77
88
|
id: id,
|
|
78
89
|
service: "rykq"
|
|
90
|
+
})), TABS_APPRAISAL, /*#__PURE__*/_jsx(Appraisal, {
|
|
91
|
+
id: id
|
|
92
|
+
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
93
|
+
id: id
|
|
94
|
+
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
95
|
+
channels: channels
|
|
79
96
|
}));
|
|
80
97
|
|
|
81
98
|
// 自定义页签可配置多个,
|
|
@@ -2,6 +2,7 @@ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
|
2
2
|
import { VmEmpty, VmLineCharts, VmPieCharts } from "../../../_components";
|
|
3
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
4
|
var Charts = function Charts(_ref) {
|
|
5
|
+
var _chartData$filter;
|
|
5
6
|
var chartData = _ref.chartData,
|
|
6
7
|
lineData = _ref.lineData;
|
|
7
8
|
var legends = lineData.legends,
|
|
@@ -17,7 +18,9 @@ var Charts = function Charts(_ref) {
|
|
|
17
18
|
});
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
var total = chartData === null || chartData === void 0
|
|
21
|
+
var total = chartData === null || chartData === void 0 || (_chartData$filter = chartData.filter(function (item) {
|
|
22
|
+
return item.alarmTypeCode;
|
|
23
|
+
})) === null || _chartData$filter === void 0 ? void 0 : _chartData$filter.reduce(function (acc, cur) {
|
|
21
24
|
return acc + cur.value;
|
|
22
25
|
}, 0);
|
|
23
26
|
return /*#__PURE__*/_jsxs("div", {
|
|
@@ -5,8 +5,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
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; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { translateLocaleText } from "./../../../hooks/useTranslation.js";
|
|
8
|
-
/**
|
|
9
|
-
* 监测指标趋势分析
|
|
8
|
+
/**
|
|
9
|
+
* 监测指标趋势分析
|
|
10
10
|
*/
|
|
11
11
|
import { useSetState } from 'ahooks';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
@@ -12,15 +12,23 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { request } from '@vtx/utils';
|
|
14
14
|
import { useEffect, useState } from 'react';
|
|
15
|
+
import Appraisal from "../_components/vm-appraisal-info";
|
|
15
16
|
import VmCustom from "../_components/vm-custom";
|
|
17
|
+
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
18
|
+
import VmVideo, { insertVideoTab } from "../_components/vm-video";
|
|
19
|
+
import useGetChannels from "../_hooks/useGetChannels";
|
|
20
|
+
import { CommonService } from "../_service";
|
|
16
21
|
import VtxBaseModal from "../vtx-base-modal";
|
|
17
22
|
import VtxDefaultModal from "../vtx-default-modal";
|
|
23
|
+
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
18
24
|
import { Appraise, Base, Build, File, Score } from "./components";
|
|
19
25
|
import "./style";
|
|
20
|
-
import {
|
|
26
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
|
+
var TABS_APPRAISAL = 'appraisal';
|
|
28
|
+
var TABS_VIDEO = 'video';
|
|
29
|
+
var TABS_RM = 'rm';
|
|
21
30
|
|
|
22
31
|
//弹窗配置
|
|
23
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
32
|
var getByCode = function getByCode(params) {
|
|
25
33
|
return request.get('/cloud/jcss-reborn/facility/type/config/getByCode', {
|
|
26
34
|
data: params
|
|
@@ -33,7 +41,7 @@ var smallPop = function smallPop(params) {
|
|
|
33
41
|
});
|
|
34
42
|
};
|
|
35
43
|
export default (function (props) {
|
|
36
|
-
var _config$;
|
|
44
|
+
var _tabsData, _config$;
|
|
37
45
|
var visible = props.visible,
|
|
38
46
|
theme = props.theme,
|
|
39
47
|
title = props.title,
|
|
@@ -49,19 +57,26 @@ export default (function (props) {
|
|
|
49
57
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
50
58
|
config = _useState4[0],
|
|
51
59
|
setConfig = _useState4[1];
|
|
60
|
+
var _CommonService$useBas = CommonService.useBaseInfo(id),
|
|
61
|
+
info = _CommonService$useBas.info;
|
|
62
|
+
var _useGetChannels = useGetChannels("".concat((info === null || info === void 0 ? void 0 : info.typeCode) || 'wr', "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.code) && ((_tabsData = tabsData) === null || _tabsData === void 0 ? void 0 : _tabsData.findIndex(function (ele) {
|
|
63
|
+
return ele.key === 'video';
|
|
64
|
+
})) > -1),
|
|
65
|
+
channels = _useGetChannels.channels;
|
|
52
66
|
useEffect(function () {
|
|
53
67
|
getByCode({
|
|
54
68
|
code: 'wr'
|
|
55
69
|
}).then(function (res) {
|
|
56
70
|
if ((res === null || res === void 0 ? void 0 : res.result) === 0) {
|
|
57
|
-
|
|
71
|
+
var tabsConfig = (res.data.popupConfigJson || []).filter(function (item) {
|
|
58
72
|
return item.display;
|
|
59
73
|
}).map(function (item) {
|
|
60
74
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
61
75
|
key: item.code,
|
|
62
76
|
title: item.name
|
|
63
77
|
});
|
|
64
|
-
})
|
|
78
|
+
});
|
|
79
|
+
setConfig(tabsConfig);
|
|
65
80
|
}
|
|
66
81
|
});
|
|
67
82
|
}, []);
|
|
@@ -74,7 +89,13 @@ export default (function (props) {
|
|
|
74
89
|
}
|
|
75
90
|
});
|
|
76
91
|
}, [id]);
|
|
77
|
-
var contentList = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},
|
|
92
|
+
var contentList = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_APPRAISAL, /*#__PURE__*/_jsx(Appraisal, {
|
|
93
|
+
id: id
|
|
94
|
+
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
95
|
+
channels: channels
|
|
96
|
+
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
97
|
+
id: id
|
|
98
|
+
})), 'base', /*#__PURE__*/_jsx(Base, _objectSpread(_objectSpread({}, props), {}, {
|
|
78
99
|
detail: detail
|
|
79
100
|
}))), 'appraise', /*#__PURE__*/_jsx(Appraise, _objectSpread({}, props))), 'score', /*#__PURE__*/_jsx(Score, _objectSpread({}, props))), 'build', /*#__PURE__*/_jsx(Build, _objectSpread({}, props))), 'file', /*#__PURE__*/_jsx(File, _objectSpread({}, props)));
|
|
80
101
|
|
|
@@ -97,7 +118,7 @@ export default (function (props) {
|
|
|
97
118
|
title: title,
|
|
98
119
|
id: id,
|
|
99
120
|
onCancel: onCancel,
|
|
100
|
-
tabs: config,
|
|
121
|
+
tabs: insertVideoTab(config, channels),
|
|
101
122
|
contents: contentList,
|
|
102
123
|
tabChose: (_config$ = config[0]) === null || _config$ === void 0 ? void 0 : _config$.key,
|
|
103
124
|
modalShow: modalShow,
|
|
@@ -11,6 +11,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
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
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { VtxUpload } from "@vtx/components";
|
|
14
|
+
import { translateLocaleText } from "../../../hooks/useTranslation.js";
|
|
14
15
|
import htmr from "htmr";
|
|
15
16
|
import React, { useState } from "react";
|
|
16
17
|
import { useSetState } from 'ahooks';
|
|
@@ -100,7 +101,9 @@ export default function viewRichText(_ref) {
|
|
|
100
101
|
style[key] = config[key];
|
|
101
102
|
} else {
|
|
102
103
|
if (key == 'label') {
|
|
103
|
-
obj.placeholder = "
|
|
104
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
105
|
+
label: config[key] || ''
|
|
106
|
+
});
|
|
104
107
|
}
|
|
105
108
|
obj[key] = config[key];
|
|
106
109
|
}
|
|
@@ -14,6 +14,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
14
14
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
15
15
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
16
|
import { View, LabeledFieldView, createLabeledInputText, ButtonView, submitHandler, icons, LabelView } from "../../ckeditor/ckeditor";
|
|
17
|
+
import { translateLocaleText } from "../../../../../hooks/useTranslation.js";
|
|
17
18
|
var FormView = /*#__PURE__*/function (_View) {
|
|
18
19
|
_inherits(FormView, _View);
|
|
19
20
|
var _super = _createSuper(FormView);
|
|
@@ -21,10 +22,10 @@ var FormView = /*#__PURE__*/function (_View) {
|
|
|
21
22
|
var _this;
|
|
22
23
|
_classCallCheck(this, FormView);
|
|
23
24
|
_this = _super.call(this, locale);
|
|
24
|
-
_this.attrLabel = _this._createLabel("
|
|
25
|
-
_this.labelInputView = _this._createInput('
|
|
26
|
-
_this.nameInputView = _this._createInput('
|
|
27
|
-
_this.orderInputView = _this._createInput('
|
|
25
|
+
_this.attrLabel = _this._createLabel(translateLocaleText("t('vtxzfmodal.ck.attribute')"));
|
|
26
|
+
_this.labelInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.fieldName')"));
|
|
27
|
+
_this.nameInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.field')"));
|
|
28
|
+
_this.orderInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.orderNo')"));
|
|
28
29
|
|
|
29
30
|
// Create the save and cancel buttons.
|
|
30
31
|
_this.saveButtonView = _this._createButton('Save', icons.check, 'ck-button-save');
|