瀏覽代碼

'展示列修改'

魏志佳 4 年之前
父節點
當前提交
a54725ee72
共有 1 個文件被更改,包括 18 次插入14 次删除
  1. 18 14
      src/views/modules/LaunchHousekeeper/LaunchHousekeeperList.vue

+ 18 - 14
src/views/modules/LaunchHousekeeper/LaunchHousekeeperList.vue

@@ -27,13 +27,13 @@
             </span>
             <span class="OptinItem">
                 <a-select  style="width: 120px" v-model="statusValue" @change="statusChange" placeholder="请选择状态">
-                    <a-select-option :value="0" >
+                    <a-select-option value="" >
                         不限
                     </a-select-option>
-                    <a-select-option :value="1" >
+                    <a-select-option value="ENABLED" >
                         启用
                     </a-select-option>
-                    <a-select-option :value="2" >
+                    <a-select-option value="DISABLED" >
                         暂停
                     </a-select-option>
                 </a-select>
@@ -455,7 +455,7 @@ export default {
 
         disabledDate(current) {
             // console.log(current)
-            return current && current > moment().subtract(1, 'day')
+            return current && current > moment()
         },
 
         dateChange(date, dateString) {
@@ -465,15 +465,14 @@ export default {
 
         search(){
             // console.log(this.accountID,this.dateString,this.statusValue,this.optionId);
-
-            if(this.accountIds.length>0){
-                this.loading=true
+            this.loading=true
                 
-                this.tableListHttp()
+            this.tableListHttp()
+            // if(this.accountIds.length>0){              
                 
-            }else{
-                this.$message.error('请选择账户后重试')
-            }
+            // }else{
+            //     this.$message.error('请选择账户后重试')
+            // }
 
         },
 
@@ -621,11 +620,16 @@ export default {
         tableListHttp(){
             // let accountIds=JSON.stringify(this.accountIds)     
             // let createTime=JSON.stringify(this.dateString)      
+            let createTime=[]
+            if(this.dateValue.length){
+                createTime=[this.dateValue[0].format('YYYY-MM-DD 00:00:00'),this.dateValue[1].format('YYYY-MM-DD 23:59:59')]
+            }
             postAction('/adlab/ctopAdlabProjectDetail/list',{
                 accountIds:this.accountIds,
                 userId:this.userInfo.value.id,
-                createTime:this.dateString,
-                optStatus:this.statusValue==undefined?0:this.statusValue,
+                // createTime:this.dateString,
+                createTime,
+                optStatus:this.statusValue==undefined?'':this.statusValue,
                 name:this.name==undefined?'':this.name,
                 pageNo:this.ipagination.current,
                 pageSize:this.ipagination.pageSize
@@ -656,7 +660,7 @@ export default {
         if(userInfo){
             this.userInfo=JSON.parse(userInfo)        
         }
-        this.tableListHttp();
+        // this.tableListHttp();
     },
 }
 </script>