关联设备联调2

pull/15/head
lukeyan 2 years ago
parent 24a1f9d89c
commit 94d0963b91

@ -1,6 +1,14 @@
// 系统管理模块接口 // 系统管理模块接口
import request from '@/utils/request' import request from '@/utils/request'
// 字典表查询 // 字典表查询
export function commonDict(params) {
return request({
url: '/common/dict/list',
method: 'get',
params
})
}
// 企业名称树形数据
export function getAllData(params) { export function getAllData(params) {
return request({ return request({
url: 'safety/tbAreacodeInfo/listAndVideo', url: 'safety/tbAreacodeInfo/listAndVideo',
@ -8,3 +16,35 @@ export function getAllData(params) {
params params
}) })
} }
// 右侧视频监控设备查询List
export function getVideoList(params) {
return request({
url: '/safety/tbDeviceVideoInfo/list',
method: 'post',
params
})
}
// 右侧智能感知设备查询List
export function getPerceptionList(params) {
return request({
url: '/safety/tbDevicePerceptionInfo/list',
method: 'post',
params
})
}
// 厂家查询
export function getCompanyList(params) {
return request({
url: 'safety/system/enterpriseList',
method: 'get',
params
})
}
// 新增视频监控
export function addVideoList(params) {
return request({
url: '/safety/tbDeviceVideoInfo/insert',
method: 'get',
params
})
}

@ -0,0 +1,3 @@
import Vue from 'vue'
export default new Vue

@ -227,7 +227,7 @@
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="saveFormData"> </el-button> <el-button @click="saveFormData"> </el-button>
<el-button> </el-button> <el-button @click="closeForm"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
@ -294,6 +294,7 @@ export default {
this.visible = true; this.visible = true;
if (num === 1) { if (num === 1) {
this.dialogTitle = "新建"; this.dialogTitle = "新建";
this.form = {};
} else if (num === 2) { } else if (num === 2) {
this.dialogTitle = "查看档案"; this.dialogTitle = "查看档案";
} else if (num === 3) { } else if (num === 3) {
@ -372,9 +373,8 @@ export default {
// //
saveFormData() { saveFormData() {
const params = this.form; const params = this.form;
console.log('this.form',this.form); console.log("this.form", this.form);
if (this.dialogTitle === "新建") { if (this.dialogTitle === "新建") {
console.log(1111111);
postCompanyList(params).then((res) => { postCompanyList(params).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success("新建成功"); this.$message.success("新建成功");
@ -397,6 +397,9 @@ export default {
} }
this.$emit("back"); this.$emit("back");
}, },
closeForm() {
this.visible = false;
}
}, },
}; };
</script> </script>
@ -493,7 +496,6 @@ export default {
.jurisdiction { .jurisdiction {
background: url("~@/assets/companyFile/242112.png") no-repeat !important; background: url("~@/assets/companyFile/242112.png") no-repeat !important;
background-size: 100% 100% !important; background-size: 100% 100% !important;
margin-top: px;
} }
/* 为适应上传图片表单布局把企业工商表单拆分 */ /* 为适应上传图片表单布局把企业工商表单拆分 */
.commerceMessage_one { .commerceMessage_one {
@ -541,11 +543,11 @@ export default {
.el-form-item { .el-form-item {
width: 100%; width: 100%;
.el-form-item__label { .el-form-item__label {
width: 15%; width: 14.5%;
} }
.el-form-item__content { .el-form-item__content {
.el-input__inner { .el-input__inner {
width: 650px; width: 760px;
} }
} }
.el-checkbox-group { .el-checkbox-group {
@ -567,8 +569,9 @@ export default {
} }
.el-textarea { .el-textarea {
.el-textarea__inner { .el-textarea__inner {
max-height: 80px; height: 120px;
width: 650px; max-height: 120px;
width: 760px;
border-radius: 0px; border-radius: 0px;
background: #3c4b4a; background: #3c4b4a;
border: 0.5px dashed; border: 0.5px dashed;

@ -33,7 +33,7 @@
<ul> <ul>
<li v-for="item in company_data" :key="item.id"> <li v-for="item in company_data" :key="item.id">
<img :src="item.picUrl" alt="" /> <img :src="item.picUrl" alt="" />
<span class="company_name"> {{ item.companyAddress }} </span> <span class="company_name"> {{ item.companyName }} </span>
<div class="company_label"> <div class="company_label">
<div <div
class="company_label_data" class="company_label_data"
@ -43,15 +43,19 @@
{{ val }} {{ val }}
</div> </div>
</div> </div>
<span class="company_unit"> {{ item.companyName }}</span> <span class="company_unit"> {{ item.companyAddress }}</span>
<!-- 遮罩层 --> <!-- 遮罩层 -->
<div class="image_mask"> <div class="image_mask">
<div class="btn"> <div class="btn">
<button class="check" @click="openDialog(2)"> <button class="check" @click="jump()">
查看档案 查看档案
</button> </button>
<button class="change" @click="openDialog(3, item)">编辑</button> <button class="change" @click="openDialog(3, item)">
<button class="clear" @click="openDialog(4,item)"></button> 编辑
</button>
<button class="clear" @click="openDialog(4, item)">
删除
</button>
</div> </div>
</div> </div>
</li> </li>
@ -102,13 +106,13 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
openDialog(num,item) { openDialog(num, item) {
if (num === 4) { if (num === 4) {
// //
this.$refs.clearDialog.open(num,item); this.$refs.clearDialog.open(num, item);
} else { } else {
console.log(num); console.log(num);
this.$refs.companyDataDialog.open(num,item); this.$refs.companyDataDialog.open(num, item);
} }
}, },
// //
@ -153,7 +157,10 @@ export default {
}, },
// //
back() { back() {
this.getData() this.getData();
},
jump() {
this.$router.push('/home/archives')
} }
}, },
}; };
@ -261,6 +268,9 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
padding-left: 0px; padding-left: 0px;
li { li {
display: flex;
justify-content: center;
align-items: center;
margin-left: 2.5%; margin-left: 2.5%;
position: relative; position: relative;
list-style: none; list-style: none;
@ -270,8 +280,8 @@ export default {
border: 1px solid #fff; border: 1px solid #fff;
box-sizing: border-box; box-sizing: border-box;
img { img {
margin-left: 1%; margin-left: 0.5%;
margin-top: 1.2%; margin-top: 0.6%;
width: 99%; width: 99%;
height: 98%; height: 98%;
} }
@ -322,9 +332,10 @@ export default {
/* 图片鼠标经过按钮 */ /* 图片鼠标经过按钮 */
.btn { .btn {
margin-left: 25%; margin-left: 25%;
margin-top: 30%; margin-top: 25%;
button { button {
height: 40px; height: 60px;
padding: 20px;
margin-right: 25px; margin-right: 25px;
font-size: 18px; font-size: 18px;
color: #fff; color: #fff;
@ -377,7 +388,7 @@ export default {
/* 底部分页展示区域 */ /* 底部分页展示区域 */
.footer { .footer {
.el-pagination { .el-pagination {
margin-left: 59%; margin-left: 50%;
/deep/.el-pagination__total { /deep/.el-pagination__total {
color: #fff; color: #fff;
} }

@ -1,15 +1,28 @@
<template> <template>
<!-- 新建或者修改 --> <!-- 智能感应新建或者修改 -->
<el-dialog class="dialog" :title="dialogTitle" :visible.sync="visible" :close-on-click-modal="false" width="970px"> <el-dialog
class="dialog"
:title="dialogTitle"
:visible.sync="visible"
:close-on-click-modal="false"
width="970px"
>
<div class="form_body"> <div class="form_body">
<!-- 设备基础信息表单 --> <!-- 设备基础信息表单 -->
<div class="equipment_form"> <div class="equipment_form">
<p>设备基础信息</p> <p>设备基础信息</p>
<el-form ref="equipmentForm" :model="equipmentForm"> <el-form ref="equipmentForm" :model="equipmentForm">
<el-form-item label="企业名称"> <el-form-item label="企业名称">
<el-select v-model="equipmentForm.company.villageName" placeholder="请选择企业"> <el-select
<el-option v-for="item in equipmentForm.company" :key="item.villageCode" :label="item.villageName" v-model="equipmentForm.company.villageName"
:value="item.villageCode"> placeholder="请选择企业"
>
<el-option
v-for="item in equipmentForm.company"
:key="item.villageCode"
:label="item.villageName"
:value="item.villageCode"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -19,21 +32,23 @@
<el-form-item label="设备IP"> <el-form-item label="设备IP">
<el-input v-model="equipmentForm.ip"></el-input> <el-input v-model="equipmentForm.ip"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="设备大类">
<el-input v-model="equipmentForm.big"></el-input>
</el-form-item>
<el-form-item label="设备小类">
<el-input v-model="equipmentForm.small"></el-input>
</el-form-item>
<el-form-item label="登录账号"> <el-form-item label="登录账号">
<el-input v-model="equipmentForm.passUser"></el-input> <el-input v-model="equipmentForm.passUser"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="登录密码"> <el-form-item label="登录密码">
<el-input v-model="equipmentForm.passNum"></el-input> <el-input v-model="equipmentForm.passNum"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="设备大类">
<el-input v-model="equipmentForm.big"></el-input>
</el-form-item>
<el-form-item label="是否卡口">
<el-input v-model="equipmentForm.mouse"></el-input>
</el-form-item>
<el-form-item label="设备小类">
<el-input v-model="equipmentForm.small"></el-input>
</el-form-item>
</el-form> </el-form>
</div> </div>
<el-divider></el-divider>
<!-- 视频通道信息表单 --> <!-- 视频通道信息表单 -->
<div class="video_form"> <div class="video_form">
<p>视频通道信息</p> <p>视频通道信息</p>
@ -52,7 +67,6 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<el-divider></el-divider>
<!-- 设备位置信息表单 --> <!-- 设备位置信息表单 -->
<div class="equipment_address_form"> <div class="equipment_address_form">
<p>设备位置信息</p> <p>设备位置信息</p>
@ -76,9 +90,16 @@
<el-input v-model="addressForm.U3D_hight"></el-input> <el-input v-model="addressForm.U3D_hight"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="设备方位"> <el-form-item label="设备方位">
<el-select v-model="addressForm.equipment_orientation.orientationCode" placeholder="请选择设备方位"> <el-select
<el-option v-for="item in addressForm.equipment_orientation" :key="item.orientationCode" v-model="addressForm.equipment_orientation.orientationCode"
:label="item.orientation" :value="item.orientationCode"> placeholder="请选择设备方位"
>
<el-option
v-for="item in addressForm.equipment_orientation"
:key="item.orientationCode"
:label="item.orientation"
:value="item.orientationCode"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -87,7 +108,6 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<el-divider></el-divider>
<!-- 设备其他信息表单 --> <!-- 设备其他信息表单 -->
<div class="other_form"> <div class="other_form">
<p>设备其他信息</p> <p>设备其他信息</p>
@ -119,10 +139,10 @@
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { debounce } from '@/utils/publicMethod_lxy/debounce.js' import { debounce } from "@/utils/publicMethod_lxy/debounce.js";
export default { export default {
name: "addDialog", name: "addPerceptionDialog",
data() { data() {
return { return {
visible: false, visible: false,
@ -130,6 +150,7 @@ export default {
equipmentForm: { equipmentForm: {
// //
company: [], company: [],
mouse:'',
}, },
// //
videoForm: { videoForm: {
@ -165,12 +186,12 @@ export default {
this.visible = true; this.visible = true;
}, },
saveFormData: debounce(function () { saveFormData: debounce(function () {
this.$message.success('232324234') this.$message.success("232324234");
}, 300) }, 300),
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
/deep/.el-dialog { /deep/.el-dialog {
.el-dialog__title { .el-dialog__title {
color: #fff; color: #fff;
@ -218,16 +239,30 @@ export default {
.form_body { .form_body {
height: 600px; height: 600px;
overflow-y: scroll; overflow-y: scroll;
p {
padding-top: 15px;
margin-left: 17px;
font-size: 16px;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
.equipment_form,
.video_form,
.equipment_address_form,
.other_form {
background: url("~@/assets/companyFile/242112.png") no-repeat !important;
background-size: 100% 100% !important;
} }
.form_body::-webkit-scrollbar { .form_body::-webkit-scrollbar {
width: 10px; width: 6px;
background-color: #5e666a; background-color: #5e666a;
border-radius: 4px; border-radius: 4px;
} }
.form_body::-webkit-scrollbar-thumb { .form_body::-webkit-scrollbar-thumb {
width: 9px; width: 5px;
background-color: #3c4b4a; background-color: #3c4b4a;
border-radius: 4px; border-radius: 4px;
} }
@ -242,7 +277,7 @@ export default {
.el-form-item { .el-form-item {
/* 表单域名跟input浮动布局 */ /* 表单域名跟input浮动布局 */
display: flex; display: flex;
width: 30%; width: 50%;
.el-form-item__label { .el-form-item__label {
width: 40%; width: 40%;
@ -252,8 +287,9 @@ export default {
.el-form-item__content { .el-form-item__content {
.el-input__inner { .el-input__inner {
width: 170px; width: 300px;
border-radius: 0px; border-radius: 0px;
border: 0.5px dashed;
background: #3c4b4a; background: #3c4b4a;
color: #fff; color: #fff;
} }

@ -0,0 +1,451 @@
<template>
<!-- 视频监控新建或者修改 -->
<el-dialog
class="dialog"
:title="dialogTitle"
:visible.sync="visible"
:close-on-click-modal="false"
width="970px"
>
<div class="form_body">
<!-- 设备基础信息表单 -->
<div class="equipment_form">
<p>设备基础信息</p>
<el-form
ref="equipmentForm"
:model="form"
:rules="rules"
:disabled="disabled"
>
<el-form-item label="企业名称" prop="companyName">
<el-select v-model="form.companyName" placeholder="请选择企业">
<el-option
v-for="item in form.company"
:key="item.id"
:label="item.companyName"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="设备名称" prop="deviceName">
<el-input v-model="form.deviceName"></el-input>
</el-form-item>
<el-form-item label="设备IP" prop="deviceIp">
<el-input v-model="form.deviceIp"></el-input>
</el-form-item>
<el-form-item label="设备大类" prop="deviceParentType">
<el-select
v-model="form.deviceParentType"
placeholder="请选择设备大类"
>
<el-option
v-for="item in form.perception_type"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="设备小类" prop="deviceVideoSubType">
<el-select
v-model="form.deviceVideoSubType"
placeholder="请选择设备小类"
>
<el-option
v-for="item in form.video_type"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="登录账号">
<el-input v-model="form.account"></el-input>
</el-form-item>
<el-form-item label="登录密码">
<el-input v-model="form.password"></el-input>
</el-form-item>
</el-form>
</div>
<!-- 视频通道信息表单 -->
<div class="video_form">
<p>视频通道信息</p>
<el-form
ref="videoForm"
:model="form"
:rules="rules"
:disabled="disabled"
>
<el-form-item label="通道编码" prop="gbsChannelNo">
<el-input v-model="form.gbsChannelNo"></el-input>
</el-form-item>
<el-form-item label="NVR编码" prop="gbsNvrNo">
<el-input v-model="form.gbsNvrNo"></el-input>
</el-form-item>
<el-form-item label="通道号">
<el-input v-model="form.channelNo"></el-input>
</el-form-item>
<el-form-item label="RTSP流地址">
<el-input v-model="form.rtspAddress"></el-input>
</el-form-item>
</el-form>
</div>
<!-- 设备位置信息表单 -->
<div class="equipment_address_form">
<p>设备位置信息</p>
<el-form
ref="addressForm"
:model="form"
:rules="rules"
:disabled="disabled"
>
<el-form-item label="设备经度">
<el-input v-model="form.longitude" prop="longitude"></el-input>
</el-form-item>
<el-form-item label="设备纬度">
<el-input v-model="form.latitude" prop="latitude"></el-input>
</el-form-item>
<el-form-item label="U3D经度">
<el-input v-model="form.u3dLongitude"></el-input>
</el-form-item>
<el-form-item label="U3D纬度">
<el-input v-model="form.u3dLatitude"></el-input>
</el-form-item>
<el-form-item label="设备高度">
<el-input v-model="form.deviceHeight"></el-input>
</el-form-item>
<el-form-item label="U3D高度">
<el-input v-model="form.u3dHeight"></el-input>
</el-form-item>
<el-form-item label="设备方位">
<el-select v-model="form.orientation" placeholder="请选择设备方位">
<el-option
v-for="item in form.orientation_types"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="安装位置" prop="deviceAddress">
<el-input v-model="form.deviceAddress"></el-input>
</el-form-item>
</el-form>
</div>
<!-- 设备其他信息表单 -->
<div class="other_form">
<p>设备其他信息</p>
<el-form ref="otherForm" :model="form" :disabled="disabled">
<el-form-item label="设备品牌">
<el-input v-model="form.deviceBrand"></el-input>
</el-form-item>
<el-form-item label="设备厂家">
<el-input v-model="form.manufactor"></el-input>
</el-form-item>
<el-form-item label="厂家联系电话">
<el-input v-model="form.manufactorPhone"></el-input>
</el-form-item>
<el-form-item label="SN号">
<el-input v-model="form.deviceSn"></el-input>
</el-form-item>
<el-form-item label="设备MAC">
<el-input v-model="form.deviceMac"></el-input>
</el-form-item>
<el-form-item label="设备端口">
<el-input v-model="form.devicePort"></el-input>
</el-form-item>
</el-form>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="saveFormData('equipmentForm','videoForm','addressForm','otherForm')"> </el-button>
<el-button> </el-button>
</div>
</el-dialog>
</template>
<script>
import {
commonDict,
getCompanyList,
addVideoList,
} from "@/api/correlationEquipment";
import { debounce } from "@/utils/publicMethod_lxy/debounce.js";
export default {
name: "addVideoDialog",
data() {
return {
visible: false,
dialogTitle: "新建",
form: {
//
companyId: "",
companyName: "",
company: [],
deviceName: "",
deviceIp: "",
deviceVideoParentType: "",
deviceParentType: "", //
video_type: [],
deviceVideoSubType: "", //
perception_type: [],
account: "",
password: "",
//
gbsChannelNo: "",
gbsNvrNo: "",
channelNo: "",
rtspAddress: "",
//
longitude: "",
latitude: "",
u3dLongitude: "",
u3dLatitude: "",
deviceHeight: "",
u3dHeight: "",
orientation: "",
orientation_types: [],
deviceAddress: "",
//
deviceBrand: "",
manufactor: "",
manufactorPhone: "",
deviceSn: "",
deviceMac: "",
devicePort: "",
isDoorwayVideo: "",
isShowVideo: "",
},
disabled: false, //
rules: {
companyName: [
{ required: true, message: "请选择企业", trigger: "change" },
],
deviceName: [
{ required: true, message: "请填写设备名称", trigger: "blur" },
],
deviceIp: [
{ required: true, message: "请填写设备ip", trigger: "blur" },
],
deviceParentType: [
{ required: true, message: "请选择设备大类", trigger: "change" },
],
deviceVideoSubType: [
{ required: true, message: "请选择设备小类", trigger: "change" },
],
gbsChannelNo: [
{ required: true, message: "请输入通道编码", trigger: "blur" },
],
gbsNvrNo: [
{ required: true, message: "请输入NVR编码", trigger: "blur" },
],
longitude: [
{ required: true, message: "请输入设备经度", trigger: "blur" },
],
latitude: [
{ required: true, message: "请输入设备经度", trigger: "blur" },
],
deviceAddress: [
{ required: true, message: "请输入安装位置", trigger: "blur" },
],
},
};
},
created() {
const params = {
dictType: "device_video_sub_type",
};
commonDict(params).then((res) => {
this.form.video_type = res.data;
});
const val = {
dictType: "device_perception_sub_type",
};
commonDict(val).then((res) => {
this.form.perception_type = res.data;
});
const param_op = {
dictType: "orientation",
};
commonDict(param_op).then((res) => {
this.form.orientation_types = res.data;
});
getCompanyList().then((res) => {
this.form.company = res.data;
});
},
methods: {
open(num, row) {
this.visible = true;
if (num === "1") {
this.dialogTitle = "新建";
} else if (num === "2") {
this.dialogTitle = "编辑";
this.form = row;
} else if (num === "5") {
this.dialogTitle = "详情";
this.form = row;
this.disabled = true
}
},
saveFormData: debounce(function (formName1,formName2,formName3) {
this.$refs[formName1].validate((valid1) => {
console.log('valid1',valid1);
if (valid1) {
this.$message.warning("请填入必填项");
} else {
return false;
}
}); //
this.$refs[formName2].validate((valid2) => {
console.log('valid2',valid2);
if (valid2) {
this.$message.warning("请填入必填项");
} else {
return false;
}
}); //
this.$refs[formName3].validate((valid3) => {
console.log('valid3',valid3);
if (valid3) {
this.$message.warning("请填入必填项");
} else {
return false;
}
}); //
delete this.form.company;
delete this.form.video_type;
delete this.form.perception_type;
delete this.form.orientation_types;
const params = this.form;
console.log("this.form", this.form);
if (this.dialogTitle === "新建") {
addVideoList(params).then((res) => {
console.log("res78", res);
if (res.code === 200) {
this.visible = false;
} else {
this.$message.warning("新建失败");
}
});
}
}, 300),
},
};
</script>
<style lang="less" scoped>
/deep/.el-dialog {
.el-dialog__title {
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
background-image: url("~@/assets/companyFile/dialogBack.png");
background-size: 100% 100%;
background-repeat: no-repeat;
height: 720px;
/* 关闭弹窗叉号 */
.el-dialog__headerbtn {
.el-dialog__close {
color: #fff;
font-size: 18px;
}
}
.el-dialog__body {
padding: 0px;
padding-left: 15px;
padding-right: 15px;
p {
font-size: 16px;
color: #fff;
}
}
.el-button {
width: 70px;
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;
}
.form_body {
height: 600px;
overflow-y: scroll;
p {
padding-top: 15px;
margin-left: 17px;
font-size: 16px;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
.equipment_form,
.video_form,
.equipment_address_form,
.other_form {
background: url("~@/assets/companyFile/242112.png") no-repeat !important;
background-size: 100% 100% !important;
}
.form_body::-webkit-scrollbar {
width: 6px;
background-color: #5e666a;
border-radius: 4px;
}
.form_body::-webkit-scrollbar-thumb {
width: 5px;
background-color: #3c4b4a;
border-radius: 4px;
}
.el-form {
/* 表单内容浮动布局,多行多列表单 */
width: 900px !important;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.el-form-item {
/* 表单域名跟input浮动布局 */
display: flex;
width: 50%;
.el-form-item__label {
width: 40%;
text-align: center;
color: #fff;
}
.el-form-item__content {
.el-input__inner {
width: 300px;
border-radius: 0px;
border: 0.5px dashed;
background: #3c4b4a;
color: #fff;
}
/* 查询框点击颜色变化 */
.el-input__inner:focus,
.el-input__inner:hover {
border-color: #1b3736;
}
}
}
}
}
</style>

@ -39,6 +39,7 @@ export default {
/deep/.el-dialog { /deep/.el-dialog {
.el-dialog__title { .el-dialog__title {
color: #fff; color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
background-image: url("~@/assets/companyFile/dialogBack.png"); background-image: url("~@/assets/companyFile/dialogBack.png");
background-size: 100% 100%; background-size: 100% 100%;

@ -1,9 +1,39 @@
<template> <template>
<!-- 设备表格 --> <!-- 设备表格 -->
<div class="equipment_data"> <div class="equipment_data">
<p>智能感知设备列表</p> <p>{{ table_title }}</p>
<!-- 查询表 --> <!-- 查询表 -->
<div class="equipment_data_search"> <div v-if="display_search" 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.channel_code"
placeholder="输入通道国际编码搜索"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-input
v-model="search.equipemnt_ip"
placeholder="输入设备IP搜索"
></el-input>
</el-form-item>
<el-form-item>
<el-button @click="onSubmitVideo"></el-button>
</el-form-item>
<el-form-item>
<el-button @click="resetVideo"></el-button>
</el-form-item>
</el-form>
</div>
<div v-else class="equipment_data_search">
<el-form :inline="true" :model="search" class="search"> <el-form :inline="true" :model="search" class="search">
<el-form-item> <el-form-item>
<el-input <el-input
@ -23,7 +53,7 @@
<el-button @click="onSubmit"></el-button> <el-button @click="onSubmit"></el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="onSubmit"></el-button> <el-button @click="reset"></el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -43,8 +73,7 @@
<el-table <el-table
:cell-style="{ background: 'revert', 'text-align': 'center' }" :cell-style="{ background: 'revert', 'text-align': 'center' }"
:header-cell-style="table_header" :header-cell-style="table_header"
:data="tableData" :data="pushTableData"
height="380"
:highlight-current-row="true" :highlight-current-row="true"
> >
<el-table-column type="selection" width="55"> </el-table-column> <el-table-column type="selection" width="55"> </el-table-column>
@ -53,17 +82,21 @@
:key="item.prop" :key="item.prop"
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:width="item.width"
></el-table-column> ></el-table-column>
<el-table-column prop="operation" label="操作"> <el-table-column prop="operation" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="small" @click="handleEdit(scope.$index, scope.row)" <el-button
size="small"
class="operation"
@click="openDialog('2', scope.row)"
>编辑 >编辑
</el-button> </el-button>
<el-button <el-button
size="small" size="small"
type="danger" class="operation"
@click="handleDelete(scope.$index, scope.row)" @click="openDialog('5', scope.row)"
>删除 >详情
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -72,37 +105,47 @@
<div class="equipment_data_pagination"> <div class="equipment_data_pagination">
<el-pagination <el-pagination
:background="true" :background="true"
@size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="currentPage4"
:page-sizes="[4]" :page-sizes="[4]"
:page-size="100" :page-size="100"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="pushTableData.length"
> >
</el-pagination> </el-pagination>
</div> </div>
<AddDialog ref="addDialog"></AddDialog> <AddVideoDialog ref="addVideoDialog"></AddVideoDialog>
<AddPerceptionDialog ref="addPerceptionDialog"></AddPerceptionDialog>
<UploadDialog ref="uploadDialog"></UploadDialog> <UploadDialog ref="uploadDialog"></UploadDialog>
<DeriveDialog ref="deriveDialog"></DeriveDialog> <DeriveDialog ref="deriveDialog"></DeriveDialog>
</div> </div>
</template> </template>
<script> <script>
import AddDialog from "./addDIalog"; import AddVideoDialog from "./addVideoDialog";
import AddPerceptionDialog from "./addPerceptionDialog";
import UploadDialog from "./uploadDialog"; import UploadDialog from "./uploadDialog";
import DeriveDialog from "./deriveDialog"; import DeriveDialog from "./deriveDialog";
import bus from "@/assets/js/eventBus.js";
import { getVideoList, getPerceptionList } from "@/api/correlationEquipment";
export default { export default {
name: "EquipmentTable", name: "EquipmentTable",
components: { components: {
AddDialog, AddPerceptionDialog,
AddVideoDialog,
UploadDialog, UploadDialog,
DeriveDialog, DeriveDialog,
}, },
props: {
pushTableData: [],
},
data() { data() {
return { return {
table_title: "视频监控设备列表", //
display_search: true, //
search: { search: {
equipment: "", equipment: "",
ip: "", ip: "",
channel_code: "",
equipemnt_ip: "",
}, },
btnList: [ btnList: [
{ value: "1", label: "新增", icon: "plus" }, { value: "1", label: "新增", icon: "plus" },
@ -110,24 +153,135 @@ export default {
{ value: "3", label: "导入", icon: "bottom-right" }, { value: "3", label: "导入", icon: "bottom-right" },
{ value: "4", label: "导出", icon: "top-left" }, { value: "4", label: "导出", icon: "top-left" },
], ],
tableColumn: [ tableColumn: [],
{ prop: "villageName", label: "设备名称" }, tableData: [],
{ prop: "passTimeCn", label: "设备类型" }, //
{ prop: "deviceAddress", label: "设备IP" }, tableColumn_video: [
{ prop: "cameraIp", label: "设备经度" }, { prop: "gbsChannelNo", label: "通道国际编码", width: "200" },
{ prop: "imageTypeCn", label: "设备维度" }, { prop: "gbsNvrNo", label: "NVR设备编码", width: "200" },
{ prop: "imageTypeC", label: "进出方向" }, { prop: "deviceName", label: "设备名称", width: "270" },
{ prop: "deviceVideoSubTypeCn", label: "设备类型", width: "200" },
{ prop: "deviceIp", label: "设备IP" },
// { prop: "deviceBrand", label: "" },
// { prop: "longitude", label: "" },
// { prop: "latitude", label: "" },
],
//
tableColumn_preception: [
{ prop: "deviceName", label: "设备名称",width: "270" },
{ prop: "devicePerceptionParentTypeCn", label: "设备类型" },
{ prop: "deviceIp", label: "设备IP" },
// { prop: "longitude", label: "" },
// { prop: "latitude", label: "" },
{ prop: "orientationCn", label: "进出方向" },
], ],
total: 0, // total: 0, //
}; };
}, },
created() {
this.tableColumn = this.tableColumn_video; //
},
mounted() {
bus.$on("send", (data) => {
this.table_title = data.title;
if (this.table_title === "视频监控设备列表") {
this.display_search = true;
this.tableColumn = this.tableColumn_video;
} else if (this.table_title === "智能感知设备列表") {
this.display_search = false;
this.tableColumn = this.tableColumn_preception;
}
this.pushTableData = data.pushTableData;
});
},
methods: { methods: {
openDialog(num) { //
onSubmit() {
const val = {
pageSize: 4,
pageNum: 1,
deviceIp: this.search.ip,
deviceName: this.search.equipment,
};
getPerceptionList(val).then((res) => {
if (res.code === 200) {
// res.row
this.pushTableData = res.rows;
} else {
this.$message.warning("查询智能感知设备列表失败");
}
});
},
reset() {
//
(this.search.equipment = ""), (this.search.ip = "");
const val = {
pageSize: 4,
pageNum: 1,
};
getPerceptionList(val).then((res) => {
if (res.code === 200) {
// res.row
this.pushTableData = res.rows;
} else {
this.$message.warning("查询智能感知设备列表失败");
}
});
},
//
onSubmitVideo() {
const val = {
pageSize: 4,
pageNum: 1,
gbsChannelNo: this.search.channel_code,
deviceIp: this.search.equipemnt_ip,
deviceName: this.search.equipment,
};
getVideoList(val).then((res) => {
if (res.code === 200) {
// res.row
this.pushTableData = res.rows;
} else {
this.$message.warning("查询视频监控设备列表失败");
}
});
},
resetVideo() {
//
(this.search.channel_code = ""),
(this.search.equipemnt_ip = ""),
(this.search.equipment = "");
const val = {
pageSize: 4,
pageNum: 1,
};
getVideoList(val).then((res) => {
if (res.code === 200) {
// res.row
this.pushTableData = res.rows;
} else {
this.$message.warning("查询视频监控设备列表失败");
}
});
},
openDialog(num, row) {
console.log(num, "num"); console.log(num, "num");
if (num === "1") { if (num === "1") {
// //
console.log(num, "num"); console.log(num, "num");
this.$refs.addDialog.open(); if (this.table_title === "视频监控设备列表") {
this.$refs.addVideoDialog.open(num);
} else if (this.table_title === "智能感知设备列表") {
this.$refs.addPerceptionDialog.open(num);
}
} else if (num === "2") {
//
console.log("rowww", row);
if (this.table_title === "视频监控设备列表") {
this.$refs.addVideoDialog.open(num, row);
} else if (this.table_title === "智能感知设备列表") {
this.$refs.addPerceptionDialog.open(num,row);
}
} else if (num === "3") { } else if (num === "3") {
// //
this.$refs.uploadDialog.open(); this.$refs.uploadDialog.open();
@ -135,6 +289,15 @@ export default {
// //
this.$refs.deriveDialog.open(); this.$refs.deriveDialog.open();
} }
else if (num === "5") {
//
console.log("rowww", row);
if (this.table_title === "视频监控设备列表") {
this.$refs.addVideoDialog.open(num, row);
} else if (this.table_title === "智能感知设备列表") {
this.$refs.addPerceptionDialog.open(num,row);
}
}
}, },
table_header({ row, rowIndex }) { table_header({ row, rowIndex }) {
console.log(row); console.log(row);
@ -144,6 +307,7 @@ export default {
color: "#fff", color: "#fff",
}; };
}, },
handleCurrentChange() {},
}, },
}; };
</script> </script>
@ -151,6 +315,7 @@ export default {
.equipment_data { .equipment_data {
p { p {
color: #fff; color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
margin-left: 10px; margin-left: 10px;
} }
@ -187,22 +352,6 @@ export default {
color: #fff; color: #fff;
border-radius: 0px !important; border-radius: 0px !important;
background: #323f43; background: #323f43;
// .el-icon-add {
// background: url("~@/assets/companyFile/addicon.png") center no-repeat;
// font-size: 14px;
// }
// .el-icon-delete {
// background: url("~@/assets/companyFile/deleteicon.png") center no-repeat;
// font-size: 14px;
// }
// .el-icon-up {
// background: url("~@/assets/companyFile/upicon.png") center no-repeat;
// font-size: 14px;
// }
// .el-icon-down {
// background: url("~@/assets/companyFile/downicon.png") center no-repeat;
// font-size: 14px;
// }
} }
.el-button:focus, .el-button:focus,
.el-button:hover { .el-button:hover {
@ -225,6 +374,7 @@ export default {
} }
/deep/.el-table { /deep/.el-table {
height: 35vh;
thead { thead {
text-align: center; text-align: center;
color: #fff; color: #fff;
@ -244,6 +394,9 @@ export default {
background-color: transparent; background-color: transparent;
} }
} }
tr {
background: #233438;
}
} }
.el-table::before { .el-table::before {
@ -253,6 +406,22 @@ export default {
width: 100%; width: 100%;
height: 0px; height: 0px;
} }
/deep/.el-button.operation {
width: 40px;
height: 30px;
background-color: rgb(35 52 56);
border: 0px;
color: #fff;
}
/deep/.el-button.operation:hover,
.el-button.operation:focus {
width: 40px;
height: 30px;
background-color: rgb(35 52 56);
border: 0px;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
} }
.el-pagination { .el-pagination {
@ -281,6 +450,11 @@ export default {
background: #3c4b4a; background: #3c4b4a;
color: #fff; color: #fff;
} }
/deep/ .el-pager {
li {
background: #3c4b4a !important;
}
}
} }
} }
</style> </style>

@ -5,29 +5,81 @@
<div class="searchBox_img_top"> <div class="searchBox_img_top">
<img :src="searchBoxData.src" alt="" /> <img :src="searchBoxData.src" alt="" />
</div> </div>
<span>视频监控系统</span> <span>{{ searchBoxData.img_text }}</span>
</div> </div>
<ul> <el-checkbox-group v-model="searchBoxData.company_types">
<li <el-checkbox
class="searchBox_btn" class="searchBox_btn"
v-for="item in searchBoxData.btnList" v-for="item in searchBoxData.btnList"
:key="item.value" :key="item.value"
@change="sendClearList(item.type, item.value)"
:label="item.name"
name="type"
> >
<el-button> {{ item.name }} </el-button> {{ item.name }}
</li> </el-checkbox>
</ul> </el-checkbox-group>
</div> </div>
</template> </template>
<script> <script>
import bus from "@/assets/js/eventBus.js";
import { getVideoList, getPerceptionList } from "@/api/correlationEquipment";
export default { export default {
name: "searchBox", name: "searchBox",
props: { props: {
searchBoxData: {}, searchBoxData: {},
}, },
data() { data() {
return {}; return {
pushValue: {
title: "",
pushTableData: [],
},
};
}, },
created() {}, created() {},
methods: {
async sendClearList(item, value) {
this.$emit("clearList"); //
//
if (item === "1") {
this.pushValue.title = "视频监控设备列表";
//
const val = {
pageSize: 4,
pageNum: 1,
deviceVideoSubType: value,
};
await getVideoList(val).then((res) => {
if (res.code === 200) {
console.log("resVideoList1", res.rows);
// res.row
this.pushValue.pushTableData = res.rows;
} else {
this.$message.warning("查询视频监控设备列表失败");
}
});
} else if (item === "2") {
this.pushValue.title = "智能感知设备列表";
const val = {
pageSize: 4,
pageNum: 1,
devicePerceptionSubType: value,
};
await getPerceptionList(val).then((res) => {
if (res.code === 200) {
// res.row
this.pushValue.pushTableData = res.rows;
} else {
this.$message.warning("查询智能感知设备列表失败");
}
});
}
bus.$emit("send", this.pushValue);
console.log("value", value);
// deviceVideoSubType
},
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@ -59,30 +111,55 @@ export default {
margin-top: 7%; margin-top: 7%;
} }
} }
ul { /deep/.el-checkbox-group {
width: 70%; width: 70%;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-flow: wrap; flex-flow: wrap;
padding: 0px 0px 0px 10px; padding: 15px 0px 0px 10px;
} .el-checkbox {
.searchBox_btn { width: 30%;
list-style: none; height: 4vh;
width: 30%; text-align: center;
.el-button { line-height: 4vh;
width: 100%;
border: 1px solid #4a6072; border: 1px solid #4a6072;
color: #fff; color: #fff;
border-radius: 0px !important; border-radius: 0px !important;
background: #323f43; background: #323f43;
margin-right: 0px;
.el-checkbox__label {
color: #fff;
padding-left: 0px;
}
}
.el-checkbox.is-checked {
background: #495461;
border-radius: 0px;
border: 1px solid;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
.el-button:focus, .el-checkbox__inner {
.el-button:hover { display: none;
color: #34e1b3;
background: url("~@/assets/companyFile/891771.png") no-repeat !important;
background-size: 100% 100% !important;
} }
// .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;
// text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
// background: url("~@/assets/companyFile/891771.png") no-repeat !important;
// background-size: 100% 100% !important;
// }
// }
} }
} }
</style> </style>

@ -7,7 +7,28 @@
:close-on-click-modal="false" :close-on-click-modal="false"
width="500px" width="500px"
> >
123 <div class="up_main">
<el-upload
class="upload-demo"
action="https://jsonplaceholder.typicode.com/posts/"
:on-preview="handlePreview"
:on-remove="handleRemove"
:before-remove="beforeRemove"
multiple
:limit="1"
:on-exceed="handleExceed"
:file-list="fileList"
>
<div class="up_btn">
<p slot="tip">
上传文档:
</p>
<el-button icon="el-icon-folder-opened">点击上传</el-button>
<p slot="tip">模板下载</p>
</div>
<p slot="tip">支持文件类型.xlsx 格式</p>
</el-upload>
</div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="confrim"> </el-button> <el-button @click="confrim"> </el-button>
<el-button> </el-button> <el-button> </el-button>
@ -15,7 +36,7 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import {debounce} from '@/utils/publicMethod_lxy/debounce.js' import { debounce } from "@/utils/publicMethod_lxy/debounce.js";
export default { export default {
name: "UploadDialog", name: "UploadDialog",
data() { data() {
@ -27,9 +48,9 @@ export default {
open() { open() {
this.visible = true; this.visible = true;
}, },
confrim:debounce(function() { confrim: debounce(function () {
this.$message.success('232324234') this.$message.success("232324234");
},300) }, 300),
}, },
}; };
</script> </script>
@ -37,6 +58,7 @@ export default {
/deep/.el-dialog { /deep/.el-dialog {
.el-dialog__title { .el-dialog__title {
color: #fff; color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
background-image: url("~@/assets/companyFile/dialogBack.png"); background-image: url("~@/assets/companyFile/dialogBack.png");
background-size: 100% 100%; background-size: 100% 100%;
@ -57,9 +79,23 @@ export default {
font-size: 16px; font-size: 16px;
color: #fff; color: #fff;
} }
.up_main {
width: 100%;
height: 24vh;
background-image: url("~@/assets/companyFile/27812.png");
background-size: 100% 100%;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
.up_btn {
width: 400px;
display: flex;
}
}
} }
.el-button { .el-button {
width: 70px; width: 120px;
border: 1px solid #4a6072; border: 1px solid #4a6072;
color: #fff; color: #fff;
border-radius: 0px !important; border-radius: 0px !important;

@ -21,20 +21,27 @@
v-model="searchCompany" v-model="searchCompany"
> >
</el-input> </el-input>
<div class="cardBodyLeft_search_button"> <div class="cardBodyLeft_search_button" @click="searchCom()">
<i class="el-icon-search"></i> <i class="el-icon-search"></i>
</div> </div>
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<!-- 公司树数据 --> <!-- 公司树数据 -->
<div class="cardBodyLeft_footer"> <div class="cardBodyLeft_footer">
<el-tree :data="companyTreeData"> <el-tree
ref="company_tree"
:data="companyTreeData"
:props="defaultProps"
@node-click="handleNodeClick"
node-key="subAreaCode"
:default-expand-all="defaultExpandAll"
>
<span <span
slot-scope="{ node }" slot-scope="{ node }"
:title="node.areaName" :title="node.label"
class="el-tree-node__label node-label" class="el-tree-node__label node-label"
> >
{{ node.areaName }} {{ node.label }}
</span> </span>
</el-tree> </el-tree>
</div> </div>
@ -48,16 +55,21 @@
<SearchBox <SearchBox
ref="searchBox" ref="searchBox"
:searchBoxData="searchBox_left_text" :searchBoxData="searchBox_left_text"
@clearList="clearList('1')"
></SearchBox> ></SearchBox>
</div> </div>
<div class="intelligence"> <div class="intelligence">
<SearchBox <SearchBox
ref="searchBox" ref="searchBox"
:searchBoxData="searchBox_right_text" :searchBoxData="searchBox_right_text"
@clearList="clearList('2')"
></SearchBox> ></SearchBox>
</div> </div>
</div> </div>
<EquipmentTable ref="equipmentTable"></EquipmentTable> <EquipmentTable
ref="equipmentTable"
:pushTableData="pushTableData"
></EquipmentTable>
</div> </div>
</div> </div>
</el-card> </el-card>
@ -67,7 +79,7 @@
<script> <script>
import SearchBox from "./components/searchBox.vue"; import SearchBox from "./components/searchBox.vue";
import EquipmentTable from "./components/equipmentTable.vue"; import EquipmentTable from "./components/equipmentTable.vue";
import { getAllData } from "@/api/correlationEquipment"; import { getAllData, getVideoList } from "@/api/correlationEquipment";
export default { export default {
name: "correlationEquipment", name: "correlationEquipment",
components: { components: {
@ -78,53 +90,130 @@ export default {
return { return {
searchCompany: "", // searchCompany: "", //
companyTreeData: [], // companyTreeData: [], //
defaultProps: {
children: "children",
label: "areaName",
},
searchBox_left_text: {}, // searchBox_left_text: {}, //
searchBox_right_text: {},
pushTableData: [],
defaultExpandAll: true, //
}; };
}, },
async created() { created() {
await getAllData().then((res) => { //
const params = {
areaName: "宁波",
};
getAllData(params).then((res) => {
if (res.code === 200) { if (res.code === 200) {
console.log("res", res); console.log("res", res);
// //
this.companyTreeData = res.data this.companyTreeData = res.data;
console.log('this.companyTreeData', this.companyTreeData); console.log("this.companyTreeData1", this.companyTreeData);
//
const val = {
pageSize: 4,
pageNum: 1,
};
getVideoList(val).then((res) => {
if (res.code === 200) {
console.log("resVideoList", res.rows);
// res.row
this.pushTableData = res.rows;
}
});
} else {
this.$message.warning("企业名称查询失败");
} }
}); });
// //
// //
this.searchBox_left_text = { this.searchBox_left_text = {
src: require("@/assets/companyFile/camera.png"), src: require("@/assets/companyFile/camera.png"),
img_text: "视频监控系统", img_text: "视频监控设备",
btnList: [ btnList: [
{ value: "1", name: "公共区域" }, { value: "1", name: "公共区域", type: "1" },
{ value: "2", name: "地下车库" }, { value: "2", name: "地下车库", type: "1" },
{ value: "3", name: "全景监控" }, { value: "3", name: "全景监控", type: "1" },
{ value: "4", name: "人脸抓拍" }, { value: "5", name: "人脸抓拍", type: "1" },
{ value: "5", name: "电梯监控" }, { value: "6", name: "电梯监控", type: "1" },
{ value: "6", name: "人体测温" }, { value: "7", name: "人体测温", type: "1" },
{ value: "7", name: "车辆抓拍" }, { value: "8", name: "车辆抓拍", type: "1" },
{ value: "8", name: "人脸门禁" }, { value: "9", name: "人脸门禁", type: "1" },
{ value: "9", name: "高空抛物" }, { value: "4", name: "高空抛物", type: "1" },
], ],
company_types: [],
}; };
// //
this.searchBox_right_text = { this.searchBox_right_text = {
src: require("@/assets/companyFile/intelligence.png"), src: require("@/assets/companyFile/intelligence.png"),
img_text: "智能感知系统", img_text: "智能感知设备",
btnList: [ btnList: [
{ value: "1", name: "车辆抓拍" }, { value: "2", name: "车辆抓拍", type: "2" },
{ value: "2", name: "人脸抓拍" }, { value: "1", name: "人脸抓拍", type: "2" },
{ value: "3", name: "门禁设备" }, { value: "3", name: "门禁设备", type: "2" },
{ value: "4", name: "高抛抓拍" }, { value: "4", name: "高抛抓拍", type: "2" },
{ value: "5", name: "全结构化" }, { value: "6", name: "全结构化", type: "2" },
{ value: "6", name: "智能烟感" }, { value: "7", name: "智能烟感", type: "2" },
{ value: "7", name: "访客机" }, { value: "8", name: "访客机", type: "2" },
{ value: "8", name: "多为设备" }, { value: "10", name: "多维设备", type: "2" },
{ value: "9", name: "WIFI设备" }, { value: "11", name: "WIFI设备", type: "2" },
], ],
company_types: [],
}; };
}, },
methods: {}, methods: {
//
searchCom() {
const params = {
areaName: this.searchCompany,
};
getAllData(params).then((res) => {
if (res.code === 200) {
console.log("res", res);
//
this.companyTreeData = res.data;
console.log("this.companyTreeData", this.companyTreeData);
} else {
this.$message.warning("企业名称查询失败");
}
});
},
handleNodeClick(data) {
console.log("data", data);
// List
const params = {
pageSize: 4,
pageNum: 1,
deviceVideoSubType: data.subAreaCode,
};
getVideoList(params).then((res) => {
if (res.code === 200) {
console.log("resVideoList", res.rows);
// res.row
this.pushTableData = res.rows;
}
});
// List
// const paramsPerception = {
// devicePerceptionSubType: data.subAreaCode,
// };
// getPerceptionList(paramsPerception).then((res) => {
// if (res.code === 200) {
// console.log("resPerceptionList", res);
// }
// });
},
clearList(num) {
console.log("num", num);
if (num === "1") {
this.searchBox_right_text.company_types = [];
} else if (num === "2") {
this.searchBox_left_text.company_types = [];
}
},
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@ -155,7 +244,7 @@ export default {
.cardBody { .cardBody {
width: 100%; width: 100%;
display: flex; display: flex;
height: calc(100vh - 215px); height: 80vh;
/* 左侧 */ /* 左侧 */
.cardBodyLeft { .cardBodyLeft {
width: 25%; width: 25%;
@ -206,7 +295,14 @@ export default {
box-shadow: 5px 5px 10px #126a58; box-shadow: 5px 5px 10px #126a58;
border-radius: 4px; border-radius: 4px;
background: #293738; background: #293738;
color: #fff; color: #fff !important;
/deep/.el-tree-node__content {
border: 0.5px dashed white;
height: 50px;
}
.el-tree-node__label.node-label {
font-size: 18px;
}
.node-label { .node-label {
/* 树形数据横向过长添加展开 */ /* 树形数据横向过长添加展开 */
width: 100%; width: 100%;
@ -216,15 +312,27 @@ export default {
} }
/* hover节点时的背景颜色 */ /* hover节点时的背景颜色 */
::v-deep .el-tree-node__content:hover { ::v-deep .el-tree-node__content:hover {
background: #126a58; background: #495461;
color: #fff; color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
/* 节点选中的背景颜色 */ /* 节点选中的背景颜色 */
::v-deep .el-tree-node:focus > .el-tree-node__content { ::v-deep .el-tree-node:focus > .el-tree-node__content {
background: #1b3736; background: #495461;
color: #fff; color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
} }
.el-tree::-webkit-scrollbar {
width: 9px;
background-color: #5e666a;
border-radius: 4px;
}
.el-tree::-webkit-scrollbar-thumb {
width: 8px;
background-color: #3c4b4a;
border-radius: 4px;
}
} }
} }
/* 竖分割线 */ /* 竖分割线 */
@ -239,6 +347,7 @@ export default {
height: 18px; height: 18px;
color: #fff; color: #fff;
font-size: 18px; font-size: 18px;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
width: 75%; width: 75%;
height: 100%; height: 100%;

@ -32,7 +32,7 @@ export default {
.el-aside { .el-aside {
margin-top: 15px; /* 给左上角logo留空间 -> 后面固定都给15px */ margin-top: 15px; /* 给左上角logo留空间 -> 后面固定都给15px */
margin-left: 15px; margin-left: 15px;
width: 13% !important; /* 控制侧边导航栏宽度 */ width: 11% !important; /* 控制侧边导航栏宽度 */
height: 100%; height: 100%;
} }
.el-main { .el-main {

Loading…
Cancel
Save