|
@@ -139,11 +139,16 @@
|
|
|
<el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
|
|
<el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
|
<el-table-column label="用户编号" align="center" key="userId" prop="userId" v-if="columns[0].visible" />
|
|
<el-table-column label="用户编号" align="center" key="userId" prop="userId" v-if="columns[0].visible" />
|
|
|
- <el-table-column label="用户名称" align="center" key="userName" prop="userName" v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
- <el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
- <el-table-column label="部门" align="center" key="deptName" prop="dept.deptName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
- <el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" v-if="columns[4].visible" width="120" />
|
|
|
|
|
- <el-table-column label="状态" align="center" key="status" v-if="columns[5].visible">
|
|
|
|
|
|
|
+ <el-table-column label="工号" align="center" key="jobNumber" prop="jobNumber" v-if="columns[1].visible" />
|
|
|
|
|
+ <el-table-column label="用户名称" align="center" key="userName" prop="userName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="职位" align="center" key="postName" prop="postName" v-if="columns[4].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="全职/兼职" align="center" key="fullJob" prop="fullJob" v-if="columns[5].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="部门" align="center" key="deptName" prop="dept.deptName" v-if="columns[6].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="参与项目数" align="center" key="projectQuantity" prop="projectQuantity" v-if="columns[7].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="上级负责人" align="center" key="superiorName" prop="superiorName" v-if="columns[8].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="累计工时" align="center" key="duration" prop="duration" v-if="columns[9].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="状态" align="center" key="status" v-if="columns[10].visible">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-switch
|
|
<el-switch
|
|
|
v-model="scope.row.status"
|
|
v-model="scope.row.status"
|
|
@@ -153,11 +158,16 @@
|
|
|
></el-switch>
|
|
></el-switch>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[6].visible" width="160">
|
|
|
|
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[11].visible" width="100">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="最后登录时间" align="center" prop="loginDate" v-if="columns[12].visible" width="100" >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>{{ parseTime(scope.row.loginDate) }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="操作"
|
|
label="操作"
|
|
|
align="center"
|
|
align="center"
|
|
@@ -414,13 +424,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 列信息
|
|
// 列信息
|
|
|
columns: [
|
|
columns: [
|
|
|
- { key: 0, label: `用户编号`, visible: true },
|
|
|
|
|
- { key: 1, label: `用户名称`, visible: true },
|
|
|
|
|
- { key: 2, label: `用户昵称`, visible: true },
|
|
|
|
|
- { key: 3, label: `部门`, visible: true },
|
|
|
|
|
- { key: 4, label: `手机号码`, visible: true },
|
|
|
|
|
- { key: 5, label: `状态`, visible: true },
|
|
|
|
|
- { key: 6, label: `创建时间`, visible: true }
|
|
|
|
|
|
|
+ { key: 0, label: `用户编号`, visible: false },
|
|
|
|
|
+ { key: 1, label: `工号`, visible: true },
|
|
|
|
|
+ { key: 2, label: `用户名称`, visible: true },
|
|
|
|
|
+ { key: 3, label: `用户昵称`, visible: true },
|
|
|
|
|
+ { key: 4, label: `职位`, visible: true },
|
|
|
|
|
+ { key: 5, label: `全职/兼职`, visible: true },
|
|
|
|
|
+ { key: 6, label: `部门`, visible: true },
|
|
|
|
|
+ { key: 7, label: `参与项目`, visible: true },
|
|
|
|
|
+ { key: 8, label: `上级负责人`, visible: true },
|
|
|
|
|
+ { key: 9, label: `累计工时`, visible: true },
|
|
|
|
|
+ { key: 10, label: `状态`, visible: true },
|
|
|
|
|
+ { key: 11, label: `创建时间`, visible: true },
|
|
|
|
|
+ { key: 12, label: `最后登录时间`, visible: true }
|
|
|
],
|
|
],
|
|
|
// 表单校验
|
|
// 表单校验
|
|
|
rules: {
|
|
rules: {
|