Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-admin
Commits
630ddb6f
提交
630ddb6f
authored
2月 08, 2021
作者:
wangyizheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增更新用户使用配置
上级
b587ab07
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
115 行增加
和
9 行删除
+115
-9
user-use-config.js
src/api/user-use-config.js
+2
-2
index.vue
src/pages/v2/cases/index.vue
+1
-1
index.vue
src/pages/v2/reachschemes/index.vue
+4
-2
index.vue
src/pages/v2/useruseconfigs/index.vue
+5
-3
update.vue
src/pages/v2/useruseconfigs/update.vue
+101
-0
routes.js
src/router/routes.js
+2
-1
没有找到文件。
src/api/user-use-config.js
浏览文件 @
630ddb6f
...
@@ -8,7 +8,7 @@ export function createUserUseConfig(data) {
...
@@ -8,7 +8,7 @@ export function createUserUseConfig(data) {
return
httpRequest
.
post
(
'/api/opera/v2/training/user-use-config'
,
data
,
{
headers
})
return
httpRequest
.
post
(
'/api/opera/v2/training/user-use-config'
,
data
,
{
headers
})
}
}
//
添加
用户使用配置
// 用户使用配置
export
function
userUseConfig
(
id
,
params
=
{})
{
export
function
userUseConfig
(
id
,
params
=
{})
{
var
headers
=
{
var
headers
=
{
'Content-Type'
:
'application/json'
'Content-Type'
:
'application/json'
...
@@ -25,7 +25,7 @@ export function deleteUserUseConfig(id, params = {}) {
...
@@ -25,7 +25,7 @@ export function deleteUserUseConfig(id, params = {}) {
}
}
// 更新用户使用配置
// 更新用户使用配置
export
function
upateUserUseConfig
(
id
,
data
=
{})
{
export
function
up
d
ateUserUseConfig
(
id
,
data
=
{})
{
var
headers
=
{
var
headers
=
{
'Content-Type'
:
'application/json'
'Content-Type'
:
'application/json'
}
}
...
...
src/pages/v2/cases/index.vue
浏览文件 @
630ddb6f
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
</el-dialog>
</el-dialog>
</div>
</div>
<div>
<div>
<el-dialog
title=
"基金投资与净值表现
sds
"
:visible
.
sync=
"fundDialogFormVisible"
width=
"90%"
center
>
<el-dialog
title=
"基金投资与净值表现"
:visible
.
sync=
"fundDialogFormVisible"
width=
"90%"
center
>
<el-card
:body-style=
"{ padding: '0px' }"
>
<el-card
:body-style=
"{ padding: '0px' }"
>
<div
style=
"padding: 14px;"
v-for=
"(production, index) in fundDetail"
:key=
"index"
>
<div
style=
"padding: 14px;"
v-for=
"(production, index) in fundDetail"
:key=
"index"
>
<div>
<div>
...
...
src/pages/v2/reachschemes/index.vue
浏览文件 @
630ddb6f
...
@@ -290,6 +290,8 @@ export default {
...
@@ -290,6 +290,8 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
>
.el-drawer
{
overflow
:
auto
;
}
</
style
>
</
style
>
src/pages/v2/useruseconfigs/index.vue
浏览文件 @
630ddb6f
...
@@ -70,7 +70,6 @@
...
@@ -70,7 +70,6 @@
<el-table-column
fixed=
"right"
label=
"操作"
>
<el-table-column
fixed=
"right"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-select
size=
"mini"
:value=
"opera"
@
change=
"operation"
placeholder=
"请选择"
>
<el-select
size=
"mini"
:value=
"opera"
@
change=
"operation"
placeholder=
"请选择"
>
<el-option
:value=
"
{ tag: 'detail', row: scope.row }" label="详情">
</el-option>
<el-option
:value=
"
{ tag: 'edit', row: scope.row }" label="编辑">
</el-option>
<el-option
:value=
"
{ tag: 'edit', row: scope.row }" label="编辑">
</el-option>
<el-option
:value=
"
{ tag: 'delete', row: scope.row }" label="删除">
</el-option>
<el-option
:value=
"
{ tag: 'delete', row: scope.row }" label="删除">
</el-option>
</el-select>
</el-select>
...
@@ -192,6 +191,7 @@ export default {
...
@@ -192,6 +191,7 @@ export default {
case
'detail'
:
case
'detail'
:
break
break
case
'edit'
:
case
'edit'
:
this
.
$router
.
push
({
path
:
'/training/useruseconfigs/update'
,
query
:
{
id
:
opera
.
row
.
id
}
})
break
break
case
'delete'
:
case
'delete'
:
this
.
handleDelete
(
opera
.
row
.
id
)
this
.
handleDelete
(
opera
.
row
.
id
)
...
@@ -292,6 +292,8 @@ export default {
...
@@ -292,6 +292,8 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
>
.el-drawer
{
overflow
:
auto
;
}
</
style
>
</
style
>
src/pages/v2/useruseconfigs/update.vue
0 → 100644
浏览文件 @
630ddb6f
<
template
>
<div>
<el-card
class=
"box-card"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
:to=
"
{ path: '/' }">首页
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/training/useruseconfigs' }">用户使用配置管理
</el-breadcrumb-item>
<el-breadcrumb-item>
编辑用户使用配置
</el-breadcrumb-item>
</el-breadcrumb>
</el-card>
<div>
<el-card
class=
"box-card"
>
<el-form
:model=
"updateForm"
size=
"mini"
>
<el-form-item
label=
"案例"
:label-width=
"formLabelWidth"
>
<el-input
disabled
v-model=
"caseName"
size=
"mini"
></el-input>
</el-form-item>
<el-form-item>
<el-divider
content-position=
"left"
>
配置
</el-divider>
</el-form-item>
<div
v-for=
"(updateOption, updateOptionIndex) in updateForm.options"
:key=
"'updateOption-' + updateOptionIndex"
style=
"margin-top: 2%"
>
<i
style=
"margin-left: 15%"
class=
"el-icon-circle-plus-outline"
@
click=
"addOptions(updateOptionIndex)"
>
添加
</i>
<i
class=
"el-icon-remove-outline"
@
click=
"removeOptions(updateOptionIndex)"
>
删除
</i>
<el-card
class=
"box-card"
style=
"margin-left: 10%; margin-top: 2%"
>
<div
style=
"margin-top: 2%"
>
<span
style=
"margin-left: 2%"
>
<span>
配置项:
</span>
<el-input
size=
"mini"
v-model=
"updateForm.options[updateOptionIndex]"
placeholder=
"配置项"
style=
"width: 50%"
></el-input>
</span>
</div>
</el-card>
</div>
<el-form-item>
<el-divider
content-position=
"left"
></el-divider>
</el-form-item>
<el-form-item>
<div
class=
"demo-drawer__footer"
style=
"margin-left: 60%"
>
<el-button
type=
"primary"
@
click=
"save"
>
保 存
</el-button>
</div>
</el-form-item>
</el-form>
</el-card>
</div>
</div>
</
template
>
<
script
>
import
*
as
userUseConfigApi
from
'@/api/user-use-config'
export
default
{
name
:
'update'
,
data
()
{
return
{
id
:
0
,
caseName
:
''
,
formLabelWidth
:
'100px'
,
updateForm
:
{
options
:
[]
}
}
},
mounted
()
{
this
.
id
=
this
.
$route
.
query
.
id
this
.
getInfo
(
this
.
id
)
},
methods
:
{
save
()
{
userUseConfigApi
.
updateUserUseConfig
(
this
.
id
,
this
.
updateForm
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
res
.
message
)
return
true
}
else
{
this
.
$message
.
error
(
res
.
message
)
}
})
},
addOptions
(
updateOptionIndex
)
{
this
.
updateForm
.
options
.
push
(
''
)
},
removeOptions
(
updateOptionIndex
)
{
if
(
this
.
updateForm
.
options
.
length
>
1
)
{
this
.
updateForm
.
options
.
splice
(
updateOptionIndex
,
1
)
}
},
getInfo
(
id
)
{
userUseConfigApi
.
userUseConfig
(
id
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
var
data
=
res
.
data
this
.
caseName
=
data
.
case
.
name
this
.
updateForm
.
options
=
data
.
options
return
true
}
else
{
this
.
$message
.
error
(
res
.
message
)
return
false
}
})
}
}
}
</
script
>
<
style
>
</
style
>
src/router/routes.js
浏览文件 @
630ddb6f
...
@@ -20,7 +20,8 @@ const userGroup = [
...
@@ -20,7 +20,8 @@ const userGroup = [
{
path
:
'/training/cases'
,
name
:
'cases'
,
component
:
()
=>
import
(
'@/pages/v2/cases/index'
)
},
{
path
:
'/training/cases'
,
name
:
'cases'
,
component
:
()
=>
import
(
'@/pages/v2/cases/index'
)
},
{
path
:
'/training/characteristics'
,
name
:
'characteristics'
,
component
:
()
=>
import
(
'@/pages/v2/characteristics/index'
)
},
{
path
:
'/training/characteristics'
,
name
:
'characteristics'
,
component
:
()
=>
import
(
'@/pages/v2/characteristics/index'
)
},
{
path
:
'/training/reachschemes'
,
name
:
'reach_schemes'
,
component
:
()
=>
import
(
'@/pages/v2/reachschemes/index'
)
},
{
path
:
'/training/reachschemes'
,
name
:
'reach_schemes'
,
component
:
()
=>
import
(
'@/pages/v2/reachschemes/index'
)
},
{
path
:
'/training/useruseconfigs'
,
name
:
'useruseconfigs'
,
component
:
()
=>
import
(
'@/pages/v2/useruseconfigs/index'
)
}
{
path
:
'/training/useruseconfigs'
,
name
:
'useruseconfigs'
,
component
:
()
=>
import
(
'@/pages/v2/useruseconfigs/index'
)
},
{
path
:
'/training/useruseconfigs/update'
,
name
:
'useruseconfigs-update'
,
component
:
()
=>
import
(
'@/pages/v2/useruseconfigs/update'
)
}
]
]
export
default
[
export
default
[
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论