|
@@ -83,8 +83,8 @@ import { useList } from '@/utils/list';
|
|
|
import { Message } from 'element-ui';
|
|
|
|
|
|
import ResetPassword from '@/components/ResetPassword.vue';
|
|
|
-import ShowOrg from './ShowOrg.vue';
|
|
|
-import UpdateOrg from './UpdateOrg.vue';
|
|
|
+import ShowOrg from './components/ShowOrg.vue';
|
|
|
+import UpdateOrg from './components/UpdateOrg.vue';
|
|
|
import CommonTable from '@/components/common/CommonTable.vue';
|
|
|
|
|
|
// 搜索条件
|
|
@@ -122,11 +122,12 @@ let popedom_list = ref(''); // 权限列表
|
|
|
// 得到机构管理员可分配的权限列表
|
|
|
function getDistributablePopedomList_OrgManager(org_id) {
|
|
|
GetDistributablePopedomList_OrgManager({ org_id }).then(({ popedom_list: list }) => {
|
|
|
- list.forEach((el, i, arr) => {
|
|
|
- el.is_selected = el.is_selected === 'true';
|
|
|
- arr[i] = el;
|
|
|
+ popedom_list.value = list.map(({ is_selected, ...data }) => {
|
|
|
+ return {
|
|
|
+ is_selected: is_selected === 'true',
|
|
|
+ ...data
|
|
|
+ };
|
|
|
});
|
|
|
- popedom_list.value = list;
|
|
|
});
|
|
|
}
|
|
|
|