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
db4a75d8
Commit
db4a75d8
authored
Apr 18, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
218abffc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
29 deletions
+30
-29
member.ts
src/biz/member/member.ts
+1
-1
officialWebsite.ts
src/biz/officialWebsite.ts
+0
-0
wenZiZiLiao.ts
src/biz/portal/dangJianGonZuo/wenZiZiLiao.ts
+11
-12
jiGouGuanLi.ts
src/biz/portal/fenZhiJiGou/jiGouGuanLi.ts
+3
-1
register.ts
src/biz/register.ts
+1
-1
enum.ts
src/config/enum.ts
+5
-2
errorEnum.ts
src/config/errorEnum.ts
+3
-1
router.ts
src/routers/officalWebsite/router.ts
+3
-7
router.ts
src/routers/portal/router.ts
+1
-2
router.ts
src/routers/router.ts
+2
-2
No files found.
src/biz/member/member.ts
View file @
db4a75d8
...
...
@@ -78,7 +78,7 @@ export async function unitMemberList({unitName, joinTime, unitMemberType, member
*/
const
UnitBasicConfig
=
[
"userId"
,
"unitName"
,
"uscc"
,
"legalPerson"
,
"legalPersonPhone"
,
"legalPersonMail"
,
"unitMail"
,
"contactPerson"
,
"contactPersonDuties"
,
"contactPersonPhone"
,
"uusinessLicenseUrl"
,
"addres"
,
"sheng"
,
"shi"
,
"qu"
];
"uusinessLicenseUrl"
,
"addres"
,
"sheng"
,
"shi"
,
"qu"
,
"applicationForm"
];
const
UnitConfig
=
[
"unitMemberType"
,
"yuanXiaoBanXueLeiXing"
,
"yuanXiaoZhuGuanBuMen"
,
"yuanXiaoFuZeRen"
,
"yuanXiaoFuZeRenZhiWu"
,
"yuanXiaoFuZeRenDianHua"
,
"yuanXiaoBanGongFuZeRen"
,
"yuanXiaoBanGongFuZeRenDianHua"
,
"ZhuYaoFuZeRenYouXiang"
,
"yuanXiaoKeYanFuZeRen"
,
"yuanXiaoKeYanFuZeRenDianHua"
,
"jiaoXueFuZeRenXinMing"
,
"jiaoXueFuZeRenDianHua"
];
...
...
src/biz/officialWebsite.ts
View file @
db4a75d8
This diff is collapsed.
Click to expand it.
src/biz/portal/dangJianGonZuo/wenZiZiLiao.ts
View file @
db4a75d8
...
...
@@ -21,25 +21,25 @@ import { eccReqParamater } from "../../../util/verificationParam";
* @returns
*/
export
async
function
list
({
userId
,
type
})
{
eccEnumValue
(
"图片视频列表"
,
"类型"
,
VIDEOANDIMGTYPEENUM
,
type
);
let
dbList
=
await
find
(
TABLEENUM
.
文字资料
,
{
type
});
if
(
type
)
eccEnumValue
(
"图片视频列表"
,
"类型"
,
VIDEOANDIMGTYPEENUM
,
type
);
let
dbList
=
await
find
(
TABLEENUM
.
文字资料
,
{});
let
dataList
=
[];
if
(
!
dbList
||
!
dbList
.
length
)
{
let
addList
=
[];
for
(
let
i
=
1
;
i
<=
8
;
i
++
)
{
let
id
=
generateSystemId
(
TABLEENUM
.
文字资料
,
userId
);
addList
.
push
({
id
,
rank
:
i
,
title
:
''
,
type
:
0
,
imgUrl
:
""
,
coverUrl
:
""
});
dataList
.
push
({
id
,
rank
:
i
,
title
:
''
,
type
:
0
,
imgUrl
:
""
,
coverUrl
:
""
});
addList
.
push
({
id
,
rank
:
i
,
title
:
''
,
type
:
1
,
imgUrl
:
""
,
coverUrl
:
""
});
dataList
.
push
({
id
,
rank
:
i
,
title
:
''
,
type
:
1
,
imgUrl
:
""
,
coverUrl
:
""
});
}
await
addManyData
(
TABLEENUM
.
文字资料
,
addList
);
}
dataList
.
sort
((
a
:
any
,
b
:
any
)
=>
{
return
a
.
rank
-
b
.
rank
});
for
(
let
i
=
0
;
i
<
dbList
.
length
;
i
++
)
{
let
info
=
dbList
[
i
];
let
item
:
any
=
extractData
(
info
,
[
"id"
,
"title"
,
"rank"
,
"type"
,
"imgUrl"
,
"coverUrl"
]);
dataList
.
push
(
item
);
if
(
type
&&
item
.
type
==
type
)
dataList
.
push
(
item
);
}
return
{
dataList
};
...
...
@@ -49,17 +49,16 @@ export async function list({userId, type}) {
/**
* 预览
*/
export
async
function
preview
({
userId
,
type
})
{
eccEnumValue
(
"图片视频列表"
,
"类型"
,
VIDEOANDIMGTYPEENUM
,
type
);
let
dbList
=
await
find
(
TABLEENUM
.
文字资料
,
{
type
});
export
async
function
preview
({
userId
})
{
let
dbList
=
await
find
(
TABLEENUM
.
文字资料
,
{});
let
dataList
=
[];
if
(
!
dbList
||
!
dbList
.
length
)
{
let
addList
=
[];
for
(
let
i
=
1
;
i
<=
8
;
i
++
)
{
let
id
=
generateSystemId
(
TABLEENUM
.
文字资料
,
userId
);
addList
.
push
({
id
,
rank
:
i
,
title
:
''
,
type
:
0
,
imgUrl
:
""
,
coverUrl
:
""
});
dataList
.
push
({
id
,
rank
:
i
,
title
:
''
,
type
:
0
,
imgUrl
:
""
,
coverUrl
:
""
});
addList
.
push
({
id
,
rank
:
i
,
title
:
''
,
type
:
1
,
imgUrl
:
""
,
coverUrl
:
""
});
dataList
.
push
({
id
,
rank
:
i
,
title
:
''
,
type
:
1
,
imgUrl
:
""
,
coverUrl
:
""
});
}
await
addManyData
(
TABLEENUM
.
文字资料
,
addList
);
}
...
...
@@ -100,7 +99,7 @@ export async function del({userId, id}) {
let
dataInfo
=
await
findOnce
(
TABLEENUM
.
文字资料
,
{
id
});
if
(
!
dataInfo
||
!
dataInfo
.
id
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
await
updateOneData
(
TABLEENUM
.
文字资料
,
{
id
},
{
title
:
''
,
imgUrl
:
''
,
position
:
0
,
articleTitle
:
''
,
articleUrl
:
''
,
updateTime
:
0
});
await
updateOneData
(
TABLEENUM
.
文字资料
,
{
id
},
{
title
:
""
,
imgUrl
:
""
,
type
:
1
,
coverUrl
:
""
,
updateTime
:
new
Date
().
valueOf
()
});
return
successResult
();
}
...
...
src/biz/portal/fenZhiJiGou/jiGouGuanLi.ts
View file @
db4a75d8
...
...
@@ -4,7 +4,7 @@
*/
import
{
ERRORENUM
}
from
"../../../config/errorEnum"
;
import
{
addOneData
}
from
"../../../data/add"
;
import
{
deleteOneData
}
from
"../../../data/delete"
;
import
{
delete
ManyData
,
delete
OneData
}
from
"../../../data/delete"
;
import
{
TABLEENUM
}
from
"../../../data/models/model"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
}
from
"../../../data/select"
;
import
{
updateOneData
}
from
"../../../data/update"
;
...
...
@@ -56,6 +56,8 @@ export async function del({userId, id}) {
let
dataInfo
=
await
findOnce
(
TABLEENUM
.
机构管理
,
{
id
});
if
(
!
dataInfo
.
id
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
await
deleteOneData
(
TABLEENUM
.
机构管理
,
{
id
});
await
deleteManyData
(
TABLEENUM
.
工作动态
,
{
agencyId
:
id
});
await
deleteManyData
(
TABLEENUM
.
委员名单
,
{
agencyId
:
id
});
return
successResult
();
}
...
...
src/biz/register.ts
View file @
db4a75d8
...
...
@@ -235,7 +235,7 @@ export async function unitMemberRegister3({application, id}) {
remarks
=
"重新提交"
;
}
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
:
id
},
{
userRegisterState
,
application
,
registerFlow
:
REGISTERFLOW
.
完成第三步
});
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
:
id
},
{
userRegisterState
,
application
Form
:
application
,
registerFlow
:
REGISTERFLOW
.
完成第三步
});
/**提交审批历史信息 */
let
addApprovalHistory
=
{
...
...
src/config/enum.ts
View file @
db4a75d8
...
...
@@ -56,7 +56,7 @@ export enum VIDEOANDIMGTYPEENUM {
* 通知公告
*/
export
enum
TONGZHIGONGGAO
{
会议通知
=
1
,
会议通知
=
9
,
活动通知
,
项目公告
}
...
...
@@ -141,7 +141,10 @@ export enum ARTICLEPOSITION {
品牌项目
_hgh
社会服务
,
品牌项目
_hgh
学术研究
,
品牌项目
_hgh
展演竞赛
,
学习园地
_
文字资料
学习园地
_
文字资料
,
通知公告
_hgh
会议通知
,
通知公告
_hgh
活动通知
,
通知公告
_hgh
项目公告
// 党建工作_hgh主题教育
}
...
...
src/config/errorEnum.ts
View file @
db4a75d8
...
...
@@ -50,7 +50,9 @@ export enum ERRORENUM {
手机号不正确
,
短信验证码发送失败
,
该手机号已被注册
,
不存在该手机号的账号
不存在该手机号的账号
,
该动态未开放
,
找不到该机构
}
export
enum
ERRORCODEENUM
{
...
...
src/routers/officalWebsite/router.ts
View file @
db4a75d8
...
...
@@ -129,19 +129,15 @@ export const Config = {
bindBiz
:
officialWebsiteBiz
.
zhuTiJiaoYu
},
{
apiName
:
"学习园地-视频
资料
"
,
apiName
:
"学习园地-视频
图片
"
,
subUrl
:
'/xuexiyuandishipin'
,
param
:[
{
key
:
"type"
,
type
:
"Number"
,
desc
:
"类型"
}
],
param
:[],
bindBiz
:
officialWebsiteBiz
.
xueXiYuanDiShiPin
},
{
apiName
:
"学习园地-文字资料"
,
subUrl
:
'/xuexiyuandiwenzi'
,
param
:[
{
key
:
"type"
,
type
:
"Number"
,
desc
:
"类型"
}
],
param
:[],
bindBiz
:
officialWebsiteBiz
.
xueXiYuanDiWenZi
},
{
...
...
src/routers/portal/router.ts
View file @
db4a75d8
...
...
@@ -920,7 +920,6 @@ export const Config = {
apiName
:
"预览"
,
subUrl
:
'/dangjiangonzuo/wenziziliao/preview'
,
param
:[
{
key
:
"type"
,
type
:
"Number"
,
desc
:
"类型"
}
],
bindBiz
:
wenZiZiLiaoBiz
.
preview
},
...
...
@@ -932,7 +931,7 @@ export const Config = {
{
key
:
"title"
,
type
:
"String"
,
desc
:
"展示标题"
},
{
key
:
"imgUrl"
,
type
:
"String"
,
desc
:
"图片or视频地址"
},
{
key
:
"type"
,
type
:
"Number"
,
desc
:
"类型 参考公用接口videoimgtype"
},
{
key
:
"coverUrl"
,
type
:
"
Number"
,
desc
:
"视频封面地址 当类型为图片时可以不传"
,
notMustHave
:
true
},
{
key
:
"coverUrl"
,
type
:
"
String"
,
desc
:
"视频封面地址 当类型为图片时可以不传"
,
isNull
:
true
},
],
bindBiz
:
wenZiZiLiaoBiz
.
update
},
...
...
src/routers/router.ts
View file @
db4a75d8
...
...
@@ -23,10 +23,10 @@ const Look = false;//true更新文档
export
async
function
setRouter
(
httpServer
){
if
(
Look
)
{
await
getDoc
();
//
await initDoc(portalRouter.FirstName, portalRouter.Config, portalRouter.FirstRouter);//网站编辑
await
initDoc
(
portalRouter
.
FirstName
,
portalRouter
.
Config
,
portalRouter
.
FirstRouter
);
//网站编辑
// await initDoc(publicRouter.FirstName, publicRouter.Config, publicRouter.FirstRouter);//公用组件
// await initDoc(memberRouter.FirstName, memberRouter.Config, memberRouter.FirstRouter);//用户路由
//
await initDoc(officalWebsiteRouter.FirstName, officalWebsiteRouter.Config, officalWebsiteRouter.FirstRouter);//官网路由
await
initDoc
(
officalWebsiteRouter
.
FirstName
,
officalWebsiteRouter
.
Config
,
officalWebsiteRouter
.
FirstRouter
);
//官网路由
// await initDoc(orderRouter.FirstName, orderRouter.Config, orderRouter.FirstRouter);//会费相关
// await initDoc(costRouter.FirstName, costRouter.Config, costRouter.FirstRouter);//支付
}
...
...
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