Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yfs_xcx_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
yfs_xcx_server
Commits
bc9c2ec5
Commit
bc9c2ec5
authored
Jul 16, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d4102f4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
user.ts
src/biz/user.ts
+11
-1
main.ts
src/main.ts
+1
-1
No files found.
src/biz/user.ts
View file @
bc9c2ec5
...
...
@@ -13,7 +13,14 @@ const moment = require("moment");
function
checkLeader
(
partyPositionsNames
)
{
for
(
let
i
=
0
;
i
<
partyPositionsNames
.
length
;
i
++
)
{
if
(
partyPositionsNames
[
i
]
>=
PARTYPOSITIONS
.
党总支书记
)
return
true
;
if
(
partyPositionsNames
[
i
]
>=
PARTYPOSITIONS
.
支部书记
)
return
true
;
}
return
false
}
function
checkDWLeader
(
partyPositionsNames
)
{
for
(
let
i
=
0
;
i
<
partyPositionsNames
.
length
;
i
++
)
{
if
(
partyPositionsNames
[
i
]
>=
PARTYPOSITIONS
.
党总支书记
&&
partyPositionsNames
[
i
]
<=
PARTYPOSITIONS
.
党总支纪检委员
)
return
true
;
}
return
false
}
...
...
@@ -35,6 +42,9 @@ export async function login(loginId:string, pwd:string) {
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
党员基础信息表
,
updateLogin
,
{
loginId
});
let
userType
=
checkLeader
(
JSON
.
parse
(
loginInfo
.
partyPositionsName
)
)
?
2
:
1
;
if
(
checkDWLeader
(
JSON
.
parse
(
loginInfo
.
partyPositionsName
))
)
userType
=
3
;
return
{
userid
:
loginInfo
.
pmId
,
token
:
Token
,
...
...
src/main.ts
View file @
bc9c2ec5
...
...
@@ -20,7 +20,7 @@ lanuch();
async
function
test
()
{
await
dataInit
()
//
await dataInit()
// let pwd = md5PwdStr("admin");
// console.log();
// let data = await partyQualityList(1);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment