|
@@ -132,8 +132,10 @@
|
|
|
@click="leisure(item)"
|
|
@click="leisure(item)"
|
|
|
>清扫</el-button
|
|
>清扫</el-button
|
|
|
> -->
|
|
> -->
|
|
|
- <el-button size="mini">IC卡</el-button>
|
|
|
|
|
- <el-button size="mini">指纹</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" @click="ICpage">IC卡</el-button>
|
|
|
|
|
+ <el-button size="mini" @click="fingerprintPage"
|
|
|
|
|
+ >指纹</el-button
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
@click="EachRoom($event, item)"
|
|
@click="EachRoom($event, item)"
|
|
@@ -308,7 +310,7 @@
|
|
|
@change="handleCheckAllChange"
|
|
@change="handleCheckAllChange"
|
|
|
>全选</el-checkbox
|
|
>全选</el-checkbox
|
|
|
>
|
|
>
|
|
|
- <span class="all">{{ roomData.length }}间</span>
|
|
|
|
|
|
|
+ <span class="all">{{ ids }} / {{ roomData.length }}间</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="margin: 15px 0"></div>
|
|
<div style="margin: 15px 0"></div>
|
|
|
<el-checkbox-group
|
|
<el-checkbox-group
|
|
@@ -423,7 +425,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
- date: new Date(),
|
|
|
|
|
|
|
+ date: "",
|
|
|
|
|
|
|
|
// 房态筛选数据
|
|
// 房态筛选数据
|
|
|
checkAll: false,
|
|
checkAll: false,
|
|
@@ -431,6 +433,7 @@ export default {
|
|
|
cities: ["空闲", "预定", "入住", "脏房", "锁定"],
|
|
cities: ["空闲", "预定", "入住", "脏房", "锁定"],
|
|
|
citiesNum: [0, 0, 0, 0, 0],
|
|
citiesNum: [0, 0, 0, 0, 0],
|
|
|
isIndeterminate: false,
|
|
isIndeterminate: false,
|
|
|
|
|
+ ids: 0, // 勾选的房间数量
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -439,10 +442,14 @@ export default {
|
|
|
)[0].children[0].innerText = "<";
|
|
)[0].children[0].innerText = "<";
|
|
|
document.getElementsByClassName(
|
|
document.getElementsByClassName(
|
|
|
"el-button--plain"
|
|
"el-button--plain"
|
|
|
- )[1].children[0].innerText = "o";
|
|
|
|
|
|
|
+ )[1].children[0].innerText = "O";
|
|
|
document.getElementsByClassName(
|
|
document.getElementsByClassName(
|
|
|
"el-button--plain"
|
|
"el-button--plain"
|
|
|
)[2].children[0].innerText = ">";
|
|
)[2].children[0].innerText = ">";
|
|
|
|
|
+ console.log(this.$store);
|
|
|
|
|
+ // this.$store.commit("user/SET_TIME", this.date);
|
|
|
|
|
+
|
|
|
|
|
+ this.date = this.$store.state.user.time;
|
|
|
this.roomList();
|
|
this.roomList();
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -467,6 +474,7 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
date(newVal, oldVal) {
|
|
date(newVal, oldVal) {
|
|
|
console.log(newVal);
|
|
console.log(newVal);
|
|
|
|
|
+ this.$store.commit("user/SET_TIME", this.date);
|
|
|
this.roomList();
|
|
this.roomList();
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -879,10 +887,32 @@ export default {
|
|
|
.catch((_) => {});
|
|
.catch((_) => {});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ // IC卡页面
|
|
|
|
|
+ ICpage() {
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ name: "icCard",
|
|
|
|
|
+ params: {
|
|
|
|
|
+ id: 12345,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ // 指纹页面
|
|
|
|
|
+ fingerprintPage() {
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ name: "fingerprint",
|
|
|
|
|
+ params: {
|
|
|
|
|
+ id: 12345,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 房态筛查
|
|
// 房态筛查
|
|
|
handleCheckAllChange(val) {
|
|
handleCheckAllChange(val) {
|
|
|
console.log(val);
|
|
console.log(val);
|
|
|
-
|
|
|
|
|
|
|
+ if (val) {
|
|
|
|
|
+ this.ids = this.roomData.length;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.ids = 0;
|
|
|
|
|
+ }
|
|
|
this.checkedCities = val ? this.cities : [];
|
|
this.checkedCities = val ? this.cities : [];
|
|
|
this.isIndeterminate = false;
|
|
this.isIndeterminate = false;
|
|
|
},
|
|
},
|
|
@@ -892,11 +922,40 @@ export default {
|
|
|
this.checkAll = checkedCount === this.cities.length;
|
|
this.checkAll = checkedCount === this.cities.length;
|
|
|
this.isIndeterminate =
|
|
this.isIndeterminate =
|
|
|
checkedCount > 0 && checkedCount < this.cities.length;
|
|
checkedCount > 0 && checkedCount < this.cities.length;
|
|
|
|
|
+
|
|
|
|
|
+ let startDay = dayjs(this.date).format("YYYY-MM-DD");
|
|
|
|
|
+ console.log(startDay);
|
|
|
|
|
+ let endDay = dayjs(this.date).add(1, "day").format("YYYY-MM-DD");
|
|
|
|
|
+ let ids = [];
|
|
|
|
|
+ this.Data.forEach((items) => {
|
|
|
|
|
+ items.room.filter((item) => {
|
|
|
|
|
+ if (
|
|
|
|
|
+ value.some((i) => {
|
|
|
|
|
+ return item.statuName == i;
|
|
|
|
|
+ })
|
|
|
|
|
+ ) {
|
|
|
|
|
+ ids.push(item.id);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ this.ids = ids.length;
|
|
|
|
|
+ let roomIds = [];
|
|
|
|
|
+ ids.forEach((item) => {
|
|
|
|
|
+ roomIds.push("roomIds=" + item);
|
|
|
|
|
+ });
|
|
|
|
|
+ roomIds = roomIds.join("&");
|
|
|
|
|
+ let params =
|
|
|
|
|
+ "?" + "startDay=" + startDay + "&" + "endDay=" + endDay + "&" + roomIds;
|
|
|
|
|
+ // this.API.roomRealTimeStatu.realData(params).then((res) => {
|
|
|
|
|
+ // console.log(res.data);
|
|
|
|
|
+ // this.roomList("", "");
|
|
|
|
|
+ // });
|
|
|
},
|
|
},
|
|
|
reset() {
|
|
reset() {
|
|
|
this.checkedCities = [];
|
|
this.checkedCities = [];
|
|
|
this.isIndeterminate = false;
|
|
this.isIndeterminate = false;
|
|
|
this.checkAll = false;
|
|
this.checkAll = false;
|
|
|
|
|
+ this.ids = 0;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//门锁管理
|
|
//门锁管理
|
|
@@ -1061,7 +1120,7 @@ export default {
|
|
|
height: 37px;
|
|
height: 37px;
|
|
|
background: rgba(240, 243, 247, 1);
|
|
background: rgba(240, 243, 247, 1);
|
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
|
- margin-left: 897px;
|
|
|
|
|
|
|
+ margin-left: 833px;
|
|
|
|
|
|
|
|
/deep/ .el-input__inner {
|
|
/deep/ .el-input__inner {
|
|
|
height: 37px !important;
|
|
height: 37px !important;
|