lion 3 days ago
parent 490382bb7c
commit 81a5402cd5

@ -412,7 +412,7 @@
@close="plateShow = false"
/>
</uni-forms-item>
<template v-if="form.type != 3">
<template>
<view
class="formtext"
style="display: flex; justify-content: space-between"
@ -686,7 +686,10 @@
/>
</uni-forms-item>
</uni-forms>
<view class="uni-group" style="text-align: right;display: flex;justify-content: space-between;">
<view
class="uni-group"
style="text-align: right; display: flex; justify-content: space-between"
>
<button @click="closeDrawer" size="mini" class="button-mini-with-en">
<view>取消/Cancel</view>
</button>
@ -1033,7 +1036,7 @@ export default {
}
// if (options.type == 2 || options.type == 3) {
this.getConfig();
this.getConfig();
// }
this.init();
@ -1225,7 +1228,9 @@ export default {
const rangeMatch = this.visitTime.find((item) => {
const start = this.timeToMinutes(item.start_time);
const end = this.timeToMinutes(item.end_time);
return start !== null && end !== null && current >= start && current < end;
return (
start !== null && end !== null && current >= start && current < end
);
});
if (rangeMatch) {
this.form.visit_time_id = rangeMatch.id;

Loading…
Cancel
Save