Commit 57a1b56d by 胡悦

修复样式

1 parent 08dc000c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @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-11 15:58:32 * @LastEditTime: 2023-07-12 15:44:33
* @FilePath: \dj-data-view\src\components\ViewTitle.vue * @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 页面头部组件 * @Description: 页面头部组件
--> -->
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="merchant-name">{{ firstTab.label }}</div> <div class="merchant-name">{{ firstTab.label }}</div>
<img class="arrow-down" src="@/assets/images/title-arrow.png" alt=""> <img class="arrow-down" src="@/assets/images/title-arrow.png" alt="">
</div> </div>
<SelectBox :isShow="isShow" :dataList="dataList" :boxWidth="'23.33vw'" isObject @selectVal="selectVal"> <SelectBox :isShow="isShow" @clickOutside="clickOutside" :dataList="dataList" :boxWidth="'23.33vw'" isObject @selectVal="selectVal">
<div slot="search" class="search"> <div slot="search" class="search">
<input type="text" class="search-input" v-model="search" @input="handleInput"> <input type="text" class="search-input" v-model="search" @input="handleInput">
<img class="icon-search" src="@/assets/images/icon-search.png" @click="searchMerchant" alt=""> <img class="icon-search" src="@/assets/images/icon-search.png" @click="searchMerchant" alt="">
...@@ -68,7 +68,6 @@ export default { ...@@ -68,7 +68,6 @@ export default {
}, },
// 监听子菜单变化 // 监听子菜单变化
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()
...@@ -95,9 +94,11 @@ export default { ...@@ -95,9 +94,11 @@ export default {
] ]
}, },
handleInput: utils.throttle(function(e) { handleInput: utils.throttle(function(e) {
console.log(this.search)
this.searchMerchant() this.searchMerchant()
}, 1000 / 60) }, 1000 / 60),
clickOutside() {
this.isShow = false
}
} }
} }
</script> </script>
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
* @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-12 15:28:36 * @LastEditTime: 2023-07-12 15:46:51
--> -->
<template> <template>
<div v-click-outside="handleClickOutside" ref="box" @mouseleave="handleMouseLeave" v-show="isShow" class="select-box" :style="{'width': boxWidth}"> <div v-click-outside="handleClickOutside" @mouseleave="handleMouseLeave" v-show="isShow" class="select-box" :style="{'width': boxWidth}">
<slot name="search"></slot> <slot name="search"></slot>
<div class="year-item" :class="(isObject ? item[valueName] : item) == value ? 'active' : ''" v-for="(item,index) in dataList" :key="index" @click="select(item)">{{isObject ? item[labelName] : item}}</div> <div class="year-item" :class="(isObject ? item[valueName] : item) == value ? 'active' : ''" v-for="(item,index) in dataList" :key="index" @click="select(item)">{{isObject ? item[labelName] : item}}</div>
</div> </div>
......
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-05 10:35:43 * @Date: 2023-07-05 10:35:43
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-06 12:06:38 * @LastEditTime: 2023-07-12 15:45:33
--> -->
<template> <template>
<div class="view-date">统计年份: <div class="view-date">统计年份:
<div class="year-plugin"> <div class="year-plugin">
<div class="year" @click="switchYear"> <div class="year" @click.stop="switchYear">
{{year}} {{year}}
<img class="arrow-down" src="@/assets/images/arrow-down.png" alt=""> <img class="arrow-down" src="@/assets/images/arrow-down.png" alt="">
</div> </div>
<SelectBox :isShow="isShow" :dataList="dataList" :boxWidth="'8.61vw'" @selectVal="selectVal"></SelectBox> <SelectBox :isShow="isShow" @clickOutside="clickOutside" :dataList="dataList" :boxWidth="'8.61vw'" @selectVal="selectVal"></SelectBox>
<!-- <div v-show="isShow" class="select-year"> <!-- <div v-show="isShow" class="select-year">
<div class="year-item" :class="year == item ? 'active' : ''" v-for="(item,index) in dataList" :key="index" @click.s="selectYear(item)">{{item}}</div> <div class="year-item" :class="year == item ? 'active' : ''" v-for="(item,index) in dataList" :key="index" @click.s="selectYear(item)">{{item}}</div>
</div> --> </div> -->
...@@ -41,6 +41,9 @@ export default { ...@@ -41,6 +41,9 @@ export default {
console.log(val) console.log(val)
this.year = val this.year = val
this.switchYear() this.switchYear()
},
clickOutside() {
this.isShow = false
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @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-12 15:29:07 * @LastEditTime: 2023-07-12 16:04:22
* @FilePath: \dj-data-view\src\components\ViewTitle.vue * @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 页面头部组件 * @Description: 页面头部组件
--> -->
...@@ -17,8 +17,12 @@ ...@@ -17,8 +17,12 @@
<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" @clickOutside="clickOutside" :dataList="dataList" :boxWidth="'17.1vw'" isObject @selectVal="selectVal"></SelectBox> <SelectBox :isShow="isShow" @clickOutside="clickOutside" :dataList="dataList" :boxWidth="'17.1vw'" isObject @selectVal="selectVal"></SelectBox>
</div> </div>
<div class="tab-item other-tab" :class="currentMenu == 'operational' ? 'active' : ''" @click="jump('operational')">运营数据</div> <div class="tab-item other-tab" :class="currentMenu == 'operational' ? 'active' : ''" @click="jump('operational')">
<div class="tab-item other-tab" :class="currentMenu == 'interior' ? 'active' : ''" @click="jump('interior')">内部数据</div> <div class="tab-name">运营数据</div>
</div>
<div class="tab-item other-tab" :class="currentMenu == 'interior' ? 'active' : ''" @click="jump('interior')">
<div class="tab-name">内部数据</div>
</div>
</div> </div>
<!-- <div class="view-title user-select">嘀加智慧门店运营看板</div> --> <!-- <div class="view-title user-select">嘀加智慧门店运营看板</div> -->
<div class="time"> <div class="time">
...@@ -140,6 +144,12 @@ export default { ...@@ -140,6 +144,12 @@ export default {
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
border: none; border: none;
.tab-title {
color: #5894FF;
background-image: -webkit-linear-gradient(left, #24D8FF, #7787FF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
} }
.arrow-down { .arrow-down {
position: absolute; position: absolute;
...@@ -162,6 +172,12 @@ export default { ...@@ -162,6 +172,12 @@ export default {
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
border: none; border: none;
.tab-name {
color: #5894FF;
background-image: -webkit-linear-gradient(left, #24D8FF, #7787FF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
} }
} }
} }
......
...@@ -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 15:03:06 * @LastEditTime: 2023-07-12 15:44:42
--> -->
<template> <template>
<div class="layout"> <div class="layout">
...@@ -64,7 +64,6 @@ export default { ...@@ -64,7 +64,6 @@ export default {
}, },
mounted() { mounted() {
this.$bus.$on('selectVal', data => { this.$bus.$on('selectVal', data => {
console.log(data)
this.activeName = data this.activeName = data
}) })
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-06 16:19:15 * @Date: 2023-07-06 16:19:15
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-10 14:37:14 * @LastEditTime: 2023-07-12 15:57:01
--> -->
<template> <template>
<div class="merchant-box"> <div class="merchant-box">
...@@ -86,6 +86,7 @@ export default { ...@@ -86,6 +86,7 @@ export default {
.procure { .procure {
width: 0.56vw; width: 0.56vw;
height: 0.89vh; height: 0.89vh;
margin-right: 0.28vw;
} }
.open { .open {
background-image: linear-gradient(180deg, #22D8FF 0%, #223FA9 100%); background-image: linear-gradient(180deg, #22D8FF 0%, #223FA9 100%);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!