三层破弹窗
This commit is contained in:
@@ -198,26 +198,20 @@
|
|||||||
<div class="customPop">
|
<div class="customPop">
|
||||||
<div class="startTime">
|
<div class="startTime">
|
||||||
<div>开始时间:</div>
|
<div>开始时间:</div>
|
||||||
<div>
|
<div style="display: flex; justify-content: space-between;">
|
||||||
<u-input
|
<u-input v-model="startTime" placeholder="请选择开始时间" disabled @click="showStart = true"/>
|
||||||
v-model="start"
|
<u-icon name="arrow-right"></u-icon>
|
||||||
placeholder="请输入格式为2022-00-00的开始时间"
|
|
||||||
type="text"
|
|
||||||
clearable
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="endTime">
|
<div class="endTime">
|
||||||
<div>结束时间:</div>
|
<div>结束时间:</div>
|
||||||
<div>
|
<div style="display: flex; justify-content: space-between;">
|
||||||
<u-input
|
<u-input v-model="endTime" placeholder="请选择结束时间" disabled @click="showEnd = true" />
|
||||||
v-model="end"
|
<u-icon name="arrow-right"></u-icon>
|
||||||
placeholder="请输入格式为2022-00-00的结束时间"
|
|
||||||
type="text"
|
|
||||||
clearable
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<u-picker mode="time" v-model="showStart" @confirm="confirmStart"></u-picker>
|
||||||
|
<u-picker mode="time" v-model="showEnd" @confirm="confirmEnd"></u-picker>
|
||||||
<div class="timeBtn" @click="handleTime">确定</div>
|
<div class="timeBtn" @click="handleTime">确定</div>
|
||||||
</div>
|
</div>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
@@ -253,6 +247,8 @@ export default {
|
|||||||
departId: "",
|
departId: "",
|
||||||
startTime: "",
|
startTime: "",
|
||||||
endTime: "",
|
endTime: "",
|
||||||
|
showStart: false,
|
||||||
|
showEnd: false,
|
||||||
resX: [],
|
resX: [],
|
||||||
resY: [],
|
resY: [],
|
||||||
res2Y: [],
|
res2Y: [],
|
||||||
@@ -286,6 +282,8 @@ export default {
|
|||||||
if (index == 3) {
|
if (index == 3) {
|
||||||
this.timeSelect = index;
|
this.timeSelect = index;
|
||||||
this.customShow = true;
|
this.customShow = true;
|
||||||
|
this.showStart = false;
|
||||||
|
this.showEnd = false;
|
||||||
} else {
|
} else {
|
||||||
this.timeSelect = index;
|
this.timeSelect = index;
|
||||||
}
|
}
|
||||||
@@ -302,17 +300,24 @@ export default {
|
|||||||
this.departId = "";
|
this.departId = "";
|
||||||
},
|
},
|
||||||
|
|
||||||
selectConfirm() {
|
// selectConfirm() {
|
||||||
if (this.timeSelect == 3) {
|
// if (this.timeSelect == 3) {
|
||||||
this.timeType = this.timeSelect;
|
// this.timeType = this.timeSelect;
|
||||||
this.startTime = this.start;
|
// this.startTime = this.start;
|
||||||
this.endTime = this.end;
|
// this.endTime = this.end;
|
||||||
this.getBrokenDate();
|
// this.getBrokenDate();
|
||||||
} else {
|
// } else {
|
||||||
this.timeType = this.timeSelect;
|
// this.timeType = this.timeSelect;
|
||||||
this.getBrokenDate();
|
// this.getBrokenDate();
|
||||||
}
|
// }
|
||||||
this.filterShow = false;
|
// this.filterShow = false;
|
||||||
|
// },
|
||||||
|
|
||||||
|
confirmStart(val) {
|
||||||
|
this.startTime = val.year + '-' + val.month + '-' + val.day
|
||||||
|
},
|
||||||
|
confirmEnd(val) {
|
||||||
|
this.endTime = val.year + '-' + val.month + '-' + val.day
|
||||||
},
|
},
|
||||||
|
|
||||||
handleTime() {
|
handleTime() {
|
||||||
@@ -826,6 +831,7 @@ export default {
|
|||||||
.customPop {
|
.customPop {
|
||||||
padding: 80px 32px 20px 32px;
|
padding: 80px 32px 20px 32px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
height: 600px;
|
||||||
|
|
||||||
.startTime,
|
.startTime,
|
||||||
.endTime {
|
.endTime {
|
||||||
@@ -841,6 +847,7 @@ export default {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
margin-top: 164px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(this.selected);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user