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
59feaa59
Commit
59feaa59
authored
Apr 01, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fb794f3b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
zhuanTiXiLie.ts
src/biz/portal/shouYe/zhuanTiXiLie.ts
+2
-2
No files found.
src/biz/portal/shouYe/zhuanTiXiLie.ts
View file @
59feaa59
...
@@ -8,7 +8,7 @@ import { addManyData } from "../../../data/add";
...
@@ -8,7 +8,7 @@ import { addManyData } from "../../../data/add";
import
{
TABLEENUM
}
from
"../../../data/models/model"
;
import
{
TABLEENUM
}
from
"../../../data/models/model"
;
import
{
find
,
findOnce
}
from
"../../../data/select"
;
import
{
find
,
findOnce
}
from
"../../../data/select"
;
import
{
updateOneData
}
from
"../../../data/update"
;
import
{
updateOneData
}
from
"../../../data/update"
;
import
{
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"
;
import
{
changeEnumValue
}
from
"../../../util/verificationEnum"
;
...
@@ -37,7 +37,7 @@ export async function list({userId}) {
...
@@ -37,7 +37,7 @@ export async function list({userId}) {
let
info
=
dbList
[
i
];
let
info
=
dbList
[
i
];
let
item
:
any
=
extractData
(
info
,
[
"id"
,
"title"
,
"articleUrl"
,
"position"
,
"articleTitle"
,
"imgUrl"
]);
let
item
:
any
=
extractData
(
info
,
[
"id"
,
"title"
,
"articleUrl"
,
"position"
,
"articleTitle"
,
"imgUrl"
]);
if
(
!
item
.
position
)
item
.
position
=
"未选择"
;
if
(
!
item
.
position
)
item
.
position
=
"未选择"
;
else
item
.
position
=
change
EnumValue
(
ARTICLEPOSITION
,
item
.
position
);
else
item
.
position
=
change
ArticleName
([
item
.
position
]
);
let
articleInfo
=
await
findOnce
(
TABLEENUM
.
文章管理
,
{
id
:
item
.
articleTitle
},
[
"id"
,
"title"
]);
let
articleInfo
=
await
findOnce
(
TABLEENUM
.
文章管理
,
{
id
:
item
.
articleTitle
},
[
"id"
,
"title"
]);
item
.
articleTitle
=
articleInfo
&&
articleInfo
.
id
?
articleInfo
.
title
:
''
;
item
.
articleTitle
=
articleInfo
&&
articleInfo
.
id
?
articleInfo
.
title
:
''
;
...
...
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