pull/51/head
lukeyan 1 year ago
parent 091e404621
commit 0dec8d3319

@ -74,6 +74,11 @@ const routes = [
name: 'correlationEquipment',
component: () => import('@/views/systemManagement/correlationEquipment'),
},
{
path: 'correlationEquipment2',
name: 'correlationEquipment2',
component: () => import('@/views/systemManagement/correlationEquipment2'),
},
// 企业名单
{
path: 'companyList',

@ -239,7 +239,16 @@
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="saveFormData()"> </el-button>
<el-button
@click="
saveFormData(
'commerceMessage_form',
'commerceMessage_form_two',
'company_position_form'
)
"
> </el-button
>
<el-button @click="closeForm"> </el-button>
</div>
</el-dialog>
@ -310,33 +319,39 @@ export default {
belongingArea: "",
},
imageUrl: "",
upUrl: `http://${window.location.host}/zhapi/safety/system/enterpriseList`, //
// upUrl: `http://${window.location.host}/zhapi/safety/system/enterpriseList`,
upUrl: 'http://192.168.0.188:8888/zhapi/safety/system/enterpriseList',
upheaders: {
Authorization: localStorage.getItem("AuthorizationToken"),
},
rules:{
rules: {
companyName: [
{ required: true, message: "请选择企业", trigger: "change" },
],
companyTypes:[
{ type: 'array', required: true, message: '请至少选择一个企业类型', trigger: 'change' }
companyTypes: [
{
type: "array",
required: true,
message: "请至少选择一个企业类型",
trigger: "change",
},
],
provinceName:[
provinceName: [
{ required: true, message: "请选择省份名称", trigger: "change" },
],
cityName:[
cityName: [
{ required: true, message: "请选择城市名称", trigger: "change" },
],
areaName:[
areaName: [
{ required: true, message: "请选择区县名称", trigger: "change" },
],
blockName:[
blockName: [
{ required: true, message: "请选择街道/乡镇名称", trigger: "change" },
],
streetName:[
streetName: [
{ required: true, message: "请选择社区/村名称", trigger: "change" },
],
}
},
};
},
created() {
@ -378,10 +393,10 @@ export default {
policeDistrictCn: "",
policeDistrictCode: "",
belongingArea: "",
companyType:'',
companyType: "",
companyTypes: [], // List,
values: [],
id: '',
id: "",
};
this.imageUrl = "";
Object.assign(this.form, newForm);
@ -477,39 +492,58 @@ export default {
}
},
//
async saveFormData() {
delete this.form.city
delete this.form.community
delete this.form.companyTypes
delete this.form.county
delete this.form.township
delete this.form.jurisdiction
delete this.form.province
delete this.form.values
const params = this.form;
console.log("this.form3", this.form);
if (this.dialogTitle === "新建") {
await postCompanyList(params).then((res) => {
console.log(res);
this.$message.success("新建成功");
this.visible = false;
});
} else if (this.dialogTitle === "编辑") {
// const params_again = {
// // pageSize: this.pageSize,
// // pageNum: this.pageNum,
// companyName: this.searchCompany, //
// };
// await getCompanyList(params_again).then(res=>{
// console.log('res_again',res);
// })
await putCompanyList(params).then((res) => {
console.log(res);
this.$message.success("编辑成功");
this.visible = false;
});
}
this.$emit("back");
saveFormData(formName1, formName2, formName3) {
this.$refs[formName1].validate((valid1) => {
if (valid1) {
this.$refs[formName2].validate((valid2) => {
if (valid2) {
this.$refs[formName3].validate((valid3) => {
if (valid3) {
delete this.form.city;
delete this.form.community;
// delete this.form.companyTypes;
delete this.form.county;
delete this.form.township;
delete this.form.jurisdiction;
delete this.form.province;
delete this.form.values;
const params = this.form;
console.log("this.form3", this.form);
if (this.dialogTitle === "新建") {
postCompanyList(params).then((res) => {
console.log(res);
this.$message.success("新建成功");
this.visible = false;
this.$emit("back");
});
} else if (this.dialogTitle === "编辑") {
// const params_again = {
// // pageSize: this.pageSize,
// // pageNum: this.pageNum,
// companyName: this.searchCompany, //
// };
// await getCompanyList(params_again).then(res=>{
// console.log('res_again',res);
// })
putCompanyList(params).then((res) => {
console.log(res);
this.$message.success("编辑成功");
this.visible = false;
this.$emit("back");
});
}
} else {
this.$message.warning("请填入必填项");
}
}); //
} else {
this.$message.warning("请填入必填项");
}
}); //
} else {
this.$message.warning("请填入必填项");
}
}); //
},
handleAvatarSuccess(res, file) {
console.log("resimg", res);

@ -0,0 +1,339 @@
<template>
<!-- 视频设备智能设备查询 -->
<div class="search_box">
<div class="box_title">设备列表</div>
<div class="search_check">
<!-- 视频设备查询条件 -->
<div class="video_check">
<div class="video_btn">
<el-button class="video_button" @click="video_all_check">
<img :src="video_btn_img_src" alt="" />
</el-button>
<div class="video_text">{{ video_text }}</div>
</div>
<el-checkbox-group v-model="video_checkgroup">
<el-checkbox
class="video_checks"
v-for="item in video_btn_list"
:key="item.value"
:label="item.name"
@change="video_check_search($event, item.value)"
>
{{ item.name }}</el-checkbox
>
</el-checkbox-group>
</div>
<!-- 智能设备查询条件 -->
<div class="perception_check">
<div class="perception_btn">
<el-button class="perception_button" @click="perception_all_check">
<img :src="perception_btn_img_src" alt="" />
</el-button>
<div class="perception_text">{{ perception_text }}</div>
</div>
<el-checkbox-group v-model="perception_checkgroup">
<el-checkbox
class="perception_checks"
v-for="item in perception_btn_list"
:key="item.value"
:label="item.name"
@change="perception_check_search($event, item.value)"
>
{{ item.name }}</el-checkbox
>
</el-checkbox-group>
</div>
</div>
</div>
</template>
<script>
import { getVideoList, getPerceptionList } from "@/api/correlationEquipment";
export default {
name: "SearchBox",
props: {
only_params: {}, //
},
data() {
return {
video_checkgroup: [], //
deviceVideoSubTypes: [], //
video_btn_list: [
{ value: 1, name: "公共区域", type: "1" },
{ value: 2, name: "地下车库", type: "1" },
{ value: 3, name: "全景监控", type: "1" },
{ value: 5, name: "人脸抓拍", type: "1" },
{ value: 6, name: "电梯监控", type: "1" },
{ value: 7, name: "人体测温", type: "1" },
{ value: 8, name: "车辆抓拍", type: "1" },
{ value: 9, name: "人脸门禁", type: "1" },
{ value: 4, name: "高空抛物", type: "1" },
],
video_btn_img_src: require("@/assets/companyFile/camera03.png"),
video_text: "视频监控设备",
perception_checkgroup: [], //
devicePerceptionSubTypes: [], //
perception_btn_list: [
{ value: 2, name: "车辆抓拍", type: "2" },
{ value: 1, name: "人脸抓拍", type: "2" },
{ value: 3, name: "门禁设备", type: "2" },
{ value: 4, name: "高抛抓拍", type: "2" },
{ value: 6, name: "全结构化", type: "2" },
{ value: 7, name: "智能烟感", type: "2" },
{ value: 8, name: "访客机", type: "2" },
{ value: 10, name: "多维设备", type: "2" },
{ value: 11, name: "WIFI设备", type: "2" },
],
perception_btn_img_src: require("@/assets/companyFile/intelligence02.png"),
perception_text: "智能感知设备",
check_push_table_data: {}, //
};
},
methods: {
clear_search_list() {
this.video_checkgroup = []; //
this.perception_checkgroup = []; //
this.deviceVideoSubTypes = []; //
this.devicePerceptionSubTypes = []; //
delete this.only_params.deviceVideoSubType;
delete this.only_params.devicePerceptionSubType;
},
//
video_all_check() {
this.perception_checkgroup = []; //
this.video_checkgroup = []; //
delete this.only_params.devicePerceptionSubType; //
this.only_params.deviceVideoSubType = ""; //
getVideoList(this.only_params).then((res) => {
console.log("res_video", res);
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
},
//
perception_all_check() {
this.perception_checkgroup = []; //
this.video_checkgroup = []; //
delete this.only_params.deviceVideoSubType; //
this.only_params.devicePerceptionSubType = ""; //
getVideoList(this.only_params).then((res) => {
console.log("res_video", res);
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
},
//
video_check_search(e, value) {
if (e) {
//
delete this.only_params.devicePerceptionSubType; //
this.perception_checkgroup = []; //
this.devicePerceptionSubTypes = []; //
this.deviceVideoSubTypes.push(value); //
this.only_params.deviceVideoSubType =
this.deviceVideoSubTypes.toString(); //
getVideoList(this.only_params).then((res) => {
console.log("res_video", res);
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
} else {
//
delete this.only_params.devicePerceptionSubType; //
this.perception_checkgroup = []; //
this.devicePerceptionSubTypes = []; //
this.deviceVideoSubTypes = this.deviceVideoSubTypes.filter(
(item) => item != value
); //
this.only_params.deviceVideoSubType =
this.deviceVideoSubTypes.toString(); //
getVideoList(this.only_params).then((res) => {
console.log("res_video", res);
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
}
},
//
perception_check_search(e, value) {
if (e) {
//
delete this.only_params.deviceVideoSubType; //
this.video_checkgroup = []; //
this.deviceVideoSubTypes = []; //
this.devicePerceptionSubTypes.push(value); //
this.only_params.devicePerceptionSubType =
this.devicePerceptionSubTypes.toString(); //
getPerceptionList(this.only_params).then((res) => {
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
} else {
//
delete this.only_params.deviceVideoSubType; //
this.video_checkgroup = []; //
this.deviceVideoSubTypes = []; //
this.devicePerceptionSubTypes = this.devicePerceptionSubTypes.filter(
(item) => item != value
); //
this.only_params.devicePerceptionSubType =
this.devicePerceptionSubTypes.toString(); //
getPerceptionList(this.only_params).then((res) => {
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
}
},
},
};
</script>
<style lang="less" scoped>
.search_box {
margin: 0 auto;
margin-top: 1vh;
width: 63vw;
height: 24vh;
// border: 0.1px solid #485f6c;
.box_title {
width: 63vw;
height: 2vh;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
.search_check {
margin-top: 1vh;
width: 63vw;
height: 20vh;
// border: 0.1px solid #485f6c;
display: flex;
justify-content: space-between;
//
.video_check {
width: 31vw;
height: 20vh;
border: 0.1px solid #485f6c;
display: flex;
color: #fff;
text-align: center;
//
.video_btn {
width: 7vw;
height: 20vh;
display: flex;
justify-content: center;
flex-direction: column;
.video_button {
background: url("~@/assets/companyFile/btn08.png") no-repeat !important;
background-size: 100% 100% !important;
width: 5vw;
height: 10vh;
margin: 0px auto;
display: flex;
justify-content: center;
align-items: center;
border: 0px;
img {
width: 1.8vw;
height: 3.6vh;
}
}
.video_button:focus,
.video_button:hover {
filter: brightness(170%);
}
}
}
//
.perception_check {
width: 31vw;
height: 20vh;
border: 0.1px solid #485f6c;
display: flex;
color: #fff;
text-align: center;
//
.perception_btn {
width: 7vw;
height: 20vh;
display: flex;
justify-content: center;
flex-direction: column;
.perception_button {
background: url("~@/assets/companyFile/btn08.png") no-repeat !important;
background-size: 100% 100% !important;
width: 5vw;
height: 10vh;
margin: 0px auto;
display: flex;
justify-content: center;
align-items: center;
border: 0px;
img {
width: 1.8vw;
height: 3.6vh;
}
}
.perception_button:focus,
.perception_button:hover {
filter: brightness(170%);
}
}
}
}
/deep/.el-checkbox-group {
width: 24vw;
overflow: hidden;
display: flex;
justify-content: space-between;
flex-flow: wrap;
padding: 20px 5px 0px 5px;
.el-checkbox {
width: 30%;
height: 4vh;
text-align: center;
line-height: 4vh;
border: 1px solid #4a6072;
color: #fff;
border-radius: 0px !important;
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-checkbox__inner {
display: none;
}
}
}
</style>

@ -0,0 +1,339 @@
<template>
<!-- 视频设备智能设备查询 -->
<div class="search_box">
<div class="box_title">设备列表</div>
<div class="search_check">
<!-- 视频设备查询条件 -->
<div class="video_check">
<div class="video_btn">
<el-button class="video_button" @click="video_all_check">
<img :src="video_btn_img_src" alt="" />
</el-button>
<div class="video_text">{{ video_text }}</div>
</div>
<el-checkbox-group v-model="video_checkgroup">
<el-checkbox
class="video_checks"
v-for="item in video_btn_list"
:key="item.value"
:label="item.name"
@change="video_check_search($event, item.value)"
>
{{ item.name }}</el-checkbox
>
</el-checkbox-group>
</div>
<!-- 智能设备查询条件 -->
<div class="perception_check">
<div class="perception_btn">
<el-button class="perception_button" @click="perception_all_check">
<img :src="perception_btn_img_src" alt="" />
</el-button>
<div class="perception_text">{{ perception_text }}</div>
</div>
<el-checkbox-group v-model="perception_checkgroup">
<el-checkbox
class="perception_checks"
v-for="item in perception_btn_list"
:key="item.value"
:label="item.name"
@change="perception_check_search($event, item.value)"
>
{{ item.name }}</el-checkbox
>
</el-checkbox-group>
</div>
</div>
</div>
</template>
<script>
import { getVideoList, getPerceptionList } from "@/api/correlationEquipment";
export default {
name: "SearchBox",
props: {
only_params: {}, //
},
data() {
return {
video_checkgroup: [], //
deviceVideoSubTypes: [], //
video_btn_list: [
{ value: 1, name: "公共区域", type: "1" },
{ value: 2, name: "地下车库", type: "1" },
{ value: 3, name: "全景监控", type: "1" },
{ value: 5, name: "人脸抓拍", type: "1" },
{ value: 6, name: "电梯监控", type: "1" },
{ value: 7, name: "人体测温", type: "1" },
{ value: 8, name: "车辆抓拍", type: "1" },
{ value: 9, name: "人脸门禁", type: "1" },
{ value: 4, name: "高空抛物", type: "1" },
],
video_btn_img_src: require("@/assets/companyFile/camera03.png"),
video_text: "视频监控设备",
perception_checkgroup: [], //
devicePerceptionSubTypes: [], //
perception_btn_list: [
{ value: 2, name: "车辆抓拍", type: "2" },
{ value: 1, name: "人脸抓拍", type: "2" },
{ value: 3, name: "门禁设备", type: "2" },
{ value: 4, name: "高抛抓拍", type: "2" },
{ value: 6, name: "全结构化", type: "2" },
{ value: 7, name: "智能烟感", type: "2" },
{ value: 8, name: "访客机", type: "2" },
{ value: 10, name: "多维设备", type: "2" },
{ value: 11, name: "WIFI设备", type: "2" },
],
perception_btn_img_src: require("@/assets/companyFile/intelligence02.png"),
perception_text: "智能感知设备",
check_push_table_data: {}, //
};
},
methods: {
clear_search_list() {
this.video_checkgroup = []; //
this.perception_checkgroup = []; //
this.deviceVideoSubTypes = []; //
this.devicePerceptionSubTypes = []; //
delete this.only_params.deviceVideoSubType;
delete this.only_params.devicePerceptionSubType;
},
//
video_all_check() {
this.perception_checkgroup = []; //
this.video_checkgroup = []; //
delete this.only_params.devicePerceptionSubType; //
this.only_params.deviceVideoSubType = ""; //
getVideoList(this.only_params).then((res) => {
console.log("res_video", res);
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
},
//
perception_all_check() {
this.perception_checkgroup = []; //
this.video_checkgroup = []; //
delete this.only_params.deviceVideoSubType; //
this.only_params.devicePerceptionSubType = ""; //
getVideoList(this.only_params).then((res) => {
console.log("res_video", res);
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
},
//
video_check_search(e, value) {
if (e) {
//
delete this.only_params.devicePerceptionSubType; //
this.perception_checkgroup = []; //
this.devicePerceptionSubTypes = []; //
this.deviceVideoSubTypes.push(value); //
this.only_params.deviceVideoSubType =
this.deviceVideoSubTypes.toString(); //
getVideoList(this.only_params).then((res) => {
console.log("res_video", res);
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
} else {
//
delete this.only_params.devicePerceptionSubType; //
this.perception_checkgroup = []; //
this.devicePerceptionSubTypes = []; //
this.deviceVideoSubTypes = this.deviceVideoSubTypes.filter(
(item) => item != value
); //
this.only_params.deviceVideoSubType =
this.deviceVideoSubTypes.toString(); //
getVideoList(this.only_params).then((res) => {
console.log("res_video", res);
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
}
},
//
perception_check_search(e, value) {
if (e) {
//
delete this.only_params.deviceVideoSubType; //
this.video_checkgroup = []; //
this.deviceVideoSubTypes = []; //
this.devicePerceptionSubTypes.push(value); //
this.only_params.devicePerceptionSubType =
this.devicePerceptionSubTypes.toString(); //
getPerceptionList(this.only_params).then((res) => {
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
} else {
//
delete this.only_params.deviceVideoSubType; //
this.video_checkgroup = []; //
this.deviceVideoSubTypes = []; //
this.devicePerceptionSubTypes = this.devicePerceptionSubTypes.filter(
(item) => item != value
); //
this.only_params.devicePerceptionSubType =
this.devicePerceptionSubTypes.toString(); //
getPerceptionList(this.only_params).then((res) => {
this.check_push_table_data = res;
let data_params = {
data: this.check_push_table_data,
params: this.only_params,
};
this.$emit("push_data_to_table", data_params); // Table
});
}
},
},
};
</script>
<style lang="less" scoped>
.search_box {
margin: 0 auto;
margin-top: 1vh;
width: 63vw;
height: 24vh;
// border: 0.1px solid #485f6c;
.box_title {
width: 63vw;
height: 2vh;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
.search_check {
margin-top: 1vh;
width: 63vw;
height: 20vh;
// border: 0.1px solid #485f6c;
display: flex;
justify-content: space-between;
//
.video_check {
width: 31vw;
height: 20vh;
border: 0.1px solid #485f6c;
display: flex;
color: #fff;
text-align: center;
//
.video_btn {
width: 7vw;
height: 20vh;
display: flex;
justify-content: center;
flex-direction: column;
.video_button {
background: url("~@/assets/companyFile/btn08.png") no-repeat !important;
background-size: 100% 100% !important;
width: 5vw;
height: 10vh;
margin: 0px auto;
display: flex;
justify-content: center;
align-items: center;
border: 0px;
img {
width: 1.8vw;
height: 3.6vh;
}
}
.video_button:focus,
.video_button:hover {
filter: brightness(170%);
}
}
}
//
.perception_check {
width: 31vw;
height: 20vh;
border: 0.1px solid #485f6c;
display: flex;
color: #fff;
text-align: center;
//
.perception_btn {
width: 7vw;
height: 20vh;
display: flex;
justify-content: center;
flex-direction: column;
.perception_button {
background: url("~@/assets/companyFile/btn08.png") no-repeat !important;
background-size: 100% 100% !important;
width: 5vw;
height: 10vh;
margin: 0px auto;
display: flex;
justify-content: center;
align-items: center;
border: 0px;
img {
width: 1.8vw;
height: 3.6vh;
}
}
.perception_button:focus,
.perception_button:hover {
filter: brightness(170%);
}
}
}
}
/deep/.el-checkbox-group {
width: 24vw;
overflow: hidden;
display: flex;
justify-content: space-between;
flex-flow: wrap;
padding: 20px 5px 0px 5px;
.el-checkbox {
width: 30%;
height: 4vh;
text-align: center;
line-height: 4vh;
border: 1px solid #4a6072;
color: #fff;
border-radius: 0px !important;
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-checkbox__inner {
display: none;
}
}
}
</style>

@ -0,0 +1,325 @@
<template>
<!-- 关联设备 -->
<el-card class="box-card">
<div class="topZS"></div>
<div class="bottomZS"></div>
<div slot="header" class="clearfix">
<span>关联设备</span>
</div>
<div class="cardBody">
<div class="left_tree">
<div class="left_search">
<el-input
class="left_search_input"
placeholder="输入企业名称搜索"
v-model="search_company"
>
</el-input>
<div class="left_search_button" @click="search_com()">
<i class="el-icon-search"></i>
</div>
</div>
<!-- 公司树数据 -->
<div class="cardBodyLeft_footer">
<el-tree
ref="company_tree"
:data="company_tree_data"
:props="defaultProps"
@node-click="handle_node_click"
node-key="subAreaCode"
:default-expand-all="defaultExpandAll"
>
<span
slot-scope="{ node }"
:title="node.label"
class="el-tree-node__label node-label"
>
{{ node.label }}
</span>
</el-tree>
</div>
</div>
<div class="right">
<SearchBox
ref="searchBox"
:only_params="only_params"
@push_data_to_table="push_data_to_table"
></SearchBox>
<!-- 右下方表格区域 -->
<div class="right_table">
<EquipmentTable
ref="equipmentTable"
:push_table_data="push_table_data"
></EquipmentTable>
</div>
</div>
</div>
</el-card>
</template>
<script>
import { getAllData, getVideoList } from "@/api/correlationEquipment";
import SearchBox from "./components/searchBox";
import EquipmentTable from "./components/equipmentTable";
export default {
name: "correlationEquipment2",
components: {
SearchBox,
EquipmentTable,
},
data() {
return {
search_company: "",
company_tree_data: [], //
defaultProps: {
children: "children",
label: "areaName",
},
defaultExpandAll: true, //
only_params: {}, //
push_table_data: {}, //
};
},
created() {
this.only_params = {
pageSize: 5,
pageNum: 1,
};
//
getAllData({ areaName: "宁波" }).then((res) => {
console.log("resning", res);
//
this.company_tree_data = res.data;
console.log("this.company_tree_data", this.company_tree_data);
//
//
getVideoList(this.only_params).then((res) => {
console.log("resVideoList", res.rows); //res.rows res.total
//
this.push_table_data = res;
let data_params = {
data: this.push_table_data,
params: this.only_params,
};
this.push_data_to_table(data_params);
});
});
},
methods: {
//
//
search_com() {
getAllData({
areaName: this.search_company === "" ? "宁波" : this.search_company,
})
.then((res) => {
//
this.company_tree_data = res.data;
console.log("this.company_tree_data", this.company_tree_data);
})
.catch((err) => {
console.log("err", err);
this.$message.warning("查询失败,请输入正确查询条件");
this.company_tree_data = ""; //
});
},
handle_node_click(data) {
console.log("data123", data);
// List
//
// this.searchBox_right_text.company_types = [];
// this.searchBox_left_text.company_types = [];
//
this.only_params = {
pageSize: 5,
pageNum: 1,
companyId: data.subAreaCode, //
// deviceVideoSubType: "1,2,3,4,5,6,7,8,9",
};
this.$refs.searchBox.clear_search_list();
getVideoList(this.only_params).then((res) => {
console.log("resVideoList", res.rows);
this.push_table_data = res;
let data_params = {
data: this.push_table_data,
params: this.only_params,
};
this.push_data_to_table(data_params);
});
},
push_data_to_table(data_params) {
this.$refs.equipmentTable.obtain_table_data(data_params);
},
},
};
</script>
<style lang="less" scoped>
/* card统一样式 */
.el-card.box-card.is-always-shadow {
border: 0px;
height: 88.5vh; /* 控制card布局高度,用于适配 */
position: relative;
background: url("~@/assets/companyFile/22136.png") no-repeat !important;
background-size: 100% 100% !important;
}
/* card统一样式 */
/deep/.el-card__header {
border-bottom: 1px solid #a1a1a1 !important;
.clearfix {
span {
font-size: 17px;
font-weight: 400;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
}
.cardBody {
display: flex;
justify-content: space-between;
.left_tree {
width: 20vw;
height: 78vh;
border: 0.1px solid #485f6c;
background: linear-gradient(#314241, #1b2929, #121e1d);
.left_search {
display: flex;
margin-top: 5%;
margin-left: 5%;
width: 90%;
height: 40px;
.left_search_input ::v-deep {
/* 查询框 */
width: 87%;
.el-input__inner {
border-radius: 4px 0px 0px 4px;
background: #3c4b4a;
color: #fff;
}
/* 查询框点击颜色变化 */
.el-input__inner:focus,
.el-input__inner:hover {
border-color: #1b3736;
}
}
.left_search_button {
width: 13%;
height: 100%;
border-radius: 0px 4px 4px 0px;
background: #0e3936;
text-align: center;
font-size: 28px;
cursor: pointer;
.el-icon-search {
color: #fff;
padding: 12% 0;
}
}
.left_search_button:focus,
.left_search_button:hover {
/* 放大镜点击特效 */
background: #126a58;
}
}
.cardBodyLeft_footer {
width: 90%;
margin-left: 5%;
margin-top: 3vh;
height: 69vh;
.el-tree {
/* 树形数据过长添加滚动条 */
height: 65vh;
overflow: auto;
// box-shadow: 5px 5px 10px #126a58;
border-radius: 4px;
// background: #293738;
background: rgba(0, 0, 0, 0);
border: 0.1px solid #485f6c;
color: #fff !important;
/deep/.el-tree-node__content {
height: 50px;
}
.el-tree-node__label.node-label {
display: flex;
font-size: 16px;
}
/* 去掉树形数据前面的三角形 */
/deep/.el-icon-caret-right:before {
content: "";
}
.node-label {
/* 树形数据横向过长添加展开 */
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* hover节点时的背景颜色 */
::v-deep .el-tree-node__content:hover {
background: #495461;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
/* 节点选中的背景颜色 */
::v-deep .el-tree-node:focus > .el-tree-node__content {
background: #495461;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
//
.el-tree /deep/ .el-icon-caret-right:before {
background: url("~@/assets/companyFile/add.png") no-repeat;
content: "";
display: block;
width: 23px;
height: 23px;
font-size: 23px;
background-size: 23px;
}
//
.el-tree
/deep/
.el-tree-node__expand-icon.expanded.el-icon-caret-right:before {
background: url("~@/assets/companyFile/add.png") no-repeat;
content: "";
display: block;
width: 23px;
height: 23px;
font-size: 23px;
background-size: 23px;
}
// minus
.el-tree /deep/.el-tree-node__expand-icon.is-leaf::before {
background: url("~@/assets/companyFile/minus.png") no-repeat;
content: "";
display: block;
width: 23px;
height: 23px;
font-size: 23px;
background-size: 23px;
}
.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;
}
}
}
.right {
width: 64vw;
height: 78vh;
border: 0.1px solid #485f6c;
.right_table {
margin-top: 1vh;
width: 64vw;
height: 52vh;
// border: 0.1px solid #485f6c;
}
}
}
</style>

@ -220,6 +220,7 @@ export default {
/deep/.text_levelform.el-form {
width: 32.5vw;
margin-top: 2vh;
height: 14vh;
display: flex;
flex-wrap: wrap;
.el-form-item {

@ -213,7 +213,7 @@ export default {
// if
if (this.table_num === "1") {
this.is_flag = true;
if (res.data.calculationRule === null) {
if (res.data.calculationRule === null||res.data.calculationRule === '') {
this.tableData_all = [];
this.save_flag = "1"; //
} else {
@ -259,7 +259,6 @@ export default {
getWarnTable({ safeRuleId: this.safeRuleId }).then((res) => {
console.log("reswarn", res);
this.tableData_warn = res.data;
this.tableData_warn[0].color = "red";
});
}
);

@ -201,6 +201,7 @@ export default {
/deep/.text_levelform.el-form {
width: 32.5vw;
margin-top: 2vh;
height: 14vh;
display: flex;
flex-wrap: wrap;
.el-form-item {

Loading…
Cancel
Save