Commit e635fb90 authored by 高宇's avatar 高宇

关联企业 修复样式bug

parent 7e7b3e1f
...@@ -25,13 +25,15 @@ ...@@ -25,13 +25,15 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:title="dialog.title" :title="dialog.title"
:visible.sync="dialog.dialogVisible" :visible.sync="dialog.dialogVisible"
width="52%" width="40%"
@close="dialog.dialogVisible=false" @close="dialog.dialogVisible=false"
:show-close="false"
> >
<el-button icon="el-icon-plus" type="primary" size="small" @click="addEnterprise">添加关联企业</el-button> <el-button class="addButton" type="primary" size="small" @click="addEnterprise"><span class="addspan">添加关联企业</span></el-button>
<!-- --> <!-- -->
<el-table <el-table
ref="EnterprisesListRef" ref="EnterprisesListRef"
:header-cell-style="{background:'#fffeff'}"
class="dialogTable" class="dialogTable"
:data="EnterprisesList" :data="EnterprisesList"
:header-cell-class-name="cellClass" :header-cell-class-name="cellClass"
...@@ -39,8 +41,12 @@ ...@@ -39,8 +41,12 @@
@current-change="currentChange" @current-change="currentChange"
> >
<el-table-column label="选择" width="50" type="selection" /> <el-table-column label="选择" width="50" type="selection" />
<el-table-column align="center" label="企业名称" prop="name" width="380" :show-overflow-tooltip="true" /> <el-table-column align="center" label="企业名称" prop="name" width="380" :show-overflow-tooltip="true">
<el-table-column label="操作" width="300"> <template slot-scope="scope">
<span style="color: #333333">{{scope.row.name}}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="280">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button icon="el-icon-edit" type="text" size="small" @click="updataInfo(scope.row)">完善信息</el-button> <el-button icon="el-icon-edit" type="text" size="small" @click="updataInfo(scope.row)">完善信息</el-button>
<el-button icon="el-icon-delete" type="text" size="small" @click="deleteInfo(scope.row)">移除企业 <el-button icon="el-icon-delete" type="text" size="small" @click="deleteInfo(scope.row)">移除企业
...@@ -334,11 +340,36 @@ export default { ...@@ -334,11 +340,36 @@ export default {
} }
.headerDialog { .headerDialog {
.addButton{
margin-top: 1%;
width: 128px;
height: 36px;
.addspan{
font-size: 15px;
color: #333333 !important;
}
}
.dialogTable { .dialogTable {
margin-top: 4%; margin-top: 4%;
} }
.dialog-footer {
.cancelBtn:hover{
background-color: #e8f2fc !important;
}
}
::v-deep .el-table .disabledCheck .cell .el-checkbox__inner { ::v-deep .el-table .disabledCheck .cell .el-checkbox__inner {
display: none !important; display: none !important;
} }
::v-deep .el-dialog {
border-radius: 0px !important;
}
::v-deep .el-dialog__title {
color: #333333;
}
::v-deep .el-table {
tr td, tr th{
border-right: none;
}
}
} }
</style> </style>
...@@ -49,9 +49,10 @@ ...@@ -49,9 +49,10 @@
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="3">
<el-button round v-if="this.form.status !==0" class="deleteButton" type="danger" size="small" <el-button round v-if="this.form.status ==='0' || this.form.status === '3' " class="deleteButton" type="danger" size="small"
@click="deleteEnterPrises">移除企业 @click="deleteEnterPrises">移除企业
</el-button> </el-button>
<el-button round v-if="this.form.status === '1' || this.form.status === '2'|| this.form.status === '4'" class="deleteButton1" type="danger" size="small" @click="deleteEnterPrises">移除企业</el-button>
</el-col> </el-col>
</el-row> </el-row>
<div> <span class="form-title">一: 企业基本信息</span></div> <div> <span class="form-title">一: 企业基本信息</span></div>
...@@ -440,6 +441,7 @@ ...@@ -440,6 +441,7 @@
</el-form> </el-form>
<!-- 对话框区域 --> <!-- 对话框区域 -->
<el-dialog <el-dialog
class="switchDialog"
highlight-current-row highlight-current-row
:close-on-click-modal="false" :close-on-click-modal="false"
:title="dialog.title" :title="dialog.title"
...@@ -447,7 +449,7 @@ ...@@ -447,7 +449,7 @@
:show-close="false" :show-close="false"
width="40%" width="40%"
> >
<el-button class="addEnterprises" type="primary" size="small" @click="addEnterprise">添加关联企业</el-button> <el-button class="addEnterprises" type="primary" size="small" @click="addEnterprise"><span class="addSpan">添加关联企业</span></el-button>
<!-- 切换企业弹出框 --> <!-- 切换企业弹出框 -->
<el-table <el-table
class="dialogTable" class="dialogTable"
...@@ -460,7 +462,11 @@ ...@@ -460,7 +462,11 @@
style="width: 100%" style="width: 100%"
> >
<el-table-column label="选择" width="50" type="selection"/> <el-table-column label="选择" width="50" type="selection"/>
<el-table-column align="center" label="企业名称" prop="name" width="380" :show-overflow-tooltip="true"/> <el-table-column align="center" label="企业名称" prop="name" width="380" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span style="color: #333333">{{scope.row.name}}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="280"> <el-table-column label="操作" width="280">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button icon="el-icon-edit" type="text" size="small" @click="updataInfo(scope.row)">完善信息</el-button> <el-button icon="el-icon-edit" type="text" size="small" @click="updataInfo(scope.row)">完善信息</el-button>
...@@ -1770,6 +1776,14 @@ export default { ...@@ -1770,6 +1776,14 @@ export default {
background: #C24E3E; background: #C24E3E;
border-radius: 6px; border-radius: 6px;
} }
.deleteButton1{
margin-left: -17px;
width: 102px;
height: 36px;
border-color: #C24E3E ;
background: #C24E3E;
border-radius: 6px;
}
.footer { .footer {
text-align: center; text-align: center;
...@@ -1803,10 +1817,15 @@ export default { ...@@ -1803,10 +1817,15 @@ export default {
color: #333333; color: #333333;
line-height: 24px; line-height: 24px;
} }
.el-button { .switchDialog{
.addEnterprises{ .addEnterprises{
margin-top: 1%;
width: 128px; width: 128px;
height: 36px; height: 36px;
.addSpan{
font-size: 15px;
color: #333333 !important;
}
} }
} }
.dialogTable { .dialogTable {
......
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