重点单品 课区运营监控 门店运营监控
This commit is contained in:
@@ -35,8 +35,12 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTableData()
|
||||
watch:{
|
||||
search: {
|
||||
immediate:true,deep:true,handler(){
|
||||
this.getTableData()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -29,8 +29,12 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTableData()
|
||||
watch:{
|
||||
search: {
|
||||
immediate:true,deep:true,handler(){
|
||||
this.getTableData()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
119
src/views/AppStoreMonitor.vue
Normal file
119
src/views/AppStoreMonitor.vue
Normal file
@@ -0,0 +1,119 @@
|
||||
<script>
|
||||
export default {
|
||||
name: "AppStoreMonitor",
|
||||
label: "市场看板-门店运营监控表",
|
||||
data() {
|
||||
return {
|
||||
tableData: [],
|
||||
columns: [
|
||||
{label: "课区", prop: "groupName"},
|
||||
{label: "课长", prop: "supervisorName"},
|
||||
{label: "门店", prop: "storeName"},
|
||||
{label: "门店现烤净收货额", prop: "bakeNetAmt"},
|
||||
{label: "门店现烤销售额", prop: "bakeSaleAmt"},
|
||||
{label: "门店现烤报损额", prop: "bakeBsAmt"},
|
||||
{label: "门店现烤领用额", prop: "bakeLyAmt"},
|
||||
{label: "门店现烤惜食", prop: "bakeXsSaleAmt"},
|
||||
]
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
search: v => v.$marketBoard.search
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
const {$http, $waitFor} = window
|
||||
$waitFor($http).then(() => $http.post("/data-boot/la/screen/marketBoard/storeMonitor", {
|
||||
...this.search, limit: 999
|
||||
})).then(res => {
|
||||
if (res?.data) {
|
||||
this.tableData = res.data?.page?.records || []
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
search: {
|
||||
immediate:true,deep:true,handler(){
|
||||
this.getTableData()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="AppStoreMonitor">
|
||||
<el-table :data="tableData" size="mini" header-cell-class-name="tableHeader" cell-class-name="tableCell" max-height="440px" stripe>
|
||||
<table-column v-for="(column,i) in columns" :key="i" :column="column"/>
|
||||
</el-table>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.AppStoreMonitor {
|
||||
color: #fff;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .tableHeader {
|
||||
background: rgba(13, 48, 99, 0.6) !important;
|
||||
color: #fff;
|
||||
border-color: transparent !important;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .el-table tr {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .el-table {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .el-table .el-table__footer-wrapper tr {
|
||||
background: linear-gradient(90deg, rgba(1, 196, 236, 0.5) 0%, rgba(1, 196, 236, 0.01) 100%);
|
||||
}
|
||||
|
||||
.AppStoreMonitor .el-table .el-table__footer-wrapper .is-leaf {
|
||||
color: #66FFFF;
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .el-table:before {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .tableCell {
|
||||
color: #fff;
|
||||
border-color: transparent !important;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .el-table tr.el-table__row--striped {
|
||||
--odd-bg: #09265B;
|
||||
background-color: #081F48;
|
||||
background-image: linear-gradient(
|
||||
-45deg, var(--odd-bg) 0, var(--odd-bg) 10%, transparent 10%, transparent 50%,
|
||||
var(--odd-bg) 50%, var(--odd-bg) 60%, transparent 60%, transparent);
|
||||
background-size: 10px 10px;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .el-table tr.el-table__row--striped .tableCell {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .el-table tr:hover > .tableCell {
|
||||
background-color: rgba(255, 255, 255, .1) !important;
|
||||
}
|
||||
|
||||
.AppStoreMonitor .subTitle {
|
||||
line-height: 20px;
|
||||
width: fit-content;
|
||||
margin: 24px auto 12px;
|
||||
background-image: url("http://10.0.97.209/img/kengee/kengee5.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 2px;
|
||||
background-position: center bottom;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user