Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-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 e572c946
authored
Mar 28, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ui完成
1 parent
d4b5a1e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
4 deletions
src/views/rightsCard/index.vue
src/views/rightsCard/index.vue
View file @
e572c94
...
...
@@ -202,12 +202,24 @@
</div>
</el-drawer>
<GLDialog
class=
"codeDialog"
mode=
"small"
title=
"会员兑换码"
@
onOk=
"downLoadExchangeCode"
okText=
"确认并生成excel文件"
cancelText=
"取消"
:before-close=
"closeCodeDialog"
@
onCancel=
"closeCodeDialog"
:visible
.
sync=
"dialogShow"
>
<div
class=
"codeNumArea"
>
<el-form
ref=
"codeRef"
label-width=
"154px"
:rules=
"codeRules"
:model=
"codeForm"
>
<el-form-item
label=
"生成数量:"
prop=
"num"
class=
"m-t-20"
>
<el-input
type=
"text"
maxLength=
"5"
v-model=
"codeForm.num"
oninput=
"value=value.replace(/^0/g,'').replace(/[^\d]/g,'')"
placeholder=
"请输入生成数量"
></el-input>
</el-form-item>
</el-form>
<!--
<label
for=
""
>
生成数量:
</label>
<el-input
type=
"text"
maxLength=
"5"
oninput=
"value=value.replace(/^0/g,'').replace(/[^\d]/g,'')"
placeholder=
"请输入生成数量"
></el-input>
-->
</div>
</GLDialog>
</div>
</
template
>
...
...
@@ -238,6 +250,26 @@ export default {
return
{
url
:
url
,
dialogShow
:
false
,
codeForm
:
{
id
:
''
,
num
:
''
},
codeRules
:
{
num
:
[
{
required
:
true
,
// validator: (rule, value, callback) => {
// if (!value || (value && !value.trim())) {
// return callback(new Error('请输入作废原因'))
// } else {
// return callback()
// }
// },
message
:
'请输入生成数量'
,
trigger
:
'change'
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
hasTryNum
:
''
,
value
:
false
,
...
...
@@ -476,14 +508,36 @@ export default {
},
methods
:
{
downLoadExchangeCode
(){
this
.
$refs
.
codeRef
.
validate
(
valid
=>
{
if
(
valid
)
{
// var params = this.getParams()
// this.$apis.beforeSale.getExportApi(params).then(res => {
// // window.open(res)
// let tempaa = utils.getExplorer()
// if (tempaa == 'QQ') {
// window.open(res)
// } else {
// let iframe = document.createElement('iframe')
// iframe.style.display = 'none'
// iframe.src = res
// document.body.appendChild(iframe)
// }
// })
}
})
},
closeCodeDialog
(){
console
.
log
(
13
)
this
.
dialogShow
=
!
this
.
dialogShow
this
.
codeForm
.
id
=
''
this
.
codeForm
.
num
=
''
},
openDialog
(
row
){
this
.
c
urRowId
=
row
this
.
c
odeForm
.
id
=
row
.
id
this
.
dialogShow
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
?.
codeRef
?.
clearValidate
()
})
},
handleDetail
(
row
)
{
this
.
$refs
.
detailDetailRef
.
show
(
row
)
...
...
@@ -993,4 +1047,21 @@ export default {
margin-right
:
12px
;
}
}
.codeDialog
{
.el-dialog__body{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.codeNumArea{
display
:
flex
;
align-items
:
center
;
label{
white-space
:
nowrap
;
}
/
deep
/
.el-input
{
width
:
284px
;
}
}
}
}
</
style
>
\ 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