提交 349b5cc8 authored 作者: lidongxu's avatar lidongxu

fix(mobile_views): 恢复重置功能

同上
上级 09416988
......@@ -230,12 +230,18 @@ p {
white-space: nowrap;
flex: 1;
overflow: scroll;
overflow-y: hidden;
&::-webkit-scrollbar-track {
background-color: transparent;
}
.van-image {
display: inline-block;
margin: 0 10px;
}
}
}
}
......
<template>
<div class="mobile-container">
<van-nav-bar left-text="新增"
<van-nav-bar
right-text="搜索"
@click-right="showSearch = true"
placeholder
......@@ -40,7 +40,8 @@
<!-- 快捷时间 -->
<van-field readonly
label="快捷时间"
placeholder="选择时间">
placeholder="选择时间"
>
<template #input>
<van-button size="small"
type="primary"
......@@ -152,18 +153,18 @@ import { getChargeListAPI, getPlanListAPI } from '@/api'
const { recentPickerOptions: pickerOptions, thisYearDate } = useDatePickerOptions(0)
const router = useRouter()
const url = ref('')
url.value = window.location.href
// const url = ref('')
// url.value = window.location.href
// 点击复制按钮复制字符串到剪切板
const copy = () => {
const input = document.createElement('input');
input.value = url.value;
document.body.appendChild(input);
input.select();
document.execCommand('Copy');
document.body.removeChild(input);
alert('复制成功');
}
// const copy = () => {
// const input = document.createElement('input');
// input.value = url.value;
// document.body.appendChild(input);
// input.select();
// document.execCommand('Copy');
// document.body.removeChild(input);
// alert('复制成功');
// }
// 搜索弹窗
const showSearch = ref(false)
......@@ -322,14 +323,14 @@ const onRefresh = () => {
// 重置
const resetFn = () => {
// query.activityStartDate = ''
// query.activityEndDate = ''
// query.planStatus = ''
// query.employeeId = ''
// query.storeNameLike = ''
// planList.value = []
// planQueryParams.pageNum = 1
// getPlanList()
query.activityStartDate = ''
query.activityEndDate = ''
query.planStatus = ''
query.employeeId = ''
query.storeNameLike = ''
planList.value = []
planQueryParams.pageNum = 1
getPlanList()
}
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论