After Width: | Height: | Size: 488 KiB |
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 4.3 KiB |
@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<!-- 新建或者修改 -->
|
||||
<el-dialog
|
||||
:title="dialogTitle"
|
||||
:visible.sync="visible"
|
||||
width="1300px"
|
||||
@close="close"
|
||||
>
|
||||
<div>123</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
</style>
|
@ -0,0 +1,183 @@
|
||||
<template>
|
||||
<!-- 设备表格 -->
|
||||
<div class="equipment_data">
|
||||
<p>智能感知设备列表</p>
|
||||
<!-- 查询表 -->
|
||||
<div class="equipment_data_search">
|
||||
<el-form :inline="true" :model="search" class="search">
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="search.equipemnt"
|
||||
placeholder="输入设备名称搜索"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="search.ip"
|
||||
placeholder="输入IP名称搜索"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="onSubmit">搜索</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="onSubmit">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<!-- 增删按钮 -->
|
||||
<div class="equipment_data_btn">
|
||||
<el-button v-for="item in btnList" :key="item.value">
|
||||
{{ item.label }}</el-button
|
||||
>
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<div class="equipment_data_table">
|
||||
<el-table
|
||||
:cell-style="{ background: 'revert', 'text-align': 'center' }"
|
||||
:header-cell-style="table_header"
|
||||
:data="tableData"
|
||||
height="305"
|
||||
:highlight-current-row="true"
|
||||
>
|
||||
<el-table-column type="selection" width="55"> </el-table-column>
|
||||
<el-table-column
|
||||
v-for="item in tableColumn"
|
||||
:key="item.prop"
|
||||
:prop="item.prop"
|
||||
:label="item.label"
|
||||
></el-table-column>
|
||||
<el-table-column prop="operation" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="small" @click="handleEdit(scope.$index, scope.row)"
|
||||
>编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="danger"
|
||||
@click="handleDelete(scope.$index, scope.row)"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="equipment_data_pagination"></div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
search: {
|
||||
equipment: "",
|
||||
ip: "",
|
||||
},
|
||||
btnList: [
|
||||
{ value: "1", label: "新增" },
|
||||
{ value: "2", label: "删除" },
|
||||
{ value: "3", label: "导入" },
|
||||
{ value: "4", label: "导出" },
|
||||
],
|
||||
tableColumn: [
|
||||
{ prop: "villageName", label: "设备名称" },
|
||||
{ prop: "passTimeCn", label: "设备类型" },
|
||||
{ prop: "deviceAddress", label: "设备IP" },
|
||||
{ prop: "cameraIp", label: "设备经度" },
|
||||
{ prop: "imageTypeCn", label: "设备维度" },
|
||||
{ prop: "imageTypeCn", label: "进出方向" },
|
||||
],
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
table_header({ row, rowIndex }) {
|
||||
console.log(row);
|
||||
console.log(rowIndex);
|
||||
return {
|
||||
"text-align": "center",
|
||||
color: "#fff",
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.equipment_data {
|
||||
p {
|
||||
color: #fff;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.equipment_data_search {
|
||||
margin-left: 12px;
|
||||
/deep/.el-input__inner {
|
||||
border-radius: 0px 0px 0px 0px;
|
||||
background: #3c4b4a;
|
||||
color: #fff;
|
||||
}
|
||||
.el-button {
|
||||
width: 100%;
|
||||
border: 1px solid #4a6072;
|
||||
color: #fff;
|
||||
border-radius: 0px !important;
|
||||
background: #323f43;
|
||||
}
|
||||
.el-button:focus,
|
||||
.el-button:hover {
|
||||
border: 1px solid#34e1b3;
|
||||
background: url("~@/assets/companyFile/2121.png") no-repeat !important;
|
||||
background-size: 100% 100% !important;
|
||||
}
|
||||
}
|
||||
.equipment_data_btn {
|
||||
margin-left: 12px;
|
||||
.el-button {
|
||||
width: 70px;
|
||||
height: 35px;
|
||||
border: 1px solid #4a6072;
|
||||
color: #fff;
|
||||
border-radius: 0px !important;
|
||||
background: #323f43;
|
||||
}
|
||||
.el-button:focus,
|
||||
.el-button:hover {
|
||||
border: 1px solid#34e1b3;
|
||||
background: url("~@/assets/companyFile/891771.png") no-repeat !important;
|
||||
background-size: 100% 100% !important;
|
||||
}
|
||||
}
|
||||
.equipment_data_table {
|
||||
width: calc(100% - 30px);
|
||||
margin-top: 12px;
|
||||
margin-left: 12px;
|
||||
height: 100%;
|
||||
.el-table,
|
||||
.el-table__expanded-cell {
|
||||
color: #fff;
|
||||
background-color: transparent;
|
||||
}
|
||||
/deep/.el-table {
|
||||
thead {
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
background: linear-gradient(to right,#284f49,#2f6363,#233b38) !important;
|
||||
& th {
|
||||
background-color: transparent;
|
||||
}
|
||||
& tr {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
.el-table::before {
|
||||
//去除底部白线
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,88 @@
|
||||
<template>
|
||||
<!-- 关联设备的右侧查询盒子 -->
|
||||
<div class="searchBox_body">
|
||||
<div class="searchBox_img">
|
||||
<div class="searchBox_img_top">
|
||||
<img :src="searchBoxData.src" alt="" />
|
||||
</div>
|
||||
<span>视频监控系统</span>
|
||||
</div>
|
||||
<ul>
|
||||
<li
|
||||
class="searchBox_btn"
|
||||
v-for="item in searchBoxData.btnList"
|
||||
:key="item.value"
|
||||
>
|
||||
<el-button> {{ item.name }} </el-button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "searchBox",
|
||||
props: {
|
||||
searchBoxData: {},
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
created() {},
|
||||
};
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.searchBox_body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
.searchBox_img {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
width: 19.8%;
|
||||
height: 53%;
|
||||
padding-top: 8%;
|
||||
padding-left: 3%;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-size: 15px;
|
||||
.searchBox_img_top {
|
||||
width: 78%;
|
||||
height: 100%;
|
||||
margin: 0px auto;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
span {
|
||||
margin-top: 7%;
|
||||
}
|
||||
}
|
||||
ul {
|
||||
width: 70%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-flow: wrap;
|
||||
padding: 0px 0px 0px 10px;
|
||||
}
|
||||
.searchBox_btn {
|
||||
list-style: none;
|
||||
width: 30%;
|
||||
.el-button {
|
||||
width: 100%;
|
||||
border: 1px solid #4a6072;
|
||||
color: #fff;
|
||||
border-radius: 0px !important;
|
||||
background: #323f43;
|
||||
}
|
||||
.el-button:focus,
|
||||
.el-button:hover {
|
||||
color: #34e1b3;
|
||||
background: url("~@/assets/companyFile/891771.png") no-repeat !important;
|
||||
background-size: 100% 100% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|