|
@@ -4,9 +4,9 @@
|
|
|
<div class="d-flex mb-3">
|
|
|
<Autocomplete class="mr-3" v-model="query.jobId" :item="jobItem"></Autocomplete>
|
|
|
<Autocomplete v-model="query.status" :item="statusItem"></Autocomplete>
|
|
|
- <v-btn color="primary" class="half-button ml-3" @click="handleSearch">查 询</v-btn>
|
|
|
+ <v-btn color="primary" class="half-button ml-3" @click="handleSearch()">查 询</v-btn>
|
|
|
<v-btn class="half-button ml-3" variant="outlined" color="primary" @click="handleReset">重 置</v-btn>
|
|
|
- <v-btn class="half-button ml-10" prepend-icon="mdi-refresh" variant="outlined" color="primary" @click="handleSearch">刷 新</v-btn>
|
|
|
+ <v-btn class="half-button ml-10" prepend-icon="mdi-refresh" variant="outlined" color="primary" @click="handleSearch(true)">刷 新</v-btn>
|
|
|
</div>
|
|
|
</div>
|
|
|
<v-divider class="mb-3"></v-divider>
|
|
@@ -65,6 +65,7 @@ import { getJobAdvertised } from '@/api/enterprise'
|
|
|
import { dealDictArrayData } from '@/utils/position'
|
|
|
import { timesTampChange, getStartAndEndOfDay } from '@/utils/date'
|
|
|
import itemPage from './components/item.vue'
|
|
|
+import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
|
const items = ref([])
|
|
|
const statusList = ref()
|
|
@@ -100,10 +101,11 @@ const getStatusList = async () => {
|
|
|
getStatusList()
|
|
|
|
|
|
// 列表
|
|
|
-const getData = async () => {
|
|
|
+const getData = async (isRefresh = false) => {
|
|
|
const { list, total: number } = await getInterviewInvitePage(query.value)
|
|
|
items.value = list
|
|
|
total.value = number
|
|
|
+ if (isRefresh) Snackbar.success('刷新成功')
|
|
|
}
|
|
|
getData()
|
|
|
|
|
@@ -135,9 +137,9 @@ const handleClear = () => {
|
|
|
getData()
|
|
|
}
|
|
|
|
|
|
-const handleSearch = () => {
|
|
|
+const handleSearch = (refresh = false) => {
|
|
|
query.value.pageNo = 1
|
|
|
- getData()
|
|
|
+ getData(refresh)
|
|
|
}
|
|
|
|
|
|
const handleReset = () => {
|