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: {
|
create: {
|
||||||
name: "新增员工",
|
name: "新增员工",
|
||||||
req: async function(data){
|
req: async function(data){
|
||||||
|
|
|
@ -341,8 +341,8 @@ export default {
|
||||||
list: {
|
list: {
|
||||||
url: `${config.API_URL}/system/user_post/`,
|
url: `${config.API_URL}/system/user_post/`,
|
||||||
name: "用户/岗位关系",
|
name: "用户/岗位关系",
|
||||||
req: async function(params){
|
req: async function(data){
|
||||||
return await http.get(this.url, params);
|
return await http.get(this.url, data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create: {
|
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-col :md="12" :sm="24">
|
||||||
<el-form-item label="所属部门">
|
<el-form-item label="所属部门">
|
||||||
<el-cascader
|
<el-cascader
|
||||||
v-model="form.dept"
|
v-model="form.belong_dept"
|
||||||
:options="group"
|
:options="group"
|
||||||
:props="deptsProps"
|
:props="groupsProps"
|
||||||
clearable
|
clearable
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
</el-cascader>
|
</el-cascader>
|
||||||
|
@ -190,18 +190,12 @@
|
||||||
}*/
|
}*/
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
addForm: {
|
|
||||||
name: "",
|
|
||||||
sort: "",
|
|
||||||
user: "",
|
|
||||||
post: "",
|
|
||||||
dept: [],
|
|
||||||
},
|
|
||||||
groupsProps: {
|
groupsProps: {
|
||||||
// value: "id",
|
// value: "id",
|
||||||
multiple: false,
|
multiple: false,
|
||||||
emitPath: false,
|
emitPath: false,
|
||||||
checkStrictly: true,
|
checkStrictly: true,
|
||||||
|
expandTrigger: 'hover',
|
||||||
},
|
},
|
||||||
group: [],
|
group: [],
|
||||||
postOptions: [],
|
postOptions: [],
|
||||||
|
@ -248,7 +242,6 @@
|
||||||
this.$refs.dialogForm.validate((valid) => {
|
this.$refs.dialogForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSaveing = true;
|
this.isSaveing = true;
|
||||||
// this.addForm.dept = this.addForm.dept[1];
|
|
||||||
if (this.mode === 'add') {
|
if (this.mode === 'add') {
|
||||||
this.$API.hrm.employee.create.req(this.form)
|
this.$API.hrm.employee.create.req(this.form)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getPosts();
|
this.getPosts();
|
||||||
this.getGroup();
|
this.getGroup();
|
||||||
this.getUserPostList();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPosts(){
|
getPosts(){
|
||||||
|
@ -162,6 +162,7 @@
|
||||||
setData(data) {
|
setData(data) {
|
||||||
debugger;
|
debugger;
|
||||||
Object.assign(this.form, data);
|
Object.assign(this.form, data);
|
||||||
|
this.getUserPostList();
|
||||||
},
|
},
|
||||||
closeDrawer() {
|
closeDrawer() {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
@ -181,7 +182,10 @@
|
||||||
/////
|
/////
|
||||||
//用户岗位关系列表
|
//用户岗位关系列表
|
||||||
getUserPostList(){
|
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){
|
if(res.err_msg){
|
||||||
this.$message.error(res.err_msg)
|
this.$message.error(res.err_msg)
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue