|
|
@@ -997,16 +997,29 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
joinDisabled() {
|
|
|
- return !this.roomList.some((t) => {
|
|
|
- return (
|
|
|
- t.rooms.filter((c) => c.roomInfo.state === 88).length == 1 &&
|
|
|
- t.rooms.filter(
|
|
|
- (c) =>
|
|
|
- c.roomInfo.state === 88 &&
|
|
|
- (c.roomInfo.roomStatus === 3 || c.roomInfo.roomStatus === 4)
|
|
|
- ).length == 1
|
|
|
- );
|
|
|
- });
|
|
|
+ // return !this.roomList.some((t) => {
|
|
|
+ // return (
|
|
|
+ // t.rooms.filter((c) => c.roomInfo.state === 88).length == 1 &&
|
|
|
+ // t.rooms.filter(
|
|
|
+ // (c) =>
|
|
|
+ // c.roomInfo.state === 88 &&
|
|
|
+ // (c.roomInfo.roomStatus === 3 || c.roomInfo.roomStatus === 4)
|
|
|
+ // ).length == 1
|
|
|
+ // );
|
|
|
+ // });
|
|
|
+ let roomLst = []
|
|
|
+ this.roomList.forEach((t) => {
|
|
|
+ t.rooms.forEach((c) => {
|
|
|
+ if (c.roomInfo.state === 88) {
|
|
|
+ roomLst.push(c)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ if (roomLst.some(t=> t.roomInfo.roomStatus != 3 && t.roomInfo.roomStatus != 4 )) {
|
|
|
+ console.log(1);
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ return roomLst.every((c) => c.livingData.livingOrder.isRel )
|
|
|
},
|
|
|
lockDisabled() {
|
|
|
return !this.roomList.some((t) =>
|