Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.1^2
zouap 4 years ago
parent
commit
c93bb4b450
1 changed files with 3 additions and 23 deletions
  1. +3
    -23
      web_src/js/components/UserAnalysis.vue

+ 3
- 23
web_src/js/components/UserAnalysis.vue View File

@@ -302,6 +302,7 @@
break
}
case "current_month_usr":{
console.log("go " + type_val)
this.params.startDate = this.formatDate(nowYear,nowMonth+1,1);
this.params.endDate = today
this.value_time=[]
@@ -351,26 +352,14 @@
},
searchName(){
// this.params.q = this.search
// this.params.page = 1
// this.getUserList("all_usr")
// var search = this.search;
// this.getUserList("all_usr",7)
// this.tableData = this.tableData.filter(data => !search || data.Name.toLowerCase().includes(search.toLowerCase()))

this.params.userName = this.search
this.params.page = 1
this.page=1
this.getUserList(this.type_val, this.dynamic)

},
// goToDetailPage(pro_id,pro_name){
// sessionStorage.setItem("pro_id",pro_id);
// sessionStorage.setItem("pro_name",pro_name);
// document.getElementById("pro_main").style.display="none";
// document.getElementById("pro_detail").style.display="block";

// },
tableHeaderStyle({row,column,rowIndex,columnIndex}){
if(rowIndex===0){
@@ -402,12 +391,6 @@
console.log('dateString', dateString); // > dateString 2021-07-06 14:23
return dateString;
},

// transformTimestamp(timestamp){
// var dateString= new Date(timestamp);
// return dateString.toLocaleDateString().replace(/\//g, "-") + " " + dateString.toTimeString().substr(0, 8);
// },
},
mounted() {
@@ -421,9 +404,6 @@
},
watch:{
search(val){
// if(!val){
// this.getUserList("all_usr",7)
// }
if(!val){
this.params.userName = this.search
this.params.page = 1


Loading…
Cancel
Save