Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
9f6067a9
Commit
9f6067a9
authored
Nov 08, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码添加备注
parent
451a53c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
+35
-3
index.vue
src/components/qrcode/index.vue
+29
-2
index.vue
src/components/refund/index.vue
+1
-1
api.js
src/service/api.js
+5
-0
No files found.
src/components/qrcode/index.vue
View file @
9f6067a9
...
...
@@ -80,11 +80,22 @@
</a>
</
template
>
</el-table-column>
<el-table-column
prop=
"desc"
label=
"备注"
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"
15
0"
>
width=
"
20
0"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"editComment(scope.$index, list)"
type=
"text"
size=
"small"
v-if=
"!$store.state.readonly"
>
备注
</el-button>
<el-button
@
click
.
native
.
prevent=
"editRow(scope.$index, list)"
type=
"text"
...
...
@@ -108,7 +119,7 @@
<
script
>
import
dialogDiv
from
'./dialog'
import
{
getQrCodeListApi
,
getQrCodeDetailUrlApi
}
from
"../../service/api"
;
import
{
getQrCodeListApi
,
getQrCodeDetailUrlApi
,
updateQrcodeDescApi
}
from
"../../service/api"
;
import
{
QRCODETYPE
,
QRSTATUS
,
QRTYPE
}
from
"../../util/wordbook"
;
import
page
from
'../framework/page'
export
default
{
...
...
@@ -244,6 +255,22 @@
this
.
newObj
.
show
=
true
;
});
},
editComment
(
index
,
list
)
{
this
.
$prompt
(
''
,
'编辑备注'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
inputType
:
'textarea'
,
inputValue
:
list
[
index
].
desc
?
list
[
index
].
desc
:
''
}).
then
(({
value
})
=>
{
updateQrcodeDescApi
(
list
[
index
].
id
,{
desc
:
value
}).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'编辑备注成功'
});
this
.
initPage
()
});
})
},
detail
(
index
,
list
){
let
_obj
=
list
[
index
]
getQrCodeDetailUrlApi
(
_obj
.
id
).
then
(
res
=>
{
...
...
src/components/refund/index.vue
View file @
9f6067a9
...
...
@@ -159,7 +159,7 @@
},
methods
:
{
editComment
(
id
,
desc
)
{
this
.
$prompt
(
'
编辑备注'
,
'提示
'
,
{
this
.
$prompt
(
'
'
,
'编辑备注
'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
inputType
:
'textarea'
,
...
...
src/service/api.js
View file @
9f6067a9
...
...
@@ -610,3 +610,8 @@ const getCouponListUrl = 'api/admin/order/coupon';
export
const
getCouponListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
getCouponListUrl
,
json
)
};
// 更新二维码备注
const
updateQrcodeDescUrl
=
'api/admin/wechat/qrcode/desc'
;
export
const
updateQrcodeDescApi
=
function
(
id
,
json
)
{
return
Vue
.
prototype
.
$put
(
`
${
updateQrcodeDescUrl
}
/
${
id
}
`
,
json
)
};
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