<el-table:data="tableData"borderstyle="width: 100%"stripe:header-cell-style="{ background: '#F5F6FA', color: '#000' }":height="queryParams.limit == 10 ? 508 : 573"><el-table-columnlabel="序号"width="60"align="center"type="index":index="indexMethod"></el-table-column><el-table-columnshow-overflow-tooltipalign="center"v-for="(item, index) in tableColumn":prop="item.prop":label="item.label":key="index":width="item.width"><template slot-scope="scope"><div v-if="item.label == '监测点编号'"><span class="clickName" @click="handleDetails(scope.row)">{{ scope.row.monitorCode }}</span></div><div v-else>{{ scope.row[item.prop] }}</div></template></el-table-column>
</el-table>data(){return{tableData: [],tableColumn: [{label: "省公司",prop: "province",width: "auto",},{label: "地市公司",prop: "city",width: "auto",},{label: "运维单位",prop: "county",width: "auto",},{label: "监测点类别",prop: "monitorAlias",width: "auto",},{label: "所属电站",prop: "stationName",width: "auto",},{label: "所属线路",prop: "lineName",width: "auto",},{label: "所属台区",prop: "platformName",width: "auto",},{label: "监测对象编号",prop: "mid",width: "auto",},{label: "监测对象名称",prop: "mname",width: "auto",},{label: "监测点编号",prop: "monitorCode",width: "auto",//canClick: "true",},{label: "监测点名称",prop: "monitorName",width: "auto",},{label: "监测点电压等级",prop: "voltageLevel",width: "auto",},{label: "监测点状态",prop: "monitorStatus",width: "auto",},{label: "建档日期",prop: "createdDate",width: "auto",},],queryParams: {page: 1,limit: 10,name: undefined, //监测点编号/姓名province: undefined, //省公司city: undefined, //地市公司organizationId: undefined, //运维单位monitorType: undefined, //监测点类别powerStationId: undefined, //所属电站lineId: undefined, //所属线路platformId: undefined, //所属台区monitorObjectId: undefined, //监测对象编号monitorObjectName: undefined, //监测对象名称monitorCode: undefined, //监测点编号monitorName: undefined, //监测点名称voltageLevel: undefined, //监测点电压等级monitorStatus: undefined, //监测点状态createdDate: new Date().getFullYear()+'-'+((new Date().getMonth()+1)>=10?(new Date().getMonth()+1):('0'+(new                                 Date().getMonth()+1)))+'-'+((new Date().getDate()-1)>=10?(new Date().getDate()-1):('0'+(new               Date().getDate()-1)))//建档日期},type: "",dialogTableVisible:false,monitorCode: {},}
},
methods:{indexMethod(index) {let curpage = this.page; //当前页码let limitpage = this.pageSize; //每页条数return index + 1 + (curpage - 1) * limitpage;},// 点击监测点编号查看详情async handleDetails() {this.type = item.monitorType;const params = {monitorCode: item.monitorCode,};this.dialogTableVisible = true;await https(this.url.classIMonitoringPoints, this.monitorCode).then((res) => {console.log(res);this.form1 = res.data[0];this.form1.firstType =this.form1.firstType === "1"? "运行": this.form1.firstType === "2"? "检修": this.form1.firstType === "3"? "调试": "故障";this.form1.monitorType =this.form1.monitorType === "1"? "I类监测点": this.form1.monitorType === "2"? "II类监测点": "III类监测点";this.form1.isSpecialSupplyElectricity =this.form1.isSpecialSupplyElectricity === "1" ? "是" : "否";this.form1.terminalWiringMethod =this.form1.terminalWiringMethod === "01"? "三相星型": "三相角型";});}
},
<style lang="scss" scoped>.clickName {cursor: pointer !important;text-decoration: underline;color: rgb(31, 134, 129) !important;}
</style>

表格内单元格可点击,查看详情相关推荐

  1. Latex 表格内文字过长自动换行 表格内单元格内容强制换行

    2019独角兽企业重金招聘Python工程师标准>>> \usepackage{array} \begin{tabular}{m{5cm}}或者\begin{tabular}{p{0 ...

  2. 修改Markdown表格对齐方式、markdown表格内单元格换行

    记录几个最近经常遇到的问题 首先是修改Markdown表格对齐方式,其实就是修改第二行的:的位置 默认居中 居左 居右 居中 xxxxxxxxx xxxxxxxxx xxxxxxxxx xxxxxxx ...

  3. latex表格内容上下居中_LaTex表格内单元格内容换行

    如何同时让表格同一行一个单元格的文字能垂直居中?比如说文字超长超出页面范围需要分行显示. ~~~ newcommand{tabincell}[2]{begin{tabular}{@{}#1@{}}#2 ...

  4. HTML中如何将表格最外层边框设置成实线,内单元格边框设置成虚线?

    如图中所示,最外层边框为实线,内部单元格边框为虚线 以下为HTML部分的一部分代码 <body><form action=""><table>/ ...

  5. EduCoder-Web程序设计基础-html5-表格基本结构-第4关:表格中单元格样式的设置

    目录 任务描述 相关知识 编程要求 测试说明 代码示例 任务描述 本关任务:编写一个两行两列的表格网页,表格中的单元格样式进行设置.效果如下图所示: 表格效果3 相关知识 为了完成本关任务,你需要掌握 ...

  6. word(2010)使用VBA完成批处理操作-批量清除表格某单元格内容

    word VBA 的使用案例 VBA是什么? 为什么要使用VBA? VBA的运用实例---批量清除表格某单元格内容 结语 VBA是什么? VBA(Visual Basic for Applicatio ...

  7. Word插入表格相邻单元格边框断开方法

    Word插入表格相邻单元格边框断开方法 写论文要将相邻单元格边框打断,见了很多教程,这里详细讲解一些如何实现,重点要掌握应用于单元格和段落的边框是不同的,应用于段落的边框之间是分开的. 实现效果: 操 ...

  8. Word学习:表格相邻单元格边框断开方法

    表格相邻单元格边框断开方法 step1:选中待处理的单元格,右键选择表格属性>>边框和底纹 step2:去掉初始状态下的边框(应用于单元格状态下的上/下边框),再选择应用于段落>&g ...

  9. java表格里面显示图片_jquery表格datagrid单元格显示图片及分页使用

    要想达到自定义显示表格框的目的比如显示图片,超链接,按钮的形式,只需要给列添加formatter属性即可,比如显示图片: columns: [[ { field: 'IName', title: '显 ...

最新文章

  1. GetSystemMetrics()函数的用法
  2. mybaits十七:使用foreach标签
  3. String中的“equal方法”和“==”
  4. 全志A33-ARM linux开机进入uboot命令行
  5. [mybatis]Configuration XML_mappers
  6. 利用Android Studio快速搭建App
  7. php如何打开图片的权限,php如何控制用户对图片的访问 PHP禁止图片盗链 php技巧...
  8. python代码_零基础小白必看篇:Python代码注释规范代码实例解析操作(收藏)
  9. 开发易于移植的J2ME游戏
  10. NOI08冬令营 数据结构的提炼与压缩
  11. html 下划线_web前端实战入门训练之HTML基本元素
  12. 正交设计助手的使用教程(设计测试用例的工具)
  13. stm32 bootloader启动正常,APP程序会在时钟配置出错原因分析
  14. Mac OS X 背后的故事(二)——Linus Torvalds的短视
  15. MySQL 为日期增加一个时间间隔
  16. WorkFlow:BPMN 2.0介绍(一):参与者(Participant)
  17. 解除应用计算机仿真,语音识别中计算机仿真的应用
  18. 计算机考研分数403,403分考研经验:清华计算机研究生很容易考上
  19. Ubuntu18.04 分区方案
  20. 即将告别--新纪元网站

热门文章

  1. UE网络-官方联网和多人游戏
  2. cocos2dx项目接入爱贝第三方支付sdk遇到的问题及解决方案
  3. unity 3d物体显示和2dUI显示相结合
  4. MATLAB求解非齐次线性方程组
  5. python爬取推特的详细教程_如何利用 Twitter 开放者平台爬取 Twitter 数据?
  6. html编辑doc,HTMLDOC
  7. 菜鸡的反思、历险和flag
  8. 下一个排列,下一字典序
  9. 从皮亚诺公理体系到1+1=2的严格证明(一)
  10. Ubuntu 18.04下搜狗拼音输入法选词面板乱码问题(通过更换输入法版本完美解决,一劳永逸)