| | |
| | | <template> |
| | | <w-dialog :border="false" closeFree width="600px" @ok="selectOk" :title="title" v-model="visible"> |
| | | <flow-dialog :border="false" closeFree width="600px" @ok="selectOk" :title="title" v-model="visible"> |
| | | <div class="picker"> |
| | | <div class="candidate" v-loading="loading"> |
| | | <div class="role-header" > |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </w-dialog> |
| | | </flow-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getOrgTree, getUserByName} from '@/api/org' |
| | | import {getEntitySet} from "@/api/design"; |
| | | |
| | | export default { |
| | |
| | | } |
| | | return '**' |
| | | }, |
| | | searchUser() { |
| | | let userName = this.search.trim() |
| | | this.searchUsers = [] |
| | | this.loading = true |
| | | getUserByName({userName: userName}).then(rsp => { |
| | | this.loading = false |
| | | this.searchUsers = rsp.data |
| | | this.selectToLeft() |
| | | }).catch(err => { |
| | | this.loading = false |
| | | this.$message.error("接口异常") |
| | | }) |
| | | }, |
| | | |
| | | selectToLeft() { |
| | | let nodes = this.search.trim() === '' ? this.nodes : this.searchUsers; |
| | | nodes.forEach(node => { |