Commit 99f9d1cf authored by 王晓旭's avatar 王晓旭

修改数据管理和平台设置背景

parent 740d6328
<template>
<div class="data-manage w-full h-auto">
<div class="data-manage w-full h-auto"
:style="{ backgroundImage: `url(${imgUrl})` }">
<div class="main flex">
<div class="out-box flex-1">
<router-view />
......@@ -75,6 +76,7 @@
<script>
import Swiper from "swiper";
import { censusListInterface } from "@/api/dataAdmin";
import { getSlogan } from "@/api/user.js";
import Storage from "@/utils/js/Storage";
import { mapMutations } from "vuex";
export default {
......@@ -103,6 +105,7 @@ export default {
CensusType_5: [], // 运营
active: "",
censusList: [], // 报表列表
imgUrl: "",
};
},
computed: {
......@@ -133,6 +136,7 @@ export default {
},
},
created() {
this.getTitle();
this.censusListInterface();
},
mounted() {
......@@ -140,6 +144,17 @@ export default {
},
methods: {
...mapMutations("user", ["SET_routerList"]),
getTitle() {
getSlogan("siteImg").then((res) => {
if (res.code == 1) {
res.data
? (this.imgUrl = res.data)
: (this.imgUrl = require("@/assets/images/siteArrange/bg_3.jpg"));
} else {
this.imgUrl = require("@/assets/images/siteArrange/bg_3.jpg");
}
});
},
initSwiper() {
this.mySwiper = new Swiper(".swiper-container", {
speed: 1500,
......
<template>
<div class="content" v-if="show">
<div class="modal">
<div class="modal"
:style="{ backgroundImage: `url(${imgUrl})` }">
<div class="effect-content">
<div class="effect-box">
<div class="e-icon-box"></div>
......@@ -55,6 +56,7 @@
import Storage from "@/utils/js/Storage";
// import "./index.css";
import { mapState, mapMutations, mapGetters } from "vuex";
import { getSlogan } from "@/api/user.js";
let _this = null;
const anim_data = {
......@@ -1996,9 +1998,11 @@ export default {
api: process.env.VUE_APP_API_IMG_URL,
platformPermission: [],
show: true,
imgUrl: "",
};
},
created() {
this.getTitle();
this.$nextTick(() => {
this.getPlatformChildren();
});
......@@ -2013,6 +2017,17 @@ export default {
...mapState("user", ["siteList", "userData"]),
},
methods: {
getTitle() {
getSlogan("siteImg").then((res) => {
if (res.code == 1) {
res.data
? (this.imgUrl = res.data)
: (this.imgUrl = require("@/assets/images/siteArrange/bg_3.jpg"));
} else {
this.imgUrl = require("@/assets/images/siteArrange/bg_3.jpg");
}
});
},
// 获取平台子菜单
getPlatformChildren() {
let { menuList } = this.userData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment