Commit de06385f authored by Zhang Xiaojie's avatar Zhang Xiaojie

fix

parent 5324a15d
......@@ -12,13 +12,14 @@
:startTime="searchPageReqParams.startTime"
:endTime="searchPageReqParams.endTime"
/>
<span class="mr-3">消息分类</span>
<span class="mr-3">产品分类</span>
<a-select
:default-value="productType[0]"
style="width: 120px; margin-right: 10px"
v-model="searchPageReqParams.type"
@change="handleChange"
>
<a-select-option v-for="(type, i) in productType" :key="i">
<a-select-option v-for="(type, i) in productType" :key="i" :value="i">
{{ type }}
</a-select-option>
</a-select>
......@@ -64,7 +65,7 @@ export default Vue.extend({
return {
searchPageReqParams: {
name: "",
type: "",
type: 0,
startTime: undefined as undefined | number,
endTime: undefined as undefined | number,
offset: 0,
......@@ -86,6 +87,9 @@ export default Vue.extend({
},
},
methods: {
handleChange(val:any){
this.searchPageReqParams.type = val
},
...mapMutations('loanProductManagement', {
productSave: 'save',
}),
......@@ -104,7 +108,7 @@ export default Vue.extend({
},
reset() {
this.searchPageReqParams.name = "";
this.searchPageReqParams.type = "";
this.searchPageReqParams.type = 0;
this.searchPageReqParams.startTime = undefined;
this.searchPageReqParams.endTime = undefined;
this.$nextTick(() => {
......
......@@ -30,7 +30,7 @@ export default <Module<iProductModuleState, {}>>{
const ret = await LoanProductService.getInstance().queryDirectLoanReq({
end_time: state.end_time as number,
limit: state.limit,
loan_type: 0,
loan_type: state.loan_type,
offset: state.offset as number,
product_status: 0,
start_time: state.start_time as number,
......
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