|
@@ -18,12 +18,13 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="oneRight">
|
|
|
<el-input
|
|
|
- clearablev-model="input"
|
|
|
+ clearable
|
|
|
+ v-model="input"
|
|
|
placeholder="请输入赛题名称搜索..."
|
|
|
class="input"
|
|
|
>
|
|
|
<template #append>
|
|
|
- <el-button :icon="Search" />
|
|
|
+ <el-button :icon="Search" @click="onSearch" />
|
|
|
</template>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
@@ -213,6 +214,12 @@ const toView = (item) => {
|
|
|
const getTime = (data) => {
|
|
|
if (data) return `${data[0]} - ${data[1]}`
|
|
|
}
|
|
|
+// 时间
|
|
|
+const onSearch = () => {
|
|
|
+ if (input.value) searchForm.value = { name: input.value }
|
|
|
+ else searchForm.value = {}
|
|
|
+ search({ skip, limit })
|
|
|
+}
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
.main {
|