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
6d2da78e
Commit
6d2da78e
authored
Mar 31, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0efbefa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
officialWebsite.ts
src/biz/officialWebsite.ts
+4
-2
model.ts
src/data/models/model.ts
+2
-2
No files found.
src/biz/officialWebsite.ts
View file @
6d2da78e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*/
*/
import
moment
=
require
(
"moment"
);
import
moment
=
require
(
"moment"
);
import
{
ARTICLEPOSITION
,
BANNERPOSITION
,
BRANCHPOSITION
,
CODPARTICIPANT
,
DANGJIANVIDEO
,
DONGTAIZIXUNSUBTYPE
,
IMGEDITFUNENUM
,
MEMBERSTATE
,
MEMBERTYPE
,
PARTYBUILDSUBTYPEENUM
,
PARTYBUILDTYPEENUM
,
STATE
,
TONGZHIGONGGAO
}
from
"../config/enum"
;
import
{
ARTICLEPOSITION
,
BANNERPOSITION
,
BRANCHPOSITION
,
CODPARTICIPANT
,
DANGJIANVIDEO
,
DONGTAIZIXUNSUBTYPE
,
IMGEDITFUNENUM
,
MEMBERSTATE
,
MEMBERTYPE
,
PARTYBUILDSUBTYPEENUM
,
PARTYBUILDTYPEENUM
,
STATE
,
TONGZHIGONGGAO
,
XUEHUILINGDAOZHIWEI
}
from
"../config/enum"
;
import
{
TABLEENUM
}
from
"../data/models/model"
;
import
{
TABLEENUM
}
from
"../data/models/model"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
,
findToSortToPage
}
from
"../data/select"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
,
findToSortToPage
}
from
"../data/select"
;
import
{
extractData
}
from
"../util/piecemeal"
;
import
{
extractData
}
from
"../util/piecemeal"
;
...
@@ -133,7 +133,9 @@ export async function xueHuiGaiKuang() {
...
@@ -133,7 +133,9 @@ export async function xueHuiGaiKuang() {
let
xueHuiLingDaoData
=
await
find
(
TABLEENUM
.
学会领导
,
{}
);
let
xueHuiLingDaoData
=
await
find
(
TABLEENUM
.
学会领导
,
{}
);
xueHuiLingDaoData
.
sort
((
a
,
b
)
=>
{
return
a
.
rank
-
b
.
rank
});
xueHuiLingDaoData
.
sort
((
a
,
b
)
=>
{
return
a
.
rank
-
b
.
rank
});
xueHuiLingDaoData
.
forEach
(
info
=>
{
xueHuiLingDaoData
.
forEach
(
info
=>
{
result
.
xueHuiLingDao
.
push
(
extractData
(
info
,
[
"name"
,
"position"
,
"imgUrl"
,
"miniImgUrl"
,
"desc"
]));
let
item
:
any
=
extractData
(
info
,
[
"name"
,
"position"
,
"imgUrl"
,
"miniImgUrl"
,
"desc"
]);
item
.
position
=
changeEnumValue
(
XUEHUILINGDAOZHIWEI
,
item
.
position
);
result
.
xueHuiLingDao
.
push
();
});
});
/**组织架构 */
/**组织架构 */
...
...
src/data/models/model.ts
View file @
6d2da78e
...
@@ -109,7 +109,7 @@ const ModelArray = [
...
@@ -109,7 +109,7 @@ const ModelArray = [
id
:{
type
:
'String'
,
index
:
true
},
id
:{
type
:
'String'
,
index
:
true
},
rank
:{
type
:
'Number'
},
//排序
rank
:{
type
:
'Number'
},
//排序
name
:{
type
:
'String'
,
default
:
''
},
//名称
name
:{
type
:
'String'
,
default
:
''
},
//名称
position
:{
type
:
'Number'
,
default
:
''
},
//职位
position
:{
type
:
'Number'
,
default
:
''
},
//职位
XUEHUILINGDAOZHIWEI
imgUrl
:{
type
:
'String'
,
default
:
''
},
//大图地址
imgUrl
:{
type
:
'String'
,
default
:
''
},
//大图地址
miniImgUrl
:{
type
:
'String'
,
default
:
''
},
//小图片地址
miniImgUrl
:{
type
:
'String'
,
default
:
''
},
//小图片地址
desc
:{
type
:
'String'
,
default
:
''
},
//描述
desc
:{
type
:
'String'
,
default
:
''
},
//描述
...
@@ -211,7 +211,7 @@ const ModelArray = [
...
@@ -211,7 +211,7 @@ const ModelArray = [
schema
:{
schema
:{
id
:{
type
:
'String'
,
index
:
true
},
id
:{
type
:
'String'
,
index
:
true
},
title
:
'String'
,
//大标题
title
:
'String'
,
//大标题
videoType
:
'Number'
,
//分类
videoType
:
'Number'
,
//分类
videoUrl
:
'String'
,
//视频地址
videoUrl
:
'String'
,
//视频地址
videoTime
:
'Number'
,
//video时间
videoTime
:
'Number'
,
//video时间
desc
:
'String'
,
//说明
desc
:
'String'
,
//说明
...
...
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