修改样式

This commit is contained in:
宋伟佳
2021-11-12 17:38:37 +08:00
parent 36884ea627
commit faf043f76e
16 changed files with 349 additions and 49 deletions
@@ -47,12 +47,13 @@
</el-form>
</div>
<!-- 表格-->
<div class="">
<div class="container">
<el-table
:data="tableData"
tooltip-effect="dark"
style="width: auto"
border
height="100%"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="handleSelectionChange">
@@ -295,7 +296,7 @@ export default {
submit: function(){
this.$confirm('确认进行添加','是否继续?','提示',{
confirmButtonText: '确定',
confirmButtonText: '取消',
cancelButtonText: '取消',
}).then(()=>{
this.tableData.push({
name:this.formLabelAlign.name,
@@ -314,7 +315,7 @@ export default {
deleteDetail: function(index,rows) {
this.$confirm('此操作将删除数据,','是否继续?','提示',{
confirmButtonText:'确定',
confirmButtonText:'取消',
cancelButtonText:'取消',
type:'warning'
}).then(()=>{
this.tableData.splice(index,1)
@@ -332,9 +333,7 @@ export default {
//编辑(修改)
drawer2:function (index,row) {
this.formLabelAlign2=Object.assign({},row);
_index=index;
console.log(index);
console.log(_index);
},
//点击确定(编辑)(没出)
editSubForm(){
@@ -380,6 +379,25 @@ export default {
<style lang="less" scoped>
.child1{
height: 100%;
display: flex;
flex-direction: column;
.container {
display: flex;
flex-direction: column;
position: relative;
flex: auto;
width: 100%;
height: calc(100% - 110px) !important;
.pagination {
position: static;
/deep/ .pagination-slot {
padding: 0;
}
}
}
.leading-in{
width: 400px;
height: 200px