|  |  | @ -91,38 +91,26 @@ | 
			
		
	
		
			
				
					|  |  |  |     <div class="publish_layer"> | 
			
		
	
		
			
				
					|  |  |  |       <el-dialog title="发布内容" :close-on-click-modal="false" :visible.sync="contentVisible" width="970px" height="590px"> | 
			
		
	
		
			
				
					|  |  |  |         <div class="content_warp"> | 
			
		
	
		
			
				
					|  |  |  |           <h4>图片</h4> | 
			
		
	
		
			
				
					|  |  |  |           <ul class="item_list"> | 
			
		
	
		
			
				
					|  |  |  |             <li class="item_cont"> | 
			
		
	
		
			
				
					|  |  |  |               <img src="@/assets/images/background.jpg" alt /> | 
			
		
	
		
			
				
					|  |  |  |               <div class="item_format"> | 
			
		
	
		
			
				
					|  |  |  |                 <span class="item_type">JPG</span> | 
			
		
	
		
			
				
					|  |  |  |           <div v-for="(items,index) in contentDevice" :key="index" class="release_list"> | 
			
		
	
		
			
				
					|  |  |  |             <h4>发布名称 {{ items.relaase_name }} </h4> | 
			
		
	
		
			
				
					|  |  |  |             <p style="margin-bottom: 10px"> 发布时间 {{ items.release_start.split("00:00:00")[0] }} </p> | 
			
		
	
		
			
				
					|  |  |  |             <div class="device_cont_list"> | 
			
		
	
		
			
				
					|  |  |  |               <!-- <div v-if="items.bgm_main != null && items.bgm_name != null" class="material_item item_cont"> | 
			
		
	
		
			
				
					|  |  |  |                 <div class="radio_img"></div> | 
			
		
	
		
			
				
					|  |  |  |                 <div class="file_name">{{ items.bgm_name }}</div> | 
			
		
	
		
			
				
					|  |  |  |               </div> --> | 
			
		
	
		
			
				
					|  |  |  |               <div v-for="(item, i) in items.show_materials" :key="'list-'+i" class="material_item item_cont"> | 
			
		
	
		
			
				
					|  |  |  |                 <img v-if="item.img_path || item.material_type == 1" :src="item.img_path" alt /> | 
			
		
	
		
			
				
					|  |  |  |                 <div v-if="!item.img_path && item.material_type == 2" class="radio_img"></div> | 
			
		
	
		
			
				
					|  |  |  |                 <div class="item_format"> | 
			
		
	
		
			
				
					|  |  |  |                   <span class="item_type">{{ item.deposit_url | getFileFormat }}</span> | 
			
		
	
		
			
				
					|  |  |  |                   <span v-if="item.material_type !== '0'" class="item_time">{{ item.duration | getSeconds }}</span> | 
			
		
	
		
			
				
					|  |  |  |                 </div> | 
			
		
	
		
			
				
					|  |  |  |                 <div class="file_name">{{ item.material_name }}</div> | 
			
		
	
		
			
				
					|  |  |  |                 <div v-if="item.bgm_name && item.material_type == 0" class="bgm_name">背景音乐:{{ item.bgm_name }}</div> | 
			
		
	
		
			
				
					|  |  |  |               </div> | 
			
		
	
		
			
				
					|  |  |  |               <div class="file_name">人工智能</div> | 
			
		
	
		
			
				
					|  |  |  |             </li> | 
			
		
	
		
			
				
					|  |  |  |           </ul> | 
			
		
	
		
			
				
					|  |  |  |           <h4>视频</h4> | 
			
		
	
		
			
				
					|  |  |  |           <ul class="item_list"> | 
			
		
	
		
			
				
					|  |  |  |             <li class="item_cont"> | 
			
		
	
		
			
				
					|  |  |  |               <img src="@/assets/images/background.jpg" alt /> | 
			
		
	
		
			
				
					|  |  |  |               <div class="item_format"> | 
			
		
	
		
			
				
					|  |  |  |                 <span class="item_type">Video</span> | 
			
		
	
		
			
				
					|  |  |  |                 <span class="item_time">03:00</span> | 
			
		
	
		
			
				
					|  |  |  |               </div> | 
			
		
	
		
			
				
					|  |  |  |               <div class="file_name">防控疫情小贴士</div> | 
			
		
	
		
			
				
					|  |  |  |             </li> | 
			
		
	
		
			
				
					|  |  |  |           </ul> | 
			
		
	
		
			
				
					|  |  |  |           <h4>音频</h4> | 
			
		
	
		
			
				
					|  |  |  |           <ul class="item_list"> | 
			
		
	
		
			
				
					|  |  |  |             <li class="item_cont"> | 
			
		
	
		
			
				
					|  |  |  |               <div class="radio_img"></div> | 
			
		
	
		
			
				
					|  |  |  |               <div class="item_format"> | 
			
		
	
		
			
				
					|  |  |  |                 <span class="item_type">Video</span> | 
			
		
	
		
			
				
					|  |  |  |                 <span class="item_time">03:00</span> | 
			
		
	
		
			
				
					|  |  |  |               </div> | 
			
		
	
		
			
				
					|  |  |  |               <div class="file_name">防控疫情小贴士</div> | 
			
		
	
		
			
				
					|  |  |  |             </li> | 
			
		
	
		
			
				
					|  |  |  |           </ul> | 
			
		
	
		
			
				
					|  |  |  |             </div> | 
			
		
	
		
			
				
					|  |  |  |           </div> | 
			
		
	
		
			
				
					|  |  |  |         </div> | 
			
		
	
		
			
				
					|  |  |  |       </el-dialog> | 
			
		
	
		
			
				
					|  |  |  |     </div> | 
			
		
	
	
		
			
				
					|  |  | @ -142,13 +130,19 @@ | 
			
		
	
		
			
				
					|  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  | import { ReqDeviceEdit, ReqDeviceList, ReqQueryDevice, ReqRemoveDevice } from '@/api/device/deviceList.js' | 
			
		
	
		
			
				
					|  |  |  | import { parseTime } from '@/utils/index.js' | 
			
		
	
		
			
				
					|  |  |  | import { ReqDeviceEdit, ReqDeviceList, ReqQueryDevice, ReqRemoveDevice, FetchFindReleaseDetailsByDeviceId } from '@/api/device/deviceList.js' | 
			
		
	
		
			
				
					|  |  |  | import { parseTime, getSeconds, getFileFormat } from '@/utils/index.js' | 
			
		
	
		
			
				
					|  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |   name: 'Device', | 
			
		
	
		
			
				
					|  |  |  |   filters: { | 
			
		
	
		
			
				
					|  |  |  |     parseTime(time, cFormat) { | 
			
		
	
		
			
				
					|  |  |  |       return parseTime(time, cFormat) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     getSeconds(s) { | 
			
		
	
		
			
				
					|  |  |  |       return getSeconds(s) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     getFileFormat(s) { | 
			
		
	
		
			
				
					|  |  |  |       return getFileFormat(s) | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   data() { | 
			
		
	
	
		
			
				
					|  |  | @ -166,6 +160,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       // 编辑的对话框 | 
			
		
	
		
			
				
					|  |  |  |       addFromVisible: false, | 
			
		
	
		
			
				
					|  |  |  |       contentVisible: false, | 
			
		
	
		
			
				
					|  |  |  |       contentDevice: [], | 
			
		
	
		
			
				
					|  |  |  |       recordVisible: false, | 
			
		
	
		
			
				
					|  |  |  |       // 设备列表的数据 | 
			
		
	
		
			
				
					|  |  |  |       deviceList: [], | 
			
		
	
	
		
			
				
					|  |  | @ -257,8 +252,17 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 查看 | 
			
		
	
		
			
				
					|  |  |  |     handleClick(row) { | 
			
		
	
		
			
				
					|  |  |  |       // console.log(row) | 
			
		
	
		
			
				
					|  |  |  |       console.log(row) | 
			
		
	
		
			
				
					|  |  |  |       this.contentVisible = true | 
			
		
	
		
			
				
					|  |  |  |       const params = { | 
			
		
	
		
			
				
					|  |  |  |         device_id: row.device_id | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       FetchFindReleaseDetailsByDeviceId(params).then(res => { | 
			
		
	
		
			
				
					|  |  |  |         if (res.code === 200) { | 
			
		
	
		
			
				
					|  |  |  |           console.log(res) | 
			
		
	
		
			
				
					|  |  |  |           this.contentDevice = res.data | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 修改设备信息并提交 | 
			
		
	
		
			
				
					|  |  |  |     submitForm(formName) { | 
			
		
	
	
		
			
				
					|  |  | @ -330,4 +334,28 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     color: #333; | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | .release_list{ | 
			
		
	
		
			
				
					|  |  |  |   margin-bottom: 40px; | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | .device_cont_list{ | 
			
		
	
		
			
				
					|  |  |  |   display: flex; | 
			
		
	
		
			
				
					|  |  |  |   flex-wrap: wrap; | 
			
		
	
		
			
				
					|  |  |  |   .item_cont{ | 
			
		
	
		
			
				
					|  |  |  |     overflow: inherit; | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |   .bgm_name{ | 
			
		
	
		
			
				
					|  |  |  |     font-size: 12px; | 
			
		
	
		
			
				
					|  |  |  |     padding: 10px 0; | 
			
		
	
		
			
				
					|  |  |  |     display: -webkit-box; | 
			
		
	
		
			
				
					|  |  |  |     -webkit-box-orient: vertical; | 
			
		
	
		
			
				
					|  |  |  |     -webkit-line-clamp: 1; | 
			
		
	
		
			
				
					|  |  |  |     overflow: hidden; | 
			
		
	
		
			
				
					|  |  |  |     text-overflow: ellipsis; | 
			
		
	
		
			
				
					|  |  |  |     -moz-user-select: none; /*火狐*/ | 
			
		
	
		
			
				
					|  |  |  |     -webkit-user-select: none; /*webkit浏览器*/ | 
			
		
	
		
			
				
					|  |  |  |     -ms-user-select: none; /*IE10*/ | 
			
		
	
		
			
				
					|  |  |  |     -khtml-user-select: none; /*早期浏览器*/ | 
			
		
	
		
			
				
					|  |  |  |     user-select: none; | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | </style> |