自定义跟进时间 处理

This commit is contained in:
浅念
2025-09-04 14:38:09 +08:00
parent 58f7d56f40
commit 8a0d4fc516
+13 -1
View File
@@ -202,7 +202,7 @@
v-for="item in remindOptions.filter((opt) => opt.value !== 'custom')" v-for="item in remindOptions.filter((opt) => opt.value !== 'custom')"
:key="item.value" :key="item.value"
:class="['remind-btn', { active: remindValue === item.value }]" :class="['remind-btn', { active: remindValue === item.value }]"
@click="remindValue = item.value" @click="selectPreset(item.value)"
> >
{{ item.label }} {{ item.label }}
</div> </div>
@@ -214,6 +214,10 @@
style="width: 100%" style="width: 100%"
CircleClose CircleClose
:disabled-date="disabledPastDate" :disabled-date="disabledPastDate"
@focus="selectCustom"
@change="selectCustom"
clearable
@clear="customDate = ''"
/> />
<el-button type="primary" class="confirm-btn" @click="handleSuccessConfirm">确定</el-button> <el-button type="primary" class="confirm-btn" @click="handleSuccessConfirm">确定</el-button>
</div> </div>
@@ -346,6 +350,14 @@
ElMessage.error(e?.message || '提交失败') ElMessage.error(e?.message || '提交失败')
} }
} }
// 提醒方式互斥处理
const selectPreset = (val: string) => {
remindValue.value = val
customDate.value = ''
}
const selectCustom = () => {
remindValue.value = 'custom'
}
// 在 <script setup> 里添加获取地理位置方法 // 在 <script setup> 里添加获取地理位置方法
function getCurrentLocation() { function getCurrentLocation() {
if (navigator.geolocation) { if (navigator.geolocation) {