Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
b5fd127a
Commit
b5fd127a
authored
May 19, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加复制
parent
0e964435
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
EmployeesList.vue
src/components/StoreDesign/EmployeesList.vue
+12
-3
No files found.
src/components/StoreDesign/EmployeesList.vue
View file @
b5fd127a
...
...
@@ -11,8 +11,8 @@
<div
class=
"content"
>
<div>
<el-alert
title=
"员工登录入口链接:"
:closable=
'false'
type=
"info"
style=
"margin-bottom:20px;"
>
<span>
http://wx.weibaoge.cn/web/index.php?r=admin/passport/login
&
mall_id=MTI4NQ==
</span>
<el-button
size=
"mini"
style=
"margin-left:20px;"
>
复制链接
</el-button>
<span
id=
"my_Link"
>
http://wx.weibaoge.cn/web/index.php?r=admin/passport/login
&
mall_id=MTI4NQ==
</span>
<el-button
size=
"mini"
style=
"margin-left:20px;"
@
click=
"copyCode()"
>
复制链接
</el-button>
</el-alert>
<div
class=
"searchInput"
>
<el-input
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入用户昵称"
...
...
@@ -228,8 +228,17 @@
let
checkedCount
=
value
.
length
;
this
.
checkAll
=
checkedCount
===
this
.
cities
.
length
;
this
.
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
cities
.
length
;
},
//点击复制
copyCode
(){
var
copycode
=
document
.
getElementById
(
"my_Link"
).
innerHTML
;
var
input
=
document
.
createElement
(
"input"
);
// 直接构建input
input
.
value
=
copycode
;
// 设置内容
document
.
body
.
appendChild
(
input
);
// 添加临时实例
input
.
select
();
// 选择实例内容
document
.
execCommand
(
"Copy"
);
// 执行复制
document
.
body
.
removeChild
(
input
);
// 删除临时实例
}
},
mounted
()
{
//this.getList();
...
...
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