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
38520c69
Commit
38520c69
authored
Sep 17, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of git.singsingenglish.com:new-sing/admin into dev
parents
70f9ea3a
cf4b96f1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
13 deletions
+36
-13
dialog.vue
src/components/giftConfig/dialog.vue
+0
-0
index.vue
src/components/giftConfig/index.vue
+10
-1
index.vue
src/components/giftDeliverRecord/index.vue
+6
-0
dialog.vue
src/components/shop/dialog.vue
+1
-1
giftDeliverDialog.vue
src/components/teacherDetail/giftDeliverDialog.vue
+9
-1
menuList.js
src/util/menuList.js
+10
-10
No files found.
src/components/gitConfig/dialog.vue
→
src/components/gi
f
tConfig/dialog.vue
View file @
38520c69
File moved
src/components/gitConfig/index.vue
→
src/components/gi
f
tConfig/index.vue
View file @
38520c69
...
...
@@ -39,7 +39,13 @@
<el-table-column
prop=
"gift_num"
label=
"赠品总数"
>
</el-table-column>
<el-table-column
prop=
"stock_num"
label=
"库存数量"
></el-table-column>
<el-table-column
prop=
"get_num"
label=
"领取数量"
></el-table-column>
<el-table-column
prop=
"get_num"
label=
"领取数量"
>
<
template
slot-scope=
"scope"
>
<router-link
class=
"get_num"
:to=
"
{name:'giftDeliverRecord', query: { id: scope.row.id}}" >
{{
scope
.
row
.
get_num
}}
</router-link>
</
template
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.status == 1"
>
上架
</div>
...
...
@@ -181,4 +187,7 @@
.container
{
padding
:
20px
;
}
.get_num
{
color
:
#409EFF
;
}
</
style
>
src/components/gitDeliverRecord/index.vue
→
src/components/gi
f
tDeliverRecord/index.vue
View file @
38520c69
...
...
@@ -82,6 +82,7 @@
data
()
{
return
{
searchFrom
:
{
gift_id
:
''
,
gift_name
:
''
,
gift_type
:
''
,
periods_title
:
''
,
...
...
@@ -98,6 +99,7 @@
methods
:
{
getRecordList
()
{
let
json
=
{
gift_id
:
this
.
searchFrom
.
gift_id
,
gift_name
:
this
.
searchFrom
.
gift_name
,
gift_type
:
this
.
searchFrom
.
gift_type
,
periods_title
:
this
.
searchFrom
.
periods_title
,
...
...
@@ -136,6 +138,10 @@
},
},
created
()
{
let
_query
=
this
.
$route
.
query
;
if
(
_query
&&
_query
.
id
)
{
this
.
searchFrom
.
gift_id
=
_query
.
id
;
}
this
.
getRecordList
();
}
}
...
...
src/components/shop/dialog.vue
View file @
38520c69
...
...
@@ -870,7 +870,7 @@
})
},
getRelationGift
()
{
relationGiftApi
().
then
(
res
=>
{
relationGiftApi
(
{
status
:
1
}
).
then
(
res
=>
{
this
.
relation_gift
=
res
.
list
;
});
}
...
...
src/components/teacherDetail/giftDeliverDialog.vue
View file @
38520c69
...
...
@@ -3,7 +3,8 @@
:title=
"dialogObj.title"
center
append-to-body
:visible
.
sync=
"dialogObj.show"
>
:visible
.
sync=
"dialogObj.show"
:close-on-click-modal=
"false"
>
<div
v-if=
"dialogObj.gift_deliver"
class=
"dialog-content"
>
<div
class=
"dialog-text"
>
物流已发货,不能修改赠品信息!
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -59,6 +60,13 @@
relationGiftApi
({
goods_id
:
this
.
dialogObj
.
goods_id
}).
then
(
res
=>
{
this
.
selectedGiftList
=
res
.
list
;
});
relationGiftApi
({
out_trade_no
:
this
.
dialogObj
.
out_trade_no
}).
then
(
res
=>
{
let
giftListArr
=
[];
res
.
list
.
forEach
(
i
=>
{
giftListArr
.
push
(
i
.
id
);
});
this
.
form
.
selectedGiftList
=
giftListArr
;
});
},
sub
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
...
...
src/util/menuList.js
View file @
38520c69
...
...
@@ -540,23 +540,23 @@ export default [
}
},
{
value
:
'赠品配置'
,
routerName
:
'gitConfig'
,
path
:
'/gitConfig'
,
routerName
:
'gi
f
tConfig'
,
path
:
'/gi
f
tConfig'
,
cover
:
'6-5'
,
router
:
{
path
:
'/gitConfig'
,
name
:
'gitConfig'
,
component
:
e
=>
require
([
'@/components/gitConfig'
],
e
),
path
:
'/gi
f
tConfig'
,
name
:
'gi
f
tConfig'
,
component
:
e
=>
require
([
'@/components/gi
f
tConfig'
],
e
),
}
},
{
value
:
'赠品领取记录'
,
routerName
:
'gitDeliverRecord'
,
path
:
'/gitDeliverRecord'
,
routerName
:
'gi
f
tDeliverRecord'
,
path
:
'/gi
f
tDeliverRecord'
,
cover
:
'6-6'
,
router
:
{
path
:
'/gitDeliverRecord'
,
name
:
'gitDeliverRecord'
,
component
:
e
=>
require
([
'@/components/gitDeliverRecord'
],
e
),
path
:
'/gi
f
tDeliverRecord'
,
name
:
'gi
f
tDeliverRecord'
,
component
:
e
=>
require
([
'@/components/gi
f
tDeliverRecord'
],
e
),
}
}
]
...
...
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