inl-ui 0.0.75 → 0.0.76

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/types/src/index.d.ts",
@@ -157,11 +157,24 @@ export default defineComponent({
157
157
  .add(formState.value.duration, "h")
158
158
  .format(Format);
159
159
 
160
+ const upstreamEqumentLoopDtos: any = [];
161
+ const downstreamEqumentLoopDtos: any = [];
162
+ formState.value.relevanceList.forEach((relevance: any, index: number) => {
163
+ if (relevance.relevanceType === "上游") {
164
+ upstreamEqumentLoopDtos.push(relevance);
165
+ } else {
166
+ downstreamEqumentLoopDtos.push(relevance);
167
+ }
168
+ });
169
+
170
+ const equments = {
171
+ ...formState.value.deviceList[0],
172
+ upstreamEqumentLoopDtos,
173
+ downstreamEqumentLoopDtos,
174
+ };
175
+
160
176
  const param = {
161
- equments: [
162
- ...formState.value.deviceList,
163
- ...formState.value.relevanceList,
164
- ], // 所有设备信息
177
+ equments, // 所有设备信息
165
178
  busId: typeColumns[formState.value.bus].value, // stopSupplyPower(低压停送电) stopPower(低压停电) supplyPower(低压送电)
166
179
  busName: typeColumns[formState.value.bus].label, // 业务名称
167
180
  attempt: formState.value.attempt, // 试车流程