配置管理 表格宽度

This commit is contained in:
zhaokaiyao@91isoft.com
2021-09-27 21:40:46 +08:00
parent e5957930b9
commit 6ef0954ab6
2 changed files with 31 additions and 4 deletions
@@ -65,15 +65,20 @@
height="100%"
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}">
<el-table-column
prop="account"
label="账号"
width="100px">
</el-table-column>
<el-table-column
prop="uname"
label="姓名"
width="170px">
width="100px">
</el-table-column>
<el-table-column
prop="sex"
label="性别"
width="170px">
width="50px">
<template slot-scope="scope">
<div v-if="scope.row.sex === '1'"></div>
<div v-if="scope.row.sex === '2'"></div>
@@ -92,14 +97,36 @@
<el-table-column
prop="institutionName"
label="所属部门">
<template slot-scope="scope">
<el-popover trigger="hover" placement="top">
{{scope.row.institutionName}}
<div slot="reference" class="name-wrapper">
<p v-if="scope.row.institutionName.length<15">
{{scope.row.institutionName}}
</p>
<p v-else> {{scope.row.institutionName.substring(0,15)}}...</p>
</div>
</el-popover>
</template>
</el-table-column>
<el-table-column
prop="NameList"
label="所属岗位">
<template slot-scope="scope">
<el-popover trigger="hover" placement="top">
{{scope.row.NameList}}
<div slot="reference" class="name-wrapper">
<p v-if="scope.row.NameList.length<15">
{{scope.row.NameList}}
</p>
<p v-else> {{scope.row.NameList.substring(0,15)}}...</p>
</div>
</el-popover>
</template>
</el-table-column>
<el-table-column
label="状态"
width="170px">
width="100px">
<template slot-scope="scope">
<div v-if="scope.row.disableFlag === '1'">已禁用</div>
<div v-else>已启用</div>
+1 -1
View File
@@ -57,7 +57,7 @@
<el-table-column
prop="name"
label="岗位名称"
width="170px">
width="300px">
</el-table-column>
<el-table-column
prop="NameList"