Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyixcx
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
yuyixcx
Commits
24a48ece
Commit
24a48ece
authored
May 16, 2025
by
Zllgogo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
02f871d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
enterpriseInfo.ts
src/biz/enterpriseInfo.ts
+6
-4
enum.ts
src/config/enum/enum.ts
+1
-1
public.ts
src/routers/public.ts
+1
-2
No files found.
src/biz/enterpriseInfo.ts
View file @
24a48ece
...
...
@@ -655,7 +655,7 @@ export async function deleteEnterpriseServiceInfo(eId, esId) {
export
async
function
enterprisePolicyList
(
state
,
policyType
)
{
let
filesList
=
[
"poId"
,
"title"
,
"source"
,
"createTimeMs"
,
"closeTimeMs"
,
"coverImg"
,
"isPermanent"
,
"policyType"
];
let
selectParam
:
any
=
{};
if
(
policyType
!=
enumConfig
.
POLICYTYPE
.
全部
)
selectParam
.
policyType
=
policyType
;
if
(
policyType
!=
enumConfig
.
CLIENT
POLICYTYPE
.
全部
)
selectParam
.
policyType
=
policyType
;
let
resList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
政策表
,
selectParam
,
filesList
);
let
dataList
=
[];
...
...
@@ -676,7 +676,7 @@ export async function enterprisePolicyList(state, policyType) {
closeTimeMs
:
formattedCreateTime
,
coverImg
:
coverImg
?
JSON
.
parse
(
coverImg
)[
0
]
:
''
,
isPermanent
,
policyType
:
changeEnumValue
(
enumConfig
.
POLICYTYPE
,
policyType
)
policyType
:
changeEnumValue
(
enumConfig
.
CLIENT
POLICYTYPE
,
policyType
)
});
}
}
else
if
(
state
==
2
)
{
...
...
@@ -689,14 +689,16 @@ export async function enterprisePolicyList(state, policyType) {
closeTimeMs
:
formattedCreateTime
,
coverImg
:
coverImg
?
JSON
.
parse
(
coverImg
)[
0
]
:
''
,
isPermanent
,
policyType
:
changeEnumValue
(
enumConfig
.
POLICYTYPE
,
policyType
)
policyType
:
changeEnumValue
(
enumConfig
.
CLIENT
POLICYTYPE
,
policyType
)
}
);
}
}
});
return
{
dataList
};
}
...
...
@@ -721,7 +723,7 @@ export async function enterprisePolicyInfo(poId) {
closeTimeMs
:
formattedCreateTime
,
coverImg
:
JSON
.
parse
(
resInfo
.
coverImg
),
// createTimeMs:moment(closeTimeMs).format("YYYY-MM-DD")
policyType
:
changeEnumValue
(
enumConfig
.
POLICYTYPE
,
policyType
)
policyType
:
changeEnumValue
(
enumConfig
.
CLIENT
POLICYTYPE
,
policyType
)
}
...
...
src/config/enum/enum.ts
View file @
24a48ece
...
...
@@ -65,7 +65,7 @@ export enum EMIGRATIONTYPE {
/**
* 政策类型
*/
export
enum
POLICYTYPE
{
export
enum
CLIENT
POLICYTYPE
{
全部
=
0
,
财政补贴
=
1
,
资质申报
=
2
,
...
...
src/routers/public.ts
View file @
24a48ece
...
...
@@ -20,8 +20,7 @@ const config = {
// "/public/iprtypeclient":enumConfig.IPRTYPECLIENT,// 新增知识产权类型
"/public/iprtypeclientqt"
:
enumConfig
.
IPRTYPECLIENTQT
,
// 新增知识产权类型
"/public/iprtypeclientzl"
:
enumConfig
.
IPRTYPECLIENTZL
,
// 新增知识产权专利
"/public/policytype"
:
enumConfig
.
POLICYTYPE
,
//政策类型
"/public/clientpolicytype"
:
enumConfig
.
CLIENTPOLICYTYPE
,
//政策文件类型-前端用
}
export
function
setRouter
(
httpServer
)
{
...
...
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