| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="数据权限配置"> |
| | | <el-select v-model="addPersonForm.deptId" multiple filterable style="width: 100%" |
| | | placeholder="数据权限配置" @change="deptIdChange"> |
| | | <el-option v-for="item in deptIdList" :key="item.id" :label="item.title" :value="item.id" /> |
| | | </el-select> |
| | | <el-tree-select v-model="addPersonForm.deptId" clearable multiple show-checkbox placeholder="数据权限配置" default-expand-all :data="deptIdList" :props="{ label: 'title' ,id: 'id',children: 'children'}" node-key="id" ref="deptIdTree" style="width: 100%" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | }) |
| | | }, |
| | | getOrganizationList() { |
| | | this.$HTTP.get(`/api/blade-cps/organization/tree?groupType=group_organization&groupCategory=1`).then(res => { |
| | | this.$HTTP.get(`/api/smis/organization/tree?groupType=group_organization&groupCategory=1`).then(res => { |
| | | if (res.code == 200) { |
| | | this.departmentList = res.data; |
| | | this.addPersonForm.organizationId = res.data[0].id; |
| | |
| | | obj.postId = obj.postId.join(","); |
| | | this.$refs.dialogForm.validate(async (valid) => { |
| | | if (valid) { |
| | | this.$HTTP.post("/api/blade-cps/employee/submit", obj).then(res => { |
| | | this.$HTTP.post("/api/smis/employee/submit", obj).then(res => { |
| | | if (res.code == 200) { |
| | | this.$emit('success', this.addPersonForm, this.mode); |
| | | this.visible = false; |
| | |
| | | }, |
| | | //表单注入数据 |
| | | setData(data) { |
| | | this.$HTTP.get(`/api/blade-cps/employee/detail/${data.id}`).then(res => { |
| | | this.$HTTP.get(`/api/smis/employee/detail/${data.id}`).then(res => { |
| | | if (res.code == 200) { |
| | | if (res.data.postId) { |
| | | res.data.postId = res.data.postId.split(","); |