|  | @ -66,7 +66,7 @@ | 
		
	
		
			
				|  |  |         <el-col class="step_form"> |  |  |         <el-col class="step_form"> | 
		
	
		
			
				|  |  |           <div class="step_select"> |  |  |           <div class="step_select"> | 
		
	
		
			
				|  |  |             <div>已选内容: {{ selectTotal }}</div> |  |  |             <div>已选内容: {{ selectTotal }}</div> | 
		
	
		
			
				|  |  |             <div>内容总时长:{{ selectTotalTime }}s</div> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |             <div>内容总时长:{{ selectTotalTime | getSeconds }}</div> | 
		
	
		
			
				|  |  |             <div>添加BGM:<el-button class="step_select_audio" type="primary" round @click="selectAudioCont(0,-1)">选择文件</el-button> |  |  |             <div>添加BGM:<el-button class="step_select_audio" type="primary" round @click="selectAudioCont(0,-1)">选择文件</el-button> | 
		
	
		
			
				|  |  |             </div> |  |  |             </div> | 
		
	
		
			
				|  |  |           </div> |  |  |           </div> | 
		
	
	
		
			
				|  | @ -164,7 +164,7 @@ | 
		
	
		
			
				|  |  |     <div class="upload_layer"> |  |  |     <div class="upload_layer"> | 
		
	
		
			
				|  |  |       <el-dialog title="请选择播放内容" :close-on-click-modal="false" :visible.sync="listEditVisible"> |  |  |       <el-dialog title="请选择播放内容" :close-on-click-modal="false" :visible.sync="listEditVisible"> | 
		
	
		
			
				|  |  |         <div class="total_time"> |  |  |         <div class="total_time"> | 
		
	
		
			
				|  |  |           内容总时长:3m15s |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           内容总时长:{{ selectTotalTime | getSeconds }} | 
		
	
		
			
				|  |  |         </div> |  |  |         </div> | 
		
	
		
			
				|  |  |         <div v-for="(item, index) in selectedEditData" :key="index" class="edit_material"> |  |  |         <div v-for="(item, index) in selectedEditData" :key="index" class="edit_material"> | 
		
	
		
			
				|  |  |           <div class="edit_img"> |  |  |           <div class="edit_img"> | 
		
	
	
		
			
				|  | @ -412,6 +412,7 @@ export default { | 
		
	
		
			
				|  |  |     this.selectedMaterial = [] |  |  |     this.selectedMaterial = [] | 
		
	
		
			
				|  |  |     this.selectedMaterial = JSON.parse(localStorage.getItem('selectedMaterial')) |  |  |     this.selectedMaterial = JSON.parse(localStorage.getItem('selectedMaterial')) | 
		
	
		
			
				|  |  |     this.getSelectTotal() |  |  |     this.getSelectTotal() | 
		
	
		
			
				|  |  |  |  |  |     this.getSelectTimeTotal() | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   mounted() { |  |  |   mounted() { | 
		
	
		
			
				|  |  |     if (this.$route.path === '/release') { |  |  |     if (this.$route.path === '/release') { | 
		
	
	
		
			
				|  | @ -438,14 +439,31 @@ export default { | 
		
	
		
			
				|  |  |           } |  |  |           } | 
		
	
		
			
				|  |  |         }) |  |  |         }) | 
		
	
		
			
				|  |  |         this.selectTotal = this.selectedMaterial.length + result.length |  |  |         this.selectTotal = this.selectedMaterial.length + result.length | 
		
	
		
			
				|  |  |         console.log(this.selectedMaterial) |  |  |  | 
		
	
		
			
				|  |  |         console.log(this.selectedMaterial.length) |  |  |  | 
		
	
		
			
				|  |  |         console.log(result.length) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  |     getSelectTimeTotal() { | 
		
	
		
			
				|  |  |  |  |  |       if (this.selectedMaterial) { | 
		
	
		
			
				|  |  |  |  |  |         const imgTimeTotal = [] | 
		
	
		
			
				|  |  |  |  |  |         this.selectedMaterial.forEach(item => { | 
		
	
		
			
				|  |  |  |  |  |           if (item.material_type == 0) { | 
		
	
		
			
				|  |  |  |  |  |             if (item.showTime) { | 
		
	
		
			
				|  |  |  |  |  |               imgTimeTotal.push(parseInt(item.showTime)) | 
		
	
		
			
				|  |  |  |  |  |             } else { | 
		
	
		
			
				|  |  |  |  |  |               imgTimeTotal.push(parseInt(15)) | 
		
	
		
			
				|  |  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |  |           } else { | 
		
	
		
			
				|  |  |  |  |  |             imgTimeTotal.push(parseInt(item.duration)) | 
		
	
		
			
				|  |  |  |  |  |           } | 
		
	
		
			
				|  |  |  |  |  |         }) | 
		
	
		
			
				|  |  |  |  |  |         this.selectTotalTime = imgTimeTotal.reduce((a, b) => { | 
		
	
		
			
				|  |  |  |  |  |           return a + b | 
		
	
		
			
				|  |  |  |  |  |         }, 0) | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     saveEdit() { |  |  |     saveEdit() { | 
		
	
		
			
				|  |  |       this.listEditVisible = false |  |  |       this.listEditVisible = false | 
		
	
		
			
				|  |  |       this.getSelectTotal() |  |  |       this.getSelectTotal() | 
		
	
		
			
				|  |  |  |  |  |       this.getSelectTimeTotal() | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 编辑带来 release_id |  |  |     // 编辑带来 release_id | 
		
	
		
			
				|  |  |     editRelease() { |  |  |     editRelease() { | 
		
	
	
		
			
				|  | @ -513,6 +531,7 @@ export default { | 
		
	
		
			
				|  |  |                 } |  |  |                 } | 
		
	
		
			
				|  |  |               }) |  |  |               }) | 
		
	
		
			
				|  |  |               this.getSelectTotal() |  |  |               this.getSelectTotal() | 
		
	
		
			
				|  |  |  |  |  |               this.getSelectTimeTotal() | 
		
	
		
			
				|  |  |             } |  |  |             } | 
		
	
		
			
				|  |  |           }) |  |  |           }) | 
		
	
		
			
				|  |  |           // 设备list |  |  |           // 设备list | 
		
	
	
		
			
				|  | @ -728,6 +747,8 @@ export default { | 
		
	
		
			
				|  |  |         }) |  |  |         }) | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |       // localStorage.setItem('selectedMaterial', JSON.stringify(this.selectedMaterial)) |  |  |       // localStorage.setItem('selectedMaterial', JSON.stringify(this.selectedMaterial)) | 
		
	
		
			
				|  |  |  |  |  |       this.getSelectTotal() | 
		
	
		
			
				|  |  |  |  |  |       this.getSelectTimeTotal() | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 选中可编辑的 |  |  |     // 选中可编辑的 | 
		
	
		
			
				|  |  |     clickMaterialItem(id, item) { |  |  |     clickMaterialItem(id, item) { | 
		
	
	
		
			
				|  | @ -820,6 +841,7 @@ export default { | 
		
	
		
			
				|  |  |             this.selectedMaterial.push(this.audioListData[index]) |  |  |             this.selectedMaterial.push(this.audioListData[index]) | 
		
	
		
			
				|  |  |           } |  |  |           } | 
		
	
		
			
				|  |  |           this.getSelectTotal() |  |  |           this.getSelectTotal() | 
		
	
		
			
				|  |  |  |  |  |           this.getSelectTimeTotal() | 
		
	
		
			
				|  |  |           // localStorage.setItem('selectedMaterial', JSON.stringify(this.selectedMaterial)) |  |  |           // localStorage.setItem('selectedMaterial', JSON.stringify(this.selectedMaterial)) | 
		
	
		
			
				|  |  |         } else { |  |  |         } else { | 
		
	
		
			
				|  |  |           this.selectedEditData[this.thisEditIndex].showAudioName = this.audioListData[index].material_name |  |  |           this.selectedEditData[this.thisEditIndex].showAudioName = this.audioListData[index].material_name | 
		
	
	
		
			
				|  | @ -918,7 +940,9 @@ export default { | 
		
	
		
			
				|  |  |         }) |  |  |         }) | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |       // localStorage.setItem('selectedMaterial', JSON.stringify(this.selectedMaterial)) |  |  |       // localStorage.setItem('selectedMaterial', JSON.stringify(this.selectedMaterial)) | 
		
	
		
			
				|  |  |  |  |  |       console.log(this.selectedMaterial) | 
		
	
		
			
				|  |  |       this.getSelectTotal() |  |  |       this.getSelectTotal() | 
		
	
		
			
				|  |  |  |  |  |       this.getSelectTimeTotal() | 
		
	
		
			
				|  |  |       this.mulitText = '多选' |  |  |       this.mulitText = '多选' | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 素材选择 - 取消按钮 |  |  |     // 素材选择 - 取消按钮 | 
		
	
	
		
			
				|  | 
 |