| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990 |
- <template>
- <div class="mod-home" id="customer-content">
- <el-button @click="fullScreen" class="full-screen-btn">全屏</el-button>
- <el-row :span="24" style="height: 100%">
- <el-col :span="18" style="height: 100%">
- <el-row :span="24" class="sample-bg">
- <el-col :span="6" class="bg1-1">
- <el-row :span="24" class="bg1-1-1">
- <div class="box-company-title">
- <div class="company-title">生产现场时时看板</div>
- </div>
- </el-row>
- <el-row :span="24" class="bg1-1-2">
- <div class="box-custom-number">
- <div class="custom-number">在制物料数:{{ produceCensus.produceNum }}</div>
- </div>
- </el-row>
- <el-row :span="24" class="bg1-1-1">
- <div class="box-contract-number">
- <div class="contract-number">已完成数:{{ produceCensus.completeNum }}</div>
- </div>
- </el-row>
- <el-row :span="24" class="bg1-1-2">
- <div class="box-contract-amount">
- <div class="contract-amount">
- 报损数量:{{ produceCensus.damageNum }}
- </div>
- </div>
- </el-row>
- </el-col>
- <el-col :span="18" class="bg1-2">
- <el-row :span="24" class="bg1-2-1">
- <div ref="boxnoticetitle" class="box-notice-title" @dblclick="doubleClick">
- <div ref="noticetitle" :class="isTran ? 'notice-title notice-title-animation' : 'notice-title'">{{ noticeContent }}</div>
- </div>
- </el-row>
- <!-- <el-row :span="24" class="bg1-2-2">
- <div class="box-stat-number">
- <div class="stat-number">
- <div class="item">
- <div class="title">在制物料总数</div>
- <div class="number">{{ produceCensus.produceNum }}</div>
- </div>
- <div class="item">
- <div class="title">已完成数量</div>
- <div class="number">{{ produceCensus.completeNum }}</div>
- </div>
- <div class="item">
- <div class="title">损坏数量</div>
- <div class="number">{{ produceCensus.damageNum }}</div>
- </div>
- <div class="item">
- <div class="title">生产总值</div>
- <div class="number">
- {{ produceCensus.totalOutputValue }}
- </div>
- </div>
- </div>
- </div>
- </el-row> -->
- <el-row :span="24" class="bg1-2-3">
- <el-col :span="12" class="bg2-1">
- <el-row :span="24" class="bg2-3-1">
- <div class="box-contract-alert">
- <div class="contract-alert">合同预警</div>
- </div>
- </el-row>
- <el-row :span="24" class="bg2-3-2">
- <div class="box-contract-alert">
- <div class="contract-alert">
- <div class="table">
- <el-table
- ref="contractAlarmTable"
- :data="contractAlarmList"
- height="100%"
- row-class-name="custom-ranking-table-row"
- style="width: 100%"
- >
- <el-table-column
- type="index"
- label="序号"
- ></el-table-column>
- <el-table-column
- prop="contractNumber"
- label="合同号"
- ></el-table-column>
- <!-- <el-table-column prop="orderCode" label="任务单号"></el-table-column> -->
- <el-table-column
- prop="remainTime"
- label="剩余时间(天)"
- min-width="100"
- ></el-table-column>
- <el-table-column
- prop="deliveryTime"
- label="交付日期"
- ></el-table-column>
- <el-table-column
- prop="customerName"
- label="客户名称"
- ></el-table-column>
- <!-- <el-table-column prop="salesmenName" label="业务员"></el-table-column> -->
- </el-table>
- </div>
- </div>
- </div>
- </el-row>
- </el-col>
- <el-col :span="12" class="bg2-2">
- <el-row :span="24" class="bg2-3-11">
- <div class="box-contract-alert">
- <div class="contract-alert">报损记录</div>
- </div>
- </el-row>
- <el-row :span="24" class="bg2-3-3">
- <div class="box-contract-alert">
- <div class="contract-alert">
- <div class="table">
- <el-table
- ref="damageTable"
- :data="damageList"
- height="100%"
- row-class-name="custom-ranking-table-row"
- style="width: 100%"
- >
- <el-table-column
- type="index"
- label="序号"
- ></el-table-column>
- <el-table-column
- prop="productName"
- label="物料"
- ></el-table-column>
- <el-table-column
- prop="prodCode"
- label="编号"
- ></el-table-column>
- <!-- <el-table-column prop="damageReason" label="原因"></el-table-column> -->
- <el-table-column
- prop="liableUserName"
- label="报损人"
- width="80"
- ></el-table-column>
- <el-table-column
- prop="createTime"
- label="报损时间"
- ></el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </el-row>
- </el-col>
- </el-row>
- </el-col>
- <el-col :span="9"></el-col>
- </el-row>
- <el-row :span="24" class="sample-bg1">
- <div class="box-contract-table">
- <div class="contract-table table">
- <el-table
- ref="contractProdTable"
- :data="contractProdList"
- height="100%"
- :row-class-name="contractProdListAddClass"
- style="width: 100%"
- >
- <el-table-column type="index" label="序号"></el-table-column>
- <el-table-column
- prop="orderCode"
- label="合同号"
- ></el-table-column>
- <el-table-column
- prop="productName"
- label="物料名称"
- ></el-table-column>
- <el-table-column
- prop="prodCode"
- label="物料编号"
- ></el-table-column>
- <el-table-column
- prop="batchNo"
- label="批次号"
- ></el-table-column>
- <el-table-column label="生产进度" width="180">
- <template slot-scope="scope">
- <el-progress
- :percentage="parseInt(scope.row.progressBar)"
- ></el-progress>
- </template>
- </el-table-column>
- <el-table-column
- prop="customerName"
- label="客户名称"
- ></el-table-column>
- <el-table-column
- prop="curOperator"
- label="当前操作人"
- ></el-table-column>
- </el-table>
- </div>
- </div>
- </el-row>
- </el-col>
- <el-col :span="6" class="left-bg">
- <el-row :span="24" class="bg1-3-1">
- <div class="box-custom-ranking">
- <div class="custom-ranking">报工列表</div>
- </div>
- </el-row>
- <el-row :span="24" class="bg1-3-2">
- <div class="box-custom-ranking">
- <div class="custom-ranking">
- <div class="table">
- <el-table
- ref="customerRankTable"
- :data="submittedRecordList"
- height="100%"
- row-class-name="custom-ranking-table-row"
- style="width: 100%"
- >
- <el-table-column type="index" label="序号"></el-table-column>
- <el-table-column
- prop="nodeName"
- label="工序"
- width="70"
- ></el-table-column>
- <el-table-column
- prop="taskName"
- label="物料名字"
- ></el-table-column>
- <el-table-column
- prop="endTime"
- label="完成时间"
- ></el-table-column>
- <el-table-column
- prop="operatorName"
- label="操作人"
- ></el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </el-row>
- </el-col>
- </el-row>
- <el-dialog title="设置通知内容" :visible.sync="dialogFormVisible">
- <el-form :model="noticeForm">
- <el-form-item label="通知内容">
- <el-input v-model="noticeForm.content" autocomplete="off"></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer">
- <el-button @click="dialogFormVisible = false">取 消</el-button>
- <el-button type="primary" @click="dialogSubmit">确 定</el-button>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- getAnalytics,
- getContractAlarmList,
- getCustomerRankList,
- getDamageList,
- getOutboundRecordList,
- getContractProdList,
- getSubmittedRecordList,
- getProduceCensus
- } from '@/api/home'
- export default {
- name: 'customer',
- components: {},
- data () {
- return {
- analytics: {
- clients: '', // 客户数
- num: '', // 合同数
- totalAmount: '' // 合同总金额
- },
- analyticsTimer: null,
- // 合同预警列表
- contractAlarmList: [],
- contractAlarmListTimer: null,
- // 客户排名列表
- customerRankList: [],
- customerRankListTimer: null,
- // 报损记录列表
- damageList: [],
- damageListTimer: null,
- // 出库记录列表
- outboundRecordList: [],
- outboundRecordListTimer: null,
- // 合同生产记录列表
- contractProdList: [],
- contractProdListTimer: null,
- // 报工列表
- submittedRecordList: [],
- submittedRecordListTimer: null,
- // 生产统计
- produceCensus: {
- produceNum: 0, // 在制物料总数
- completeNum: 0, // 已完成数量
- damageNum: 0, // 损坏数量
- totalOutputValue: 0 // 生产总值
- },
- produceCensusTimer: null,
- dialogFormVisible: false,
- noticeForm: {
- content: ''
- },
- noticeContent: '',
- isTran: false
- }
- },
- created () {
- this.getAnalytics()
- this.analyticsTimer = setInterval(this.getAnalytics, 1000 * 3600) // 1小时刷新
- this.getContractAlarmList()
- this.contractAlarmListTimer = setInterval(
- this.getContractAlarmList,
- 1000 * 60 * 10
- ) // 10分钟刷新
- this.getDamageList()
- this.customerRankListTimer = setInterval(
- this.getDamageList,
- 1000 * 60 * 10
- ) // 10分钟刷新
- this.getContractProdList()
- this.contractProdListTimer = setInterval(
- this.getContractProdList,
- 1000 * 60 * 10
- ) // 10分钟刷新
- this.getSubmittedRecordList()
- this.submittedRecordListTimer = setInterval(
- this.getSubmittedRecordList,
- 1000 * 60 * 5
- ) // 5分钟刷新
- this.getProduceCensus()
- this.produceCensusTimer = setInterval(this.getProduceCensus, 1000 * 60 * 5) // 5分钟刷新
- this.getNoticeContent()
- this.setTitleScroll()
- },
- mounted () {
- this.contractProdTableScroll()
- this.customerRankTableScroll()
- this.contractAlarmTableScroll()
- // this.outboundRecordTableScroll();
- // this.submittedRecordTableScroll();
- this.damageTableScroll()
- },
- beforeDestroy () {
- clearInterval(this.analyticsTimer)
- clearInterval(this.contractAlarmListTimer)
- clearInterval(this.damageListTimer)
- clearInterval(this.customerRankListTimer)
- clearInterval(this.outboundRecordListTimer)
- clearInterval(this.contractProdListTimer)
- clearInterval(this.submittedRecordListTimer)
- clearInterval(this.produceCensusTimer)
- },
- methods: {
- setTitleScroll () {
- this.$nextTick(() => {
- let boxWidth = this.$refs.boxnoticetitle.offsetWidth
- let contentWidth = this.$refs.noticetitle.offsetWidth
- if (contentWidth > boxWidth) {
- // 设置水平滚动效果
- this.isTran = true
- }
- })
- },
- getNoticeContent () {
- let content = sessionStorage.getItem('customer-noticeContent')
- if (content == null || content === '') {
- content = '双击此处修改通知内容'
- }
- this.noticeContent = content
- },
- doubleClick () {
- this.dialogFormVisible = true
- },
- dialogSubmit () {
- this.noticeContent = this.noticeForm.content
- this.dialogFormVisible = false
- sessionStorage.setItem('customer-noticeContent', this.noticeContent)
- this.setTitleScroll()
- },
- // 合同统计
- getAnalytics () {
- getAnalytics({}).then(({ data }) => {
- if (data && data.code === '200') {
- this.analytics = { ...data.data }
- }
- })
- },
- // 合同预警列表
- getContractAlarmList () {
- let params = {
- current: 1,
- size: 20
- }
- getContractAlarmList(params).then(({ data }) => {
- if (data && data.code === '200') {
- this.contractAlarmList = data.data.records
- }
- })
- },
- // 客户排名列表
- getCustomerRankList () {
- let params = {
- current: 1,
- size: 20
- }
- getCustomerRankList(params).then(({ data }) => {
- if (data && data.code === '200') {
- this.customerRankList = data.data
- }
- })
- },
- // 报损记录列表
- getDamageList () {
- let params = {
- current: 1,
- size: 20
- }
- getDamageList(params).then(({ data }) => {
- if (data && data.code === '200') {
- this.damageList = data.data.records
- }
- })
- },
- // 出库记录列表
- getOutboundRecordList () {
- let params = {
- current: 1,
- size: 20
- }
- getOutboundRecordList(params).then(({ data }) => {
- if (data && data.code === '200') {
- this.outboundRecordList = data.data.records
- }
- })
- },
- // 合同生产记录列表
- getContractProdList () {
- let params = {
- current: 1,
- size: 20
- }
- getContractProdList(params).then(({ data }) => {
- if (data && data.code === '200') {
- this.contractProdList = data.data.records
- }
- })
- },
- // 报工列表
- getSubmittedRecordList () {
- let params = {
- current: 1,
- size: 20
- }
- getSubmittedRecordList(params).then(({ data }) => {
- if (data && data.code === '200') {
- this.submittedRecordList = data.data.records
- }
- })
- },
- // 生产统计
- getProduceCensus () {
- getProduceCensus({}).then(({ data }) => {
- if (data && data.code === '200') {
- this.produceCensus = data.data
- }
- })
- },
- contractProdTableScroll () {
- this.$nextTick(() => {
- const divData = this.$refs.contractProdTable.bodyWrapper
- setInterval(() => {
- divData.scrollTop += 1
- if (
- divData.clientHeight + divData.scrollTop + 1 >
- divData.scrollHeight
- ) {
- divData.scrollTop = 0
- }
- }, 50)
- })
- },
- customerRankTableScroll () {
- this.$nextTick(() => {
- const divData = this.$refs.customerRankTable.bodyWrapper
- setInterval(() => {
- divData.scrollTop += 1
- if (
- divData.clientHeight + divData.scrollTop + 1 >
- divData.scrollHeight
- ) {
- divData.scrollTop = 0
- }
- }, 50)
- })
- },
- contractAlarmTableScroll () {
- this.$nextTick(() => {
- const divData = this.$refs.contractAlarmTable.bodyWrapper
- setInterval(() => {
- divData.scrollTop += 1
- if (
- divData.clientHeight + divData.scrollTop + 1 >
- divData.scrollHeight
- ) {
- divData.scrollTop = 0
- }
- }, 50)
- })
- },
- contractProdListAddClass ({row, rowIndex}) {
- if (row.warningState === '3') {
- return 'custom-ranking-table-row overdue-row'
- }
- if (row.warningState === '2') {
- return 'custom-ranking-table-row warning-row'
- }
- return 'custom-ranking-table-row'
- },
- outboundRecordTableScroll () {
- this.$nextTick(() => {
- const divData = this.$refs.outboundRecordTable.bodyWrapper
- setInterval(() => {
- divData.scrollTop += 1
- if (
- divData.clientHeight + divData.scrollTop + 1 >
- divData.scrollHeight
- ) {
- divData.scrollTop = 0
- }
- }, 50)
- })
- },
- submittedRecordTableScroll () {
- this.$nextTick(() => {
- const divData = this.$refs.submittedRecordTable.bodyWrapper
- setInterval(() => {
- divData.scrollTop += 1
- if (
- divData.clientHeight + divData.scrollTop + 1 >
- divData.scrollHeight
- ) {
- divData.scrollTop = 0
- }
- }, 50)
- })
- },
- damageTableScroll () {
- this.$nextTick(() => {
- const divData = this.$refs.damageTable.bodyWrapper
- setInterval(() => {
- divData.scrollTop += 1
- if (
- divData.clientHeight + divData.scrollTop + 1 >
- divData.scrollHeight
- ) {
- divData.scrollTop = 0
- }
- }, 50)
- })
- },
- // 全屏显示
- fullScreen () {
- const element = document.getElementById('customer-content')
- element.requestFullscreen()
- }
- }
- }
- </script>
- <style>
- html,
- body,
- .site-wrapper,
- .site-content__wrapper,
- .site-content,
- .el-tabs--top,
- .el-tabs__content,
- .el-tab-pane,
- .el-card,
- .el-card__body {
- height: 100%;
- }
- .custom-ranking-table-row {
- font-size: 8px;
- }
- .el-table .warning-row {
- color:#FFD700;
- }
- .el-table .overdue-row {
- color: #FF0000;
- }
- </style>
- <style scoped>
- .mod-home {
- /* line-height: 1.5; */
- height: 100%;
- position: relative;
- }
- .full-screen-btn {
- position: absolute;
- top: 0;
- right: 0;
- z-index: 9;
- padding: 0 0;
- border-radius: 0;
- }
- .sample-bg {
- background-color: #021327;
- height: 60%;
- }
- .sample-bg1 {
- background-color: #021327;
- height: 40%;
- }
- .bg1-1 {
- /* background-color: yellow; */
- height: 100%;
- }
- .bg1-2 {
- /* background-color: orange; */
- height: 100%;
- }
- .bg1-3 {
- /* background-color: orchid; */
- height: 100%;
- }
- .bg2-1 {
- /* background-color: red; */
- height: 100%;
- }
- .bg2-2 {
- /* background-color: aqua; */
- height: 100%;
- }
- .bg1-1-1 {
- height: 25%;
- padding: 10px 10px;
- /* border: 1px solid black; */
- }
- .bg1-1-2 {
- height: 25%;
- padding: 10px;
- /* border: 1px solid black; */
- }
- .left-bg{
- height: 100%;
- background-color: #021327;
- }
- .box-company-title {
- background-color: #094198;
- display: flex;
- height: 100%;
- }
- .company-title {
- font-size: 20px;
- color: aliceblue;
- margin: 0 auto;
- align-items: center;
- display: flex;
- }
- .box-custom-number {
- background-color: #d65246;
- display: flex;
- height: 100%;
- }
- .custom-number {
- font-size: 20px;
- color: aliceblue;
- margin: 0 auto;
- align-items: center;
- display: flex;
- }
- .box-contract-number {
- background-color: #11d2b7;
- display: flex;
- height: 100%;
- }
- .contract-number {
- font-size: 20px;
- color: aliceblue;
- margin: 0 auto;
- align-items: center;
- display: flex;
- }
- .box-contract-amount {
- background-color: #f6a647;
- display: flex;
- height: 100%;
- }
- .contract-amount {
- font-size: 20px;
- color: aliceblue;
- margin: 0 auto;
- align-items: center;
- display: flex;
- }
- /*中间通知区域*/
- .bg1-2-1 {
- height: 15%;
- padding: 10px;
- /* border: 1px solid black; */
- }
- .bg1-2-2 {
- height: 25%;
- padding: 10px;
- /* border: 1px solid black; */
- }
- .bg1-2-3 {
- height: 85%;
- padding: 10px;
- /* border: 1px solid black; */
- }
- .box-notice-title {
- background-color: #2fb5f2;
- display: flex;
- height: 100%;
- width: 100%;
- margin: 0 auto;
- overflow: hidden;
- }
- .notice-title {
- font-size: 20px;
- color: red;
- margin: 0 auto;
- align-items: center;
- display: flex;
- white-space: nowrap;
- }
- .notice-title-animation {
- animation: wordsLoop 25s linear infinite normal;
- }
- @keyframes wordsLoop{
- 0% {
- transform: translateX(0);
- -webkit-transform: translateX(0);
- }
- 100% {
- transform: translateX(-51%);
- -webkit-transform: translateX(-51%);
- }
- }
- @-webkit-keyframes wordsLoop{
- 0% {
- transform: translateX(0);
- -webkit-transform: translateX(0);
- }
- 100% {
- transform: translateX(-51%);
- -webkit-transform: translateX(-51%);
- }
- }
- .box-stat-number {
- background-color: #415065;
- display: flex;
- height: 100%;
- }
- .stat-number {
- font-size: 20px;
- color: aliceblue;
- margin: 0 auto;
- align-items: center;
- display: flex;
- justify-content: space-around;
- width: 100%;
- }
- .stat-number > .item {
- height: 80%;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- }
- .stat-number > .item > .title {
- color: darkturquoise;
- }
- .stat-number > .item > .number {
- text-align: center;
- }
- /*合同列表*/
- .box-contract-table {
- background-color: #021327;
- display: flex;
- height: 100%;
- padding: 10px;
- }
- .contract-table {
- font-size: 20px;
- color: aliceblue;
- margin: 0 auto;
- align-items: center;
- display: flex;
- justify-content: space-around;
- width: 100%;
- }
- .bg1-3-1 {
- height: 10%;
- /* min-height: 45px; */
- padding: 10px;
- /* border: 1px solid black; */
- }
- .bg1-3-2 {
- height: 90%;
- padding: 2px 10px 10px;
- /* border: 1px solid black; */
- }
- /*客户排名*/
- .box-custom-ranking {
- background-color: #415065;
- height: 100%;
- }
- .custom-ranking {
- font-size: 14px;
- color: aliceblue;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- text-align: justify;
- width: 100%;
- height: 100%;
- }
- .custom-ranking > .table {
- background-color: darkturquoise;
- height: 100%;
- width: 100%;
- }
- .custom-ranking-table-row {
- font-size: 8px;
- }
- .bg2-3-1 {
- height: 15%;
- padding: 5px 5px 5px 0px;
- /* border: 1px solid black; */
- }
- .bg2-3-11 {
- height: 15%;
- padding: 5px 0px 5px 5px;
- /* border: 1px solid black; */
- }
- .bg2-3-2 {
- height: 85%;
- padding: 2px 5px 0px 0px;
- /* border: 1px solid black; */
- }
- .bg2-3-3 {
- height: 85%;
- padding: 2px 0px 0px 5px;
- /* border: 1px solid black; */
- }
- /*合同预警*/
- .box-contract-alert {
- background-color: #415065;
- height: 100%;
- }
- .contract-alert {
- font-size: 14px;
- color: aliceblue;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- text-align: justify;
- width: 100%;
- height: 100%;
- }
- .contract-alert > .title > div {
- background-color: #415065;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- text-align: justify;
- }
- .contract-alert > .table {
- background-color: darkturquoise;
- height: 100%;
- width: 100%;
- }
- .table thead .cell {
- font-size: 12px;
- -webkit-transform: scale(0.8) !important;
- }
- .table tbody .cell {
- font-size: 12px;
- -webkit-transform: scale(0.8) !important;
- }
- /* 设置滚动条的样式 */
- ::-webkit-scrollbar {
- width: 6px;
- height: 6px;
- }
- /* 滚动槽 */
- ::-webkit-scrollbar-track {
- -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
- border-radius: 10px;
- }
- /* 滚动条滑块 */
- ::-webkit-scrollbar-thumb {
- border-radius: 10px;
- background: rgba(0, 0, 0, 0.1);
- -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
- }
- ::-webkit-scrollbar-thumb:window-inactive {
- background: rgba(161, 156, 156, 0.2);
- }
- </style>
|