diff --git a/src/utils/costTime.js b/src/utils/costTime.js
index 6cde676..92806b9 100644
--- a/src/utils/costTime.js
+++ b/src/utils/costTime.js
@@ -19,6 +19,28 @@ export function FilterTime(time,type) {
return y + "-" + m + "-" + d + " " + h + ":" + minute + ":" + s;
};
+/**
+ * 获取登陆人员信息
+ */
+export function information(){
+ let userInfo = sessionStorage.getItem('USER_INFORMATION');
+ let res = JSON.parse(userInfo)
+ console.log("1111",res);
+ let bum = '';
+ if(res.post === '系统管理员'){
+ //查看全部数据
+ console.log("2222",res);
+
+ }else{
+ //根据部门查询
+ console.log("3333",res);
+ bum = res.departIds;
+ }
+return bum;
+}
+
+
+
/**
* 根据当前月份获取其前12个月的月份
* @param month
@@ -36,4 +58,4 @@ export function GetRecentMonth(month,arr) {
return arr;
};
-export default {GetRecentMonth,FilterTime };
\ No newline at end of file
+export default {GetRecentMonth,FilterTime,information };
\ No newline at end of file
diff --git a/src/views/modules/oss/OSSFileList.vue b/src/views/modules/oss/OSSFileList.vue
index 3b661f2..f23aa7b 100644
--- a/src/views/modules/oss/OSSFileList.vue
+++ b/src/views/modules/oss/OSSFileList.vue
@@ -249,6 +249,7 @@
},
handlePreview(record) {
if (record && record.url) {
+ console.log("-0=-=-=-=路径",record);
let url = window._CONFIG['onlinePreviewDomainURL']+encodeURIComponent(this.$Base64.encode(record.url))
window.open(url, '_blank')
}
diff --git a/src/views/statisticanalysis/CostStatistic.vue b/src/views/statisticanalysis/CostStatistic.vue
index 071b17d..83164ed 100644
--- a/src/views/statisticanalysis/CostStatistic.vue
+++ b/src/views/statisticanalysis/CostStatistic.vue
@@ -6,18 +6,21 @@