peng
2 天以前 d49ef920c2ea5e1f3a24dcf7f2faca865d0eb75d
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
      // 保留原有的row数据,但要确保weight字段存在
      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"