mapcontroller&userdetail
This commit is contained in:
parent
9c88f3f5fb
commit
773eeaa0dd
Binary file not shown.
After Width: | Height: | Size: 250 B |
Binary file not shown.
After Width: | Height: | Size: 283 B |
Binary file not shown.
After Width: | Height: | Size: 276 B |
|
@ -12,6 +12,14 @@ export default {
|
|||
);
|
||||
}
|
||||
},
|
||||
item: {
|
||||
name: "获取企业员工",
|
||||
req: async function(id){
|
||||
return await http.get(
|
||||
`${config.API_URL}/hrm/employee/${id}/`,
|
||||
);
|
||||
}
|
||||
},
|
||||
create: {
|
||||
name: "新增员工",
|
||||
req: async function(data){
|
||||
|
|
|
@ -341,8 +341,8 @@ export default {
|
|||
list: {
|
||||
url: `${config.API_URL}/system/user_post/`,
|
||||
name: "用户/岗位关系",
|
||||
req: async function(params){
|
||||
return await http.get(this.url, params);
|
||||
req: async function(data){
|
||||
return await http.get(this.url, data);
|
||||
}
|
||||
},
|
||||
create: {
|
||||
|
|
|
@ -14,4 +14,35 @@ export default {
|
|||
},
|
||||
|
||||
},
|
||||
blt:{
|
||||
all:{
|
||||
name: "全部在线标签列表信息",
|
||||
req: async function(data){
|
||||
return await http.post(
|
||||
`${config.API_URL}/third/tdevice/blt/all/`,
|
||||
data
|
||||
);
|
||||
}
|
||||
},
|
||||
countBind:{
|
||||
name: "统计绑定定位卡人/设备数",
|
||||
req: async function(data){
|
||||
return await http.get(
|
||||
`${config.API_URL}/third/tdevice/blt/count_bind/`,
|
||||
data
|
||||
);
|
||||
}
|
||||
},
|
||||
countNow:{
|
||||
name: "统计在厂终端数",
|
||||
req: async function(data){
|
||||
return await http.get(
|
||||
`${config.API_URL}/third/tdevice/blt/count_now/`,
|
||||
data
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -41,9 +41,9 @@
|
|||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="所属部门">
|
||||
<el-cascader
|
||||
v-model="form.dept"
|
||||
v-model="form.belong_dept"
|
||||
:options="group"
|
||||
:props="deptsProps"
|
||||
:props="groupsProps"
|
||||
clearable
|
||||
style="width: 100%;">
|
||||
</el-cascader>
|
||||
|
@ -190,18 +190,12 @@
|
|||
}*/
|
||||
],
|
||||
},
|
||||
addForm: {
|
||||
name: "",
|
||||
sort: "",
|
||||
user: "",
|
||||
post: "",
|
||||
dept: [],
|
||||
},
|
||||
groupsProps: {
|
||||
// value: "id",
|
||||
multiple: false,
|
||||
emitPath: false,
|
||||
checkStrictly: true,
|
||||
expandTrigger: 'hover',
|
||||
},
|
||||
group: [],
|
||||
postOptions: [],
|
||||
|
@ -248,7 +242,6 @@
|
|||
this.$refs.dialogForm.validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSaveing = true;
|
||||
// this.addForm.dept = this.addForm.dept[1];
|
||||
if (this.mode === 'add') {
|
||||
this.$API.hrm.employee.create.req(this.form)
|
||||
.then(res => {
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
mounted() {
|
||||
this.getPosts();
|
||||
this.getGroup();
|
||||
this.getUserPostList();
|
||||
|
||||
},
|
||||
methods: {
|
||||
getPosts(){
|
||||
|
@ -162,6 +162,7 @@
|
|||
setData(data) {
|
||||
debugger;
|
||||
Object.assign(this.form, data);
|
||||
this.getUserPostList();
|
||||
},
|
||||
closeDrawer() {
|
||||
this.visible = false;
|
||||
|
@ -181,7 +182,10 @@
|
|||
/////
|
||||
//用户岗位关系列表
|
||||
getUserPostList(){
|
||||
this.$API.system.userPost.list.req().then(res=>{
|
||||
debugger;
|
||||
console.log(this.form.id);
|
||||
let obj = {user:this.form.id};
|
||||
this.$API.system.userPost.list.req(obj).then(res=>{
|
||||
if(res.err_msg){
|
||||
this.$message.error(res.err_msg)
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue