Commit c0c3ef7d authored by Z's avatar Z

Z: Dot: next bar and keywords.

parents 9ba083f2 c966cd7d
...@@ -18,7 +18,14 @@ export function getNoGroupMember(data) { ...@@ -18,7 +18,14 @@ export function getNoGroupMember(data) {
params: data params: data
}) })
} }
// 获取柜组用户
export function getGroupById(data) {
return request({
url: '/admin/auth/addressbook/getUserByShopId',
method: 'get',
params: data
})
}
// 根据部门id获取人员 // 根据部门id获取人员
export function getMemberById(data) { export function getMemberById(data) {
return request({ return request({
...@@ -66,3 +73,21 @@ export function getHistoryList(data) { ...@@ -66,3 +73,21 @@ export function getHistoryList(data) {
data 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 @@ ...@@ -77,7 +77,7 @@
</template> </template>
<script> <script>
import { getGroup } from "@/api/in/mail"; import { getGroup, moveMember } from "@/api/in/mail";
import { log } from "util"; import { log } from "util";
export default { export default {
...@@ -85,6 +85,10 @@ export default { ...@@ -85,6 +85,10 @@ export default {
moveDialog: { moveDialog: {
type: Boolean, type: Boolean,
default: false default: false
},
idList: {
type: Array,
default: () => []
} }
}, },
data() { data() {
...@@ -105,7 +109,15 @@ export default { ...@@ -105,7 +109,15 @@ export default {
this.$emit("handleCancel"); this.$emit("handleCancel");
}, },
handleFinish() { handleFinish() {
let groupId = this.$refs.tree.getCheckedKeys()[0]
let data = {
stallIds: groupId,
userIds: this.idList+','
}
moveMember(data).then(res=> {
this.$emit("handleFinish", false); this.$emit("handleFinish", false);
})
}, },
/* handleChange() {}, /* handleChange() {},
handleClose() { 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