| | |
| | | </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> |
| | |
| | | showListImages: [], |
| | | tags: [], |
| | | fileInfo: {}, |
| | | goodsList: [] |
| | | |
| | | goodsList: [], |
| | | weight: 0 // 添加权重字段,默认值为0 |
| | | }, |
| | | videoDownForm: { |
| | | id: '', |
| | |
| | | showListImages: [], |
| | | tags: [], |
| | | fileInfo: {}, |
| | | goodsList: [] |
| | | goodsList: [], |
| | | weight: 0 // 添加权重字段,默认值为0 |
| | | } |
| | | |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | 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) |
| | |
| | | showListImages: [], |
| | | tags: [], |
| | | fileInfo: {}, |
| | | goodsList: [] |
| | | goodsList: [], |
| | | weight: 0 // 添加权重字段,默认值为0 |
| | | } |
| | | recommend({ |
| | | searchType: "HOT" |