Commit ee2ab82b authored by xinzhedeai's avatar xinzhedeai

add:人员字段对接

parent 825aa82a
...@@ -4,7 +4,7 @@ import request from '@/utils/request' ...@@ -4,7 +4,7 @@ import request from '@/utils/request'
// 查询人员信息详细 // 查询人员信息详细
export function getDict(data) { export function getDict(data) {
return request({ return request({
url: '/sys/dict/findDictType', url: '/sys/dict/getDictList',
method: 'get', method: 'get',
params: data params: data
}) })
......
This diff is collapsed.
...@@ -39,16 +39,6 @@ ...@@ -39,16 +39,6 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="在线状态" prop="personType">
<el-select
v-model="queryParams.onlineStatus"
placeholder="请选择在线状态"
clearable
>
<el-option label="在线" :value="1"></el-option>
<el-option label="离线" :value="0"></el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
...@@ -72,8 +62,8 @@ ...@@ -72,8 +62,8 @@
<el-table-column label="人员类型" align="center" prop="personTypeName" /> <el-table-column label="人员类型" align="center" prop="personTypeName" />
<el-table-column label="姓名" align="center" prop="realName" /> <el-table-column label="姓名" align="center" prop="realName" />
<el-table-column label="性别" align="center" prop="sex" /> <el-table-column label="性别" align="center" prop="sex" />
<el-table-column label="所在部门1" align="center" prop="jobNumber" /> <el-table-column label="所在部门" align="center" prop="deptName" />
<el-table-column label="岗位名称1" align="center" prop="jobNumber" /> <el-table-column label="岗位名称" align="center" prop="positionName" />
<el-table-column label="联系方式" align="center" prop="phone" /> <el-table-column label="联系方式" align="center" prop="phone" />
<el-table-column label="身份证号" align="center" prop="idNumber" /> <el-table-column label="身份证号" align="center" prop="idNumber" />
<el-table-column label="定位卡号" align="center" prop="cardId" /> <el-table-column label="定位卡号" align="center" prop="cardId" />
...@@ -121,7 +111,7 @@ export default { ...@@ -121,7 +111,7 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
personType: "staff", personType: "",
personTypeName: null, personTypeName: null,
staffType: null, staffType: null,
staffTypeName: null, staffTypeName: null,
...@@ -196,7 +186,7 @@ export default { ...@@ -196,7 +186,7 @@ export default {
}, },
// 表单参数 // 表单参数
form: { form: {
personType: "staff", personType: "",
}, },
// 表单校验 // 表单校验
rules: { rules: {
...@@ -217,7 +207,7 @@ export default { ...@@ -217,7 +207,7 @@ export default {
// 调用数据字典接口 // 调用数据字典接口
getDict({ dictType: "person_type" }) getDict({ dictType: "person_type" })
.then((response) => { .then((response) => {
this.personTypeOptions = response.data; this.personTypeOptions = response.records || [];
}) })
.catch((error) => { .catch((error) => {
this.$modal.msgError("获取人员类型数据失败"); this.$modal.msgError("获取人员类型数据失败");
......
...@@ -410,6 +410,16 @@ export default { ...@@ -410,6 +410,16 @@ export default {
}; };
this.bindOpen = true; this.bindOpen = true;
}, },
/** 取消绑定卡对话框 */
cancelBind() {
this.bindOpen = false;
this.bindForm = {
personId: null,
realName: null,
cardId: null,
personType: "staff",
};
},
/** 提交绑定卡表单 */ /** 提交绑定卡表单 */
submitBindForm() { submitBindForm() {
...@@ -429,30 +439,6 @@ export default { ...@@ -429,30 +439,6 @@ export default {
}); });
}, },
/** 取消绑定卡对话框 */
cancelBind() {
this.bindOpen = false;
this.bindForm = {
personId: null,
realName: null,
cardId: null,
personType: "staff",
};
},
/** 查看按钮操作 */
handleView(row) {
this.reset();
listInfo({
pageNum: 1,
pageSize: 1,
personId: row.personId,
}).then((response) => {
this.form = response.data[0];
this.open = true;
this.title = "查看员工信息";
this.dialogType = "view";
});
},
/** 获取人员类型下拉列表数据 */ /** 获取人员类型下拉列表数据 */
getPersonTypeOptions() { getPersonTypeOptions() {
// 调用数据字典接口 // 调用数据字典接口
...@@ -476,16 +462,7 @@ export default { ...@@ -476,16 +462,7 @@ export default {
console.error("获取定位卡号列表失败:", error); console.error("获取定位卡号列表失败:", error);
}); });
}, },
/** 处理照片上传 */
handlePhotoUpload(file) {
// 创建FileReader来读取图片内容
const reader = new FileReader();
reader.onload = (e) => {
// 将图片内容转为DataURL存储到form中
this.form.personPhoto = e.target.result;
};
reader.readAsDataURL(file.raw);
},
/** 查询员工信息列表 */ /** 查询员工信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment