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

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

parent 740d6328
<template> <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="main flex">
<div class="out-box flex-1"> <div class="out-box flex-1">
<router-view /> <router-view />
...@@ -75,6 +76,7 @@ ...@@ -75,6 +76,7 @@
<script> <script>
import Swiper from "swiper"; import Swiper from "swiper";
import { censusListInterface } from "@/api/dataAdmin"; import { censusListInterface } from "@/api/dataAdmin";
import { getSlogan } from "@/api/user.js";
import Storage from "@/utils/js/Storage"; import Storage from "@/utils/js/Storage";
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
export default { export default {
...@@ -103,6 +105,7 @@ export default { ...@@ -103,6 +105,7 @@ export default {
CensusType_5: [], // 运营 CensusType_5: [], // 运营
active: "", active: "",
censusList: [], // 报表列表 censusList: [], // 报表列表
imgUrl: "",
}; };
}, },
computed: { computed: {
...@@ -133,6 +136,7 @@ export default { ...@@ -133,6 +136,7 @@ export default {
}, },
}, },
created() { created() {
this.getTitle();
this.censusListInterface(); this.censusListInterface();
}, },
mounted() { mounted() {
...@@ -140,6 +144,17 @@ export default { ...@@ -140,6 +144,17 @@ export default {
}, },
methods: { methods: {
...mapMutations("user", ["SET_routerList"]), ...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() { initSwiper() {
this.mySwiper = new Swiper(".swiper-container", { this.mySwiper = new Swiper(".swiper-container", {
speed: 1500, speed: 1500,
......
<template> <template>
<div class="content" v-if="show"> <div class="content" v-if="show">
<div class="modal"> <div class="modal"
:style="{ backgroundImage: `url(${imgUrl})` }">
<div class="effect-content"> <div class="effect-content">
<div class="effect-box"> <div class="effect-box">
<div class="e-icon-box"></div> <div class="e-icon-box"></div>
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
import Storage from "@/utils/js/Storage"; import Storage from "@/utils/js/Storage";
// import "./index.css"; // import "./index.css";
import { mapState, mapMutations, mapGetters } from "vuex"; import { mapState, mapMutations, mapGetters } from "vuex";
import { getSlogan } from "@/api/user.js";
let _this = null; let _this = null;
const anim_data = { const anim_data = {
...@@ -1996,9 +1998,11 @@ export default { ...@@ -1996,9 +1998,11 @@ export default {
api: process.env.VUE_APP_API_IMG_URL, api: process.env.VUE_APP_API_IMG_URL,
platformPermission: [], platformPermission: [],
show: true, show: true,
imgUrl: "",
}; };
}, },
created() { created() {
this.getTitle();
this.$nextTick(() => { this.$nextTick(() => {
this.getPlatformChildren(); this.getPlatformChildren();
}); });
...@@ -2013,6 +2017,17 @@ export default { ...@@ -2013,6 +2017,17 @@ export default {
...mapState("user", ["siteList", "userData"]), ...mapState("user", ["siteList", "userData"]),
}, },
methods: { 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() { getPlatformChildren() {
let { menuList } = this.userData; 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