提交 30232144 编写于 作者: zhentian.jia's avatar zhentian.jia

初始化查询

上级 94bcfd72
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
<el-tab-pane label="查看报告" name="2"></el-tab-pane> <el-tab-pane label="查看报告" name="2"></el-tab-pane>
<el-tab-pane label="导出列表" name="1"></el-tab-pane> <el-tab-pane label="导出列表" name="1"></el-tab-pane>
</el-tabs> </el-tabs>
<!--
:cell-style = "cellStyle"
:header-cell-style = "headCellStyle"
-->
<el-table :data="tableData" class="table-export" style="width: 100%"> <el-table :data="tableData" class="table-export" style="width: 100%">
<el-table-column <el-table-column
prop="title" prop="title"
...@@ -237,7 +241,25 @@ export default { ...@@ -237,7 +241,25 @@ export default {
handleCurrentChange(val) { handleCurrentChange(val) {
vm.param.pageNo = val; vm.param.pageNo = val;
vm.search(); vm.search();
} },
cellStyle({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) {
console.log('column',column)
return `padding-left:40px;`;
} else {
return ''
}
},
// 表头行的 style 的回调方法
headCellStyle({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0 && rowIndex === 0) {
return `padding-left:40px;`;
} else {
return ''
}
},
} }
}; };
</script> </script>
......
...@@ -650,7 +650,7 @@ export default { ...@@ -650,7 +650,7 @@ export default {
closeSearch() { closeSearch() {
vm.dialogUpdate = false; vm.dialogUpdate = false;
vm.getDisplay(2); vm.getDisplay(2);
vm.search(); vm.resetForm();
}, },
setExportReq() { setExportReq() {
vm.exportReq = { vm.exportReq = {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册