@@ -163,6 +171,7 @@ const getConfig = async () => {
recordChildren: e.recordChildren,
isRule: isRule(e.id) ? 1 : 0,
corporateMajorityHitRejected: !!cur?.corporateMajorityHitRejected,
+ hitAccess: !!cur?.hitAccess,
mateHitRejected: !!cur?.mateHitRejected,
otherFamilyMembersHitRejected: !!cur?.otherFamilyMembersHitRejected,
parentsHitRejected: !!cur?.parentsHitRejected,
@@ -236,12 +245,22 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => {
}
}
};
+const checkNone = (row: Record
) => {
+ if (row.hitAccess) {
+ row.corporateMajorityHitRejected = false;
+ row.mateHitRejected = false;
+ row.otherFamilyMembersHitRejected = false;
+ row.parentsHitRejected = false;
+ row.personalHitBlacklist = false;
+ }
+};
// 提交
const submit = async () => {
let param = JSON.parse(JSON.stringify(form.value));
param.map((e, i) => {
if (info.value.length) e.id = info.value.find((n) => n.stRecordId === e.stRecordId)?.id;
e.corporateMajorityHitRejected = +e.corporateMajorityHitRejected;
+ e.hitAccess = +e.hitAccess;
e.mateHitRejected = +e.mateHitRejected;
e.otherFamilyMembersHitRejected = +e.otherFamilyMembersHitRejected;
e.parentsHitRejected = +e.parentsHitRejected;
@@ -288,6 +307,7 @@ const addRecord = async (data: Record) => {
e.parentsHitRejected && temp.push(302);
e.otherFamilyMembersHitRejected && temp.push(303);
e.corporateMajorityHitRejected && temp.push(304);
+ e.hitAccess && temp.push(757);
if (isRule(e.stRecordId)) {
const len = e?.recordChildren?.length - 1;
e?.recordChildren.map((n, j) => {
diff --git a/src/views/user/GroupForm.vue b/src/views/user/GroupForm.vue
deleted file mode 100644
index 8a0a0e8..0000000
--- a/src/views/user/GroupForm.vue
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/user/GroupList.vue b/src/views/user/GroupList.vue
deleted file mode 100644
index d80c060..0000000
--- a/src/views/user/GroupList.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{ $t('add') }}
- row.id))">
-
- {{ $t('delete') }}
-
-
- move(selection, type)" />
-
-
-
- (selection = rows)"
- @row-dblclick="(row) => handleEdit(row.id)"
- @sort-change="handleSort">
-
-
-
-
-
-
-
-
- {{ $t('edit') }}
-
-
- {{ $t('delete') }}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/user/RoleForm.vue b/src/views/user/RoleForm.vue
deleted file mode 100644
index 8f891d3..0000000
--- a/src/views/user/RoleForm.vue
+++ /dev/null
@@ -1,66 +0,0 @@
-
- tree?.setCheckedKeys(bean.permission?.split(',') ?? [])"
- @beforeSubmit="
- (values) =>
- (values.permission = [...tree.getHalfCheckedNodes(), ...tree.getCheckedNodes()]
- .filter((item) => item.perms)
- .map((item) => item.perms?.join(','))
- .join(','))
- ">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/user/RoleList.vue b/src/views/user/RoleList.vue
deleted file mode 100644
index 74934a4..0000000
--- a/src/views/user/RoleList.vue
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{ $t('add') }}
- row.id))">
-
- {{ $t('delete') }}
-
-
- move(selection, type)" />
-
-
-
(selection = rows)"
- @row-dblclick="(row) => handleEdit(row.id)"
- @sort-change="handleSort"
- class="mt-3 shadow bg-white"
- >
-
-
-
-
-
-
-
- {{ $t('edit') }}
-
-
- {{ $t('delete') }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/user/UserForm.vue b/src/views/user/UserForm.vue
deleted file mode 100644
index 887b65c..0000000
--- a/src/views/user/UserForm.vue
+++ /dev/null
@@ -1,248 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- (values.orgId = value[value.length - 1])">
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('gender.male') }}
- {{ $t('gender.female') }}
- {{ $t('gender.none') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/user/UserList.vue b/src/views/user/UserList.vue
deleted file mode 100644
index 6946f01..0000000
--- a/src/views/user/UserList.vue
+++ /dev/null
@@ -1,259 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('add') }}
- row.id))">
-
- {{ $t('delete') }}
-
-
-
-
-
- (selection = rows)"
- @row-dblclick="(row) => handleEdit(row.id)"
- @sort-change="handleSort">
-
-
-
-
-
-
-
-
- {{ $t(`gender.${row.gender}`) }}
-
-
- {{ dayjs(row.created).format('YYYY-MM-DD HH:mm:ss') }}
-
-
- {{ dayjs(row.birthday).format('YYYY-MM-DD') }}
-
-
- {{ dayjs(row.loginDate).format('YYYY-MM-DD HH:mm:ss') }}
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
- {{ $t(`user.status.${row.status}`) }}
- {{ $t(`user.status.${row.status}`) }}
-
-
-
-
- {{ $t('edit') }}
-
-
- {{ $t('delete') }}
-
-
-
-
-
-
-
-
-
-
-
-
-