首页 > 其他分享 >大屏 滚动表格 滚动table dv-scroll-board

大屏 滚动表格 滚动table dv-scroll-board

时间:2024-03-12 18:33:05浏览次数:23  
标签:category draftName 滚动 title bizType 用电 board dv createTime

 

<template>
  <div class="box mt10">
    <div class="mb10">重复性问题分析</div>
    <div>
      <dv-scroll-board
        :config="provinceConfirmedCountBoardConfig"
        style="width: 100%; height: 400px"
      />
    </div>
  </div>
</template>

<script>
const initProvinceConfirmedCountBoardConfig = (resultList = []) => {
  console.log("-----------刷新了---------------------");
  console.log(resultList);
  return {
    // header: ["作业票类型", "作业票名称", "状态", "申请人", "申请时间"],
    header: ["标签名称", "累计问题数量", "未整改数量", "整改完成率"],
    headerHeight: 30,
    columnWidth: [180, 220, 160, 160, 180],
    data: resultList,
    align: ["center"],
    rowNum: 10,
    index: false, //是否展示序号
    indexHeader: "序号",
    headerBGC: "",
    oddRowBGC: "",
    evenRowBGC: "",
    carousel: "single",
  };
};
export default {
  data () {
    return {
      provinceConfirmedCountBoardConfig:
        initProvinceConfirmedCountBoardConfig(),
    }
  },

  created () {
    this.getBizBoardFn()
  },

  methods: {
    // 当前最新作业
    async getBizBoardFn () {
      //   var res = await getBizBoard({
      //     type: this.deptId ? "dept" : "",
      //     deptId: this.deptId,
      //   });
      //   console.log(res);
      var res = {
        "code": 200,
        "message": "操作成功",
        "success": true,
        "data": [
          {
            "category": "待采样",
            "bizType": "动火作业",
            "title": "ly动火人员变更",
            "draftName": "lycheshi",
            "createTime": "2024-02-01 09:41"
          },
          {
            "category": "待落实",
            "bizType": "动火作业",
            "title": "ly动火人员变更",
            "draftName": "lycheshi",
            "createTime": "2024-02-01 09:41"
          },
          {
            "category": "待签审",
            "bizType": "盲板抽堵",
            "title": "jsjssn",
            "draftName": "hng",
            "createTime": "2024-01-29 10:42"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时",
            "draftName": "lycheshi",
            "createTime": "2024-01-16 13:43"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          },
          {
            "category": "待落实",
            "bizType": "临时用电",
            "title": "ly临时用电一步一校验",
            "draftName": "lycheshi",
            "createTime": "2024-01-15 17:52"
          }
        ]
      }
      this.queryProvinceDataList(res.data);
    },
    queryProvinceDataList (arr) {
      this.setProvinceComfirmedCountBoardData(arr);
    },
    setProvinceComfirmedCountBoardData (areaList) {
      if (areaList && areaList.length > 0) {
        let resultList = areaList.map((item) => {
          return [
            item.bizType,
            item.title,
            item.category,
            item.draftName,
            // this.getDate(item.createTime),
          ];
        });
        // 重新生成,否则无法刷新状态
        this.provinceConfirmedCountBoardConfig =
          initProvinceConfirmedCountBoardConfig(resultList);
      } else {
        console.log("周这里吗来了");
        this.provinceConfirmedCountBoardConfig =
          initProvinceConfirmedCountBoardConfig([]);
      }
    },
  }
}
</script>

<style scoped  lang="scss">
.box {
  padding: 30px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
//修改的是下拉框选项内容上方的尖角
/deep/ .el-popper .popper__arrow,
.el-popper .popper__arrow::after {
  display: none;
}
/deep/ .dv-scroll-board .header {
  background: transparent !important;
  border-bottom: 2px solid #9ca3b3 !important;
  border-radius: 0;
}
.row-item {
  border-bottom: 1px solid #000 !important;
}
</style>

 

标签:category,draftName,滚动,title,bizType,用电,board,dv,createTime
From: https://www.cnblogs.com/dianzan/p/18068985

相关文章

  • js 实现点击下拉滚动
    在JavaScript中实现点击下拉菜单后滚动到特定位置,通常用于导航栏的下拉菜单或对话框内容的自动滚动等场景。以下是一个简单的示例:假设我们有一个HTML结构,包含一个可点击的元素(如按钮)和一个需要滚动的下拉列表:<buttonid="dropdown-toggle">点击打开下拉菜单</button><div......
  • 浏览器滚动条设置
    webkit主要有下面7个设置属性:::-webkit-scrollbar滚动条整体,可以设置宽度等::-webkit-scrollbar-button滚动条两端的按钮::-webkit-scrollbar-track外层轨道::-webkit-scrollbar-track-piece内层滚动槽::-webkit-scrollbar-thumb滚动的滑块::-webkit-scrollbar-c......
  • 虚拟机安装麒麟银河操作系统(Kylin Linux Advanced Server V10)以及设置网卡信息
    1、下载银河麒麟操作系统镜像https://distro-images.kylinos.cn:8802/web_pungi/download/share/Dq5r12WhYyFwAcnZP4JeGXkbsEHOBM0N/Kylin-Server-V10-SP3-General-Release-2303-X86_64.iso2、设置vm       #磁盘建议给到40G #点击完成开始下一步安装和......
  • 银河麒麟(Kylin Linux Advanced Server V10)配置centos8的yum源
    1、虚拟机安装麒麟操作系统(此步骤忽略)。2、将麒麟的yum源备份。mvkylin_x86_64.repo/tmp/3、将阿里云开源镜像站的centos8的yum源,下载到麒麟的服务器下并重新加载。wget-O/etc/yum.repos.d/CentOS-Base.repohttps://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.re......
  • 代码随想录算法训练营第四十一天 | 416. 分割等和子集,● 01背包问题,你该了解这些! 滚
     46.携带研究材料(第六期模拟笔试)时间限制:5.000S空间限制:128MB题目描述小明是一位科学家,他需要参加一场重要的国际科学大会,以展示自己的最新研究成果。他需要带一些研究材料,但是他的行李箱空间有限。这些研究材料包括实验设备、文献资料和实验样本等等,它们各自占据......
  • F - Earn to Advance
    F-EarntoAdvanceProblemStatementThereisagridwith$N$rowsand$N$columns.Let$(i,j)$denotethesquareatthe$i$-throwfromthetopand$j$-thcolumnfromtheleft.Takahashiisinitiallyatsquare$(1,1)$withzeromoney.WhenTakahashiis......
  • 【转】关于@GeneratedValue和@GenericGenerator
    一、JPA通用策略生成器通过annotation来映射hibernate实体的,基于annotation的hibernate主键标识为@Id,其生成规则由@GeneratedValue设定的。@id和@GeneratedValue都是JPA的标准用法。JPA提供的四种标准用法为TABLE、SEQUENCE、IDENTITY、AUTO。TABLE:使用一个特定的数据库表格来......
  • 代码随想录算法训练营第四十一天|01背包问题, 01背包问题—— 滚动数组,分割等和子集
    01背包问题,你该了解这些! 题目链接:46.携带研究材料(第六期模拟笔试)(kamacoder.com)思路:第一次遇到背包问题,好好记住吧。代码随想录(programmercarl.com)#include<bits/stdc++.h>usingnamespacestd;intmain(){intm,n;cin>>m>>n;vector<int>z(m);vec......
  • Window10使用Docker-Desktop自带k8s和dashboard配置本地k8s开发环境
    安装Docker-DesktopInstallDockerDesktoponWindows下载地址:https://docs.docker.com/desktop/install/windows-install/打开Docker-Desktop,启用Kubernetes打开Docker-Desktop,启用Kubernetes点击左上角:设置,选择Kubernetes选项卡,启用Kubernetes,点击Apply&restart注意:最......
  • VB.NET 在DataGridview 动态添加下拉列表控件DataGridViewComboBoxColumn要点两次才可
     DataGridview属性EditMode设为EditOnEnter 添加如下事件代码PrivateSubdgvZhiJianXiangMu_CellClick(ByValsenderAsSystem.Object,ByValeAsSystem.Windows.Forms.DataGridViewCellEventArgs)HandlesdgvZhiJianXiangMu.CellClickIfe.ColumnIndex>=0AndAls......