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
6daea328
Commit
6daea328
authored
Nov 14, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除不用console商品备注
parent
a730a4af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
42 deletions
+14
-42
index.vue
src/components/order/index.vue
+14
-41
index.vue
src/components/shop/index.vue
+0
-1
No files found.
src/components/order/index.vue
View file @
6daea328
...
@@ -236,27 +236,6 @@
...
@@ -236,27 +236,6 @@
<refund-dialog
:dialogObj=
"refundDialogObj"
@
reflash=
"onAfterRefund"
@
changeShow=
"changeShow"
></refund-dialog>
<refund-dialog
:dialogObj=
"refundDialogObj"
@
reflash=
"onAfterRefund"
@
changeShow=
"changeShow"
></refund-dialog>
<detail-dialog
:dialogObj=
"dialogDetailObj"
@
changeShow=
"changeDetailShow"
/>
<detail-dialog
:dialogObj=
"dialogDetailObj"
@
changeShow=
"changeDetailShow"
/>
<page
:nowPage=
"nowPage"
:total=
"total"
:limit=
"limit"
@
pageChange=
"onPageChange"
@
sizeChange=
"onSizeChange"
/>
<page
:nowPage=
"nowPage"
:total=
"total"
:limit=
"limit"
@
pageChange=
"onPageChange"
@
sizeChange=
"onSizeChange"
/>
<el-dialog
title=
"编辑备注"
center
append-to-body
:visible
.
sync=
"showCommentDialog"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
:show-close=
"false"
width=
"600px"
>
<div>
<el-form
ref=
"commentFrom"
:model=
"commentForm"
:rules=
"rules"
>
<el-form-item
prop=
"value"
>
<el-input
type=
"textarea"
v-model=
"commentForm.value"
></el-input>
</el-form-item>
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"showCommentDialog = false;commentForm={}"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"saveComment"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -306,8 +285,6 @@
...
@@ -306,8 +285,6 @@
orderStatusOption
:
ORDERSTATUSOPTION
,
orderStatusOption
:
ORDERSTATUSOPTION
,
buyTypeOption
:
BUYTYPEOPTION
,
buyTypeOption
:
BUYTYPEOPTION
,
inviteSearchPlaceholder
:
''
,
inviteSearchPlaceholder
:
''
,
showCommentDialog
:
false
,
commentForm
:
{},
rules
:{
rules
:{
value
:[
value
:[
{
required
:
true
,
message
:
'请输入备注'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请输入备注'
,
trigger
:
'change'
}
...
@@ -349,25 +326,21 @@
...
@@ -349,25 +326,21 @@
detail
:
_detail
detail
:
_detail
}
}
},
},
saveComment
(){
let
id
=
this
.
commentForm
.
id
;
let
value
=
this
.
commentForm
.
value
?
this
.
commentForm
.
value
:
''
;
if
(
!
value
)
return
;
editOrderDescApi
(
id
,
'order'
,{
desc
:
value
}).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'编辑备注成功'
});
this
.
showCommentDialog
=
false
this
.
getOrderList
();
});
},
editComment
(
id
,
desc
)
{
editComment
(
id
,
desc
)
{
this
.
showCommentDialog
=
true
;
this
.
$prompt
(
''
,
'编辑备注'
,
{
this
.
commentForm
=
{
confirmButtonText
:
'确定'
,
id
:
id
,
cancelButtonText
:
'取消'
,
value
:
desc
inputType
:
'textarea'
,
};
inputValue
:
desc
||
''
}).
then
(({
value
})
=>
{
editOrderDescApi
(
id
,
'order'
,{
desc
:
value
}).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'编辑备注成功'
});
this
.
getOrderList
();
});
})
},
},
onPageChange
(
val
){
onPageChange
(
val
){
this
.
nowPage
=
val
this
.
nowPage
=
val
...
...
src/components/shop/index.vue
View file @
6daea328
...
@@ -257,7 +257,6 @@
...
@@ -257,7 +257,6 @@
},
},
goodsDesc
(
value
){
goodsDesc
(
value
){
let
_desc
=
JSON
.
parse
(
value
)
let
_desc
=
JSON
.
parse
(
value
)
console
.
log
(
'goodsDesc value'
,
_desc
.
desc
)
return
_desc
.
desc
return
_desc
.
desc
}
}
},
},
...
...
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