Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
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
中汽测评-信息安全测评系统
web
Commits
f8ced358
Commit
f8ced358
authored
Mar 19, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: bug(70668、70658)
parent
b39fd189
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
50 deletions
+42
-50
index.vue
src/views/task/edit/index.vue
+4
-3
index.vue
src/views/task/new/index.vue
+38
-47
No files found.
src/views/task/edit/index.vue
View file @
f8ced358
...
...
@@ -1058,10 +1058,11 @@ export default {
}
else
if
(
this
.
currentVehicleSampleInformation
.
length
===
0
)
{
this
.
$message
.
error
(
'请填写整车样品信息'
)
return
}
else
if
(
this
.
currentPartSampleInformation
.
length
===
0
)
{
this
.
$message
.
error
(
'请填写零件样品信息'
)
return
}
// else if (this.currentPartSampleInformation.length === 0) {
// this.$message.error('请填写零部件样品信息')
// return
// }
this
.
$confirm
(
'是否确认进行发布功能'
,
'发布'
,
{
confirmButtonText
:
'确定'
,
concelButtonText
:
'取消'
,
...
...
src/views/task/new/index.vue
View file @
f8ced358
...
...
@@ -1051,10 +1051,11 @@ export default {
}
else
if
(
this
.
currentVehicleSampleInformation
.
length
===
0
)
{
this
.
$message
.
error
(
'请填写整车样品信息'
)
return
}
else
if
(
this
.
currentPartSampleInformation
.
length
===
0
)
{
this
.
$message
.
error
(
'请填写零件样品信息'
)
return
}
// else if (this.currentPartSampleInformation.length === 0) {
// this.$message.error('请填写零部件样品信息')
// return
// }
this
.
$confirm
(
'是否确认进行发布功能'
,
'发布'
,
{
confirmButtonText
:
'确定'
,
concelButtonText
:
'取消'
,
...
...
@@ -1143,53 +1144,43 @@ export default {
this
.
$modal
.
msgError
(
'请填写部分内容再进行暂存'
)
return
}
this
.
$confirm
(
'是否确认进行暂存功能'
,
'暂存'
,
{
confirmButtonText
:
'确定'
,
concelButtonText
:
'取消'
,
type
:
'warning'
,
customClass
:
'box-logout'
,
cancelButtonClass
:
'resetBtn'
,
closeOnClickModal
:
false
,
confirmButtonClass
:
'queryBtn'
}).
then
(()
=>
{
// 窜数据
for
(
const
key
in
this
.
model
)
{
// eslint-disable-next-line no-prototype-builtins
if
(
this
.
taskCreateRequest
.
hasOwnProperty
(
key
))
{
this
.
taskCreateRequest
[
key
]
=
this
.
model
[
key
]
}
// 窜数据
for
(
const
key
in
this
.
model
)
{
// eslint-disable-next-line no-prototype-builtins
if
(
this
.
taskCreateRequest
.
hasOwnProperty
(
key
))
{
this
.
taskCreateRequest
[
key
]
=
this
.
model
[
key
]
}
this
.
taskCreateRequest
.
taskList
=
this
.
model
.
inspectionItemList
this
.
tableData
.
forEach
(
item
=>
{
item
.
deptName
=
item
.
dept
.
deptName
item
.
name
=
item
.
nickName
})
this
.
taskCreateRequest
.
auditors
=
this
.
tableData
this
.
taskCreateRequest
.
sample
=
this
.
currentVehicleSampleInformation
this
.
taskCreateRequest
.
sample
.
forEach
(
item
=>
{
delete
item
.
id
}
this
.
taskCreateRequest
.
taskList
=
this
.
model
.
inspectionItemList
this
.
tableData
.
forEach
(
item
=>
{
item
.
deptName
=
item
.
dept
.
deptName
item
.
name
=
item
.
nickName
})
this
.
taskCreateRequest
.
auditors
=
this
.
tableData
this
.
taskCreateRequest
.
sample
=
this
.
currentVehicleSampleInformation
this
.
taskCreateRequest
.
sample
.
forEach
(
item
=>
{
delete
item
.
id
})
this
.
taskCreateRequest
.
partSample
=
this
.
currentPartSampleInformation
this
.
taskCreateRequest
.
partSample
.
forEach
(
item
=>
{
delete
item
.
id
})
console
.
log
(
'暂存'
,
this
.
taskCreateRequest
)
if
(
this
.
taskTemporaryStorage
!==
null
)
{
// 暂存有数据再次暂存走编辑
this
.
taskCreateRequest
.
id
=
this
.
taskTemporaryStorage
.
id
editTemporaryStorage
(
this
.
taskCreateRequest
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
'保存成功'
)
}
})
this
.
taskCreateRequest
.
partSample
=
this
.
currentPartSampleInformation
this
.
taskCreateRequest
.
partSample
.
forEach
(
item
=>
{
delete
item
.
id
}
else
{
temporaryTask
(
this
.
taskCreateRequest
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
'保存成功'
)
}
})
console
.
log
(
'暂存'
,
this
.
taskCreateRequest
)
if
(
this
.
taskTemporaryStorage
!==
null
)
{
// 暂存有数据再次暂存走编辑
this
.
taskCreateRequest
.
id
=
this
.
taskTemporaryStorage
.
id
editTemporaryStorage
(
this
.
taskCreateRequest
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
'暂存成功'
)
}
})
}
else
{
temporaryTask
(
this
.
taskCreateRequest
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
'暂存成功'
)
}
})
}
})
}
},
// 判断一个对象里的数据是否为空
areAllPropertiesEmpty
(
obj
)
{
...
...
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