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
4d32b7ea
Commit
4d32b7ea
authored
Dec 21, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云集优化
parent
385617c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
52 deletions
+43
-52
userList.vue
src/components/class/userList.vue
+6
-3
entrance.vue
src/components/notBuyClass/entrance.vue
+33
-47
index.vue
src/components/yunji/index.vue
+4
-2
No files found.
src/components/class/userList.vue
View file @
4d32b7ea
...
...
@@ -52,7 +52,7 @@
<el-button
type=
"primary"
@
click=
"searchList"
>
搜索
</el-button>
<el-button
type=
"success"
@
click=
"changeClass"
v-if=
"!$store.state.readonly"
>
切换班级
</el-button>
<el-button
type=
"success"
@
click=
"onAddUser(false)"
v-if=
"!$store.state.readonly"
>
+添加用户
</el-button>
<el-button
type=
"primary"
@
click=
"exportTable"
>
导出
</el-button>
<el-button
type=
"primary"
@
click=
"exportTable
(userTable)
"
>
导出
</el-button>
</el-form-item>
</el-form>
<el-table
...
...
@@ -897,8 +897,9 @@
}
);
}
);
}
,
exportTable
(){
let
json
=
{
}
;
exportTable
(
data
){
if
(
data
.
length
>
0
){
let
json
=
{
}
;
if
(
this
.
searchFrom
.
user_id
)
{
json
.
user_id
=
this
.
searchFrom
.
user_id
}
...
...
@@ -913,6 +914,8 @@
json
.
pay_end_at
=
this
.
timeLang
[
1
]
}
exportExcelApi
(
`api/admin/class/user/export/${this.userObj.classId
}
`
,
json
);
}
}
,
}
,
...
...
src/components/notBuyClass/entrance.vue
View file @
4d32b7ea
...
...
@@ -19,7 +19,7 @@
<el-form-item>
<div
class=
"search-btn-block"
>
<el-button
type=
"primary"
plain
@
click=
"getUser(searchFrom)"
>
确定
</el-button>
<el-button
type=
"primary"
plain
@
click=
"
getLink1(
)"
>
复制链接
</el-button>
<el-button
type=
"primary"
plain
@
click=
"
copyUrl(link1
)"
>
复制链接
</el-button>
</div>
</el-form-item>
</el-form>
...
...
@@ -40,7 +40,7 @@
<el-form-item>
<div
class=
"search-btn-block"
>
<el-button
type=
"primary"
plain
@
click=
"getUser(searchFrom2)"
>
确定
</el-button>
<el-button
type=
"primary"
plain
@
click=
"
getLink2(
)"
>
复制链接
</el-button>
<el-button
type=
"primary"
plain
@
click=
"
copyUrl(link2
)"
>
复制链接
</el-button>
</div>
</el-form-item>
</el-form>
...
...
@@ -64,15 +64,17 @@
activeName
:
'first'
,
searchFrom
:{
key
:
'goods_receive_course '
,
desc
:
''
,
desc
:
'
商品
'
,
value
:
''
,
},
searchFrom2
:{
key
:
'periods_receive_course'
,
desc
:
''
,
desc
:
'
期数
'
,
value
:
''
,
},
selectedGoods
:[],
link1
:
""
,
link2
:
""
,
}
},
mounted
(){
...
...
@@ -86,10 +88,8 @@
initPage
(){
getConfigListApi
({
key
:
this
.
searchFrom
.
key
}).
then
(
res
=>
{
if
(
res
.
list
&&
res
.
list
.
length
>
0
){
this
.
searchFrom
.
desc
=
res
.
list
[
0
].
desc
;
this
.
searchFrom
.
value
=
res
.
list
[
0
].
value
;
}
else
{
this
.
searchFrom
.
desc
=
''
;
this
.
searchFrom
.
value
=
''
;
}
});
...
...
@@ -99,23 +99,12 @@
// this.selectedGoods = [parseInt(res.goods_id),parseInt(res.list[0].value)];
// console.log(res.list)
}
else
{
this
.
searchFrom2
.
desc
=
''
;
this
.
searchFrom2
.
value
=
''
;
}
this
.
searchFrom2
.
desc
=
''
;
this
.
searchFrom2
.
value
=
''
;
})
},
getPeriodsList
(){
let
json1
=
{
limit
:
2000
,
page
:
1
}
getPeriodsApi
(
json1
).
then
(
res
=>
{
console
.
log
(
res
.
list
)
this
.
periodsList
=
res
.
list
;
});
this
.
linkContent1
();
this
.
linkContent2
();
},
getGoodsList
(){
let
json
=
{
...
...
@@ -134,12 +123,11 @@
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
console
.
log
(
data
);
let
json
=
{
value
:
data
.
value
,
desc
:
data
.
desc
,
key
:
data
.
key
}
json
.
value
=
data
.
value
;
json
.
key
=
data
.
key
;
json
.
desc
=
"2"
;
putConfigApi
(
json
).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
...
...
@@ -166,7 +154,7 @@
})
},
initPage1
(){
getPeriodsList
(){
let
json
=
{
page
:
1
,
limit
:
100
,
...
...
@@ -179,44 +167,42 @@
this
.
periodsList
=
res
.
list
;
});
},
getLink1
(){
let
json
=
{
copyUrl
(
data
){
let
url
=
data
;
let
oInput
=
document
.
createElement
(
'input'
);
oInput
.
value
=
url
;
document
.
body
.
appendChild
(
oInput
);
oInput
.
select
();
// 选择对象;
document
.
execCommand
(
"Copy"
);
// 执行浏览器复制命令
this
.
$message
({
message
:
'已成功复制到剪切板'
,
type
:
'success'
});
oInput
.
remove
()
},
linkContent1
(){
let
json
=
{
}
json
.
url
=
"https://wechat.changchangenglish.com/api/client/login?goods_id=1%26redirect_url=https://wechat.changchangenglish.com"
getLinkApi
(
json
).
then
(
res
=>
{
this
.
copyUrl
(
res
.
url
)
;
this
.
link1
=
res
.
url
;
});
},
getLink
2
(){
let
json
=
{
linkContent
2
(){
let
json
=
{
}
json
.
url
=
"https://wechat.changchangenglish.com/api/client/login?goods_id=1%26redirect_url=https://wechat.changchangenglish.com"
getLinkApi
(
json
).
then
(
res
=>
{
this
.
copyUrl
(
res
.
url
)
;
this
.
link2
=
res
.
url
;
});
},
copyUrl
(
data
)
{
let
url
=
data
;
let
oInput
=
document
.
createElement
(
"input"
);
oInput
.
value
=
url
;
document
.
body
.
appendChild
(
oInput
);
oInput
.
select
();
// 选择对象
document
.
execCommand
(
"Copy"
);
// 执行浏览器复制命令
this
.
$message
({
message
:
"已成功复制到剪切板"
,
type
:
"success"
});
oInput
.
remove
();
}
}
},
watch
:{
'entranceObj.show'
:
function
(
a
){
if
(
a
){
this
.
initPage1
();
this
.
initPage
()
this
.
getPeriodsList
();
this
.
initPage
()
this
.
getGoodsList
();
}
}
...
...
src/components/yunji/index.vue
View file @
4d32b7ea
...
...
@@ -59,7 +59,7 @@
<img
class=
"avatar"
:src=
"scope.row.avatar"
/>
{{
scope
.
row
.
nickname
}}
<br>
(ID:
{{
scope
.
row
.
user_id
}}
)
</div>
<div
v-else
>
用户暂未
够
课
用户暂未
购
课
</div>
</
template
>
</el-table-column>
...
...
@@ -140,8 +140,10 @@
let
msg
=
''
;
if
(
value
===
40
){
msg
=
'待发货'
}
else
{
}
else
if
(
value
==
50
)
{
msg
=
'已发货'
}
else
{
msg
=
""
}
return
msg
;
},
...
...
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