Commit 24ac41b1 by Wuyuqiu

角色弹出框表格样式调整

parent 5f27bbd4
...@@ -345,10 +345,6 @@ ...@@ -345,10 +345,6 @@
padding-bottom: 10px; padding-bottom: 10px;
} }
.el-dialog__body {
padding: 10px 20px 20px;
}
.el-dialog__body .el-dialog__body
/* form 必填项的内容区域颜色突出显示 * /* form 必填项的内容区域颜色突出显示 *
暂时封掉 暂时封掉
...@@ -762,9 +758,24 @@ padding-left: 30px; ...@@ -762,9 +758,24 @@ padding-left: 30px;
height: 70%; height: 70%;
overflow: auto; overflow: auto;
} }
.el-dialog__body {
padding: 40px 30px 40px;
}
.el-dialog--center .el-dialog__body { .el-dialog--center .el-dialog__body {
height: 100%; height: 100%;
} }
.el-dialog--center .el-dialog__body>div{ .el-dialog--center .el-dialog__body>div{
height: 100%; height: 100%;
} }
.el-dialog__header {
background-color: #B31C2A;
color: #fff;
}
.el-dialog__title {
line-height: 16px;
font-size: 16px;
color: #FFFFFF;
}
.el-dialog__headerbtn .el-dialog__close {
color: #fff;
}
\ No newline at end of file
...@@ -627,7 +627,7 @@ export default { ...@@ -627,7 +627,7 @@ export default {
}, },
}; };
</script> </script>
<style> <style scoped>
.el-dialog__body { .el-dialog__body {
padding: 10px 5px 50px; padding: 10px 5px 50px;
} }
......
...@@ -190,40 +190,39 @@ export default { ...@@ -190,40 +190,39 @@ export default {
title: 'Select a Party', title: 'Select a Party',
columns: [ columns: [
{ {
prop: 'ptyInr',
label: 'Party Number'
},
{
prop: 'inr',
label: 'Address Number'
},
{
prop: 'branch', prop: 'branch',
label: 'Branch Code' label: 'Branch Code',
width: '150px'
}, },
{ {
prop: 'bchName', prop: 'bchName',
label: 'Branch Name' label: 'Branch Name',
width: '150px'
}, },
{ {
prop: 'adrName', prop: 'adrName',
label: 'Address Name' label: 'Address Name',
width: '150px'
}, },
{ {
prop: 'adr1', prop: 'adr1',
label: 'Address1' label: 'Address1',
width: '120px'
}, },
{ {
prop: 'locCty', prop: 'locCty',
label: 'City' label: 'City',
width: '120px'
}, },
{ {
prop: 'locZip', prop: 'locZip',
label: 'Zip' label: 'Zip',
width: '120px'
}, },
{ {
prop: 'bicCode', prop: 'bicCode',
label: 'BIC' label: 'BIC',
width: '120px'
} }
], ],
data: [] data: []
......
...@@ -157,6 +157,6 @@ export default { ...@@ -157,6 +157,6 @@ export default {
<style> <style>
.grid-ety .el-table .cell { .grid-ety .el-table .cell {
white-space: pre-wrap; white-space: nowrap;
} }
</style> </style>
\ No newline at end of file
...@@ -7,22 +7,20 @@ ...@@ -7,22 +7,20 @@
width="60%" width="60%"
:before-close="beforeClose" :before-close="beforeClose"
> >
<el-table <el-table :data="tableData" border @row-dblclick="selectEty">
:data="tableData"
border
@row-dblclick="selectEty"
>
<el-table-column <el-table-column
v-for="(item, idx) in tableColumn" v-for="(item, idx) in tableColumn"
:key="idx" :key="idx"
:property="item.prop" :property="item.prop"
:label="item.label" :label="item.label"
:width="item.width" :min-width="item.width"
show-overflow-tooltip
sortable
> >
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
layout="prev, pager, next, total, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="this.promptData.data.length" :total="this.promptData.data.length"
:page-sizes="pageSizes" :page-sizes="pageSizes"
:page-size="pageSize" :page-size="pageSize"
...@@ -66,10 +64,13 @@ export default { ...@@ -66,10 +64,13 @@ export default {
}, },
computed: { computed: {
tableColumn() { tableColumn() {
return this.promptData.columns return this.promptData.columns;
}, },
tableData() { tableData() {
return this.promptData.data.slice((this.currentPage - 1) * this.pageSize, this.currentPage * this.pageSize) return this.promptData.data.slice(
(this.currentPage - 1) * this.pageSize,
this.currentPage * this.pageSize
);
}, },
}, },
methods: { methods: {
...@@ -79,7 +80,7 @@ export default { ...@@ -79,7 +80,7 @@ export default {
selectEty(row) { selectEty(row) {
this.$emit("select-ety", { this.$emit("select-ety", {
...row, ...row,
role: this.promptData.type role: this.promptData.type,
}); });
this.show = false; this.show = false;
this.currentPage = 1; this.currentPage = 1;
...@@ -95,6 +96,6 @@ export default { ...@@ -95,6 +96,6 @@ export default {
<style> <style>
.grid-ety .el-table .cell { .grid-ety .el-table .cell {
white-space: pre-wrap; white-space: nowrap ;
} }
</style> </style>
\ No newline at end of file
...@@ -170,6 +170,6 @@ export default { ...@@ -170,6 +170,6 @@ export default {
<style> <style>
.grid-ety .el-table .cell { .grid-ety .el-table .cell {
white-space: pre-wrap; white-space: nowrap;
} }
</style> </style>
\ No newline at end of file
...@@ -110,6 +110,6 @@ export default { ...@@ -110,6 +110,6 @@ export default {
<style> <style>
.grid-ety .el-table .cell { .grid-ety .el-table .cell {
white-space: pre-wrap; white-space: nowrap;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment