1004749546@qq.com 4 лет назад
Родитель
Сommit
c25944d5db
1 измененных файлов с 16 добавлено и 13 удалено
  1. 16 13
      src/views/userInfo/userManageList.vue

+ 16 - 13
src/views/userInfo/userManageList.vue

@@ -1,7 +1,7 @@
 <template>
   <a-card :bordered="false" class="userManageList-table-page-search-wrapper">
     <div class="userManageList-searchForm">
-      <a-form-model :model="queryParam" layout="inline" v-bind="formItemLayout" @keyup.enter.native="refresh">
+      <a-form-model :model="queryParam" ref="queryForm" layout="inline" v-bind="formItemLayout" @keyup.enter.native="refresh">
         <a-row :gutter="20">
           <a-col :span="6">
             <a-form-model-item label="注册时间" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
@@ -25,19 +25,26 @@
                 @change="onChangelastDeliverTime" />
             </a-form-model-item>
           </a-col>
-          <a-col :span="6">
-            <a-form-model-item prop="mobile" label="用户手机" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
+          <a-col :span="5">
+            <a-form-model-item prop="mobile" label="用户手机" :label-col="{span:8}" :wrapper-col="{span:16}">
               <a-input id="releaseRecordList-mobile" allowClear :maxLength="11" v-model="queryParam.mobile" placeholder="请输入用户手机" />
             </a-form-model-item>
           </a-col>
-          <a-col :span="6">
-            <a-form-model-item label="乐豆余额" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
+          <a-col :span="4">
+            <a-form-model-item label="乐豆余额" prop="currentGoldMin" :label-col="{span:10}" :wrapper-col="{span:14}">
               <div class="input-number">
-                <a-input-number id="releaseRecordList-inputNumber" v-model="queryParam.currentGoldMin" :max="999999999" />-
-                <a-input-number id="inputNumber" v-model="queryParam.currentGoldMax" :max="999999999" />
+                <a-input-number id="releaseRecordList-inputNumber" v-model="queryParam.currentGoldMin" :max="999999999" />
+				<span style="margin-left: 20px;">-</span>
               </div>
             </a-form-model-item>
           </a-col>
+		  <a-col :span="2">
+			  <a-form-model-item label=" " prop="currentGoldMax" :colon="false" :label-col="{span:1}" :wrapper-col="{span:23}">
+			    <div class="input-number">
+			      <a-input-number id="inputNumber" v-model="queryParam.currentGoldMax" :max="999999999" />
+			    </div>
+			  </a-form-model-item>
+		  </a-col>
         </a-row>
         <a-row :gutter="20">
           <a-col :span="6">
@@ -261,7 +268,7 @@ export default {
   },
   beforeRouteEnter (to, from, next) {
     next(vm => {
-      vm.queryParam = {}
+	  vm.$refs.queryForm.resetFields()
 	  vm.registerTime = []
 	  vm.lastDeliverTime = []
     })
@@ -345,11 +352,7 @@ export default {
     },
     // 重置
     handleReset () {
-      this.queryParam.mobile = '' //  用户手机
-      this.queryParam.currentGoldMin = '' // 乐豆余额最小值
-      this.queryParam.currentGoldMax = '' // 乐豆余额最大值
-      this.queryParam.state = '' // 账户状态
-      this.queryParam.customerRole = '' // 用户身份
+	  this.$refs.queryForm.resetFields()
       this.queryParam.beginDate = null // 最后投递时间的开始时间
       this.queryParam.endDate = null // 最后投递时间的结束时间
       this.queryParam.beginRegisterTime = null //  注册时间最小值