@@ -9,11 +9,11 @@ import screenfull from 'screenfull'
export default {
name: 'Screenfull',
- props:{
+ props: {
className: {
type: String,
default: ''
- },
+ }
},
data() {
return {
@@ -17,19 +17,19 @@ export default {
key: 0,
- nameKey: ""
+ nameKey: ''
}
computed: {
...mapGetters(['show']),
str() {
return this.$store.state?.user?.name
watch: {
$route(val, oval) {
this.setNameKey()
created() {
@@ -62,7 +62,7 @@ export default {
overflow: hidden;
-.fixed-header+.app-main {
+.fixed-header + .app-main {
/* padding-top: 50px; */
/* padding-top: 80px; */
@@ -316,8 +316,7 @@ export default {
noticeVisible() {
return this.noticeCount > 0
- ...mapGetters(['userid']),
- ...mapGetters(['sidebar', 'avatar', 'device', 'name', 'isNotice']),
+ ...mapGetters(['sidebar', 'avatar', 'device', 'name', 'isNotice', 'showBigData', 'userid']),
filterTime() {
if (this.dateType === '') {
return ['', '']
@@ -68,6 +68,7 @@ router.beforeEach(async (to, from, next) => {
lay.children = []
for (var route of store.getters.menus) {
if (route.code == 'bigViews') {
+ store.commit('SET_SHOW_BIG_DATS', true)
router.addRoutes([
{
path: '/bigViews',
@@ -29,6 +29,7 @@ const getters = {
isSettlementGroup: state => state.user.isSettlementGroup,
roleList: state => state.user.roleList,
websitId: state => state.user.websitId,
- greemall_user: state => state.user.greemall_user
+ greemall_user: state => state.user.greemall_user,
+ showBigData: state => state.user.showBigData
export default getters
@@ -15,7 +15,7 @@ const store = new Vuex.Store({
settings,
permission,
tagsView,
- user,
+ user
getters
})
@@ -37,7 +37,8 @@ const getDefaultState = () => {
isSettlementGroup: false,
roleList: [],
websitId: null,
- greemall_user: null
+ greemall_user: null,
+ showBigData: false
@@ -156,6 +157,9 @@ const mutations = {
SET_WEBSIT_ID: (state, websitId) => {
state.websitId = websitId
+ },
+ SET_SHOW_BIG_DATS: (state, bool) => {
+ state.showBigData = bool