瀏覽代碼

feat: 解决delivery date弹窗样式bug

Jack Zhou 3 月之前
父節點
當前提交
4d6402d8a3
共有 4 個文件被更改,包括 6 次插入6 次删除
  1. 1 1
      .env.development
  2. 1 1
      package.json
  3. 2 2
      src/views/DestinationDelivery/src/components/DeliveryDate.vue
  4. 2 2
      vite.config.ts

+ 1 - 1
.env.development

@@ -1,2 +1,2 @@
-VITE_API_HOST = 'http://192.168.0.161/Customer_Service_Online'
+VITE_API_HOST = 'http://192.168.0.153/Customer_Service_Online'
 VITE_BASE_URL = '/k_new_online/'

+ 1 - 1
package.json

@@ -40,7 +40,7 @@
     "moment": "^2.30.1",
     "moment-timezone": "^0.5.46",
     "pinia": "^2.2.2",
-    "sass-loader": "^16.0.2",
+    "sass-loader": "^14.1.1",
     "vue": "^3.4.29",
     "vue-draggable-plus": "^0.5.3",
     "vue-json-pretty": "^2.5.0",

+ 2 - 2
src/views/DestinationDelivery/src/components/DeliveryDate.vue

@@ -151,13 +151,13 @@ const handlePanelChange = (value: any, mode: any) => {
             <div class="status-item pending">
               <span class="status-text">Pending</span>
               <div class="count">
-                <span>3</span>
+                <span>{{ stateDataList[current.format('YYYY-MM-DD')].pending }}</span>
               </div>
             </div>
             <div class="status-item approved">
               <span class="status-text">Approved</span>
               <div class="count">
-                <span>3</span>
+                <span>{{ stateDataList[current.format('YYYY-MM-DD')].approved }}</span>
               </div>
             </div>
           </div>

+ 2 - 2
vite.config.ts

@@ -50,13 +50,13 @@ export default defineConfig(({ mode }) => {
       })
     ],
     server: {
-      port: 80,
+      port: 8080,
       hmr: true,
       open: true,
       // 设置 https 代理
       proxy: {
         '/api': {
-          target: 'http://192.168.0.161',
+          target: 'http://192.168.0.153',
           changeOrigin: true,
           rewrite: (path: string) => path.replace(/^\/api/, '')
         }