Commit 80d26330 authored by Zhang Xiaojie's avatar Zhang Xiaojie

fix: search by product name

parent f02b0639
......@@ -2,7 +2,8 @@
<div>
<a-input
placeholder="产品名称模糊搜索"
v-model="product_name"
:value="product_name"
@input="handleChangeName"
style="width: 150px; margin-right: 10px"
/>
<span class="font-semibold">操作时间:</span>
......@@ -105,34 +106,12 @@ export default Vue.extend({
"product_status",
]),
},
data() {
return {
searchPageReqParams: {
name: "",
type: 0,
status: 0,
startTime: undefined as undefined | number,
endTime: undefined as undefined | number,
offset: 0,
limit: PAGE_SIZE,
},
};
},
watch: {
searchPageReqParams: {
deep: true,
handler(newV) {
this.productSave({
product_name: newV.name,
start_time: newV.startTime,
end_time: newV.endTime,
loan_type: newV.type,
product_status: newV.status,
});
},
},
},
methods: {
handleChangeName(e:any){
this.productSave({
product_name:e.target.value
})
},
handleChangeType(val: any) {
this.productSave({
loan_type: val,
......
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