自定义跟进时间 处理
This commit is contained in:
@@ -202,7 +202,7 @@
|
||||
v-for="item in remindOptions.filter((opt) => opt.value !== 'custom')"
|
||||
:key="item.value"
|
||||
:class="['remind-btn', { active: remindValue === item.value }]"
|
||||
@click="remindValue = item.value"
|
||||
@click="selectPreset(item.value)"
|
||||
>
|
||||
{{ item.label }}
|
||||
</div>
|
||||
@@ -214,6 +214,10 @@
|
||||
style="width: 100%"
|
||||
CircleClose
|
||||
:disabled-date="disabledPastDate"
|
||||
@focus="selectCustom"
|
||||
@change="selectCustom"
|
||||
clearable
|
||||
@clear="customDate = ''"
|
||||
/>
|
||||
<el-button type="primary" class="confirm-btn" @click="handleSuccessConfirm">确定</el-button>
|
||||
</div>
|
||||
@@ -346,6 +350,14 @@
|
||||
ElMessage.error(e?.message || '提交失败')
|
||||
}
|
||||
}
|
||||
// 提醒方式互斥处理
|
||||
const selectPreset = (val: string) => {
|
||||
remindValue.value = val
|
||||
customDate.value = ''
|
||||
}
|
||||
const selectCustom = () => {
|
||||
remindValue.value = 'custom'
|
||||
}
|
||||
// 在 <script setup> 里添加获取地理位置方法
|
||||
function getCurrentLocation() {
|
||||
if (navigator.geolocation) {
|
||||
|
||||
Reference in New Issue
Block a user