Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-APP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
首开风险隐患双控平台
BCDH-APP
Commits
00eead50
Commit
00eead50
authored
May 09, 2022
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解润东
20220509 id
parent
df0936b6
Pipeline
#8283
passed with stage
in 5 minutes and 1 second
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/views/danger/addDanger/addDanger.vue
src/views/danger/addDanger/addDanger.vue
+4
-0
src/views/danger/dangerPatrol/implement/index.vue
src/views/danger/dangerPatrol/implement/index.vue
+6
-3
No files found.
src/views/danger/addDanger/addDanger.vue
View file @
00eead50
...
...
@@ -388,6 +388,7 @@ export default {
},
mounted
()
{
if
(
this
.
$route
.
query
.
patrolId
){
this
.
patrolId
=
this
.
$route
.
query
.
patrolId
}
this
.
$bus
.
$on
(
"
sourceAyy
"
,
(
res
)
=>
{
setTimeout
(()
=>
{
this
.
source1
=
res
.
join
(
"
,
"
);
...
...
@@ -483,6 +484,7 @@ export default {
isShowreturnCause
:
false
,
returnCause
:
""
,
// 退回原因
currentDate
:
new
Date
(),
patrolId
:
''
};
},
...
...
@@ -546,6 +548,7 @@ export default {
onSubmit
(
values
)
{
let
formdata
=
new
FormData
();
formdata
.
append
(
"
patrolId
"
,
this
.
patrolId
);
formdata
.
append
(
"
id
"
,
this
.
id
);
formdata
.
append
(
"
proId
"
,
this
.
projectId
);
// formdata.append("projectName", this.projectName);
...
...
@@ -564,6 +567,7 @@ export default {
"
rectificationUser
"
,
values
.
rectificationUser
||
""
);
console
.
log
(
formdata
,
55
)
console
.
log
(
values
.
hdPicture1
,
"
这是要上传的文件
"
);
// 放图片路径 因为formdat存数组会自动变成字符串所以次用这种追加字段的方式
values
.
hdPicture1
.
forEach
((
item
)
=>
{
...
...
src/views/danger/dangerPatrol/implement/index.vue
View file @
00eead50
...
...
@@ -42,7 +42,7 @@
<van-radio-group
v-model=
"item.result"
direction=
"horizontal"
@
change=
"operation(item.result,index)"
@
change=
"operation(item.result,index
,item
)"
>
<van-radio
:name=
"1"
shape=
"square"
:disabled=
"item.result == '2'"
>
合格
</van-radio>
<van-radio
:name=
"2"
shape=
"square"
>
不合格
</van-radio>
...
...
@@ -164,7 +164,7 @@ export default {
this
.
$toast
.
fail
(
"
加载失败,请稍后再试
"
);
});
},
operation
(
val
,
index
)
{
operation
(
val
,
index
,
item
)
{
if
(
val
==
1
){
return
}
...
...
@@ -176,7 +176,10 @@ export default {
})
.
then
(()
=>
{
this
.
$router
.
push
({
name
:
"
add-danger
"
name
:
"
add-danger
"
,
query
:{
patrolId
:
item
.
patrolId
}
});
})
.
catch
(()
=>
{
...
...
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