Commit d56bcff5 authored by chenqikuai's avatar chenqikuai

fix 搜索

parent 6811d235
......@@ -2,7 +2,7 @@
<LayoutVue>
<div class="flex flex-col w-full h-full">
<div class="flex items-center">
<Search v-model="searchValue" placeholder="搜索版权"></Search>
<Search v-model="searchValue" placeholder="搜索名称/备案号"></Search>
<Avatar class="ml-7"></Avatar>
</div>
<div
......@@ -163,8 +163,11 @@ const fetchTableData = async ({
statuslist.push(currentStatus);
}
const isBA = searchValue.value.match(/^BA\d+$/);
const res = await getCopyRights({
record_work_name: searchValue.value,
record_work_name: isBA ? "" : searchValue.value,
record_no: isBA ? searchValue.value : "",
record_work_status: statuslist,
page,
page_size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment