Ver código fonte

[Mod 0000]数据点选增加快速模式参数

wangkeyi 2 dias atrás
pai
commit
42359a1ec4

+ 1 - 0
src/views/vent/home/configurable/components/preset/SysWindCard.vue

@@ -47,6 +47,7 @@
     device_id: item.deviceID,
     device_name: item.strinstallpos,
     device_type: 'windrect',
+    mode: 'fast',
   }));
 
   const props = defineProps<{

+ 2 - 2
src/views/ventAI/dataPicker/api.ts

@@ -12,7 +12,7 @@ enum Api {
  * @returns 流完成后的 thread_id、session_id
  */
 export async function fetchTunnelInterpretation(
-  params: { tun_id: string; tun_name: string },
+  params: { tun_id: string; tun_name: string; mode?: string },
   onEvent: (event: SSERawEvent) => void
 ): Promise<{ thread_id: string; session_id: string }> {
   return ssePost(Api.clickTun, params, onEvent);
@@ -25,7 +25,7 @@ export async function fetchTunnelInterpretation(
  * @returns 流完成后的 thread_id、session_id
  */
 export async function fetchDeviceInterpretation(
-  params: { device_id: string; device_name: string; device_type: string },
+  params: { device_id: string; device_name: string; device_type: string; mode?: string },
   onEvent: (event: SSERawEvent) => void
 ): Promise<{ thread_id: string; session_id: string }> {
   return ssePost(Api.clickDevice, params, onEvent);

+ 1 - 2
src/views/ventAI/dataPicker/components/DataPickerModal.vue

@@ -201,8 +201,7 @@
   }
   .di-process {
     margin-bottom: 16px;
-    padding-bottom: 12px;
-    border-bottom: 1px solid rgba(30, 144, 255, 0.12);
+    // border-bottom: 1px solid rgba(30, 144, 255, 0.12);
     &__row {
       display: flex;
       align-items: center;

+ 3 - 1
src/views/ventAI/dataPicker/useDataPicker.ts

@@ -171,7 +171,9 @@ export interface DataPickerOptions {
 }
 
 export function useDataPicker(
-  mapParams: (item: any) => { tun_id: string; tun_name: string } | { device_id: string; device_name: string; device_type: string },
+  mapParams: (
+    item: any
+  ) => { tun_id: string; tun_name: string; mode?: string } | { device_id: string; device_name: string; device_type: string; mode?: string },
   options: DataPickerOptions = {}
 ) {
   console.log('useDataPicker', mapParams);