配置管理 表格宽度
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="岗位名称"
|
||||
width="170px">
|
||||
width="300px">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="NameList"
|
||||
|
||||
Reference in New Issue
Block a user