|
@ -3,7 +3,7 @@ |
|
|
<div class="left_container"> |
|
|
<div class="left_container"> |
|
|
<p class="title">{{ position }}</p> |
|
|
<p class="title">{{ position }}</p> |
|
|
<div class="select_time" @click="showPicker = true">选择时间</div> |
|
|
<div class="select_time" @click="showPicker = true">选择时间</div> |
|
|
<p class="clear_time" @click="clearSetting">清除设定</p> |
|
|
|
|
|
|
|
|
<p class="clear_time" @click="clearModalVisible = true">清除设定</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right_container"> |
|
|
<div class="right_container"> |
|
|
<p class="no_time" v-if="timeStore[`clock_status_${num}`] == 0">未设定</p> |
|
|
<p class="no_time" v-if="timeStore[`clock_status_${num}`] == 0">未设定</p> |
|
@ -79,6 +79,11 @@ |
|
|
@confirm="onConfirm" |
|
|
@confirm="onConfirm" |
|
|
/> |
|
|
/> |
|
|
</van-popup> |
|
|
</van-popup> |
|
|
|
|
|
<ClearModal |
|
|
|
|
|
v-if="clearModalVisible" |
|
|
|
|
|
:handleHidden="handleHidden" |
|
|
|
|
|
:clearSetting="clearSetting" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -86,6 +91,7 @@ |
|
|
import { ref, onMounted } from 'vue' |
|
|
import { ref, onMounted } from 'vue' |
|
|
import { formatNumber } from '@/utils' |
|
|
import { formatNumber } from '@/utils' |
|
|
import { useTimeStore } from '@/store' |
|
|
import { useTimeStore } from '@/store' |
|
|
|
|
|
import ClearModal from 'cpns/ClearModal' |
|
|
|
|
|
|
|
|
const timeStore = useTimeStore() |
|
|
const timeStore = useTimeStore() |
|
|
|
|
|
|
|
@ -98,9 +104,14 @@ const props = defineProps({ |
|
|
}, |
|
|
}, |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const clearModalVisible = ref(false) |
|
|
const columns = ref([]) |
|
|
const columns = ref([]) |
|
|
const time = ref(0) |
|
|
const time = ref(0) |
|
|
|
|
|
|
|
|
|
|
|
const handleHidden = () => { |
|
|
|
|
|
clearModalVisible.value = false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
let arr = [] |
|
|
let arr = [] |
|
|
for (let i = 0; i < 3; i++) { |
|
|
for (let i = 0; i < 3; i++) { |
|
|