Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-dj-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 610530d3
authored
Aug 30, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
管理界面修改
1 parent
502000bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
26 deletions
src/views/customer/rightsCardManagement/index.vue
src/views/customer/rightsCardManagement/index.vue
View file @
610530d
...
@@ -10,14 +10,13 @@
...
@@ -10,14 +10,13 @@
</div>
</div>
<el-select
<el-select
v-model=
"searchForm.merchantName"
v-model=
"searchForm.merchantName"
clearab
le
filterable
filterable
remote
remote
reserve-keyword
reserve-keyword
placeholder=
"请输入关联门店"
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:remote-method=
"remoteMethod"
:loading=
"loading"
:loading=
"loading"
clearable
>
>
<el-option
<el-option
v-for=
"(item, index) in options"
v-for=
"(item, index) in options"
...
@@ -109,19 +108,20 @@
...
@@ -109,19 +108,20 @@
label=
"领取链接"
label=
"领取链接"
prop=
""
prop=
""
>
>
<el-input
<div
class=
"lineCtn"
>
disabled=
'true'
<el-input
:value=
'`$
{editForm.url}`'
disabled=
'true'
maxlength="14"
:value=
'`$
{editForm.url}`'
placeholder="请输入链接"
maxlength="14"
clearable
placeholder="请输入链接"
>
clearable
>
</el-input>
<el-button
<el-button
type=
"primary"
@
click=
'closeText(`$
{editForm.url}`)'
@
click=
'closeText(`$
{editForm.url}`)'
slot="append"
type=""
>复制链接
</el-button>
>复制链接
</el-button>
</
el-input
>
</
div
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
...
@@ -593,12 +593,12 @@ export default {
...
@@ -593,12 +593,12 @@ export default {
// },
// },
downloadImg
()
{
downloadImg
()
{
var
img
=
document
.
getElementById
(
'qrCode'
);
// 获取要下载的图片
var
img
=
document
.
getElementById
(
'qrCode'
);
// 获取要下载的图片
var
url
=
img
.
src
;
// 获取图片地址
var
url
=
img
.
src
;
// 获取图片地址
console
.
log
(
url
)
console
.
log
(
url
)
var
a
=
document
.
createElement
(
'a'
);
// 创建一个a节点插入的document
var
a
=
document
.
createElement
(
'a'
);
// 创建一个a节点插入的document
var
event
=
new
MouseEvent
(
'click'
)
// 模拟鼠标click点击事件
var
event
=
new
MouseEvent
(
'click'
)
// 模拟鼠标click点击事件
a
.
download
=
'二维码'
// 设置a节点的download属性值
a
.
download
=
'二维码'
// 设置a节点的download属性值
a
.
href
=
url
;
a
.
href
=
url
;
// window.open(url) // 将图片的src赋值给a节点的href
// window.open(url) // 将图片的src赋值给a节点的href
a
.
dispatchEvent
(
event
)
a
.
dispatchEvent
(
event
)
...
@@ -674,14 +674,14 @@ export default {
...
@@ -674,14 +674,14 @@ export default {
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
this
.
effectiveNum
=
row
.
effectiveNum
this
.
effectiveNum
=
row
.
effectiveNum
}
}
if
(
row
.
tryAble
==
1
)
{
if
(
row
.
tryAble
==
1
)
{
this
.
value
=
true
,
this
.
value
=
true
,
this
.
tryNum
=
row
.
tryNum
this
.
tryNum
=
row
.
tryNum
}
else
{
}
else
{
this
.
value
=
false
,
this
.
value
=
false
,
this
.
tryNum
=
''
this
.
tryNum
=
''
}
}
// 禁用门店框
// 禁用门店框
this
.
disableSelect
=
true
this
.
disableSelect
=
true
// 改变高亮
// 改变高亮
...
@@ -704,12 +704,12 @@ export default {
...
@@ -704,12 +704,12 @@ export default {
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
this
.
effectiveNum
=
row
.
effectiveNum
this
.
effectiveNum
=
row
.
effectiveNum
}
}
if
(
row
.
tryAble
==
1
)
{
if
(
row
.
tryAble
==
1
)
{
this
.
value
=
true
,
this
.
value
=
true
,
this
.
tryNum
=
row
.
tryNum
this
.
tryNum
=
row
.
tryNum
}
else
{
}
else
{
this
.
value
=
false
,
this
.
value
=
false
,
this
.
tryNum
=
''
this
.
tryNum
=
''
}
}
},
},
addCard
(
cd
)
{
addCard
(
cd
)
{
...
@@ -764,10 +764,10 @@ export default {
...
@@ -764,10 +764,10 @@ export default {
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
this
.
ruleForm
.
effectiveNum
=
this
.
effectiveNum
this
.
ruleForm
.
effectiveNum
=
this
.
effectiveNum
}
}
if
(
this
.
value
==
true
)
{
if
(
this
.
value
==
true
)
{
this
.
ruleForm
.
tryNum
=
this
.
tryNum
this
.
ruleForm
.
tryNum
=
this
.
tryNum
this
.
ruleForm
.
tryAble
=
'1'
this
.
ruleForm
.
tryAble
=
'1'
}
else
{
}
else
{
this
.
ruleForm
.
tryNum
=
''
this
.
ruleForm
.
tryNum
=
''
this
.
ruleForm
.
tryAble
=
'0'
this
.
ruleForm
.
tryAble
=
'0'
}
}
...
@@ -959,10 +959,14 @@ export default {
...
@@ -959,10 +959,14 @@ export default {
padding-left
:
20px
;
padding-left
:
20px
;
margin-left
:
100px
;
margin-left
:
100px
;
}
}
.prompt
{
.prompt
{
margin-left
:
20px
;
margin-left
:
20px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#8c939d
;
color
:
#8c939d
;
}
}
.lineCtn
{
display
:
flex
;
flex-direction
:
row
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment