From b57c81c1da4ad71edf2073c21e7cebb38123b961 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期一, 27 十月 2025 17:08:00 +0800
Subject: [PATCH] 页面调整

---
 manager/src/views/video/VideoList.vue |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/manager/src/views/video/VideoList.vue b/manager/src/views/video/VideoList.vue
index 603ef19..8dce271 100644
--- a/manager/src/views/video/VideoList.vue
+++ b/manager/src/views/video/VideoList.vue
@@ -80,6 +80,11 @@
               </FormItem>
             </Col>
             <Col span="12">
+              <FormItem label="鏉冮噸:" :label-width="80">
+                <InputNumber v-model="uploadVideoForm.weight" :min="0" :step="0.1" placeholder="璇疯緭鍏ユ潈閲�"></InputNumber>
+              </FormItem>
+            </Col>
+            <Col span="12">
               <FormItem label="涓婁紶绫诲瀷:" :label-width="80" prpo="videoContentType">
                 <Select v-model="uploadVideoForm.videoContentType" style="width:200px">
                   <Option value="img">鍥剧墖</Option>
@@ -697,8 +702,8 @@
         showListImages: [],
         tags: [],
         fileInfo: {},
-        goodsList: []
-
+        goodsList: [],
+        weight: 0 // 娣诲姞鏉冮噸瀛楁锛岄粯璁ゅ�间负0
       },
       videoDownForm: {
         id: '',
@@ -985,7 +990,8 @@
         showListImages: [],
         tags: [],
         fileInfo: {},
-        goodsList: []
+        goodsList: [],
+        weight: 0 // 娣诲姞鏉冮噸瀛楁锛岄粯璁ゅ�间负0
       }
 
 
@@ -1004,7 +1010,12 @@
         });
       }
 
-      this.uploadVideoForm = row
+      // 淇濈暀鍘熸湁鐨剅ow鏁版嵁锛屼絾瑕佺‘淇漺eight瀛楁瀛樺湪
+      this.uploadVideoForm = Object.assign(this.uploadVideoForm, row);
+      // 纭繚weight瀛楁鏈夐粯璁ゅ��
+      if (this.uploadVideoForm.weight === undefined || this.uploadVideoForm.weight === null) {
+        this.uploadVideoForm.weight = 0;
+      }
       console.log("鎵撳嵃鍊�",this.uploadVideoForm)
       this.uploadVideoForm.fileInfo= {};
       this.uploadVideoForm.videoImgs = JSON.parse(this.uploadVideoForm.videoImgs)
@@ -1318,7 +1329,8 @@
         showListImages: [],
         tags: [],
         fileInfo: {},
-        goodsList: []
+        goodsList: [],
+        weight: 0 // 娣诲姞鏉冮噸瀛楁锛岄粯璁ゅ�间负0
       }
       recommend({
         searchType: "HOT"

--
Gitblit v1.8.0