提交 3c18a23c authored 作者: lidongxu's avatar lidongxu

refactor(sycm): 生意参谋-解决日期合并问题包括样式

同上
上级 71023601
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
icon="Histogram" icon="Histogram"
@click="changeType()" /> @click="changeType()" />
</el-tooltip> </el-tooltip>
</right-toolbar> </right-toolbar>
</div> </div>
<el-table :data="data" <el-table :data="data"
...@@ -57,7 +56,8 @@ ...@@ -57,7 +56,8 @@
}, },
}, },
dateMerge: { // 是否把日期数据合并 dateMerge: { // 是否把日期数据合并
type: Boolean type: Boolean,
default: false
} }
}) })
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
return result return result
} }
const emits = defineEmits(['changeType', 'queryTable', 'dateMergeFn']) const emits = defineEmits(['changeType', 'queryTable', 'dateMerge'])
const queryTable = () => { const queryTable = () => {
emits('queryTable') emits('queryTable')
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
} }
const dateMergeFn = () => { const dateMergeFn = () => {
emits('dateMergeFn') emits('dateMerge')
} }
</script> </script>
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
<style scoped <style scoped
style="sass"> style="sass">
.toolbar { .toolbar {
float: right; display: flex;
align-items: end;
} }
</style> </style>
\ No newline at end of file
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="chart_wrap" <div :class="{chart_wrap : showType === 'charts', table_wrap : showType === 'table'}"
v-loading="loading"> v-loading="loading">
<template v-if="queryParams.prdList.length > 0 && queryParams.typeList.length > 0 && !loading"> <template v-if="queryParams.prdList.length > 0 && queryParams.typeList.length > 0 && !loading">
<template v-if="showType === 'charts'"> <template v-if="showType === 'charts'">
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
:dateMerge="dateMerge" :dateMerge="dateMerge"
@changeType="changeType" @changeType="changeType"
@queryTable="getList" @queryTable="getList"
@dateMergeFn="dateMergeFn"></table-list> @dateMerge="dateMergeFn"></table-list>
</template> </template>
</template> </template>
<no-data v-else-if="!loading"></no-data> <no-data v-else-if="!loading"></no-data>
...@@ -394,4 +394,11 @@ const reset = async () => { ...@@ -394,4 +394,11 @@ const reset = async () => {
.prd-select { .prd-select {
width: 550px; width: 550px;
} }
.table_wrap {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
</style> </style>
\ No newline at end of file
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="chart_wrap" <div :class="{chart_wrap : showType === 'charts', table_wrap : showType === 'table'}"
v-loading="loading"> v-loading="loading">
<template v-if="queryParams.brandList.length > 0 && queryParams.typeList.length > 0 && !loading"> <template v-if="queryParams.brandList.length > 0 && queryParams.typeList.length > 0 && !loading">
<template v-if="showType === 'charts'"> <template v-if="showType === 'charts'">
...@@ -386,3 +386,11 @@ const reset = async () => { ...@@ -386,3 +386,11 @@ const reset = async () => {
init() init()
} }
</script> </script>
<style scoped lang="scss">
.table_wrap{
display: flex;
flex-direction: column;
justify-content: flex-start;
}
</style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论