Explorar el Código

fix: 算子升级aiid的问题

lvkun996 hace 2 años
padre
commit
5c850b2feb
Se han modificado 2 ficheros con 7 adiciones y 14 borrados
  1. 4 1
      src/api/cvs/aibox.ts
  2. 3 13
      src/pages/cvs/edge/list.vue

+ 4 - 1
src/api/cvs/aibox.ts

@@ -27,7 +27,10 @@ export const aiboxLevelUp = (params: {devId: string, aiId: string, version: stri
   return request<string>({
     url: `/aiBox/updateModel/${params.devId}/${params.aiId}/${params.version}`,
     method: 'POST',
-    data: params.file
+    data: params.file,
+    Headers: {
+      'Content-Type': 'multipart/form-data;'
+    }
   })
 }
 

+ 3 - 13
src/pages/cvs/edge/list.vue

@@ -15,7 +15,8 @@
       </template>
       <template v-if="column.key === 'state'" >
         <div style="display: flex;align-items: center;" >
-          <div :style="{width: '8px',height: '8px',borderRadius: '50%', backgroundColor: (record.state==='ONLINE'?'green':'yellow')}" />
+
+          <div :style="{width: '8px',height: '8px',marginRight: '6px', borderRadius: '50%', backgroundColor: (record.state==='ONLINE'?'green':'yellow')}" />
           <div>{{record.state==='ONLINE'?'在线':'离线'}}</div>
         </div>
       </template>
@@ -68,15 +69,7 @@
   >
     <a-form  style="width: 100%;" :labelCol="{span: 3}" :wrapperCol="{span: 14}" >
         <a-form-item label="算法" v-bind="validateInfos.aiId"  >
-          <SelectTsx
-            v-model:value="aiboxState.aiId"
-            :request="async () => await  OperatorController.list()"
-            :keys="{
-              name: 'aiName',
-              value: 'aiId',
-              key: 'aiId'
-            }"
-          />
+          <InputTsx  placeholder="请填写算子ID" v-model:value="aiboxState.aiId" />
         </a-form-item>
 
         <a-form-item label="版本号" v-bind="validateInfos.version"  >
@@ -84,9 +77,6 @@
         </a-form-item>
 
         <a-form-item label="压缩包" v-bind="validateInfos.file"  >
-          <!--    :customRequest="customRequest" -->
-          <!--   :beforeUpload="customRequest" -->
-          <!--    @change="customRequest" -->
           <a-upload-dragger
               value="file"
               name="file"