|
@@ -56,13 +56,12 @@
|
|
|
>
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
|
- :style="{ 'width': getColumnWidth(3) }"
|
|
|
- :width="getColumnWidth(3)"
|
|
|
+ width="32"
|
|
|
:selectable="checkSelectable"
|
|
|
v-if="hasAuth"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" :style="{ 'width': getColumnWidth(10) }" label="姓名" :width="getColumnWidth(10)">
|
|
|
+ <el-table-column prop="name" label="姓名" width="112">
|
|
|
<template slot="header">
|
|
|
<div
|
|
|
style="cursor: pointer"
|
|
@@ -72,18 +71,18 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="邮箱" :style="{ 'width': getColumnWidth(17) }" :width="getColumnWidth(17)">
|
|
|
+ <el-table-column label="邮箱" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.mail || "--" }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="phone" label="手机" :style="{ 'width': getColumnWidth(14) }" :width="getColumnWidth(14)"> </el-table-column>
|
|
|
- <el-table-column prop="account" :style="{ 'width': getColumnWidth(21.4) }" label="账号名" :width="getColumnWidth(21.4)">
|
|
|
+ <el-table-column prop="phone" label="手机" width="136"> </el-table-column>
|
|
|
+ <el-table-column prop="account" label="账号名">
|
|
|
<template slot-scope="scope">
|
|
|
<div :title="scope.row.user_name">{{ getAccountName(scope.row.user_name) }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :width="getColumnWidth(17.8)" :style="{ 'width': getColumnWidth(17.8) }" prop="dname" label="部门">
|
|
|
+ <el-table-column prop="dname" label="部门" width="280">
|
|
|
<template slot="header">
|
|
|
<div
|
|
|
style="cursor: pointer"
|
|
@@ -93,7 +92,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :style="{ 'width': getColumnWidth(21.4) }" label="角色" :width="getColumnWidth(21.4)">
|
|
|
+ <el-table-column label="角色" width="240">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.role == '企业管理员'" class="company_user">
|
|
|
<span v-if="$store.state.companyMsg.nicheDis_show !== 1">{{ scope.row.role }}</span>
|
|
@@ -111,8 +110,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
header-align="center"
|
|
|
- :style="{ 'width': getColumnWidth(11) }"
|
|
|
- :width="getColumnWidth(11)"
|
|
|
+ width="120"
|
|
|
v-if="hasAuth"
|
|
|
label="操作"
|
|
|
>
|
|
@@ -445,12 +443,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- getColumnWidth(data) {
|
|
|
- const screenWidth = window.innerWidth;
|
|
|
- const desiredPercentage = data;
|
|
|
- const widthInPixels = (screenWidth * desiredPercentage) / 100;
|
|
|
- return widthInPixels + 'px';
|
|
|
- },
|
|
|
setAllocition (data) {
|
|
|
let str = ''
|
|
|
switch (data) {
|