重置终端退运选择审核状态

This commit is contained in:
zhujiyan
2024-06-05 15:35:35 +08:00
parent 51bf169375
commit 3da8dc91a8
2 changed files with 20 additions and 19 deletions

View File

@@ -2,7 +2,7 @@
<template>
<div class='default-main'>
<TableHeader date-picker>
<template v-slot:select>
<template #select>
<el-form-item label="审核状态">
<el-select v-model="tableStore.table.params.status" clearable placeholder="请选择审核状态">
<el-option
@@ -155,19 +155,15 @@ const tableStore = new TableStore({
}
],
beforeSearchFun: () => {
for (let key in tableStore.table.params) {
if (tableStore.table.params[key] === '') {
delete tableStore.table.params[key]
}
// for (let key in tableStore.table.params) {
// if (tableStore.table.params[key] === '') {
// delete tableStore.table.params[key]
// }
}
// }
tableStore.table.params.deviceType = 2
}
})
onMounted(() => {
// 加载数据
tableStore.index()
})
tableStore.table.params.searchValue = ''
tableStore.table.params.status = ''
provide('tableStore', tableStore)
@@ -209,6 +205,10 @@ const cancelLeave = async (row: any) => {
tableStore.index()
}
onMounted(() => {
// 加载数据
tableStore.index()
})
watch(
() => currentRoute.value.path,
() => {

View File

@@ -179,18 +179,14 @@ const tableStore = new TableStore({
}
],
beforeSearchFun: () => {
for (let key in tableStore.table.params) {
if (tableStore.table.params[key] === '') {
delete tableStore.table.params[key]
}
}
// for (let key in tableStore.table.params) {
// if (tableStore.table.params[key] === '') {
// delete tableStore.table.params[key]
// }
// }
tableStore.table.params.deviceType = 1
}
})
onMounted(() => {
// 加载数据
tableStore.index()
})
tableStore.table.params.status = ''
tableStore.table.params.searchValue = ''
provide('tableStore', tableStore)
@@ -231,6 +227,11 @@ const cancelLeave = async (row: any) => {
// 加载数据
tableStore.index()
}
onMounted(() => {
// 加载数据
tableStore.index()
})
watch(
() => currentRoute.value.path,
() => {