Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d703c9d6
authored
Sep 26, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
库存管理/优势货源:新增需做重复多次点击限制
parent
878e9a9e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
8 deletions
src/directive/backTop.js
src/directive/dbClick.js
src/directive/index.js
src/views/Store/goodslist.vue
src/directive/backTop.js
View file @
d703c9d6
...
@@ -13,4 +13,5 @@ export default {
...
@@ -13,4 +13,5 @@ export default {
},
1
)
},
1
)
},
false
);
},
false
);
},
},
}
}
\ No newline at end of file
src/directive/dbClick.js
0 → 100644
View file @
d703c9d6
export
default
{
bind
(
el
,
binding
)
{
el
.
addEventListener
(
'click'
,
e
=>
{
console
.
log
(
e
)
if
(
!
el
.
disabled
)
{
el
.
disabled
=
true
el
.
style
.
cursor
=
'not-allowed'
setTimeout
(()
=>
{
el
.
style
.
cursor
=
'pointer'
el
.
disabled
=
false
},
3000
)
}
})
},
}
src/directive/index.js
View file @
d703c9d6
import
Vue
from
'vue'
import
BackTopDirective
from
'./backTop'
;
import
BackTopDirective
from
'./backTop'
;
import
dbClick
from
'./dbClick'
;
export
default
{
export
default
{
install
(
Vue
)
{
install
(
Vue
)
{
Vue
.
directive
(
'backTop'
,
BackTopDirective
);
Vue
.
directive
(
'backTop'
,
BackTopDirective
);
}
Vue
.
directive
(
'dbClick'
,
dbClick
);
}
}
}
src/views/Store/goodslist.vue
View file @
d703c9d6
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"addBestgoods.dialogVisible = false"
>
取 消
</el-button>
<el-button
@
click=
"addBestgoods.dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"addBestgoodsSubmit"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"addBestgoodsSubmit"
v-dbClick
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
title=
"修改优势货源"
:close-on-click-modal=
"false"
:visible
.
sync=
"addBestgoods.dialogVisibleUpdate"
width=
"1000px"
>
<el-dialog
title=
"修改优势货源"
:close-on-click-modal=
"false"
:visible
.
sync=
"addBestgoods.dialogVisibleUpdate"
width=
"1000px"
>
...
@@ -436,7 +436,6 @@ export default {
...
@@ -436,7 +436,6 @@ export default {
var
self
=
this
;
var
self
=
this
;
if
(
this
.
addBestgoodsParam
.
length
>
0
)
{
if
(
this
.
addBestgoodsParam
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
addBestgoodsParam
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
addBestgoodsParam
.
length
;
i
++
)
{
if
(
!
this
.
addBestgoodsParam
[
i
].
goods_name
)
{
if
(
!
this
.
addBestgoodsParam
[
i
].
goods_name
)
{
this
.
$message
({
this
.
$message
({
...
...
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