|
@@ -33,7 +33,7 @@
|
|
|
<div style="height: 670px; text-align: center" v-else>
|
|
|
<!--<iocThreeFbx />-->
|
|
|
<img
|
|
|
- :src="requireImg('security/area_1F.png')"
|
|
|
+ :src="requireImg(imgSrc)"
|
|
|
style="border-radius: 12px"
|
|
|
height="100%"
|
|
|
/>
|
|
@@ -89,16 +89,24 @@ export default {
|
|
|
let timeRange = this.$util.dateUtil.getNearlyMonthRange();
|
|
|
return {
|
|
|
showFloorData: true,
|
|
|
+ imgSrc: 'security/area_1F.png',
|
|
|
+ imgs: {
|
|
|
+ '1': 'security/area_1F.png',
|
|
|
+ '-2': 'security/area_B2.png',
|
|
|
+ '-3': 'security/area_B3.png',
|
|
|
+ '15': 'security/area_15F.png',
|
|
|
+ '20': 'security/area_20F.png',
|
|
|
+ },
|
|
|
queryData: {
|
|
|
companyId: "0",
|
|
|
- floorId: "-99",
|
|
|
+ floorId: "0",
|
|
|
timeRange: timeRange,
|
|
|
},
|
|
|
floorData: [
|
|
|
- {
|
|
|
- value: "-99",
|
|
|
- label: "全部",
|
|
|
- },
|
|
|
+ //{
|
|
|
+ // value: "-99",
|
|
|
+ // label: "全部",
|
|
|
+ //},
|
|
|
{
|
|
|
value: -3,
|
|
|
label: "B3",
|
|
@@ -107,29 +115,17 @@ export default {
|
|
|
value: -2,
|
|
|
label: "B2",
|
|
|
},
|
|
|
- {
|
|
|
- value: -1,
|
|
|
- label: "B1",
|
|
|
- },
|
|
|
{
|
|
|
value: "1",
|
|
|
label: "1F",
|
|
|
},
|
|
|
{
|
|
|
- value: 7,
|
|
|
- label: "7F",
|
|
|
- },
|
|
|
- {
|
|
|
- value: 8,
|
|
|
- label: "8F",
|
|
|
+ value: 15,
|
|
|
+ label: "15F",
|
|
|
},
|
|
|
{
|
|
|
- value: 9,
|
|
|
- label: "9F",
|
|
|
- },
|
|
|
- {
|
|
|
- value: 21,
|
|
|
- label: "21F",
|
|
|
+ value: 20,
|
|
|
+ label: "20F",
|
|
|
},
|
|
|
],
|
|
|
columns: [
|
|
@@ -184,9 +180,13 @@ export default {
|
|
|
},
|
|
|
reset() {},
|
|
|
search() {
|
|
|
- if (!this.queryData.floorId || this.queryData.floorId == "-99") {
|
|
|
+ if (!this.queryData.floorId || this.queryData.floorId == "-99" || this.queryData.floorId=='0') {
|
|
|
this.showFloorData = true;
|
|
|
} else {
|
|
|
+ this.imgSrc = this.imgs['1']
|
|
|
+ if (this.imgs[''+this.queryData.floorId]) {
|
|
|
+ this.imgSrc = this.imgs[''+this.queryData.floorId]
|
|
|
+ }
|
|
|
this.showFloorData = false;
|
|
|
}
|
|
|
this.$util.asyncPromise(this.getCoreData(), this.getDoorEnterPerson());
|
|
@@ -194,7 +194,8 @@ export default {
|
|
|
},
|
|
|
getCoreData() {
|
|
|
let params = JSON.parse(JSON.stringify(this.queryData));
|
|
|
- if (params.floorId == "-99") {
|
|
|
+ params.floorId = ""+params.floorId
|
|
|
+ if (params.floorId == "-99" || params.floorId == '0') {
|
|
|
delete params.floorId;
|
|
|
}
|
|
|
return apiWorkFloor.getCoreData(params).then((res) => {
|