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
26854243
Commit
26854243
authored
Nov 24, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
来源码管理
parent
7aa69515
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
7 deletions
+61
-7
index.vue
src/components/order/index.vue
+4
-0
index.vue
src/components/sourceManage/index.vue
+57
-7
No files found.
src/components/order/index.vue
View file @
26854243
...
...
@@ -548,6 +548,10 @@
page
},
mounted
(){
console
.
log
(
'this.$route.params'
,
this
.
$route
)
if
(
this
.
$route
.
query
.
code
)
{
this
.
searchFrom
.
invite_type
=
this
.
$route
.
query
.
code
}
this
.
getOrderList
();
this
.
getGoodsOption
();
},
...
...
src/components/sourceManage/index.vue
View file @
26854243
...
...
@@ -12,17 +12,23 @@
</el-table-column>
<el-table-column
prop=
"code"
label=
"渠道码类型"
>
label=
"来源CODE"
>
<template
slot-scope=
"scope"
>
<a
href=
"javascript:void(0);"
@
click=
"goToOrder(scope.row.code)"
>
{{
scope
.
row
.
code
}}
</a>
</
template
>
</el-table-column>
<el-table-column
label=
"
可以
提现"
>
label=
"
是否可
提现"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
is_withdraw
|
isWithdraw
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"no_cash_user"
label=
"被限制的提现用户"
>
label=
"不可提现用户"
>
<
template
slot-scope=
"scope"
>
<a
href=
"javascript:void(0);"
@
click=
"getNoCashUser(scope.row.no_cash_user)"
>
{{
scope
.
row
.
no_cash_user
}}
</a>
</
template
>
</el-table-column>
<el-table-column
prop=
"desc"
...
...
@@ -53,11 +59,11 @@
append-to-body
:visible
.
sync=
"dialog.show"
width=
"50%"
>
<el-form
ref=
"form"
:rules=
"dialog.rules"
:model=
"dialog.form"
label-width=
"1
0
0px"
>
<el-form
ref=
"form"
:rules=
"dialog.rules"
:model=
"dialog.form"
label-width=
"1
2
0px"
>
<el-form-item
label=
"名字"
prop=
"title"
>
<el-input
v-model=
"dialog.form.title"
></el-input>
</el-form-item>
<el-form-item
label=
"
渠道码类型
"
prop=
"code"
>
<el-form-item
label=
"
来源CODE
"
prop=
"code"
>
<el-input
v-model=
"dialog.form.code"
></el-input>
</el-form-item>
<el-form-item
label=
"是否可提现"
>
...
...
@@ -69,7 +75,7 @@
</el-form-item>
<el-row>
<el-col
:span=
"16"
>
<el-form-item
label=
"用户ID"
>
<el-form-item
label=
"
不可提现
用户ID"
>
<el-input
v-model=
"dialog.form.no_cash_user"
></el-input>
</el-form-item>
</el-col>
...
...
@@ -140,6 +146,26 @@
</span>
</el-dialog>
</el-dialog>
<el-dialog
:visible
.
sync=
"noCashUserDialog.show"
append-to-body
>
<el-table
:data=
"noCashUserList"
style=
"width: 100%"
>
<el-table-column
className=
"f-c"
label=
"用户"
>
<
template
slot-scope=
"scope"
>
<img
style=
"margin-right:5px;width: 50px;height: 50px;border-radius: 50px"
:src=
"scope.row.avatar"
>
{{
scope
.
row
.
nickname
}}
(ID:
{{
scope
.
row
.
user_id
}}
)
</
template
>
</el-table-column>
<el-table-column
prop=
"mobile"
label=
"手机号"
>
</el-table-column>
</el-table>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"noCashUserDialog.show = false"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
...
...
@@ -194,6 +220,13 @@
userList
:
[],
searchUserFrom
:
{},
multipleSelection
:
[],
noCashUserDialog
:
{
total
:
0
,
limit
:
1000
,
nowPage
:
1
,
show
:
false
},
noCashUserList
:
[]
}
},
filters
:
{
...
...
@@ -308,6 +341,20 @@
this
.
userDialog
.
total
=
res
.
total
;
})
},
getNoCashUser
(
ids
){
let
json
=
{
page
:
this
.
noCashUserDialog
.
nowPage
,
limit
:
this
.
noCashUserDialog
.
limit
};
if
(
ids
)
{
json
.
user_id
=
ids
}
getUserListApi
(
json
).
then
(
res
=>
{
this
.
noCashUserList
=
res
.
list
;
this
.
noCashUserDialog
.
total
=
res
.
total
;
this
.
noCashUserDialog
.
show
=
true
;
})
},
edit
(
data
){
this
.
dialog
.
show
=
true
;
this
.
dialog
.
form
.
id
=
data
.
id
;
...
...
@@ -396,7 +443,10 @@
}
}
})
}
},
goToOrder
(
code
){
this
.
$router
.
push
(
'/order?code='
+
code
);
},
}
}
</
script
>
...
...
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