|
@ -5,7 +5,7 @@ |
|
|
<el-row type="flex"> |
|
|
<el-row type="flex"> |
|
|
<el-col :span="20" class="col_flex"> |
|
|
<el-col :span="20" class="col_flex"> |
|
|
<div class="form_item"> |
|
|
<div class="form_item"> |
|
|
<span>状态</span> |
|
|
|
|
|
|
|
|
<span>状态:</span> |
|
|
<el-select v-model="query.state" size="small" class="filter-item" style="width: 120px"> |
|
|
<el-select v-model="query.state" size="small" class="filter-item" style="width: 120px"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in stateData" |
|
|
v-for="item in stateData" |
|
@ -16,7 +16,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form_item"> |
|
|
<div class="form_item"> |
|
|
<span>设备ID</span> |
|
|
|
|
|
|
|
|
<span>设备ID:</span> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="query.blurry" |
|
|
v-model="query.blurry" |
|
|
clearable |
|
|
clearable |
|
@ -28,7 +28,7 @@ |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form_item"> |
|
|
<div class="form_item"> |
|
|
<span>设备名称</span> |
|
|
|
|
|
|
|
|
<span>设备名称:</span> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="query.blurry" |
|
|
v-model="query.blurry" |
|
|
clearable |
|
|
clearable |
|
@ -42,14 +42,18 @@ |
|
|
<rrOperation /> |
|
|
<rrOperation /> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col class="page_add" :span="4"> |
|
|
<el-col class="page_add" :span="4"> |
|
|
<el-button class="table_add" type="primary" icon="el-icon-delete" disabled>清空</el-button> |
|
|
|
|
|
|
|
|
<el-button class="table_add clear_btn" plain disabled>清空</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<!-- table --> |
|
|
<el-row :gutter="15"> |
|
|
<el-row :gutter="15"> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-card class="box-card" shadow="never"> |
|
|
|
|
|
<el-table style="width: 100%;" :data="tableData"> |
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
|
style="width: 100%;" |
|
|
|
|
|
:data="tableData" |
|
|
|
|
|
:header-cell-style="{ background: '#3a8aeb', color: '#fff' }" |
|
|
|
|
|
> |
|
|
<el-table-column :selectable="checkboxT" type="selection" width="55" /> |
|
|
<el-table-column :selectable="checkboxT" type="selection" width="55" /> |
|
|
<el-table-column prop="id" label="设备ID" align="center" /> |
|
|
<el-table-column prop="id" label="设备ID" align="center" /> |
|
|
<el-table-column prop="account" label="设备账号" align="center" /> |
|
|
<el-table-column prop="account" label="设备账号" align="center" /> |
|
@ -71,16 +75,15 @@ |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button |
|
|
<el-button |
|
|
type="primary" |
|
|
type="primary" |
|
|
icon="el-icon-edit" |
|
|
|
|
|
@click="edit(scope.$index, scope.row)" |
|
|
|
|
|
/> |
|
|
|
|
|
<el-button type="info" icon="el-icon-info" /> |
|
|
|
|
|
|
|
|
class="edit_btn" |
|
|
|
|
|
@click="editFormData(scope.$index, scope.row)" |
|
|
|
|
|
>编辑</el-button> |
|
|
|
|
|
<el-button type="danger" class="record_btn">记录</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<!--分页组件--> |
|
|
<!--分页组件--> |
|
|
<pagination /> |
|
|
<pagination /> |
|
|
</el-card> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<!-- 编辑设备 --> |
|
|
<!-- 编辑设备 --> |
|
@ -89,22 +92,17 @@ |
|
|
:title="dialogTitle" |
|
|
:title="dialogTitle" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:visible.sync="addFromVisible" |
|
|
:visible.sync="addFromVisible" |
|
|
width="400px" |
|
|
|
|
|
|
|
|
width="576px" |
|
|
> |
|
|
> |
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
|
|
<el-form-item label="设备账号" prop="account"> |
|
|
<el-form-item label="设备账号" prop="account"> |
|
|
<el-input v-model="form.account" autocomplete="off" disabled style="width: 200px" /> |
|
|
|
|
|
|
|
|
<el-input v-model="form.account" autocomplete="off" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="设备名称" prop="name"> |
|
|
<el-form-item label="设备名称" prop="name"> |
|
|
<el-input v-model="form.name" style="width: 200px" /> |
|
|
|
|
|
|
|
|
<el-input v-model="form.name" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="设备方向" prop="orientation"> |
|
|
<el-form-item label="设备方向" prop="orientation"> |
|
|
<el-select |
|
|
|
|
|
v-model="form.orientation" |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
style="width: 200px" |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<el-select v-model="form.orientation" size="small" class="filter-item"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in deviceData" |
|
|
v-for="item in deviceData" |
|
|
:key="item.key" |
|
|
:key="item.key" |
|
@ -115,37 +113,53 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<el-button @click="addFromVisible = false">取 消</el-button> |
|
|
|
|
|
<el-button type="primary" @click="submitForm('form')">确 定</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" round @click="submitForm('form')">确 定</el-button> |
|
|
|
|
|
<el-button round @click="addFromVisible = false">取 消</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="layer"> |
|
|
|
|
|
|
|
|
<div class="publish_layer"> |
|
|
<el-dialog |
|
|
<el-dialog |
|
|
title="发布内容" |
|
|
title="发布内容" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:visible.sync="contentVisible" |
|
|
:visible.sync="contentVisible" |
|
|
width="720px" |
|
|
|
|
|
|
|
|
width="970px" |
|
|
|
|
|
height="590px" |
|
|
> |
|
|
> |
|
|
<div class="content_warp"> |
|
|
<div class="content_warp"> |
|
|
<h4>图片</h4> |
|
|
<h4>图片</h4> |
|
|
<ul class="item_list"> |
|
|
<ul class="item_list"> |
|
|
<li class="item_cont"> |
|
|
<li class="item_cont"> |
|
|
<img src="../../assets/images/background.jpg" alt /> |
|
|
|
|
|
<div class="item_info"> |
|
|
|
|
|
|
|
|
<img src="@/assets/images/background.jpg" alt /> |
|
|
<div class="item_format"> |
|
|
<div class="item_format"> |
|
|
<span class="item_type">JPG</span> |
|
|
<span class="item_type">JPG</span> |
|
|
<span class="item_time">30S</span> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<p class="item_name">1.3X2DD244</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- 视频 --> |
|
|
|
|
|
<div class="item_player">1</div> |
|
|
|
|
|
|
|
|
<div class="item_name">人工智能</div> |
|
|
</li> |
|
|
</li> |
|
|
</ul> |
|
|
</ul> |
|
|
<h4>视频</h4> |
|
|
<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="item_name">防控疫情小贴士</div> |
|
|
|
|
|
</li> |
|
|
|
|
|
</ul> |
|
|
<h4>音频</h4> |
|
|
<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="item_name">防控疫情小贴士</div> |
|
|
|
|
|
</li> |
|
|
|
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
@ -201,7 +215,7 @@ export default { |
|
|
watch: {}, |
|
|
watch: {}, |
|
|
methods: { |
|
|
methods: { |
|
|
// 编辑 |
|
|
// 编辑 |
|
|
edit(index, row) { |
|
|
|
|
|
|
|
|
editFormData(index, row) { |
|
|
this.dialogTitle = '编辑设备' |
|
|
this.dialogTitle = '编辑设备' |
|
|
this.addFromVisible = true |
|
|
this.addFromVisible = true |
|
|
this.form.account = row.account |
|
|
this.form.account = row.account |
|
@ -226,9 +240,23 @@ export default { |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
.layer { |
|
|
|
|
|
|
|
|
.clear_btn { |
|
|
|
|
|
color: #3a8aeb; |
|
|
|
|
|
border-color: #3a8aeb; |
|
|
|
|
|
} |
|
|
|
|
|
.publish_layer { |
|
|
::v-deep .el-dialog__body { |
|
|
::v-deep .el-dialog__body { |
|
|
padding: 0 0 30px 20px; |
|
|
|
|
|
|
|
|
padding: 0 20px 30px 20px; |
|
|
|
|
|
height: 590px; |
|
|
|
|
|
overflow-y: auto; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
.content_warp { |
|
|
|
|
|
padding-top: 16px; |
|
|
|
|
|
h4 { |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
color: #333; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.item_list { |
|
|
.item_list { |
|
@ -236,40 +264,53 @@ export default { |
|
|
flex-wrap: wrap; |
|
|
flex-wrap: wrap; |
|
|
.item_cont { |
|
|
.item_cont { |
|
|
position: relative; |
|
|
position: relative; |
|
|
width: 160px; |
|
|
|
|
|
height: 100px; |
|
|
|
|
|
|
|
|
width: 166px; |
|
|
|
|
|
height: 174px; |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
background-color: #f1f1f1; |
|
|
|
|
|
|
|
|
background-color: #fff; |
|
|
|
|
|
border: 1px solid #f0f0f0; |
|
|
|
|
|
border-radius: 6px; |
|
|
margin: 0 10px 10px 0; |
|
|
margin: 0 10px 10px 0; |
|
|
img { |
|
|
img { |
|
|
display: block; |
|
|
display: block; |
|
|
width: 160px; |
|
|
|
|
|
height: 100px; |
|
|
|
|
|
|
|
|
width: 164px; |
|
|
|
|
|
height: 140px; |
|
|
|
|
|
} |
|
|
|
|
|
.radio_img { |
|
|
|
|
|
width: 164px; |
|
|
|
|
|
height: 140px; |
|
|
|
|
|
background: url(../../assets/images/t-yp.png) no-repeat #b3e8fa center; |
|
|
|
|
|
background-size: 98px 98px; |
|
|
} |
|
|
} |
|
|
.item_info { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
right: 0; |
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
.item_format { |
|
|
.item_format { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
bottom: 38px; |
|
|
span { |
|
|
span { |
|
|
display: block; |
|
|
display: block; |
|
|
padding: 2px 5px; |
|
|
|
|
|
margin-right: 5px; |
|
|
|
|
|
background: rgba(255, 255, 255, 0.5); |
|
|
|
|
|
|
|
|
width: 47px; |
|
|
|
|
|
height: 18px; |
|
|
|
|
|
// padding: 2px 5px; |
|
|
|
|
|
margin-left: 6px; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
background: #3a8aeb; |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
font-size: 12px; |
|
|
font-size: 12px; |
|
|
line-height: 12px; |
|
|
|
|
|
border-radius: 4px; |
|
|
|
|
|
|
|
|
line-height: 18px; |
|
|
|
|
|
border-radius: 9px; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.item_name { |
|
|
.item_name { |
|
|
padding: 2px 0; |
|
|
|
|
|
margin: 5px 0 0 0; |
|
|
|
|
|
background: rgba(255, 255, 255, 0.5); |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
height: 32px; |
|
|
|
|
|
line-height: 32px; |
|
|
|
|
|
padding: 0 11px; |
|
|
|
|
|
color: #333; |
|
|
|
|
|
display: -webkit-box; |
|
|
|
|
|
-webkit-box-orient: vertical; |
|
|
|
|
|
-webkit-line-clamp: 1; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
} |
|
|
} |
|
|
.item_player { |
|
|
.item_player { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|