Commit d56bcff5 authored by chenqikuai's avatar chenqikuai

fix 搜索

parent 6811d235
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<LayoutVue> <LayoutVue>
<div class="flex flex-col w-full h-full"> <div class="flex flex-col w-full h-full">
<div class="flex items-center"> <div class="flex items-center">
<Search v-model="searchValue" placeholder="搜索版权"></Search> <Search v-model="searchValue" placeholder="搜索名称/备案号"></Search>
<Avatar class="ml-7"></Avatar> <Avatar class="ml-7"></Avatar>
</div> </div>
<div <div
...@@ -163,8 +163,11 @@ const fetchTableData = async ({ ...@@ -163,8 +163,11 @@ const fetchTableData = async ({
statuslist.push(currentStatus); statuslist.push(currentStatus);
} }
const isBA = searchValue.value.match(/^BA\d+$/);
const res = await getCopyRights({ const res = await getCopyRights({
record_work_name: searchValue.value, record_work_name: isBA ? "" : searchValue.value,
record_no: isBA ? searchValue.value : "",
record_work_status: statuslist, record_work_status: statuslist,
page, page,
page_size, 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