Commit 24ac41b1 by Wuyuqiu

角色弹出框表格样式调整

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