lion 4 months ago
parent 490382bb7c
commit 81a5402cd5

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

Loading…
Cancel
Save