This commit is contained in:
parent
4d9450a335
commit
cc0167b120
@ -6,8 +6,8 @@
|
|||||||
<div>当前默认运费:<span class="text-xl">{{spiderCfg.freight}}</span></div>
|
<div>当前默认运费:<span class="text-xl">{{spiderCfg.freight}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex space-x-4">
|
<div class="flex space-x-4">
|
||||||
<a-input placeholder="请输入关键词" v-model:value="query.keyword"></a-input>
|
<a-input placeholder="请输入关键词" v-model:value="query.keyword" @pressEnter="search"></a-input>
|
||||||
<a-button type="primary" :disabled="loading" @click="list">搜索</a-button>
|
<a-button type="primary" :disabled="loading" @click="search">搜索</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-full border-0 border-t-1 border-solid border-gray-300 pt-4">
|
<div class="h-full border-0 border-t-1 border-solid border-gray-300 pt-4">
|
||||||
@ -126,6 +126,7 @@ onMounted(()=>{
|
|||||||
list()
|
list()
|
||||||
loadSpiderCfg()
|
loadSpiderCfg()
|
||||||
})
|
})
|
||||||
|
|
||||||
const query = reactive({
|
const query = reactive({
|
||||||
page: 1,
|
page: 1,
|
||||||
size:6,
|
size:6,
|
||||||
@ -151,6 +152,11 @@ const list = ()=>{
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const search = ()=>{
|
||||||
|
query.page = 1
|
||||||
|
list()
|
||||||
|
}
|
||||||
|
|
||||||
const columns = computed(()=>[
|
const columns = computed(()=>[
|
||||||
{
|
{
|
||||||
title: '名称',
|
title: '名称',
|
||||||
|
Loading…
Reference in New Issue
Block a user