This commit is contained in:
白了个白 2024-11-05 11:15:06 +08:00
parent 2407e66e66
commit 1cc0bf965e
1 changed files with 1 additions and 20 deletions

View File

@ -5,20 +5,6 @@
<el-segmented v-model="tabActive" block :options="tabOptions" size="large" /> <el-segmented v-model="tabActive" block :options="tabOptions" size="large" />
</div> </div>
<div v-if="tabActive === '已批改'"> <div v-if="tabActive === '已批改'">
<div class="demo-date-picker">
<div class="block">
<el-date-picker
v-model="EndDate"
type="date"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
placeholder="请选择截止日期"
size="large"
:disabled-date="disabledDate"
@change="changeEndDate"
/>
</div>
</div>
<div class="demo-date-picker"> <div class="demo-date-picker">
<el-date-picker <el-date-picker
v-model="startEndDate" v-model="startEndDate"
@ -89,7 +75,6 @@ const userStore = useUserStore().user
const tabOptions = ref(['待批改', '已批改']) const tabOptions = ref(['待批改', '已批改'])
const tabActive = ref('待批改') const tabActive = ref('待批改')
const dataList = ref([]) const dataList = ref([])
const EndDate = ref(getCurrentTime('YYYY-MM-DD'))
// 23 // 23
const startEndDate = ref([ const startEndDate = ref([
getTheOtherDay(3), getTheOtherDay(3),
@ -125,11 +110,7 @@ const doneDataList = computed(() => {
const disabledDate = (time) => { const disabledDate = (time) => {
return time.getTime() > Date.now() return time.getTime() > Date.now()
} }
//
const changeEndDate = (val) => {
console.log('截止日期改变', val)
getData() //
}
const changeStartEndDate = (val) => { const changeStartEndDate = (val) => {
console.log('起止日期改变', val) console.log('起止日期改变', val)
getData() // getData() //