-
+
当前登录人:{{user.name}}
@@ -37,6 +37,9 @@
import {
outboundsCharts
} from "@/api/charts.js"
+ import {
+ getInfo
+ } from '../../api/user.js'
export default {
components: {
@@ -45,6 +48,7 @@
},
data() {
return {
+ user:{},
start_time: '',
end_time: '',
dateRange:[],
@@ -176,6 +180,10 @@
}
},
created() {
+ getInfo().then(response => {
+ console.log(response)
+ this.user = response
+ }).catch(error => {})
this.start_time = this.recentTime(-14, 'yyyy-MM-dd')
this.end_time = this.getNowDate()
this.dateRange = [this.start_time,this.end_time]
diff --git a/src/views/inventorys/index.vue b/src/views/inventorys/index.vue
index a1a2fb0..a682c5d 100644
--- a/src/views/inventorys/index.vue
+++ b/src/views/inventorys/index.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/views/outbounds/index.vue b/src/views/outbounds/index.vue
index 712452a..29afbd7 100644
--- a/src/views/outbounds/index.vue
+++ b/src/views/outbounds/index.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/views/reports/outbounds.vue b/src/views/reports/outbounds.vue
index f327a99..629c35a 100644
--- a/src/views/reports/outbounds.vue
+++ b/src/views/reports/outbounds.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/views/reports/stocks.vue b/src/views/reports/stocks.vue
index 834634b..4f83445 100644
--- a/src/views/reports/stocks.vue
+++ b/src/views/reports/stocks.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/views/stocks/index.vue b/src/views/stocks/index.vue
index 6578e4b..2065d35 100644
--- a/src/views/stocks/index.vue
+++ b/src/views/stocks/index.vue
@@ -1,5 +1,5 @@
-