Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
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
wenHuaBu_adminServer
Commits
6883815a
Commit
6883815a
authored
Apr 19, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0c71c93b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
+14
-6
officialWebsite.ts
src/biz/officialWebsite.ts
+1
-1
weiYuanMingDan.ts
src/biz/portal/fenZhiJiGou/weiYuanMingDan.ts
+4
-0
enum.ts
src/config/enum.ts
+4
-1
model.ts
src/data/models/model.ts
+3
-2
router.ts
src/routers/portal/router.ts
+2
-2
No files found.
src/biz/officialWebsite.ts
View file @
6883815a
...
...
@@ -696,7 +696,7 @@ export async function weiYuanMingDanList({name, agencyId, pageNumber, pageSize})
let
selectParam
:
any
=
{
agencyId
};
if
(
name
)
selectParam
.
name
=
{
"$regex"
:
name
};
let
dataList
=
[];
let
dbList
=
await
findToSortToPage
(
TABLEENUM
.
委员名单
,
selectParam
,
[
"name"
,
"branchDuties"
,
"unit"
,
"unitDuties"
],
{
branchDuties
:
1
},
pageNumber
,
pageSize
);
let
dbList
=
await
findToSortToPage
(
TABLEENUM
.
委员名单
,
selectParam
,
[
"name"
,
"branchDuties"
,
"unit"
,
"unitDuties"
],
{
branchDuties
:
-
1
,
ut
:
-
1
},
pageNumber
,
pageSize
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
委员名单
,
selectParam
);
dbList
.
forEach
(
info
=>
{
let
addInfo
:
any
=
extractData
(
info
,
[
"name"
,
"unit"
,
"unitDuties"
]);
...
...
src/biz/portal/fenZhiJiGou/weiYuanMingDan.ts
View file @
6883815a
...
...
@@ -24,6 +24,8 @@ import { changeEnumValue } from "../../../util/verificationEnum";
export
async
function
create
({
userId
,
agencyId
,
form
})
{
form
.
id
=
generateSystemId
(
TABLEENUM
.
委员名单
,
userId
);
form
.
agencyId
=
agencyId
;
form
.
branchDuties
.
sort
();
form
.
ut
=
new
Date
().
valueOf
();
await
addOneData
(
TABLEENUM
.
委员名单
,
form
);
return
successResult
();
...
...
@@ -43,6 +45,8 @@ export async function update({userId, id, form}) {
if
(
form
.
agencyId
)
{
delete
form
.
agencyId
;
}
form
.
branchDuties
.
sort
();
form
.
ut
=
new
Date
().
valueOf
();
await
updateOneData
(
TABLEENUM
.
委员名单
,
{
id
},
form
);
return
successResult
();
}
...
...
src/config/enum.ts
View file @
6883815a
...
...
@@ -289,10 +289,13 @@ export enum CODPARTICIPANT {
* 分会职务
*/
export
enum
BRANCHPOSITION
{
主任
=
1
,
名誉主任
=
1
,
主任
,
常务副主任
,
副主任
,
秘书长
,
副秘书长
,
常务委员
,
委员
}
...
...
src/data/models/model.ts
View file @
6883815a
...
...
@@ -311,10 +311,11 @@ const ModelArray = [
id
:{
type
:
'String'
,
index
:
true
},
agencyId
:{
type
:
'String'
,
index
:
true
},
//机构id
name
:
'String'
,
//姓名
branchDuties
:
'
Number
'
,
//分会职务
branchDuties
:
'
[Number]
'
,
//分会职务
unit
:
'String'
,
//单位
unitDuties
:
'String'
,
//单位职务
ct
:
'Number'
ct
:
'Number'
,
ut
:
'Number'
,
//修改时间
}
},
{
...
...
src/routers/portal/router.ts
View file @
6883815a
...
...
@@ -1041,7 +1041,7 @@ export const Config = {
{
key
:
"form"
,
type
:
"Object"
,
sub
:
{
name
:{
type
:
'String'
,
desc
:
"姓名"
},
branchDuties
:{
type
:
'
Number
'
,
desc
:
"分会职务"
},
branchDuties
:{
type
:
'
[Number]
'
,
desc
:
"分会职务"
},
unit
:{
type
:
'String'
,
desc
:
"单位"
},
unitDuties
:{
type
:
'String'
,
desc
:
"单位职务"
}
},
...
...
@@ -1058,7 +1058,7 @@ export const Config = {
{
key
:
"form"
,
type
:
"Object"
,
sub
:
{
name
:{
type
:
'String'
,
desc
:
"姓名"
},
branchDuties
:{
type
:
'
Number
'
,
desc
:
"分会职务"
},
branchDuties
:{
type
:
'
[Number]
'
,
desc
:
"分会职务"
},
unit
:{
type
:
'String'
,
desc
:
"单位"
},
unitDuties
:{
type
:
'String'
,
desc
:
"单位职务"
}
},
...
...
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