|
@@ -64,11 +64,16 @@
|
|
|
<span>{{ (page - 1) * 20 + scope.row.ind }}</span>
|
|
<span>{{ (page - 1) * 20 + scope.row.ind }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="real_name" label="姓名" width="190">
|
|
|
|
|
|
|
+ <el-table-column prop="real_name" label="姓名" min-width="120">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="username" label="账号名称" width="200">
|
|
|
|
|
|
|
+ <el-table-column prop="username" label="账号名称" min-width="120">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="mobile" label="手机号" width="120">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="mobile"
|
|
|
|
|
+ label="手机号"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ min-width="120"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.mobile || '无' }}</span>
|
|
<span>{{ scope.row.mobile || '无' }}</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -77,7 +82,8 @@
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
prop="org_list"
|
|
prop="org_list"
|
|
|
label="隶属组织"
|
|
label="隶属组织"
|
|
|
- width="280"
|
|
|
|
|
|
|
+ min-width="160"
|
|
|
|
|
+ align="center"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.org_list.length == 1">{{
|
|
<span v-if="scope.row.org_list.length == 1">{{
|
|
@@ -106,7 +112,8 @@
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
prop="role_list"
|
|
prop="role_list"
|
|
|
label="用户角色"
|
|
label="用户角色"
|
|
|
- width="280"
|
|
|
|
|
|
|
+ min-width="100"
|
|
|
|
|
+ align="center"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.role_list.length == 1">{{
|
|
<span v-if="scope.row.role_list.length == 1">{{
|
|
@@ -131,7 +138,22 @@
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="state" label="状态" width="120">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="is_check"
|
|
|
|
|
+ label="是否实验室人员"
|
|
|
|
|
+ width="120"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{ !scope.row.is_check ? '否' : '是' }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="state"
|
|
|
|
|
+ label="状态"
|
|
|
|
|
+ width="120"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.state == '正常'">
|
|
<span v-if="scope.row.state == '正常'">
|
|
|
<span
|
|
<span
|
|
@@ -323,6 +345,12 @@
|
|
|
<el-option label="停用" value="4"></el-option>
|
|
<el-option label="停用" value="4"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="是否实验室人员: " prop="is_check">
|
|
|
|
|
+ <el-radio-group v-model="form.is_check">
|
|
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
|
|
+ <el-radio :label="1">是</el-radio>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<el-button
|
|
<el-button
|
|
@@ -407,7 +435,8 @@ export default {
|
|
|
role: [], //角色
|
|
role: [], //角色
|
|
|
phone: '', // 手机号码
|
|
phone: '', // 手机号码
|
|
|
mailbox: '', //邮箱
|
|
mailbox: '', //邮箱
|
|
|
- state: '' // 账号状态
|
|
|
|
|
|
|
+ state: '', // 账号状态
|
|
|
|
|
+ is_check: 0 // 是否实验室人员
|
|
|
},
|
|
},
|
|
|
rules: {
|
|
rules: {
|
|
|
user: [
|
|
user: [
|
|
@@ -477,6 +506,8 @@ export default {
|
|
|
this.form[key] = '';
|
|
this.form[key] = '';
|
|
|
// console.log(key)
|
|
// console.log(key)
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ this.form.is_check = 0;
|
|
|
this.refreshItem++;
|
|
this.refreshItem++;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -558,7 +589,8 @@ export default {
|
|
|
judge: list,
|
|
judge: list,
|
|
|
phone: e.mobile,
|
|
phone: e.mobile,
|
|
|
mailbox: e.email,
|
|
mailbox: e.email,
|
|
|
- state: e.state
|
|
|
|
|
|
|
+ state: e.state,
|
|
|
|
|
+ is_check: e.is_check || 0
|
|
|
};
|
|
};
|
|
|
this.userVisible = true;
|
|
this.userVisible = true;
|
|
|
}, 1000);
|
|
}, 1000);
|
|
@@ -748,6 +780,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ let url = '';
|
|
|
|
|
+
|
|
|
if (this.tltData == '添加用户') {
|
|
if (this.tltData == '添加用户') {
|
|
|
var postData = this.qs.stringify({
|
|
var postData = this.qs.stringify({
|
|
|
username: this.form.user, // 登录账号 必
|
|
username: this.form.user, // 登录账号 必
|
|
@@ -757,9 +792,10 @@ export default {
|
|
|
role_id_list: JSON.stringify(roleList), // 角色id数组 必
|
|
role_id_list: JSON.stringify(roleList), // 角色id数组 必
|
|
|
state: this.form.state, //用户状态
|
|
state: this.form.state, //用户状态
|
|
|
mobile: this.form.phone, // 手机号
|
|
mobile: this.form.phone, // 手机号
|
|
|
- email: this.form.mailbox //邮箱地址
|
|
|
|
|
|
|
+ email: this.form.mailbox, //邮箱地址
|
|
|
|
|
+ is_check: this.form.is_check
|
|
|
});
|
|
});
|
|
|
- var url = '/api/api_gateway?method=sysmenage.usermanager.user_add';
|
|
|
|
|
|
|
+ url = '/api/api_gateway?method=sysmenage.usermanager.user_add';
|
|
|
} else if (this.tltData == '编辑用户') {
|
|
} else if (this.tltData == '编辑用户') {
|
|
|
var postData = this.qs.stringify({
|
|
var postData = this.qs.stringify({
|
|
|
user_id: this.editorObj.user_id, // 用户id 必
|
|
user_id: this.editorObj.user_id, // 用户id 必
|
|
@@ -767,10 +803,10 @@ export default {
|
|
|
org_id_list: JSON.stringify(orgList), //组织id数组 必
|
|
org_id_list: JSON.stringify(orgList), //组织id数组 必
|
|
|
role_id_list: JSON.stringify(roleList), //角色id数组 必
|
|
role_id_list: JSON.stringify(roleList), //角色id数组 必
|
|
|
mobile: this.form.phone, //手机号
|
|
mobile: this.form.phone, //手机号
|
|
|
- email: this.form.mailbox //邮箱地址
|
|
|
|
|
|
|
+ email: this.form.mailbox, //邮箱地址
|
|
|
|
|
+ is_check: this.form.is_check
|
|
|
});
|
|
});
|
|
|
- var url =
|
|
|
|
|
- '/api/api_gateway?method=sysmenage.usermanager.user_modify';
|
|
|
|
|
|
|
+ url = '/api/api_gateway?method=sysmenage.usermanager.user_modify';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.$axios({
|
|
this.$axios({
|