报备--修改--换插件
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<report-list-item :report-list.sync="reportList" @getReport="getReportHandler" />
|
<report-list-item :report-list.sync="reportList" @getReport="getReportHandler" />
|
||||||
<van-popup ref="addReportModal" v-model="addReportShow" :close-on-click-overlay="false" closeable duration="0" round position="bottom">
|
<van-popup ref="addReportModal" v-model="addReportShow" :close-on-click-overlay="false" z-index="500" closeable duration="0" round position="bottom">
|
||||||
<div class="dialog_wrap">
|
<div class="dialog_wrap">
|
||||||
<img class="add_report_bg" src="@/assets/report/add_report_bg.png" alt="">
|
<img class="add_report_bg" src="@/assets/report/add_report_bg.png" alt="">
|
||||||
<div class="report_content">
|
<div class="report_content">
|
||||||
@@ -67,13 +67,26 @@
|
|||||||
<img class="dot" src="@/assets/report/add_report_dot.png" alt="">
|
<img class="dot" src="@/assets/report/add_report_dot.png" alt="">
|
||||||
<span>预约时间</span>
|
<span>预约时间</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="report_time_content" @click="showDatetime = true">
|
<el-date-picker class="report_time_content owner_time high-zindex-picker"
|
||||||
|
v-model="appointTime"
|
||||||
|
type="datetime"
|
||||||
|
:picker-options="pickerOptions"
|
||||||
|
:minutes-step="5"
|
||||||
|
format="yyyy-MM-dd HH:mm:00"
|
||||||
|
placeholder="选择日期时间">
|
||||||
|
</el-date-picker>
|
||||||
|
<!--<el-date-picker
|
||||||
|
v-model="appointTime"
|
||||||
|
type="datetime"
|
||||||
|
placeholder="选择日期时间">
|
||||||
|
</el-date-picker>-->
|
||||||
|
<!--<div class="report_time_content" @click="showDatetime = true">
|
||||||
<div class="report_time_left">
|
<div class="report_time_left">
|
||||||
<img class="add_report_time" src="@/assets/report/add_report_time.png" alt="">
|
<img class="add_report_time" src="@/assets/report/add_report_time.png" alt="">
|
||||||
<span>{{appointTime || '请选择时间'}}</span>
|
<span>{{appointTime || '请选择时间'}}</span>
|
||||||
</div>
|
</div>
|
||||||
<img class="report_arrow" src="@/assets/report/add_report_arrow.png" alt="">
|
<img class="report_arrow" src="@/assets/report/add_report_arrow.png" alt="">
|
||||||
</div>
|
</div>-->
|
||||||
<!--预约时间报备 e -->
|
<!--预约时间报备 e -->
|
||||||
</template>
|
</template>
|
||||||
<template v-if="currentInfo.component == 'address'">
|
<template v-if="currentInfo.component == 'address'">
|
||||||
@@ -109,7 +122,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
|
|
||||||
<van-popup v-model="showDatetime" round position="bottom" :close-on-click-overlay="false">
|
<!--<van-popup v-model="showDatetime" round position="bottom" :close-on-click-overlay="false">
|
||||||
<van-datetime-picker
|
<van-datetime-picker
|
||||||
class="dataTime"
|
class="dataTime"
|
||||||
v-if="showDatetime"
|
v-if="showDatetime"
|
||||||
@@ -120,7 +133,7 @@
|
|||||||
@confirm="onConfirm"
|
@confirm="onConfirm"
|
||||||
@cancel="cancelHandler"
|
@cancel="cancelHandler"
|
||||||
/>
|
/>
|
||||||
</van-popup>
|
</van-popup>-->
|
||||||
</div>
|
</div>
|
||||||
<!-- </van-pull-refresh>-->
|
<!-- </van-pull-refresh>-->
|
||||||
</template>
|
</template>
|
||||||
@@ -156,6 +169,12 @@
|
|||||||
driverId: '',
|
driverId: '',
|
||||||
clickFlag: true,
|
clickFlag: true,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
|
pickerOptions: {
|
||||||
|
// 可选:限制预约时间不能小于当前时间(复用你原有逻辑)
|
||||||
|
disabledDate: (time) => {
|
||||||
|
return time.getTime() <= new Date().getTime();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
@@ -552,6 +571,9 @@
|
|||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.owner_time {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
.report_common_content {
|
.report_common_content {
|
||||||
margin-bottom: 27px;
|
margin-bottom: 27px;
|
||||||
.report_textarea {
|
.report_textarea {
|
||||||
@@ -582,4 +604,22 @@
|
|||||||
::v-deep .van-popup__close-icon {
|
::v-deep .van-popup__close-icon {
|
||||||
color: #0F458E;
|
color: #0F458E;
|
||||||
}
|
}
|
||||||
|
::v-deep .el-date-editor.el-input,::v-deep .el-date-editor.el-input__inner {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
|
::v-deep .el-picker-panel {
|
||||||
|
z-index: 100000000 !important;
|
||||||
|
}
|
||||||
|
.el-picker-panel{
|
||||||
|
z-index: 100000000 !important;
|
||||||
|
}
|
||||||
|
::v-deep .high-zindex-picker {
|
||||||
|
z-index: 9999 !important; // 高于 van-popup 默认层级(通常 1000-2000)
|
||||||
|
}
|
||||||
|
::v-deep .el-date-editor {
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user