Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1bcf5600
authored
Aug 26, 2026
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor(dailyNewspaper): 简化日报模块代码并规范格式
优化表单值收集逻辑,移除冗余的类型判断分支 修复if语句的空格格式问题
1 parent
42d0f5e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
pages/common/dailyNewspaper/mixins.js
pages/common/dailyNewspaper/mixins.js
View file @
1bcf560
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
keys
.
map
(
key
=>
{
keys
.
map
(
key
=>
{
let
i
=
data
.
find
(
i
=>
i
.
key
==
key
)
let
i
=
data
.
find
(
i
=>
i
.
key
==
key
)
if
(
data
[
key
])
value
.
push
(
data
[
key
])
if
(
data
[
key
])
value
.
push
(
data
[
key
])
if
(
i
)
value
.
push
(
i
.
type
==
'multipleSelect'
?
i
[
i
.
key
]
:
i
.
value
||
null
)
if
(
i
)
value
.
push
(
i
[
i
.
key
]
||
null
)
})
})
let
show
=
func
(...
value
)
let
show
=
func
(...
value
)
return
show
return
show
...
@@ -178,7 +178,7 @@ export default {
...
@@ -178,7 +178,7 @@ export default {
reportParams
.
requestJson
=
JSON
.
stringify
(
requestJson
)
reportParams
.
requestJson
=
JSON
.
stringify
(
requestJson
)
console
.
log
(
'提交日报'
,
reportParams
)
console
.
log
(
'提交日报'
,
reportParams
)
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
check
)
return
this
.
$emit
(
'checkReportDetail'
,
reportParams
)
if
(
check
)
return
this
.
$emit
(
'checkReportDetail'
,
reportParams
)
const
data
=
await
uni
.
$api
.
dailyTemplateApi
.
saveDraft
(
reportParams
)
const
data
=
await
uni
.
$api
.
dailyTemplateApi
.
saveDraft
(
reportParams
)
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
data
)
{
if
(
data
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment