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
086a79fd
Commit
086a79fd
authored
Apr 01, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
59feaa59
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
21 deletions
+54
-21
officialWebsite.ts
src/biz/officialWebsite.ts
+13
-13
bannerGuanLi.ts
src/biz/portal/neiRongGuanLi/bannerGuanLi.ts
+2
-2
wenZhangGuanLi.ts
src/biz/portal/neiRongGuanLi/wenZhangGuanLi.ts
+2
-2
zhuanTiXiLie.ts
src/biz/portal/shouYe/zhuanTiXiLie.ts
+0
-1
enum.ts
src/config/enum.ts
+37
-3
No files found.
src/biz/officialWebsite.ts
View file @
086a79fd
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
moment
=
require
(
"moment"
);
import
moment
=
require
(
"moment"
);
import
{
ARTICLEPOSITION
,
BANNERPOSITION
,
BRANCHPOSITION
,
CODPARTICIPANT
,
DANGJIANVIDEO
,
DONGTAIZIXUNSUBTYPE
,
IMGEDITFUNENUM
,
MEMBERSTATE
,
MEMBERTYPE
,
PARTYBUILDSUBTYPEENUM
,
PARTYBUILDTYPEENUM
,
STATE
,
TONGZHIGONGGAO
,
XUEHUILINGDAOZHIWEI
}
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
,
findToSort
,
findToSort
ToPage
}
from
"../data/select"
;
import
{
extractData
}
from
"../util/piecemeal"
;
import
{
extractData
}
from
"../util/piecemeal"
;
import
{
changeEnumValue
,
eccEnumValue
}
from
"../util/verificationEnum"
;
import
{
changeEnumValue
,
eccEnumValue
}
from
"../util/verificationEnum"
;
import
{
BizError
}
from
"../util/bizError"
;
import
{
BizError
}
from
"../util/bizError"
;
...
@@ -52,7 +52,7 @@ export async function homePage() {
...
@@ -52,7 +52,7 @@ export async function homePage() {
});
});
/**学会动态 每个动态资讯取最新的可见的两个*/
/**学会动态 每个动态资讯取最新的可见的两个*/
let
wenZhangTypeList
=
[
ARTICLEPOSITION
.
动态资讯
_hgh
学会动态
,
ARTICLEPOSITION
.
动态资讯
_hgh
政策动向
,
ARTICLEPOSITION
.
动态资讯
_hgh
行业风采
];
let
wenZhangTypeList
=
[
ARTICLEPOSITION
.
动态资讯
_hgh
学会动态
,
ARTICLEPOSITION
.
动态资讯
_hgh
政策动向
,
ARTICLEPOSITION
.
动态资讯
_hgh
行业风采
];
let
dongTaiZiXunData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
wenZhangTypeList
},
display
:
STATE
.
是
});
let
dongTaiZiXunData
=
await
find
ToSort
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
wenZhangTypeList
},
display
:
STATE
.
是
},
{
articleTime
:
-
1
});
dongTaiZiXunData
.
sort
((
a
,
b
)
=>
{
return
a
.
articleTime
-
b
.
articleTime
});
dongTaiZiXunData
.
sort
((
a
,
b
)
=>
{
return
a
.
articleTime
-
b
.
articleTime
});
let
dongTaiZiXunDistinctMap
=
{};
let
dongTaiZiXunDistinctMap
=
{};
dongTaiZiXunData
.
forEach
(
info
=>
{
dongTaiZiXunData
.
forEach
(
info
=>
{
...
@@ -145,7 +145,7 @@ export async function xueHuiGaiKuang() {
...
@@ -145,7 +145,7 @@ export async function xueHuiGaiKuang() {
});
});
/**学会规章 */
/**学会规章 */
let
xueHuiGuiZhangData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
学会概况
_hgh
学会规章
]},
display
:
STATE
.
是
}
);
let
xueHuiGuiZhangData
=
await
find
ToSort
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
学会概况
_hgh
学会规章
]},
display
:
STATE
.
是
},{
articleTime
:
-
1
}
);
for
(
let
i
=
0
;
i
<
xueHuiGuiZhangData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
xueHuiGuiZhangData
.
length
;
i
++
)
{
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
xueHuiGuiZhangData
[
i
];
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
xueHuiGuiZhangData
[
i
];
let
articleDate
=
moment
(
articleTime
);
let
articleDate
=
moment
(
articleTime
);
...
@@ -179,7 +179,7 @@ export async function xueHuiGaiKuangXiangQing() {
...
@@ -179,7 +179,7 @@ export async function xueHuiGaiKuangXiangQing() {
*/
*/
export
async
function
guiZhangLieBiaoFenYe
({
pageNumber
})
{
export
async
function
guiZhangLieBiaoFenYe
({
pageNumber
})
{
let
findParam
=
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
学会概况
_hgh
学会规章
]},
display
:
STATE
.
是
};
let
findParam
=
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
学会概况
_hgh
学会规章
]},
display
:
STATE
.
是
};
let
wenZhangGuanLi
=
await
findTo
Page
(
TABLEENUM
.
文章管理
,
findParam
,
[]
,
pageNumber
);
let
wenZhangGuanLi
=
await
findTo
SortToPage
(
TABLEENUM
.
文章管理
,
findParam
,
[],
{
articleTime
:
-
1
}
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
let
dataList
=
[];
let
dataList
=
[];
...
@@ -219,7 +219,7 @@ export async function guiZhangZhiDuXiangQing({id}) {
...
@@ -219,7 +219,7 @@ export async function guiZhangZhiDuXiangQing({id}) {
export
async
function
dongTaiZiXun
({
type
,
pageNumber
})
{
export
async
function
dongTaiZiXun
({
type
,
pageNumber
})
{
eccEnumValue
(
"官网"
,
"行业动态类型"
,
type
,
DONGTAIZIXUNSUBTYPE
);
eccEnumValue
(
"官网"
,
"行业动态类型"
,
type
,
DONGTAIZIXUNSUBTYPE
);
let
findParam
=
{
articleType
:{
"$in"
:[
type
]},
display
:
STATE
.
是
};
let
findParam
=
{
articleType
:{
"$in"
:[
type
]},
display
:
STATE
.
是
};
let
dataBaseList
=
await
findTo
Page
(
TABLEENUM
.
文章管理
,
findParam
,
[]
,
pageNumber
);
let
dataBaseList
=
await
findTo
SortToPage
(
TABLEENUM
.
文章管理
,
findParam
,
[],
{
articleTime
:
-
1
}
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
let
dataList
=
[];
let
dataList
=
[];
...
@@ -288,7 +288,7 @@ export async function pinPaiXiangMu() {
...
@@ -288,7 +288,7 @@ export async function pinPaiXiangMu() {
};
};
/**乡村振兴 */
/**乡村振兴 */
let
locationParam
=
[
ARTICLEPOSITION
.
品牌项目
_hgh
乡村振兴
];
let
locationParam
=
[
ARTICLEPOSITION
.
品牌项目
_hgh
乡村振兴
];
let
xiangCunZhenXingData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
locationParam
},
display
:
STATE
.
是
}
);
let
xiangCunZhenXingData
=
await
find
ToSort
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
locationParam
},
display
:
STATE
.
是
},
{
articleTime
:
-
1
}
);
xiangCunZhenXingData
.
forEach
(
info
=>
{
xiangCunZhenXingData
.
forEach
(
info
=>
{
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
info
;
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
info
;
result
.
xiangCunZhenXing
.
push
({
result
.
xiangCunZhenXing
.
push
({
...
@@ -297,7 +297,7 @@ export async function pinPaiXiangMu() {
...
@@ -297,7 +297,7 @@ export async function pinPaiXiangMu() {
});
});
/**芳华杯 */
/**芳华杯 */
locationParam
=
[
ARTICLEPOSITION
.
品牌项目
_hgh
芳华杯
];
locationParam
=
[
ARTICLEPOSITION
.
品牌项目
_hgh
芳华杯
];
let
fangHuaBeiData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
locationParam
},
display
:
STATE
.
是
}
);
let
fangHuaBeiData
=
await
find
ToSort
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
locationParam
},
display
:
STATE
.
是
},
{
articleTime
:
-
1
}
);
fangHuaBeiData
.
forEach
(
info
=>
{
fangHuaBeiData
.
forEach
(
info
=>
{
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
info
;
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
info
;
result
.
fangHuaBei
.
push
({
result
.
fangHuaBei
.
push
({
...
@@ -306,7 +306,7 @@ export async function pinPaiXiangMu() {
...
@@ -306,7 +306,7 @@ export async function pinPaiXiangMu() {
});
});
/**学术研究 */
/**学术研究 */
locationParam
=
[
ARTICLEPOSITION
.
品牌项目
_hgh
学术研究
];
locationParam
=
[
ARTICLEPOSITION
.
品牌项目
_hgh
学术研究
];
let
xueShuYanJiuData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
locationParam
},
display
:
STATE
.
是
}
);
let
xueShuYanJiuData
=
await
find
ToSort
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
locationParam
},
display
:
STATE
.
是
},
{
articleTime
:
-
1
}
);
xueShuYanJiuData
.
forEach
(
info
=>
{
xueShuYanJiuData
.
forEach
(
info
=>
{
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
info
;
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
info
;
result
.
xueShuYanJiu
.
push
({
result
.
xueShuYanJiu
.
push
({
...
@@ -332,7 +332,7 @@ export async function pinPaiXiangMu() {
...
@@ -332,7 +332,7 @@ export async function pinPaiXiangMu() {
*/
*/
export
async
function
xueshuyanjiu
({
pageNumber
})
{
export
async
function
xueshuyanjiu
({
pageNumber
})
{
let
findParam
=
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
品牌项目
_hgh
学术研究
]},
display
:
STATE
.
是
};
let
findParam
=
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
品牌项目
_hgh
学术研究
]},
display
:
STATE
.
是
};
let
dataBaseList
=
await
findTo
Page
(
TABLEENUM
.
文章管理
,
findParam
,
[]
,
pageNumber
);
let
dataBaseList
=
await
findTo
SortToPage
(
TABLEENUM
.
文章管理
,
findParam
,
[],
{
articleTime
:
-
1
}
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
let
dataList
=
[];
let
dataList
=
[];
...
@@ -354,7 +354,7 @@ export async function xueshuyanjiu({pageNumber}) {
...
@@ -354,7 +354,7 @@ export async function xueshuyanjiu({pageNumber}) {
*/
*/
export
async
function
xiangCunZhenXing
({
pageNumber
})
{
export
async
function
xiangCunZhenXing
({
pageNumber
})
{
let
findParam
=
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
品牌项目
_hgh
乡村振兴
]},
display
:
STATE
.
是
};
let
findParam
=
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
品牌项目
_hgh
乡村振兴
]},
display
:
STATE
.
是
};
let
dataBaseList
=
await
findTo
Page
(
TABLEENUM
.
文章管理
,
findParam
,
[
"id"
,
"title"
,
"desc"
,
"imgUrl"
,
"articleTime"
]
,
pageNumber
);
let
dataBaseList
=
await
findTo
SortToPage
(
TABLEENUM
.
文章管理
,
findParam
,
[
"id"
,
"title"
,
"desc"
,
"imgUrl"
,
"articleTime"
],
{
articleTime
:
-
1
}
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
let
dataList
=
[];
let
dataList
=
[];
...
@@ -383,7 +383,7 @@ export async function zhuTiJiaoYu() {
...
@@ -383,7 +383,7 @@ export async function zhuTiJiaoYu() {
let
itemId
=
info
.
id
;
let
itemId
=
info
.
id
;
dataInfo
[
info
.
name
]
=
[];
dataInfo
[
info
.
name
]
=
[];
let
findParam
=
{
articleType
:{
"$in"
:[
itemId
]},
display
:
STATE
.
是
};
let
findParam
=
{
articleType
:{
"$in"
:[
itemId
]},
display
:
STATE
.
是
};
let
dataBaseList
=
await
find
(
TABLEENUM
.
文章管理
,
findParam
,
[
"id"
,
"title"
,
"desc"
,
"articleTime"
,
"imgUrl"
]);
let
dataBaseList
=
await
find
ToSort
(
TABLEENUM
.
文章管理
,
findParam
,
{
articleTime
:
-
1
}
,
[
"id"
,
"title"
,
"desc"
,
"articleTime"
,
"imgUrl"
]);
dataBaseList
.
forEach
(
item
=>
{
dataBaseList
.
forEach
(
item
=>
{
let
{
id
,
title
,
desc
,
articleTime
,
imgUrl
}
=
item
;
let
{
id
,
title
,
desc
,
articleTime
,
imgUrl
}
=
item
;
let
timeStr
=
moment
(
articleTime
).
format
(
"YYYY-MM-DD"
)
let
timeStr
=
moment
(
articleTime
).
format
(
"YYYY-MM-DD"
)
...
@@ -442,7 +442,7 @@ export async function dangJianZiYuan({first, secondary, three, pageNumber}) {
...
@@ -442,7 +442,7 @@ export async function dangJianZiYuan({first, secondary, three, pageNumber}) {
let
dataCount
=
0
;
let
dataCount
=
0
;
if
(
first
==
PARTYBUILDTYPEENUM
.
主题教育
)
{
if
(
first
==
PARTYBUILDTYPEENUM
.
主题教育
)
{
let
findParam
=
{
articleType
:{
"$in"
:[
secondary
]},
display
:
STATE
.
是
};
let
findParam
=
{
articleType
:{
"$in"
:[
secondary
]},
display
:
STATE
.
是
};
let
dataBaseList
=
await
findTo
Page
(
TABLEENUM
.
文章管理
,
findParam
,
[
"id"
,
"title"
,
"desc"
,
"articleTime"
,
"imgUrl"
]
,
pageNumber
);
let
dataBaseList
=
await
findTo
SortToPage
(
TABLEENUM
.
文章管理
,
findParam
,
[
"id"
,
"title"
,
"desc"
,
"articleTime"
,
"imgUrl"
],
{
articleTime
:
-
1
}
,
pageNumber
);
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
findParam
);
dataBaseList
.
forEach
(
item
=>
{
dataBaseList
.
forEach
(
item
=>
{
let
{
title
,
desc
,
articleTime
,
imgUrl
,
id
}
=
item
;
let
{
title
,
desc
,
articleTime
,
imgUrl
,
id
}
=
item
;
...
@@ -581,7 +581,7 @@ export async function tongZhiGongGaoInfo({id, type}) {
...
@@ -581,7 +581,7 @@ export async function tongZhiGongGaoInfo({id, type}) {
export
async
function
reMenPaiHang
({
type
})
{
export
async
function
reMenPaiHang
({
type
})
{
/**学会动态 每个动态资讯取最新的可见的三个*/
/**学会动态 每个动态资讯取最新的可见的三个*/
let
wenZhangTypeList
=
[
type
];
let
wenZhangTypeList
=
[
type
];
let
dongTaiZiXunData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
wenZhangTypeList
},
display
:
STATE
.
是
});
let
dongTaiZiXunData
=
await
find
ToSort
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:
wenZhangTypeList
},
display
:
STATE
.
是
},
{
articleTime
:
-
1
});
let
dataList
=
[];
let
dataList
=
[];
dongTaiZiXunData
.
forEach
(
info
=>
{
dongTaiZiXunData
.
forEach
(
info
=>
{
let
{
id
,
title
,
articleTime
,
desc
}
=
info
;
let
{
id
,
title
,
articleTime
,
desc
}
=
info
;
...
...
src/biz/portal/neiRongGuanLi/bannerGuanLi.ts
View file @
086a79fd
...
@@ -8,7 +8,7 @@ import { ERRORENUM } from "../../../config/errorEnum";
...
@@ -8,7 +8,7 @@ import { ERRORENUM } from "../../../config/errorEnum";
import
{
addOneData
}
from
"../../../data/add"
;
import
{
addOneData
}
from
"../../../data/add"
;
import
{
deleteOneData
}
from
"../../../data/delete"
;
import
{
deleteOneData
}
from
"../../../data/delete"
;
import
{
TABLEENUM
}
from
"../../../data/models/model"
;
import
{
TABLEENUM
}
from
"../../../data/models/model"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
}
from
"../../../data/select"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
,
findToSortToPage
}
from
"../../../data/select"
;
import
{
updateOneData
}
from
"../../../data/update"
;
import
{
updateOneData
}
from
"../../../data/update"
;
import
{
changeArticleName
,
generateSystemId
,
successResult
}
from
"../../../tools/system"
;
import
{
changeArticleName
,
generateSystemId
,
successResult
}
from
"../../../tools/system"
;
import
{
BizError
}
from
"../../../util/bizError"
;
import
{
BizError
}
from
"../../../util/bizError"
;
...
@@ -64,7 +64,7 @@ export async function list(secureArgs:any) {
...
@@ -64,7 +64,7 @@ export async function list(secureArgs:any) {
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
title
)
selectParam
.
title
=
title
;
if
(
title
)
selectParam
.
title
=
title
;
let
dbList
=
await
findTo
Page
(
TABLEENUM
.
banner
管理
,
selectParam
,
[
"id"
,
"location"
,
"articleTitle"
,
"position"
,
"articleUrl"
,
"display"
,
"desc"
]
,
pageNumber
);
let
dbList
=
await
findTo
SortToPage
(
TABLEENUM
.
banner
管理
,
selectParam
,
[
"id"
,
"location"
,
"articleTitle"
,
"position"
,
"articleUrl"
,
"display"
,
"desc"
],
{
ct
:
-
1
}
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
banner
管理
,
selectParam
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
banner
管理
,
selectParam
);
let
dataList
=
[];
let
dataList
=
[];
...
...
src/biz/portal/neiRongGuanLi/wenZhangGuanLi.ts
View file @
086a79fd
...
@@ -8,7 +8,7 @@ import { ERRORENUM } from "../../../config/errorEnum";
...
@@ -8,7 +8,7 @@ import { ERRORENUM } from "../../../config/errorEnum";
import
{
addOneData
}
from
"../../../data/add"
;
import
{
addOneData
}
from
"../../../data/add"
;
import
{
deleteOneData
}
from
"../../../data/delete"
;
import
{
deleteOneData
}
from
"../../../data/delete"
;
import
{
TABLEENUM
}
from
"../../../data/models/model"
;
import
{
TABLEENUM
}
from
"../../../data/models/model"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
}
from
"../../../data/select"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
,
findToSortToPage
}
from
"../../../data/select"
;
import
{
updateOneData
}
from
"../../../data/update"
;
import
{
updateOneData
}
from
"../../../data/update"
;
import
{
changeArticleName
,
generateSystemId
,
successResult
}
from
"../../../tools/system"
;
import
{
changeArticleName
,
generateSystemId
,
successResult
}
from
"../../../tools/system"
;
import
{
BizError
}
from
"../../../util/bizError"
;
import
{
BizError
}
from
"../../../util/bizError"
;
...
@@ -73,7 +73,7 @@ export async function list(secureArgs:any) {
...
@@ -73,7 +73,7 @@ export async function list(secureArgs:any) {
];
];
}
}
let
dbList
=
await
findTo
Page
(
TABLEENUM
.
文章管理
,
selectParam
,
[
"id"
,
"title"
,
"articleType"
,
"imgUrl"
,
"articleTime"
,
"desc"
,
"display"
]
,
pageNumber
);
let
dbList
=
await
findTo
SortToPage
(
TABLEENUM
.
文章管理
,
selectParam
,
[
"id"
,
"title"
,
"articleType"
,
"imgUrl"
,
"articleTime"
,
"desc"
,
"display"
],
{
articleTime
:
-
1
}
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
selectParam
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
文章管理
,
selectParam
);
let
dataList
=
[];
let
dataList
=
[];
dbList
.
forEach
(
info
=>
{
dbList
.
forEach
(
info
=>
{
...
...
src/biz/portal/shouYe/zhuanTiXiLie.ts
View file @
086a79fd
...
@@ -11,7 +11,6 @@ import { updateOneData } from "../../../data/update";
...
@@ -11,7 +11,6 @@ import { updateOneData } from "../../../data/update";
import
{
changeArticleName
,
generateSystemId
,
successResult
}
from
"../../../tools/system"
;
import
{
changeArticleName
,
generateSystemId
,
successResult
}
from
"../../../tools/system"
;
import
{
BizError
}
from
"../../../util/bizError"
;
import
{
BizError
}
from
"../../../util/bizError"
;
import
{
extractData
}
from
"../../../util/piecemeal"
;
import
{
extractData
}
from
"../../../util/piecemeal"
;
import
{
changeEnumValue
}
from
"../../../util/verificationEnum"
;
/**
/**
* 列表
* 列表
...
...
src/config/enum.ts
View file @
086a79fd
...
@@ -101,7 +101,7 @@ export enum XUEHUILINGDAOZHIWEI {
...
@@ -101,7 +101,7 @@ export enum XUEHUILINGDAOZHIWEI {
会长
=
1
,
会长
=
1
,
副会长
,
副会长
,
秘书长
,
秘书长
,
监事
长
监事
}
}
...
@@ -613,7 +613,41 @@ export enum MYORDERLISTPAYSTATE {
...
@@ -613,7 +613,41 @@ export enum MYORDERLISTPAYSTATE {
缴费失败
缴费失败
}
}
/**
* 文件上传目录
*/
export
enum
FILEDIRECTORY
{
专题系列
=
'zhuantixilie'
,
学会概况
=
'xuehuigaikuang'
,
学会领导
=
'xuehuilingdao'
,
学术研究
=
'xueshuyanjiu'
,
文字资料
=
'wenziziliao'
,
机构管理
logo
=
'jigouguanlilogo'
,
机构动态
=
'jigoudongtai'
,
机构下载专区
=
'jigouxiazaizhuanqu'
,
banner
=
'banner'
,
文章管理
=
'wenzhangguanli'
,
视频管理
=
'shipinguanli'
,
视频管理封面
=
'shipinguanlifengmian'
,
线下付款转账截图
=
'xianxiazhuanzhangjietu'
,
会费发票
=
'huifeifapiao'
}
export
enum
OOSCODE
{
专题系列
=
1
,
学会概况
,
学会领导
,
学术研究
,
文字资料
,
机构管理
logo
,
机构动态
,
机构下载专区
,
banner
,
文章管理
,
视频管理
,
视频管理封面
,
线下付款转账截图
,
会费发票
}
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