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
15e28321
Commit
15e28321
authored
Apr 25, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4c60c19e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
officialWebsite.ts
src/biz/officialWebsite.ts
+1
-1
xueHuiLingDao.ts
src/biz/portal/xueHui/xueHuiLingDao.ts
+2
-2
router.ts
src/routers/portal/router.ts
+2
-2
No files found.
src/biz/officialWebsite.ts
View file @
15e28321
...
...
@@ -162,7 +162,7 @@ export async function xueHuiGaiKuang() {
let
xueHuiLingDaoData
=
await
find
(
TABLEENUM
.
学会领导
,
{}
);
xueHuiLingDaoData
.
sort
((
a
,
b
)
=>
{
return
a
.
rank
-
b
.
rank
});
xueHuiLingDaoData
.
forEach
(
info
=>
{
let
item
:
any
=
extractData
(
info
,
[
"name"
,
"position"
,
"
imgUrl"
,
"
miniImgUrl"
,
"desc"
]);
let
item
:
any
=
extractData
(
info
,
[
"name"
,
"position"
,
"miniImgUrl"
,
"desc"
]);
item
.
position
=
changeEnumValue
(
XUEHUILINGDAOZHIWEI
,
item
.
position
);
result
.
xueHuiLingDao
.
push
(
item
);
});
...
...
src/biz/portal/xueHui/xueHuiLingDao.ts
View file @
15e28321
...
...
@@ -95,7 +95,7 @@ export async function preview({}) {
let
dataList
=
[];
dbList
.
forEach
(
info
=>
{
let
item
:
any
=
extractData
(
info
,
[
"id"
,
"rank"
,
"name"
,
"position"
,
"
imgUrl"
,
"
miniImgUrl"
,
"desc"
]);
let
item
:
any
=
extractData
(
info
,
[
"id"
,
"rank"
,
"name"
,
"position"
,
"miniImgUrl"
,
"desc"
]);
item
.
position
=
changeEnumValue
(
XUEHUILINGDAOZHIWEI
,
item
.
position
);
dataList
.
push
(
item
);
});
...
...
@@ -113,7 +113,7 @@ export async function preview({}) {
export
async
function
info
(
secureArgs
:
any
)
{
let
{
id
}
=
secureArgs
;
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
学会领导
,
{
id
});
let
dataInfo
=
extractData
(
oldInfo
,
[
"id"
,
"rank"
,
"name"
,
"position"
,
"
imgUrl"
,
"
miniImgUrl"
,
"desc"
]);
let
dataInfo
=
extractData
(
oldInfo
,
[
"id"
,
"rank"
,
"name"
,
"position"
,
"miniImgUrl"
,
"desc"
]);
return
{
dataInfo
};
}
src/routers/portal/router.ts
View file @
15e28321
...
...
@@ -73,7 +73,7 @@ export const Config = {
rank
:{
type
:
"Number"
,
desc
:
"排序"
},
name
:{
typs
:
"String"
,
desc
:
"名称"
},
position
:{
type
:
"Number"
,
desc
:
"职位"
},
imgUrl
:{
type
:
"String"
,
desc
:
"大图地址"
},
//
imgUrl:{type:"String", desc:"大图地址"},
miniImgUrl
:{
type
:
"String"
,
desc
:
"小图地址"
},
desc
:{
type
:
"String"
,
desc
:
"说明"
},
},
...
...
@@ -91,7 +91,7 @@ export const Config = {
rank
:{
type
:
"Number"
,
desc
:
"排序"
},
name
:{
typs
:
"String"
,
desc
:
"名称"
},
position
:{
type
:
"Number"
,
desc
:
"职位"
},
imgUrl
:{
type
:
"String"
,
desc
:
"大图地址"
},
//
imgUrl:{type:"String", desc:"大图地址"},
miniImgUrl
:{
type
:
"String"
,
desc
:
"小图地址"
},
desc
:{
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