Commit c0c3ef7d authored by Z's avatar Z

Z: Dot: next bar and keywords.

parents 9ba083f2 c966cd7d
......@@ -17,8 +17,15 @@ export function getNoGroupMember(data) {
method: 'get',
params: data
})
}
// 获取柜组用户
export function getGroupById(data) {
return request({
url: '/admin/auth/addressbook/getUserByShopId',
method: 'get',
params: data
})
}
// 根据部门id获取人员
export function getMemberById(data) {
return request({
......@@ -65,4 +72,22 @@ export function getHistoryList(data) {
method: 'put',
data
})
}
// 移动人员
export function moveMember(data) {
return request({
url: 'admin/auth/addressbook/updateStallClerkByUserId',
method: 'put',
params:data
})
}
// 模糊查询
export function search(data) {
return request({
url: '/admin/auth/addressbook/getUserByKeyWords',
method: 'get',
params:data
})
}
\ No newline at end of file
......@@ -77,7 +77,7 @@
</template>
<script>
import { getGroup } from "@/api/in/mail";
import { getGroup, moveMember } from "@/api/in/mail";
import { log } from "util";
export default {
......@@ -85,6 +85,10 @@ export default {
moveDialog: {
type: Boolean,
default: false
},
idList: {
type: Array,
default: () => []
}
},
data() {
......@@ -105,7 +109,15 @@ export default {
this.$emit("handleCancel");
},
handleFinish() {
this.$emit("handleFinish", false);
let groupId = this.$refs.tree.getCheckedKeys()[0]
let data = {
stallIds: groupId,
userIds: this.idList+','
}
moveMember(data).then(res=> {
this.$emit("handleFinish", false);
})
},
/* handleChange() {},
handleClose() {
......
This diff is collapsed.
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