diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index 67d8fc1b7..49b3181e7 100755
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -37,7 +37,9 @@
{{.i18n.Tr "explore.users"}}
{{.i18n.Tr "explore.organizations"}}
{{.i18n.Tr "explore.images"}}
- {{.i18n.Tr "explore.data_analysis"}}
+ {{if .IsAdmin}}
+ {{.i18n.Tr "explore.data_analysis"}}
+ {{end}}
{{else if .IsLandingPageHome}}
@@ -53,6 +55,9 @@
{{.i18n.Tr "explore.users"}}
{{.i18n.Tr "explore.organizations"}}
{{.i18n.Tr "explore.images"}}
+ {{if .IsAdmin}}
+ {{.i18n.Tr "explore.data_analysis"}}
+ {{end}}
{{else if .IsLandingPageExplore}}
diff --git a/templates/base/head_navbar_home.tmpl b/templates/base/head_navbar_home.tmpl
index e334efba8..c94ff269f 100644
--- a/templates/base/head_navbar_home.tmpl
+++ b/templates/base/head_navbar_home.tmpl
@@ -29,7 +29,9 @@
{{.i18n.Tr "explore.users"}}
{{.i18n.Tr "explore.organizations"}}
{{.i18n.Tr "explore.images"}}
- {{.i18n.Tr "explore.data_analysis"}}
+ {{if .IsAdmin}}
+ {{.i18n.Tr "explore.data_analysis"}}
+ {{end}}
{{else if .IsLandingPageHome}}
@@ -45,6 +47,9 @@
{{.i18n.Tr "explore.users"}}
{{.i18n.Tr "explore.organizations"}}
{{.i18n.Tr "explore.images"}}
+ {{if .IsAdmin}}
+ {{.i18n.Tr "explore.data_analysis"}}
+ {{end}}
{{else if .IsLandingPageExplore}}
diff --git a/web_src/js/components/ProAnalysis.vue b/web_src/js/components/ProAnalysis.vue
index 8d4f25084..abe6f5904 100755
--- a/web_src/js/components/ProAnalysis.vue
+++ b/web_src/js/components/ProAnalysis.vue
@@ -8,18 +8,18 @@
统计周期:
-
-
-
-
-
-
-
+
+
+
+
+
+
+
- OpenI / {{this.pro_name}} 数据更新时间:{{tableDataIDTotal.lastUpdatedTime}}/{{tableDataIDTotal.recordBeginTime}}
+ {{this.pro_name}} 数据更新时间:{{tableDataIDTotal.lastUpdatedTime}}/{{tableDataIDTotal.recordBeginTime}}
项目描述:{{tableDataIDTotal.description | discriptionFun}}
@@ -205,7 +205,13 @@
label="用户名"
align="center"
prop="user">
+
+
{{scope.row.user}}
+
{{scope.row.user}}
+
+
+
统计周期:
-
-
-
-
-
-
-
+
+
+
+
+
+
+
// import barLabel from './basic/barLabel.vue';
+ const {AppSubUrl, StaticUrlPrefix, csrf} = window.config;
+
import { export2Excel } from '../excel/util.js'
export default{
name:'ProAnalysis',
@@ -375,6 +383,7 @@
// this.getOneProList(this.pro_id,'all',true,7)
// this.getOneProList(this.pro_id,'all',false,7)
// this.fileName()
+ this.currentPage=1
var saveFileName = this.getFileName()
export2Excel(this.columns,this.tableDataID,saveFileName)
},
@@ -458,9 +467,17 @@
return saveFileName
},
+ resetPage(){
+ this.page=1
+ this.params.page = 1
+ },
+ resetCurrentPage(){
+ this.currentPage=1
+ },
handleCurrentChange(val){
console.log(val)
this.params.page = val
+ this.page = val
switch(this.params.type){
case "yesterday":{
this.value_time=''
@@ -563,11 +580,12 @@
searchName(){
this.params.q = this.search
this.params.page = 1
+ this.page=1
this.getAllProList("all",7)
},
goToDetailPage(pro_id,pro_name){
-
+ this.currentPage=1
document.getElementById("pro_main").style.display="none";
document.getElementById("pro_detail").style.display="block";
console.log(pro_id)
@@ -908,6 +926,7 @@
// option.legend.selected = obj;
// this.echartsSelectData.setOption(option);
// });
+
},
@@ -961,7 +980,16 @@
}else{
return "未定义"
}
- }
+ },
+ showContext(value){
+ if (value.mode!=-1){
+ return "
"+" "+value.user+" "
+ }
+ else{
+ return " " +value.user+ ""
+ }
+
+ },
},
diff --git a/web_src/js/components/UserAnalysis.vue b/web_src/js/components/UserAnalysis.vue
index c8f169887..3c07a8807 100755
--- a/web_src/js/components/UserAnalysis.vue
+++ b/web_src/js/components/UserAnalysis.vue
@@ -252,7 +252,7 @@
var tmp = new Date(now.setTime(now.getTime()-24*60*60*1000));
var yesterday = this.formatDate(tmp.getFullYear(),tmp.getMonth()+1,tmp.getDate());
this.params.startDate = yesterday
- this.params.endDate = today
+ this.params.endDate = yesterday
this.value_time=[]
// document.getElementById("yesterday_usr").style.backgroundColor="409effd6"
// document.getElementById("current_week_usr")