|
|
|
@ -142,6 +142,7 @@
|
|
|
|
|
<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="stationName" prop="stationName" v-if="columns[5].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">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -293,6 +294,18 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="所属工位">
|
|
|
|
|
<el-select v-model="form.stationCode" placeholder="请输入所属工位">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in findStationList"
|
|
|
|
|
:key="item.productLineCode"
|
|
|
|
|
:label="item.productLineName"
|
|
|
|
|
:value="item.productLineCode"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
@ -345,6 +358,7 @@ import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUs
|
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "User",
|
|
|
|
@ -412,6 +426,8 @@ export default {
|
|
|
|
|
status: undefined,
|
|
|
|
|
deptId: undefined
|
|
|
|
|
},
|
|
|
|
|
// 工位选项
|
|
|
|
|
findStationList: [],
|
|
|
|
|
// 列信息
|
|
|
|
|
columns: [
|
|
|
|
|
{ key: 0, label: `用户编号`, visible: true },
|
|
|
|
@ -475,6 +491,9 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
findProductLineList({productLineType: 2}).then(response => {
|
|
|
|
|
this.findStationList = response.data;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//this
|
|
|
|
|
/** 查询部门下拉树结构 */
|
|
|
|
@ -514,6 +533,7 @@ export default {
|
|
|
|
|
this.form = {
|
|
|
|
|
userId: undefined,
|
|
|
|
|
deptId: undefined,
|
|
|
|
|
stationCode: undefined,
|
|
|
|
|
userName: undefined,
|
|
|
|
|
nickName: undefined,
|
|
|
|
|
password: undefined,
|
|
|
|
|