提交组件

This commit is contained in:
2024-06-18 17:09:25 +08:00
parent 4366ba42bf
commit ff19c1ea7f
2 changed files with 75 additions and 16 deletions

30
src/views/AppSelect.vue Normal file
View File

@@ -0,0 +1,30 @@
<template>
<el-select v-model="value" placeholder="品类" size="small">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</template>
<script>
export default {
name: "AppSelect",
label: "下拉菜单",
data() {
return {
options: [],
value: ''
}
}
}
</script>
<style scoped>
:deep(.el-input__inner) {
background: linear-gradient(180deg, rgba(12, 53, 111, 0) 0%, #0C356F 100%);
border: 1px solid #1760AE;
}
</style>

View File

@@ -1,9 +1,12 @@
<script> <script>
export default { export default {
name: "AppSpanTable", name: "AppStoresTable",
label: "多店监控", label: "多店监控",
data() { data() {
return { return {
stores: [
{}, {}, {}, {}, {}
],
columns: { columns: {
品类销售情况: [ 品类销售情况: [
{label: "品类", prop: "categoryName"}, {label: "品类", prop: "categoryName"},
@@ -28,7 +31,9 @@ export default {
</script> </script>
<template> <template>
<section class="AppSpanTable"> <section class="AppStoresTable">
<div class="layout">
<div class="store" v-for="store in stores" :key="store.id">
<div class="header" v-text="'郑州朗程康桥店'"/> <div class="header" v-text="'郑州朗程康桥店'"/>
<el-carousel indicator-position="none" height="250px"> <el-carousel indicator-position="none" height="250px">
<el-carousel-item></el-carousel-item> <el-carousel-item></el-carousel-item>
@@ -41,11 +46,13 @@ export default {
<el-table size="mini" header-cell-class-name="tableHeader" cell-class-name="tableCell" max-height="275px"> <el-table size="mini" header-cell-class-name="tableHeader" cell-class-name="tableCell" max-height="275px">
<el-table-column v-for="column in columns.重点单品情况" v-bind="column" :key="column.prop"/> <el-table-column v-for="column in columns.重点单品情况" v-bind="column" :key="column.prop"/>
</el-table> </el-table>
</div>
</div>
</section> </section>
</template> </template>
<style scoped> <style scoped>
.AppSpanTable { .AppStoresTable {
color: #fff; color: #fff;
box-sizing: border-box; box-sizing: border-box;
} }
@@ -56,6 +63,10 @@ export default {
border-color: transparent !important; border-color: transparent !important;
} }
:deep(.el-table tr) {
background: transparent;
}
:deep(.el-table) { :deep(.el-table) {
background: transparent; background: transparent;
border-color: transparent; border-color: transparent;
@@ -76,11 +87,29 @@ export default {
margin-bottom: 24px; margin-bottom: 24px;
box-sizing: border-box; box-sizing: border-box;
line-height: 32px; line-height: 32px;
background-image: url("http://10.0.97.209/img/kengee/kengee4.png");
background-repeat: no-repeat;
background-size: 100% 100%;
} }
.title { .title {
line-height: 20px; line-height: 20px;
width: fit-content;
margin: 24px auto 12px; margin: 24px auto 12px;
text-align: center; background-image: url("http://10.0.97.209/img/kengee/kengee5.png");
background-repeat: no-repeat;
background-size: 100% 2px;
background-position: center bottom;
}
.layout {
display: flex;
gap: 24px;
width: 100%;
overflow-x: auto;
}
.store {
width: calc(25% - 18px);
} }
</style> </style>