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

fix(mobile_views): 恢复重置功能

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