Commit f6bfc044 by 匡雅琴

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-pd into v1.0.0

2 parents 67eb37f2 3309d98d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-05 15:11:53 * @Date: 2023-07-05 15:11:53
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-05 17:19:32 * @LastEditTime: 2023-07-06 12:01:43
--> -->
<template> <template>
<div v-show="isShow" class="select-box" :style="{'width': boxWidth}"> <div v-show="isShow" class="select-box" :style="{'width': boxWidth}">
...@@ -22,6 +22,7 @@ export default { ...@@ -22,6 +22,7 @@ export default {
type: Array, type: Array,
default: () => [] default: () => []
}, },
// dataList里面的值是否是对象
isObject: { isObject: {
type: Boolean, type: Boolean,
default: false default: false
...@@ -34,6 +35,7 @@ export default { ...@@ -34,6 +35,7 @@ export default {
type: String, type: String,
default: 'value' default: 'value'
}, },
// 下拉框的宽度设置
boxWidth: { boxWidth: {
type: String type: String
} }
......
<!--
* @Description: 内容页面统计年份组件
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 12:06:38
-->
<template> <template>
<div class="view-date">统计年份: <div class="view-date">统计年份:
<div class="year-plugin"> <div class="year-plugin">
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26 * @Date: 2022-10-25 10:12:26
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 11:45:34 * @LastEditTime: 2023-07-06 14:16:20
* @FilePath: \dj-data-view\src\components\ViewTitle.vue * @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 页面头部组件
--> -->
<template> <template>
<div class="content flex"> <div class="content flex">
...@@ -12,13 +12,13 @@ ...@@ -12,13 +12,13 @@
<img style="height: 2.89vh" src="@/assets/images/logo.png" alt="logo" /> <img style="height: 2.89vh" src="@/assets/images/logo.png" alt="logo" />
</div> </div>
<div class="tab"> <div class="tab">
<div class="tab-item first-tab" @click.self="jump('home')"> <div class="tab-item first-tab" :class="currentMenu == 'home' ? 'active' : ''" @click.self="jump('home')">
{{ firstTab.label }} {{ firstTab.label }}
<img class="arrow-down" @click.stop="openSelect" src="@/assets/images/title-arrow.png" alt=""> <img class="arrow-down" @click.stop="openSelect" src="@/assets/images/title-arrow.png" alt="">
<SelectBox :isShow="isShow" :dataList="dataList" :boxWidth="'17.1vw'" isObject @selectVal="selectVal"></SelectBox> <SelectBox :isShow="isShow" :dataList="dataList" :boxWidth="'17.1vw'" isObject @selectVal="selectVal"></SelectBox>
</div> </div>
<div class="tab-item other-tab" @click="jump('operational')">运营数据</div> <div class="tab-item other-tab" :class="currentMenu == 'operational' ? 'active' : ''" @click="jump('operational')">运营数据</div>
<div class="tab-item other-tab" @click="jump('interior')">内部数据</div> <div class="tab-item other-tab" :class="currentMenu == 'interior' ? 'active' : ''" @click="jump('interior')">内部数据</div>
</div> </div>
<!-- <div class="view-title user-select">嘀加智慧门店运营看板</div> --> <!-- <div class="view-title user-select">嘀加智慧门店运营看板</div> -->
<div class="time"> <div class="time">
...@@ -37,9 +37,9 @@ export default { ...@@ -37,9 +37,9 @@ export default {
return { return {
isShow: false, isShow: false,
dataList: datas.DefaultData.businessList, dataList: datas.DefaultData.businessList,
firstTab: '', firstTab: '', // 存储第一个tab下的子菜单对象
now: new Date().format('yyyy-MM-dd hh:mm:ss'), now: new Date().format('yyyy-MM-dd hh:mm:ss'),
isFirst: true currentMenu: 'home' // 标记当前是哪个tab菜单
} }
}, },
mounted() { mounted() {
...@@ -55,18 +55,19 @@ export default { ...@@ -55,18 +55,19 @@ export default {
openSelect() { openSelect() {
this.isShow = !this.isShow this.isShow = !this.isShow
}, },
// 监听子菜单变化
selectVal(val) { selectVal(val) {
console.log(val)
this.firstTab = val this.firstTab = val
this.$bus.$emit('selectVal', val.value) this.$bus.$emit('selectVal', val.value)
this.openSelect() this.openSelect()
}, },
// tab菜单切换
jump(val) { jump(val) {
console.log(val)
let _val = val let _val = val
this.isFirst = val === 'home' this.currentMenu = val
if (val === 'home') _val = this.firstTab.value if (val === 'home') _val = this.firstTab.value
this.$bus.$emit('selectVal', _val) this.$bus.$emit('selectVal', _val)
this.isShow = false
} }
} }
} }
...@@ -111,8 +112,9 @@ export default { ...@@ -111,8 +112,9 @@ export default {
&-item { &-item {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
height: 4.44vh; height: 4.44vh;
padding: 0 1.36vw; // padding: 0 1.36vw;
box-sizing: border-box; box-sizing: border-box;
margin-right: 0.56vw; margin-right: 0.56vw;
border: 2px solid; border: 2px solid;
...@@ -122,6 +124,14 @@ export default { ...@@ -122,6 +124,14 @@ export default {
} }
.first-tab { .first-tab {
position: relative; position: relative;
width: 16.94vw;
box-sizing: border-box;
&.active {
background-image: url('../assets/images/first-tab-bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
border: none;
}
.arrow-down { .arrow-down {
margin-left: 0.28vw; margin-left: 0.28vw;
width: 1.39vw; width: 1.39vw;
...@@ -131,5 +141,15 @@ export default { ...@@ -131,5 +141,15 @@ export default {
left: -2px; left: -2px;
} }
} }
.other-tab{
width: 7.22vw;
box-sizing: border-box;
&.active {
background-image: url('../assets/images/other-tab-bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
border: none;
}
}
} }
</style> </style>
<!--
* @Description: 内容
* @Author: huyue
* @Date: 2023-07-04 13:56:33
* @LastEditors: huyue
* @LastEditTime: 2023-07-05 10:47:13
-->
<template>
<div class="view-content">
<ViewDate></ViewDate>
<div class="content">
<ContentLeft></ContentLeft>
<ContentRight></ContentRight>
</div>
</div>
</template>
<script>
import ContentLeft from './ContentLeft.vue'
import ContentRight from './ContentRight.vue'
export default {
name: 'ViewContent',
components: {
ContentLeft,
ContentRight
},
props: {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.view-content {
width: 100%;
height: 100%;
box-sizing: border-box;
position: relative;
padding: 1.78vh 24px;
gap: 0 16px;
}
.content {
display: flex;
justify-content: space-between;
padding: 1.78vh 0;
> div {
// height: 100%;
}
}
</style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 11:26:17 * @LastEditTime: 2023-07-06 15:03:06
--> -->
<template> <template>
<div class="layout"> <div class="layout">
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</template> </template>
<script> <script>
import './components' import './pages'
// import ViewContent from './components/ViewContent.vue' // import ViewContent from './components/ViewContent.vue'
export default { export default {
name: '', name: '',
......
<!-- <!--
* @Description: * @Description: 1.0 精品升级内容页面
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 11:24:08 * @LastEditTime: 2023-07-06 12:04:11
--> -->
<template> <template>
<div> <div>
......
<!-- <!--
* @Description: * @Description: 1.0 售后众筹内容页面
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
......
<!-- <!--
* @Description: * @Description: 1.0 会员权益内容页面
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
......
<!-- <!--
* @Description: * @Description: 内部数据页面
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 10:13:42 * @LastEditTime: 2023-07-06 12:05:18
--> -->
<template> <template>
<div class="layout"> <div class="layout">
......
<!-- <!--
* @Description: * @Description: 运营数据页面
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 10:14:47 * @LastEditTime: 2023-07-06 12:04:55
--> -->
<template> <template>
<div class="layout"> <div class="layout">
......
<!-- <!--
* @Description: 内容 * @Description: 1.0 太阳膜内容页面
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:56:33 * @Date: 2023-07-04 13:56:33
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 11:21:44 * @LastEditTime: 2023-07-06 15:05:18
--> -->
<template> <template>
<div class="view-content"> <div class="view-content">
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
</div> </div>
</template> </template>
<script> <script>
import ContentLeft from './ContentLeft.vue' import ContentLeft from '../solar/ContentLeft'
import ContentRight from './ContentRight.vue' import ContentRight from '../solar/ContentRight.vue'
export default { export default {
name: 'ViewSolar', name: 'ViewSolar',
components: { components: {
......
<!-- <!--
* @Description: 1.0 左侧 * @Description: 1.0 太阳膜左侧内容
* @Author: huyue * @Author: huyue
* @Date: 2023-07-05 10:35:43 * @Date: 2023-07-05 10:35:43
* @LastEditors: huyue * @LastEditors: huyue
......
<!-- <!--
* @Description: 1.0 右侧内容 * @Description: 1.0 太阳膜 右侧内容
* @Author: huyue * @Author: huyue
* @Date: 2023-07-05 10:35:43 * @Date: 2023-07-05 10:35:43
* @LastEditors: huyue * @LastEditors: huyue
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!