From 7ae08adfecd73881468a566b62643e087247a9c4 Mon Sep 17 00:00:00 2001
From: caoyizhong <1270296080@qq.com>
Date: Thu, 9 Mar 2023 18:25:13 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/costTime.js | 24 ++++++++++-
src/views/modules/oss/OSSFileList.vue | 1 +
src/views/statisticanalysis/CostStatistic.vue | 5 ++-
.../costecharts/CaseCost.vue | 41 ++++++++++++++++--
.../statisticanalysis/costecharts/Cost.vue | 42 +++++++++++++++----
.../costecharts/CostAnalysis.vue | 18 +++++++-
.../costecharts/ItemCost.vue | 6 ++-
.../costecharts/OnDayCost.vue | 7 +++-
8 files changed, 125 insertions(+), 19 deletions(-)
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 @@