|
@@ -13,7 +13,9 @@ import { deviceCardData, DeviceType } from './device-card';
|
|
import DeviceWorkParams from './DeviceWorkParams.vue';
|
|
import DeviceWorkParams from './DeviceWorkParams.vue';
|
|
import DevWorkParamData from './DevWorkParamData.vue';
|
|
import DevWorkParamData from './DevWorkParamData.vue';
|
|
|
|
|
|
-import type { DevicesListItem, DeviceTypeCount, PageParams } from '@/types';
|
|
|
|
|
|
+import type { DevGroupTabCompProps, DevicesListItem, DeviceTypeCount, PageParams } from '@/types';
|
|
|
|
+
|
|
|
|
+const props = defineProps<DevGroupTabCompProps>();
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
const { isLoading, handleRequest } = useRequest();
|
|
const { isLoading, handleRequest } = useRequest();
|
|
@@ -23,7 +25,7 @@ const activeDeviceStatus = ref<DeviceStatusQuery>(DeviceStatusQuery.All);
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
handleRequest(async () => {
|
|
handleRequest(async () => {
|
|
- deviceTypes.value = await getDevWorkTypeCount(7, [
|
|
|
|
|
|
+ deviceTypes.value = await getDevWorkTypeCount(props.deviceGroupId, [
|
|
DeviceType.冷水主机,
|
|
DeviceType.冷水主机,
|
|
DeviceType.控制柜,
|
|
DeviceType.控制柜,
|
|
DeviceType.冷却塔,
|
|
DeviceType.冷却塔,
|
|
@@ -162,7 +164,7 @@ const handleDevCardClick = (devId: number, e: Event) => {
|
|
currentDevId.value = devId;
|
|
currentDevId.value = devId;
|
|
viewHistoryData(paramCode);
|
|
viewHistoryData(paramCode);
|
|
} else {
|
|
} else {
|
|
- router.push(`/device-manage/equipment-details/${devId}`);
|
|
|
|
|
|
+ router.push(`/device-manage/device-list/equipment-details/${devId}`);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|