Sfoglia il codice sorgente

修改type.vue中请求数据参数报错的问题

wyoujia 1 anno fa
parent
commit
66836e3545

+ 12 - 0
admin.ui.plus-master/src/api/admin/deviceAuthorization/oilSdkAuthorDto.ts

@@ -58,3 +58,15 @@ export interface OilSdkAuthorDto {
   /**分页总数 */
   total: number,
 }
+
+/**结果输出*/
+export interface oilSdkAuthorDtoResult {
+  /** 是否成功标记 */
+  success?: boolean
+  /** 编码 */
+  code?: string | null
+  /** 消息 */
+  msg?: string | null
+  /** 分页信息输出 */
+  data?: any
+}

+ 3 - 3
admin.ui.plus-master/src/api/admin/productionManagement/ComponentTypeDto.ts

@@ -9,11 +9,11 @@ export interface ComponentGetPageDto{
   /**部件名称 */
   bomName:string | null
   /**部件编号 */
-  bomNo:string | null
+  // bomNo:string | null
   bomProNo: string | null
-  bomMateNo:string | null
+  // bomMateNo:string | null
   bomType: number
-  status: number
+  // status: number
 
 }
 

+ 1 - 1
admin.ui.plus-master/src/views/admin/product/index.vue

@@ -183,7 +183,7 @@ onMounted(() => {
   onQuery()
   eventBus.off('refreshFile')
   eventBus.on('refreshFile', async () => {
-    onQuery()
+    await onQuery()
   })
 })
 

+ 6 - 5
admin.ui.plus-master/src/views/admin/product/type.vue

@@ -135,8 +135,9 @@ import { ComponentTypeApi } from '/@/api/admin/productionManagement/ComponentTyp
 import dayjs from 'dayjs'
 import eventBus from '/@/utils/mitt'
 import { isImage } from '/@/utils/test'
-import {PageInputFileGetPageDto} from "/@/api/admin/productionManagement/ComopnentDto";
 import {FileGetPageOutput} from "/@/api/admin/data-contracts";
+import {PageInputFileGetPageDto} from "/@/api/admin/productionManagement/ComopnentDto";
+import {ComponentGetPageDto} from "/@/api/admin/productionManagement/ComponentTypeDto";
 //import commonFunction from '/@/utils/commonFunction'
 
 // const { proxy } = getCurrentInstance() as any
@@ -150,12 +151,12 @@ const state = reactive({
   loading: false,
   fileFormTitle: '',
   filterModel: {
-    fileName: '',
+    // fileName: '',
     bomType: '',
     bomName: '',
     bomProNo: '',
-    bomMateNo: '',
-  },
+    // bomMateNo: '',
+  } as ComponentGetPageDto,
   total: 0,
   pageInput: {
     currentPage: 1,
@@ -181,7 +182,7 @@ onMounted(() => {
   onQuery()
   eventBus.off('refreshFile')
   eventBus.on('refreshFile', async () => {
-    onQuery()
+    await onQuery()
   })
 })