|
@@ -1,16 +1,16 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <v-card elevation="5" class="pa-10 d-flex align-center">
|
|
|
|
|
|
+ <v-card elevation="5" class="px-10 py-10 d-flex align-center" :height="items.length ? 'auto' : '300px'">
|
|
<TextInput
|
|
<TextInput
|
|
v-model="content"
|
|
v-model="content"
|
|
:item="textItem"
|
|
:item="textItem"
|
|
@enter="handleSearch"
|
|
@enter="handleSearch"
|
|
@appendInnerClick="handleSearch"
|
|
@appendInnerClick="handleSearch"
|
|
></TextInput>
|
|
></TextInput>
|
|
- <v-btn color="primary" width="100" class="ml-5" @click="handleSearch">搜 索</v-btn>
|
|
|
|
|
|
+ <v-btn color="primary" width="100" class="ml-5" :loading="loading" @click="handleSearch">搜 索</v-btn>
|
|
</v-card>
|
|
</v-card>
|
|
|
|
|
|
- <v-card elevation="5" class="mt-3">
|
|
|
|
|
|
+ <v-card v-if="items && items.length" elevation="5" class="mt-3">
|
|
<CtTable
|
|
<CtTable
|
|
:items="items"
|
|
:items="items"
|
|
class="pa-3"
|
|
class="pa-3"
|
|
@@ -19,7 +19,6 @@
|
|
:disable-sort="true"
|
|
:disable-sort="true"
|
|
:elevation="0"
|
|
:elevation="0"
|
|
:isTools="false"
|
|
:isTools="false"
|
|
- :noDataText="!content ? '请先输入您的描述信息定位人才' : '暂无数据'"
|
|
|
|
:items-per-page="-1"
|
|
:items-per-page="-1"
|
|
height="calc(100vh - 400px)"
|
|
height="calc(100vh - 400px)"
|
|
:showFixedLastItem="true"
|
|
:showFixedLastItem="true"
|
|
@@ -84,6 +83,7 @@ const getList = async () => {
|
|
try {
|
|
try {
|
|
const data = await getTalentList({ query_requirement: content.value })
|
|
const data = await getTalentList({ query_requirement: content.value })
|
|
items.value = data || []
|
|
items.value = data || []
|
|
|
|
+ if (!data || !data.length) Snackbar.warning('暂无数据,请更换查询条件后再试')
|
|
} finally {
|
|
} finally {
|
|
loading.value = false
|
|
loading.value = false
|
|
}
|
|
}
|