Browse Source

(*)修改脚本

master
ww664853070 1 year ago
parent
commit
8fd0abcf87
  1. 2
      doc/scripts/v3.22.1/1create_table_role.sql
  2. 3
      doc/scripts/v3.22.1/2create_table_resource.sql
  3. 2
      doc/scripts/v3.22.1/3create_table_role_resource.sql
  4. 2
      doc/scripts/v3.22.1/4create_table_user_role.sql
  5. 3
      web/client/src/layout/containers/layout/index.jsx

2
doc/scripts/v3.22.1/1create_table_role.sql

@ -16,8 +16,6 @@ CREATE TABLE "public"."role" (
)
;
ALTER TABLE "public"."role"
OWNER TO "postgres";
COMMENT ON COLUMN "public"."role"."name" IS '角色名称';

3
doc/scripts/v3.22.1/2create_table_resource.sql

@ -20,9 +20,6 @@ CREATE TABLE "public"."resource" (
)
;
ALTER TABLE "public"."resource"
OWNER TO "postgres";
COMMENT ON COLUMN "public"."resource"."name" IS '权限名称';
COMMENT ON COLUMN "public"."resource"."code" IS '权限码';

2
doc/scripts/v3.22.1/3create_table_role_resource.sql

@ -17,8 +17,6 @@ CREATE TABLE "public"."role_resource" (
)
;
ALTER TABLE "public"."role_resource"
OWNER TO "postgres";
COMMENT ON COLUMN "public"."role_resource"."role_id" IS '角色id';

2
doc/scripts/v3.22.1/4create_table_user_role.sql

@ -17,8 +17,6 @@ CREATE TABLE "public"."user_role" (
)
;
ALTER TABLE "public"."user_role"
OWNER TO "postgres";
COMMENT ON COLUMN "public"."user_role"."role_id" IS '角色id';

3
web/client/src/layout/containers/layout/index.jsx

@ -214,13 +214,14 @@ const LayoutContainer = props => {
dispatch(login({ token })).then(res => {
if (res.type == 'LOGIN_SUCCESS') {
const data = res.payload?.user || {}
history.push('/humanAffairs/archivesCenter/personnelArchives/personnelFiles')
localStorage.setItem('poms_open_sider', JSON.stringify(["archivesCenter"]))
localStorage.setItem('poms_selected_sider', JSON.stringify(["humanAffairs"]))
dispatch(actions.layout.initWebSocket({ ioUrl: apiRoot, token: data.token, hrUserId: data.hrUserInfo && hrUserInfo.id }))
dispatch(actions.humanAffairs.getUserResource(res.payload.user.id)).then(res => {
if (res.success) {
sessionStorage.setItem('userResource', JSON.stringify(res.payload.data))
history.push('/humanAffairs/archivesCenter/personnelArchives/personnelFiles')
window.location.reload()
}
})
} else {

Loading…
Cancel
Save