Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
loan-manager-customer
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
zhanhai
loan-manager-customer
Commits
709c7b0a
Commit
709c7b0a
authored
Jul 07, 2021
by
LSL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
2b704a23
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
1 deletion
+115
-1
Controlswitch.vue
src/components/byh/Controlswitch.vue
+103
-0
index.js
src/router/index.js
+7
-0
routes.js
src/router/routes.js
+3
-1
enumOpt.js
src/utils/enumOpt.js
+2
-0
No files found.
src/components/byh/Controlswitch.vue
0 → 100644
View file @
709c7b0a
<
template
>
<div>
<el-row>
<el-col
:span=
"24"
>
<el-link
type=
"danger"
disabled
>
绿色时为开启积累 红色时为关闭积累
</el-link>
</el-col>
<el-col
:span=
"24"
>
<el-switch
v-model=
"value"
active-color=
"#13ce66"
@
change=
"change()"
inactive-color=
"#ff4949"
>
</el-switch>
</el-col>
</el-row>
</div>
</
template
>
<
script
>
import
*
as
moment
from
"moment"
;
export
default
{
name
:
"Controlswitch"
,
data
()
{
return
{
value
:
true
}
},
filters
:
{
dateFilter
:
function
(
row
)
{
var
date
=
row
if
(
typeof
(
date
)
==
undefined
||
typeof
(
date
)
==
null
)
{
return
''
}
return
moment
(
date
).
format
(
"YYYY-MM-DD"
)
},
},
created
()
{
this
.
getRiaseOrPut
();
},
methods
:
{
change
(){
this
.
$confirm
(
'此操作将影响是否积累放款, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
if
(
this
.
value
===
true
){
this
.
$$get
(
"/raise/riaseOrPut?type=ON"
,
null
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
"200"
){
this
.
$message
({
message
:
'设置成功'
,
type
:
'success'
});
this
.
getRiaseOrPut
();
}
});
}
else
{
this
.
$$get
(
"/raise/riaseOrPut?type=OFF"
,
null
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
"200"
){
this
.
$message
({
message
:
'设置成功'
,
type
:
'success'
});
this
.
getRiaseOrPut
();
}
});
}
}).
catch
(()
=>
{
this
.
$message
({
message
:
'已取消'
,
type
:
'warning'
});
this
.
getRiaseOrPut
();
});
},
getRiaseOrPut
(){
this
.
$$get
(
"/raise/getRiaseOrPut"
,
null
).
then
(
res
=>
{
if
(
res
.
data
.
result
===
"OFF"
){
this
.
value
=
false
}
else
{
this
.
value
=
true
}
});
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/router/index.js
View file @
709c7b0a
...
...
@@ -2,6 +2,7 @@ import Vue from 'vue'
import
Router
from
'vue-router'
import
{
ByhService
,
Controlswitch
,
ByhServiceDetail
,
Login
,
Index
,
...
...
@@ -93,6 +94,12 @@ export default new Router({
component
:
ByhService
,
meta
:
{
title
:
'客服管理'
,
filter
:
true
}
},
{
path
:
'/byh/Controlswitch'
,
name
:
'Controlswitch'
,
component
:
Controlswitch
,
meta
:
{
title
:
'亲家管理'
,
filter
:
true
}
},
{
path
:
'/byh/ByhServiceDetail'
,
name
:
'ByhServiceDetail'
,
...
...
src/router/routes.js
View file @
709c7b0a
...
...
@@ -25,6 +25,7 @@ export const ByhPlanRemindDetailNew = resolve => require(['../components/byh/Byh
export
const
ByhLoanBackedDetails
=
resolve
=>
require
([
'../components/byh/ByhLoanBackedDetails.vue'
],
resolve
)
// 临时放款
export
const
ByhLoanSnapList
=
resolve
=>
require
([
'../components/byh/ByhLoanSnapList.vue'
],
resolve
)
export
const
Controlswitch
=
resolve
=>
require
([
'../components/byh/Controlswitch.vue'
],
resolve
)
export
default
{
Login
,
...
...
@@ -48,5 +49,6 @@ export default {
// 通讯录列表
ByhApplyMoney
,
//客户管理
ClientManagerment
ClientManagerment
,
Controlswitch
}
src/utils/enumOpt.js
View file @
709c7b0a
...
...
@@ -658,6 +658,8 @@ const enumUtils = {
{
value
:
'RNY_DAI'
,
label
:
'任你用'
},
{
value
:
'QYD_DAI'
,
label
:
'钱有道'
},
{
value
:
'JP_DAI'
,
label
:
'榕树九品贷'
},
{
value
:
'HY_DAI'
,
label
:
'花鸭'
},
{
value
:
'R360_DAI'
,
label
:
'融360'
},
]
};
...
...
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