143 lines
4.6 KiB
Vue
143 lines
4.6 KiB
Vue
![]() |
<template>
|
||
|
<div class="box">
|
||
|
<div class="img-cls">
|
||
|
<img src="/static/town/TABBG.png" style="width: 100%;height: 100%;position: absolute;" alt="">
|
||
|
<div class="content">
|
||
|
<div class="btns">
|
||
|
<div class="btn">商品分类</div>
|
||
|
<div class="btn">商品管理</div>
|
||
|
</div>
|
||
|
<div class="table">
|
||
|
<dv-scroll-board :config="configs" @click='test' style="width:95vw;height:100%" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
|
||
|
<script setup>
|
||
|
// 102B3
|
||
|
import { ref, reactive, onMounted } from "vue"
|
||
|
onMounted(() => {
|
||
|
for (let i = 0; i < 100; i++) {
|
||
|
if (i % 2 == 0) {
|
||
|
configs.data.push(
|
||
|
[
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;' >排sd序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>排序</div>`,
|
||
|
]
|
||
|
)
|
||
|
} else {
|
||
|
configs.data.push(
|
||
|
[
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>排sd序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>排序</div>`,
|
||
|
]
|
||
|
|
||
|
|
||
|
)
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
})
|
||
|
const test = (e) => {
|
||
|
if (e.columnIndex == 1) {
|
||
|
console.log(e)
|
||
|
|
||
|
}
|
||
|
// alert(e)
|
||
|
}
|
||
|
const configs = reactive({
|
||
|
headerBGC: "linear-gradient(to right, #ff0000, #00ff00)",
|
||
|
oddRowBGC: '',
|
||
|
evenRowBGC: "",
|
||
|
rowNum: 20,
|
||
|
header: [
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>排序</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>分类名称</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>分类图标</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>是否显示</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>是否推荐</div>`,
|
||
|
`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>创建时间</div>`,
|
||
|
|
||
|
],
|
||
|
data: [
|
||
|
|
||
|
|
||
|
]
|
||
|
})
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.box {
|
||
|
margin-top: 3vh;
|
||
|
width: 100vw;
|
||
|
height: 90vh;
|
||
|
position: relative;
|
||
|
|
||
|
.img-cls {
|
||
|
|
||
|
width: 99%;
|
||
|
height: 90vh;
|
||
|
position: absolute;
|
||
|
top: 50%;
|
||
|
left: 50%;
|
||
|
transform: translate(-50%, -50%);
|
||
|
// background-color: #fff;
|
||
|
box-sizing: border-box;
|
||
|
|
||
|
.content {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
padding: 2vw;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
.btns {
|
||
|
display: flex;
|
||
|
|
||
|
.btn {
|
||
|
color: white;
|
||
|
border: 1px solid #BF6D5D;
|
||
|
padding: 3px 10px;
|
||
|
border-radius: 20px;
|
||
|
margin-right: 10px;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.table {
|
||
|
width: 100%;
|
||
|
height: 78vh;
|
||
|
margin-top: 2vh;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
:deep(.ceil) {
|
||
|
padding: 0 !important;
|
||
|
margin-bottom: 5px;
|
||
|
margin-right: 2px;
|
||
|
}
|
||
|
|
||
|
:deep(.header-item) {
|
||
|
padding: 0 !important;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.row {}
|
||
|
</style>
|