Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
binhai-company
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
binhai-jiaoguan
binhai-company
Commits
aa635d01
Commit
aa635d01
authored
Nov 20, 2023
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防抖
parent
54257f08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
main.js
src/main.js
+13
-0
index.vue
src/views/informationReport/personnelAccidents/index.vue
+1
-1
No files found.
src/main.js
View file @
aa635d01
...
...
@@ -62,6 +62,19 @@ Vue.use(BaiduMap, {
// ak: 'kxwhR8fCOkjo0POcbaCAtd26crgre60O' // 这个地方是官方提供的ak密钥
ak
:
'mFcxU7KZm0ZqALwPXCKr7s62Q4aK5IGd'
// 这个地方是官方提供的ak密钥
})
// 提交以后禁用按钮一段时间,防止重复提交
Vue
.
directive
(
'noMoreClick'
,
{
inserted
(
el
,
binding
)
{
el
.
addEventListener
(
'click'
,
e
=>
{
el
.
classList
.
add
(
'is-disabled'
)
el
.
disabled
=
true
setTimeout
(()
=>
{
el
.
disabled
=
false
el
.
classList
.
remove
(
'is-disabled'
)
},
2000
)
// 设置2000毫秒也就是2秒
})
}
})
Vue
.
use
(
directive
)
Vue
.
use
(
plugins
)
Vue
.
use
(
VueMeta
)
...
...
src/views/informationReport/personnelAccidents/index.vue
View file @
aa635d01
...
...
@@ -173,7 +173,7 @@
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
v
-
if
=
"!disabledon"
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
v
-
if
=
"!disabledon"
type
=
"primary"
v
-
no
-
more
-
click
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
...
...
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