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 @@
:value=
"applyReason"
placeholder=
"请选择"
@
click=
"showReason = true"
:rules=
"[
{ required: true, message: '请选择申请原因' }]"
/>
<van-popup
v-model=
"showReason"
position=
"bottom"
>
<van-picker
...
...
@@ -58,24 +59,23 @@
autosize
placeholder=
"请输入"
/>
</van-form>
<div
class=
"operation-btn"
>
<van-button
block
type=
"info"
plain
native-type=
"button"
style=
"border-radius: 5px; background-color: #f0f1f5; margin-bottom: 10px;"
@
click=
"cancel"
>
取消
</van-button>
<van-button
block
type=
"info"
native-type=
"submit"
style=
"border-radius: 5px;"
@
click=
"save"
>
提交
</van-button>
<div
class=
"operation-btn"
>
<!--
<van-button
block
type=
"info"
plain
native-type=
"button"
style=
"border-radius: 5px; background-color: #f0f1f5; margin-bottom: 10px;"
@
click=
"cancel"
>
取消
</van-button>
-->
<van-button
block
type=
"info"
native-type=
"submit"
style=
"border-radius: 5px;"
>
提交
</van-button>
</div>
</van-form>
</div>
</
template
>
...
...
@@ -96,7 +96,9 @@ export default {
showReason
:
false
,
columnsReason
:
[
"
今日请假
"
,
"
今日外出、离岗
"
,
"
今日调休
"
],
measures
:
""
,
isShow
:
true
isShow
:
true
,
content
:
''
,
applyTime
:
this
.
util
.
timestampToTime
(
new
Date
(),
'
DT2
'
,
true
)
};
},
methods
:
{
...
...
@@ -112,31 +114,35 @@ export default {
this
.
applyReason
=
value
;
},
onSubmit
(
values
)
{
// 放图片路径 因为formdat存数组会自动变成字符串所以次用这种追加字段的方式
console
.
log
(
values
);
// this.$toast.loading({
// message: "提交中...",
// forbidClick: true,
// loadingType: "spinner",
// duration: 0,
// });
// postReAdd(url, formdata)
// .then((res) => {
// this.$toast.clear();
// this.$toast.success({
// message: "提交成功",
// duration: 2000,
// });
// history.go(-1);
// })
// .catch(() => {
// this.$toast.clear();
// this.$toast.fail("提交失败,请稍后再试");
// });
// this.$toast.clear();
console
.
log
(
values
)
this
.
$toast
.
loading
({
message
:
"
提交中...
"
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
duration
:
0
,
});
if
(
this
.
radio
==
'
1
'
){
this
.
content
=
this
.
applyReason
}
else
if
(
this
.
radio
==
'
2
'
){
this
.
content
=
this
.
measures
}
postFun
(
'
patrol/cancel
'
,
{
content
:
this
.
content
,
applyTime
:
this
.
applyTime
})
.
then
((
res
)
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
success
({
message
:
"
提交成功
"
,
duration
:
2000
,
});
history
.
go
(
-
1
);
})
.
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
fail
(
"
提交失败,请稍后再试
"
);
});
},
save
(){
},
save
(){},
cancel
()
{
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