前台页面修改

dev
rosehan 3 years ago
parent 7391e21bc0
commit 7b48e7b754
  1. 50
      ruoyi-ui/src/assets/styles/picture-common.scss
  2. 1
      ruoyi-ui/src/views/dashboard/MapChart.vue
  3. 12
      ruoyi-ui/src/views/dashboard/rankChart.vue
  4. 10
      ruoyi-ui/src/views/picture/hotel-analysis/index.vue

@ -800,9 +800,38 @@ body {
.p-dialog {
.el-dialog {
display: flex;
flex-direction: column;
margin: 0 !important;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: $p-radius-mini;
max-height: 90vh;
background: $p-dark-bg;
}
.el-dialog:before {
content: "";
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 3rem;
background: linear-gradient(to bottom, rgba($p-secondary-color, .0) 0, rgba($p-secondary-color, 1) 50%, rgba($p-secondary-color, 0) 100%);
}
.el-dialog:after {
content: "";
position: absolute;
right: 0;
top: 0;
height: 100%;
width: 3rem;
background: linear-gradient(to bottom, rgba($p-secondary-color, .0) 0, rgba($p-secondary-color, 1) 50%, rgba($p-secondary-color, 0) 100%);
}
.el-dialog__header {
position: relative;
padding-left: 50rem;
@ -820,6 +849,16 @@ body {
}
.el-dialog__header:before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 3rem;
background: linear-gradient(to right, rgba($p-secondary-color, .0) 0, rgba($p-secondary-color, 1) 50%, rgba($p-secondary-color, 0) 100%);
}
.el-dialog__title:after {
content: "";
position: absolute;
left: 20rem;
@ -832,6 +871,16 @@ body {
background-repeat: no-repeat;
}
.el-dialog__body:before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 3rem;
background: linear-gradient(to right, rgba($p-secondary-color, .0) 0, rgba($p-secondary-color, 1) 50%, rgba($p-secondary-color, 0) 100%);
}
.el-dialog__body {
padding: $p-spacer-medium;
}
@ -854,6 +903,7 @@ body {
.el-dialog__headerbtn:hover {
opacity: 1;
}
}
/* 分页 */

@ -23,6 +23,7 @@
methods: {
initCharts () {
const charts = echarts.init(this.$refs["charts"]);
const option = {
grid:{
top:0,

@ -28,7 +28,8 @@ export default {
},
propsData: {
type: Object,
default: () => {}
default: () => {
}
},
},
data() {
@ -37,9 +38,10 @@ export default {
}
},
mounted() {
this.$nextTick(() => {
this.initChart()
})
const that = this
setTimeout(function () {
that.initChart()
}, 1000);
},
beforeDestroy() {
if (!this.chart) {
@ -102,7 +104,7 @@ export default {
label: {
position: 'right',
show: true,
color:"#fff",
color: "#fff",
formatter: function (params) {
return params.data.value + '%';
},

@ -122,8 +122,8 @@ export default {
//
RoomTypeData: {eChartOpts: {}, eChartData: {}},
//
VisitorSourceData: {},
VisitorSourceRank: [],
VisitorSourceData: [],
VisitorSourceRank: {},
//
VisitorPassnightData: {eChartOpts: {}, eChartData: {}},
//
@ -173,16 +173,12 @@ export default {
//
getVisitorSource() {
getSourceCustomers(1).then(response => {
this.VisitorSourceData= response.data.seriesData
let VisitorSourceRank = response.data.seriesData.map(item => {
return {name: item.name, value: item.percentage}
})
this.VisitorSourceRank = {name: '排行', seriesData: VisitorSourceRank}
this.VisitorSourceData = sourceData.seriesData.map(item => {
return {name: item.name, value: item.value}
})
});
},
//
getVisitorPassnight() {

Loading…
Cancel
Save