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
d66971a4
Commit
d66971a4
authored
May 11, 2022
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解润东
20220511 取消巡查接口联调
parent
706c7a6b
Pipeline
#8312
passed with stage
in 5 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
42 deletions
+48
-42
src/views/danger/dangerPatrol/cancelPatrol/index.vue
src/views/danger/dangerPatrol/cancelPatrol/index.vue
+48
-42
No files found.
src/views/danger/dangerPatrol/cancelPatrol/index.vue
View file @
d66971a4
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
:value=
"applyReason"
:value=
"applyReason"
placeholder=
"请选择"
placeholder=
"请选择"
@
click=
"showReason = true"
@
click=
"showReason = true"
:rules=
"[
{ required: true, message: '请选择申请原因' }]"
/>
/>
<van-popup
v-model=
"showReason"
position=
"bottom"
>
<van-popup
v-model=
"showReason"
position=
"bottom"
>
<van-picker
<van-picker
...
@@ -58,24 +59,23 @@
...
@@ -58,24 +59,23 @@
autosize
autosize
placeholder=
"请输入"
placeholder=
"请输入"
/>
/>
</van-form>
<div
class=
"operation-btn"
>
<div
class=
"operation-btn"
>
<!--
<van-button
<van-button
block
block
type=
"info"
type=
"info"
plain
plain
native-type=
"button"
native-type=
"button"
style=
"border-radius: 5px; background-color: #f0f1f5; margin-bottom: 10px;"
style=
"border-radius: 5px; background-color: #f0f1f5; margin-bottom: 10px;"
@
click=
"cancel"
@
click=
"cancel"
>
取消
</van-button>
-->
>
取消
</van-button>
<van-button
<van-button
block
block
type=
"info"
type=
"info"
native-type=
"submit"
native-type=
"submit"
style=
"border-radius: 5px;"
style=
"border-radius: 5px;"
>
提交
</van-button>
@
click=
"save"
>
提交
</van-button>
</div>
</div>
</van-form>
</div>
</div>
</
template
>
</
template
>
...
@@ -96,7 +96,9 @@ export default {
...
@@ -96,7 +96,9 @@ export default {
showReason
:
false
,
showReason
:
false
,
columnsReason
:
[
"
今日请假
"
,
"
今日外出、离岗
"
,
"
今日调休
"
],
columnsReason
:
[
"
今日请假
"
,
"
今日外出、离岗
"
,
"
今日调休
"
],
measures
:
""
,
measures
:
""
,
isShow
:
true
isShow
:
true
,
content
:
''
,
applyTime
:
this
.
util
.
timestampToTime
(
new
Date
(),
'
DT2
'
,
true
)
};
};
},
},
methods
:
{
methods
:
{
...
@@ -112,31 +114,35 @@ export default {
...
@@ -112,31 +114,35 @@ export default {
this
.
applyReason
=
value
;
this
.
applyReason
=
value
;
},
},
onSubmit
(
values
)
{
onSubmit
(
values
)
{
// 放图片路径 因为formdat存数组会自动变成字符串所以次用这种追加字段的方式
console
.
log
(
values
)
console
.
log
(
values
);
this
.
$toast
.
loading
({
// this.$toast.loading({
message
:
"
提交中...
"
,
// message: "提交中...",
forbidClick
:
true
,
// forbidClick: true,
loadingType
:
"
spinner
"
,
// loadingType: "spinner",
duration
:
0
,
// duration: 0,
});
// });
if
(
this
.
radio
==
'
1
'
){
this
.
content
=
this
.
applyReason
// postReAdd(url, formdata)
}
else
if
(
this
.
radio
==
'
2
'
){
// .then((res) => {
this
.
content
=
this
.
measures
// this.$toast.clear();
}
// this.$toast.success({
postFun
(
'
patrol/cancel
'
,
{
content
:
this
.
content
,
applyTime
:
this
.
applyTime
})
// message: "提交成功",
.
then
((
res
)
=>
{
// duration: 2000,
this
.
$toast
.
clear
();
// });
this
.
$toast
.
success
({
// history.go(-1);
message
:
"
提交成功
"
,
// })
duration
:
2000
,
// .catch(() => {
});
// this.$toast.clear();
history
.
go
(
-
1
);
// this.$toast.fail("提交失败,请稍后再试");
})
// });
.
catch
(()
=>
{
// this.$toast.clear();
this
.
$toast
.
clear
();
this
.
$toast
.
fail
(
"
提交失败,请稍后再试
"
);
});
},
save
(){
},
},
save
(){},
cancel
()
{
cancel
()
{
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
}
}
...
...
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