瀏覽代碼

用户管理修改

1004749546@qq.com 4 年之前
父節點
當前提交
072bd1a246
共有 1 個文件被更改,包括 16 次插入16 次删除
  1. 16 16
      src/views/userInfo/userManageList.vue

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

@@ -1,10 +1,10 @@
 <template>
   <a-card :bordered="false" class="userManageList-table-page-search-wrapper">
     <div class="userManageList-searchForm">
-      <a-form layout="inline" v-bind="formItemLayout" @keyup.enter.native="refresh">
+      <a-form-model :model="queryParam" layout="inline" v-bind="formItemLayout" @keyup.enter.native="refresh">
         <a-row :gutter="20">
           <a-col :span="6">
-            <a-form-item label="注册时间" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
+            <a-form-model-item label="注册时间" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
               <a-range-picker
                 id="network-time"
                 v-model="registerTime"
@@ -12,10 +12,10 @@
                 :placeholder="['开始时间','结束时间']"
                 :disabledDate="disabledDate"
                 @change="onChangeregisterTime" />
-            </a-form-item>
+            </a-form-model-item>
           </a-col>
           <a-col :span="6">
-            <a-form-item label="最后投递时间" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
+            <a-form-model-item label="最后投递时间" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
               <a-range-picker
                 id="network-time"
                 v-model="lastDeliverTime"
@@ -23,42 +23,42 @@
                 :placeholder="['开始时间','结束时间']"
                 :disabledDate="disabledDate"
                 @change="onChangelastDeliverTime" />
-            </a-form-item>
+            </a-form-model-item>
           </a-col>
           <a-col :span="6">
-            <a-form-item label="用户手机" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
+            <a-form-model-item prop="mobile" label="用户手机" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
               <a-input id="releaseRecordList-mobile" allowClear :maxLength="11" v-model="queryParam.mobile" placeholder="请输入用户手机" />
-            </a-form-item>
+            </a-form-model-item>
           </a-col>
           <a-col :span="6">
-            <a-form-item label="乐豆余额" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
+            <a-form-model-item label="乐豆余额" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
               <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" />
               </div>
-            </a-form-item>
+            </a-form-model-item>
           </a-col>
         </a-row>
         <a-row :gutter="20">
           <a-col :span="6">
-            <a-form-item label="账户状态" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
+            <a-form-model-item label="账户状态" prop="state" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
               <v-select
                 v-model="queryParam.state"
                 id="releaseRecordList-state"
                 code="ENABLE_FLAG"
                 placeholder="请选择账户状态"
                 allowClear></v-select>
-            </a-form-item>
+            </a-form-model-item>
           </a-col>
           <a-col :span="6">
-            <a-form-item label="用户身份" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
+            <a-form-model-item prop="customerRole" label="用户身份" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
               <v-select
                 v-model="queryParam.customerRole"
                 id="releaseRecordList-customerRole"
                 code="CUSTOMER_ROLE"
                 placeholder="请选择用户身份"
                 allowClear></v-select>
-            </a-form-item>
+            </a-form-model-item>
           </a-col>
           <a-col :span="6">
             <a-button class="handle-btn serach-btn" id="releaseRecordList-btn-serach" type="primary" @click="refresh">查询</a-button>
@@ -72,7 +72,7 @@
           </a-col>
         </a-row>
 
-      </a-form>
+      </a-form-model>
     </div>
     <s-table
       ref="table"
@@ -286,10 +286,10 @@ export default {
       }
     },
     refresh () {
-      const isONull = this.queryParam.currentGoldMin === null
+      const isONull = this.queryParam.currentGoldMin === null || this.queryParam.currentGoldMin === undefined
       const isOEmpty = this.queryParam.currentGoldMin === ''
       const isOZero = this.queryParam.currentGoldMin === 0
-      const isTNull = this.queryParam.currentGoldMax === null
+      const isTNull = this.queryParam.currentGoldMax === null || this.queryParam.currentGoldMax === undefined
       const isTEmpty = this.queryParam.currentGoldMax === ''
       const isTZero = this.queryParam.currentGoldMax === 0
       //  第一个为空(可为null可为空字符)第二个不为空