zhangafei 1 місяць тому
батько
коміт
491bbc5538
3 змінених файлів з 5 додано та 3 видалено
  1. 3 2
      src/views/home/HomePage.vue
  2. 1 0
      src/views/home/types.ts
  3. 1 1
      vite.config.ts

+ 3 - 2
src/views/home/HomePage.vue

@@ -252,6 +252,7 @@ const vehicleInfo = ref<VehicleInfo>({
   hasDestination: false,
   positionNum: '',
   confirmNumTime: '',
+  panelAmountTotal: 0,
 })
 
 const selectCcmNo = ref<string>('')
@@ -502,7 +503,7 @@ const handleClick = (type: string) => {
         editConfirmNumTime(
           {
             id: vehicleInfo.value.id,
-            amountTotal: selectErrorNum.value,
+            panelAmountTotal: selectErrorNum.value,
             updateType: amountError.value ? 1 : 0,
           },
           type,
@@ -588,7 +589,7 @@ const editInfo = (params: { licensePlate?: string; ccmNo?: string }, type: strin
 
 // 设置数量
 const editConfirmNumTime = (
-  params: { id?: string; amountTotal?: string; updateType?: number },
+  params: { id?: string; panelAmountTotal?: string; updateType?: number },
   type: string,
 ) => {
   stop()

+ 1 - 0
src/views/home/types.ts

@@ -21,6 +21,7 @@ export interface VehicleInfo {
   positionNum?: string
   arriveNum?: string | number
   confirmNumTime?: string
+  panelAmountTotal?: number
 }
 
 export interface VehicleResult {

+ 1 - 1
vite.config.ts

@@ -33,7 +33,7 @@ export default defineConfig({
     open: true,
     proxy: {
       '/jeecgbootbus': {
-        target: 'http://192.168.1.6:9999',
+        target: 'http://192.168.0.119:9999',
         changeOrigin: true,
         ws: true,
         rewrite: (path) => path.replace(/^\/jeecgbootbus/, ''),