Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
贷
贷超管理后台
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
贷超管理后台
Commits
cd33ef55
Commit
cd33ef55
authored
Dec 15, 2021
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
a5d007b0
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
164 additions
and
53 deletions
+164
-53
theme.config.js
src/config/default/theme.config.js
+1
-1
main.js
src/main.js
+6
-0
index.js
src/minix/index.js
+7
-0
api.js
src/server/api.js
+16
-0
list.vue
src/views/merchant/list.vue
+5
-2
list.vue
src/views/notice/list.vue
+26
-14
new.vue
src/views/notice/new.vue
+28
-4
edit.vue
src/views/prod/edit.vue
+2
-0
list.vue
src/views/prod/list.vue
+67
-31
new.vue
src/views/prod/new.vue
+6
-1
No files found.
src/config/default/theme.config.js
View file @
cd33ef55
...
@@ -5,7 +5,7 @@ const theme = {
...
@@ -5,7 +5,7 @@ const theme = {
//布局种类 horizontal vertical gallery comprehensive common
//布局种类 horizontal vertical gallery comprehensive common
layout
:
'vertical'
,
layout
:
'vertical'
,
//主题名称 default ocean green glory white
//主题名称 default ocean green glory white
themeName
:
'
glory
'
,
themeName
:
'
white
'
,
//是否固定头部
//是否固定头部
fixedHeader
:
true
,
fixedHeader
:
true
,
//是否显示顶部进度条
//是否显示顶部进度条
...
...
src/main.js
View file @
cd33ef55
...
@@ -4,6 +4,12 @@ import i18n from './i18n'
...
@@ -4,6 +4,12 @@ import i18n from './i18n'
import
store
from
'./store'
import
store
from
'./store'
import
router
from
'./router'
import
router
from
'./router'
import
'@/vab'
import
'@/vab'
import
Minix
from
'@/minix/index'
// 全局混入
Vue
.
mixin
(
Minix
);
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
new
Vue
({
new
Vue
({
...
...
src/minix/index.js
0 → 100644
View file @
cd33ef55
import
BlockHeader
from
'@/components/blockHeader'
export
default
{
name
:
"Login"
,
components
:{
BlockHeader
}
}
src/server/api.js
View file @
cd33ef55
...
@@ -106,6 +106,14 @@ export default {
...
@@ -106,6 +106,14 @@ export default {
data
data
});
});
},
},
// 产品上下架
prod_switch_upDown
(
params
)
{
return
request
({
url
:
"/macy/editProductInfoByStatus"
,
method
:
"get"
,
params
});
},
// 产品查看
// 产品查看
prod_view
(
params
)
{
prod_view
(
params
)
{
return
request
({
return
request
({
...
@@ -177,5 +185,13 @@ export default {
...
@@ -177,5 +185,13 @@ export default {
method
:
"post"
,
method
:
"post"
,
data
data
});
});
},
// 变更状态
dict
(
params
)
{
return
request
({
url
:
"/dictData/selectBydictType"
,
method
:
"get"
,
params
});
}
}
};
};
src/views/merchant/list.vue
View file @
cd33ef55
<
template
>
<
template
>
<div
class=
"page-fence"
>
<div
class=
"page-fence"
>
<!--搜索-->
<!--搜索-->
<block-header
title=
"搜索"
/>
<div
class=
"search"
>
<div
class=
"search"
>
<el-form
<el-form
label-suffix=
":"
label-suffix=
":"
...
@@ -40,16 +41,18 @@
...
@@ -40,16 +41,18 @@
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
icon=
"el-icon-search"
type=
"primary"
type=
"primary"
@
click=
"onSubmit"
@
click=
"onSubmit"
>
>
查询
搜 索
</el-button>
</el-button>
<!--
<el-button
type=
"default"
@
click=
"onReset"
>
重置
</el-button>
-->
<!--
<el-button
type=
"default"
@
click=
"onReset"
>
重置
</el-button>
-->
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<block-header
title=
"机构列表"
/>
<!--操作菜单栏-->
<!--操作菜单栏-->
<div
<div
v-if=
"true"
v-if=
"true"
...
@@ -139,7 +142,7 @@ export default {
...
@@ -139,7 +142,7 @@ export default {
name
:
"Fence"
,
name
:
"Fence"
,
data
()
{
data
()
{
return
{
return
{
checkList
:
[
"机构编号"
,
"机构名称"
,
"机构简称"
,
"机构状态"
,
"营业执照"
,
"小贷
拍
照"
,
"金融办批文"
],
checkList
:
[
"机构编号"
,
"机构名称"
,
"机构简称"
,
"机构状态"
,
"营业执照"
,
"小贷
牌
照"
,
"金融办批文"
],
columns
:
[
columns
:
[
{
{
order
:
1
,
order
:
1
,
...
...
src/views/notice/list.vue
View file @
cd33ef55
<
template
>
<
template
>
<div
class=
"page-fence"
>
<div
class=
"page-fence"
>
<!--操作菜单栏-->
<!--操作菜单栏-->
<block-header
title=
"公告列表"
/>
<div
<div
v-if=
"true"
v-if=
"true"
class=
"action-bar"
class=
"action-bar"
>
>
<div
class=
"action-bar-left"
/>
<div
class=
"action-bar-left"
>
<div
class=
"action-bar-right"
>
<router-link
to=
"/notice/new"
>
<router-link
to=
"/notice/new"
>
<el-button
<el-button
icon=
"el-icon-plus"
type=
"primary"
type=
"primary"
size=
"mini"
size=
"mini"
>
>
发布
公告
新增
公告
</el-button>
</el-button>
</router-link>
</router-link>
</div>
</div>
...
@@ -72,20 +73,31 @@
...
@@ -72,20 +73,31 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
width=
"150"
fixed=
"right"
fixed=
"right"
align=
"center"
align=
"center"
label=
"操作"
label=
"操作"
>
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<el-button
<el-button
type=
"text"
v-if=
"row.isDelete===0"
size=
"mini"
type=
"danger"
@
click=
"handleChangeStatus(row)"
>
下架
</el-button>
<el-button
v-else
size=
"mini"
type=
"success"
@
click=
"handleChangeStatus(row)"
@
click=
"handleChangeStatus(row)"
>
>
<span
v-if=
"row.isDelete===0"
>
下架
</span>
上架
<span
v-else
>
上架
</span>
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
size=
"mini"
type=
"primary"
@
click=
"handleView(row)"
@
click=
"handleView(row)"
>
>
<span>
详情
</span>
<span>
详情
</span>
...
@@ -115,7 +127,7 @@ export default {
...
@@ -115,7 +127,7 @@ export default {
name
:
"Fence"
,
name
:
"Fence"
,
data
()
{
data
()
{
return
{
return
{
checkList
:
[
"标题"
,
"标题ICON"
,
"公告内容"
,
"
H5链接"
,
"公告状态"
,
"创建时间"
],
checkList
:
[
"标题"
,
"标题ICON"
,
"公告内容"
,
"
公告状态"
,
'发布人'
,
"创建时间"
],
columns
:
[
columns
:
[
{
{
order
:
1
,
order
:
1
,
...
@@ -130,14 +142,9 @@ export default {
...
@@ -130,14 +142,9 @@ export default {
{
{
order
:
3
,
order
:
3
,
label
:
"公告内容"
,
label
:
"公告内容"
,
overflow
:
true
,
prop
:
"znxContent"
prop
:
"znxContent"
},
},
{
order
:
4
,
label
:
"H5链接"
,
prop
:
"znxHref"
,
overflow
:
true
},
{
{
order
:
5
,
order
:
5
,
label
:
"公告状态"
,
label
:
"公告状态"
,
...
@@ -145,6 +152,11 @@ export default {
...
@@ -145,6 +152,11 @@ export default {
},
},
{
{
order
:
6
,
order
:
6
,
label
:
"发布人"
,
prop
:
"znxCreateby"
},
{
order
:
7
,
label
:
"创建时间"
,
label
:
"创建时间"
,
prop
:
"gmtCreate"
prop
:
"gmtCreate"
}
}
...
...
src/views/notice/new.vue
View file @
cd33ef55
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:model=
"form"
:model=
"form"
label-width=
"120px"
label-width=
"120px"
>
>
<block-header
title=
"
公告信息
"
/>
<block-header
title=
"
创建公告
"
/>
<el-form-item
<el-form-item
prop=
"appLogo"
prop=
"appLogo"
class=
"form-item"
class=
"form-item"
...
@@ -38,7 +38,19 @@
...
@@ -38,7 +38,19 @@
class=
"form-item"
class=
"form-item"
label=
"公告标题"
label=
"公告标题"
>
>
<el-input
v-model=
"form.znxTitle"
/>
<el-select
v-model=
"form.znxTitle"
style=
"width: 100%"
size=
"mini"
placeholder=
"请选择"
>
<el-option
v-for=
"item in select"
:key=
"item.code"
:label=
"item.value"
:value=
"item.code"
/>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -53,6 +65,7 @@
...
@@ -53,6 +65,7 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
v-if=
"false"
prop=
"znxHref"
prop=
"znxHref"
class=
"form-item"
class=
"form-item"
label=
"公告跳转链接"
label=
"公告跳转链接"
...
@@ -96,6 +109,7 @@ export default {
...
@@ -96,6 +109,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
select
:{},
uploadUrl
:
`
${
$API
}
/sysUser/upload`
,
uploadUrl
:
`
${
$API
}
/sysUser/upload`
,
form
:
{
form
:
{
znxTitle
:
""
,
znxTitle
:
""
,
...
@@ -104,15 +118,16 @@ export default {
...
@@ -104,15 +118,16 @@ export default {
znxHref
:
""
znxHref
:
""
},
},
rules
:
{
rules
:
{
znxTitle
:
[{
required
:
true
,
message
:
"请
输入
公告标题"
,
trigger
:
"blur"
}],
znxTitle
:
[{
required
:
true
,
message
:
"请
选择
公告标题"
,
trigger
:
"blur"
}],
znxTitleUrl
:
[{
required
:
false
,
message
:
"请上传公告标题ICON"
,
trigger
:
"change"
}],
znxTitleUrl
:
[{
required
:
false
,
message
:
"请上传公告标题ICON"
,
trigger
:
"change"
}],
znxContent
:
[{
required
:
true
,
message
:
"请输入公告内容"
,
trigger
:
"blur"
}],
znxContent
:
[{
required
:
true
,
message
:
"请输入公告内容"
,
trigger
:
"blur"
}],
znxHref
:
[{
required
:
tru
e
,
message
:
"请输入公告跳转链接"
,
trigger
:
"blur"
}]
znxHref
:
[{
required
:
fals
e
,
message
:
"请输入公告跳转链接"
,
trigger
:
"blur"
}]
}
}
};
};
},
},
async
created
()
{
async
created
()
{
// 再请求表单
// 再请求表单
await
this
.
initDict
();
const
{
query
}
=
this
.
$route
;
const
{
query
}
=
this
.
$route
;
if
(
query
&&
query
.
id
)
{
if
(
query
&&
query
.
id
)
{
this
.
id
=
query
.
id
;
this
.
id
=
query
.
id
;
...
@@ -120,6 +135,15 @@ export default {
...
@@ -120,6 +135,15 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
async
initDict
()
{
const
result
=
await
API
.
dict
({
dictType
:
'ZNXTITLE'
});
console
.
log
(
result
,
'hah'
)
if
(
result
.
success
){
this
.
select
=
result
.
result
;
}
},
async
init
()
{
async
init
()
{
const
id
=
this
.
id
;
const
id
=
this
.
id
;
const
{
result
,
success
}
=
await
API
.
notice_detail
({
id
});
const
{
result
,
success
}
=
await
API
.
notice_detail
({
id
});
...
...
src/views/prod/edit.vue
View file @
cd33ef55
...
@@ -256,6 +256,7 @@
...
@@ -256,6 +256,7 @@
<el-form-item
prop=
"incomeTimeBefore"
>
<el-form-item
prop=
"incomeTimeBefore"
>
<el-time-picker
<el-time-picker
v-model=
"form.incomeTimeBefore"
v-model=
"form.incomeTimeBefore"
value-format=
"HH:mm:ss"
style=
"width: 120px"
style=
"width: 120px"
placeholder=
"起始时间"
placeholder=
"起始时间"
:picker-options=
"{
:picker-options=
"{
...
@@ -273,6 +274,7 @@
...
@@ -273,6 +274,7 @@
<el-form-item
prop=
"incomeTimeLate"
>
<el-form-item
prop=
"incomeTimeLate"
>
<el-time-picker
<el-time-picker
v-model=
"form.incomeTimeLate"
v-model=
"form.incomeTimeLate"
value-format=
"HH:mm:ss"
style=
"width: 120px"
style=
"width: 120px"
placeholder=
"结束时间"
placeholder=
"结束时间"
:picker-options=
"{
:picker-options=
"{
...
...
src/views/prod/list.vue
View file @
cd33ef55
<
template
>
<
template
>
<div
class=
"page-fence"
>
<div
class=
"page-fence"
>
<!--搜索-->
<!--搜索-->
<block-header
title=
"搜索"
/>
<div
class=
"search"
>
<div
class=
"search"
>
<el-form
<el-form
label-suffix=
":"
label-suffix=
":"
...
@@ -22,34 +23,20 @@
...
@@ -22,34 +23,20 @@
placeholder=
"请输入机构名称"
placeholder=
"请输入机构名称"
/>
/>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"产品状态"
>
-->
<!--
<el-select-->
<!-- v-model="queryForm.status"-->
<!-- clearable-->
<!-- placeholder="请选择"-->
<!-- >-->
<!--
<el-option-->
<!-- label="启用"-->
<!-- value="1"-->
<!-- />-->
<!--
<el-option-->
<!-- label="禁用"-->
<!-- value="0"-->
<!-- />-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
<el-form-item>
<el-form-item>
<el-button
<el-button
icon=
"el-icon-search"
type=
"primary"
type=
"primary"
@
click=
"onSubmit"
@
click=
"onSubmit"
>
>
查询
搜 索
</el-button>
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<!--操作菜单栏-->
<!--操作菜单栏-->
<block-header
title=
"产品列表"
/>
<div
<div
v-if=
"true"
v-if=
"true"
class=
"action-bar"
class=
"action-bar"
...
@@ -57,6 +44,7 @@
...
@@ -57,6 +44,7 @@
<div
class=
"action-bar-left"
>
<div
class=
"action-bar-left"
>
<router-link
to=
"/prod/new"
>
<router-link
to=
"/prod/new"
>
<el-button
<el-button
icon=
"el-icon-plus"
type=
"primary"
type=
"primary"
size=
"mini"
size=
"mini"
>
>
...
@@ -73,6 +61,7 @@
...
@@ -73,6 +61,7 @@
ref=
"tableSort"
ref=
"tableSort"
v-loading=
"listLoading"
v-loading=
"listLoading"
border
border
size=
"small"
:data=
"list"
:data=
"list"
style=
"width: 100%"
style=
"width: 100%"
>
>
...
@@ -95,20 +84,51 @@
...
@@ -95,20 +84,51 @@
/>
/>
</div>
</div>
<div
v-else-if=
"item.label==='产品状态'"
>
<div
v-else-if=
"item.label==='产品状态'"
>
<span>
{{
row
[
item
.
prop
]
===
"1"
?
'启用'
:
'禁用'
}}
</span>
<el-tag
v-if=
"row[item.prop] === '1'"
type=
"success"
size=
"mini"
>
启用
</el-tag>
<el-tag
v-else
type=
"info"
size=
"mini"
>
禁用
</el-tag>
</div>
</div>
<span
v-else
>
{{
row
[
item
.
prop
]
}}
</span>
<span
v-else
>
{{
row
[
item
.
prop
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
width=
"170"
fixed=
"right"
fixed=
"right"
align=
"center"
align=
"center"
label=
"操作"
label=
"操作"
>
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<el-button
<el-button
type=
"text"
v-if=
"row.status==='1'"
size=
"mini"
type=
"danger"
@
click=
"handleClick(row)"
>
禁用
</el-button>
<el-button
v-else
size=
"mini"
type=
"success"
@
click=
"handleClick(row)"
>
启用
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"handleView(row)"
@
click=
"handleView(row)"
>
>
详情
详情
...
@@ -138,7 +158,7 @@ export default {
...
@@ -138,7 +158,7 @@ export default {
name
:
"Fence"
,
name
:
"Fence"
,
data
()
{
data
()
{
return
{
return
{
checkList
:
[
"产品等级"
,
"产品编号"
,
"产品名称"
,
"LOGO"
,
"机构编号"
,
"
机构名称"
,
"产品状态"
,
"对接方式"
,
"创建时间"
,
],
checkList
:
[
"产品等级"
,
"产品编号"
,
"产品名称"
,
"LOGO"
,
"机构编号"
,
"
产品状态"
,
"对接方式"
,
"创建时间"
],
columns
:
[
columns
:
[
{
{
order
:
1
,
order
:
1
,
...
@@ -168,22 +188,17 @@ export default {
...
@@ -168,22 +188,17 @@ export default {
},
},
{
{
order
:
6
,
order
:
6
,
label
:
"机构名称"
,
prop
:
"loanLicenseUrl"
},
{
order
:
7
,
label
:
"产品状态"
,
label
:
"产品状态"
,
prop
:
"status"
prop
:
"status"
},
},
{
{
order
:
8
,
order
:
7
,
label
:
"对接方式"
,
label
:
"对接方式"
,
prop
:
"abutmentWay"
prop
:
"abutmentWay"
},
},
{
{
order
:
9
,
order
:
8
,
width
:
170
,
width
:
170
,
label
:
"创建时间"
,
label
:
"创建时间"
,
prop
:
"gmtCreated"
prop
:
"gmtCreated"
}
}
...
@@ -225,11 +240,11 @@ export default {
...
@@ -225,11 +240,11 @@ export default {
this
.
fetchData
();
this
.
fetchData
();
},
},
handleView
(
row
)
{
handleView
(
row
)
{
const
{
appNo
}
=
row
;
const
{
appNo
}
=
row
;
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/prod/edit'
,
path
:
"/prod/edit"
,
query
:
{
appNo
}
query
:
{
appNo
}
})
})
;
},
},
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
queryForm
.
size
=
val
;
this
.
queryForm
.
size
=
val
;
...
@@ -250,6 +265,27 @@ export default {
...
@@ -250,6 +265,27 @@ export default {
this
.
list
=
records
;
this
.
list
=
records
;
this
.
total
=
total
;
this
.
total
=
total
;
this
.
listLoading
=
false
;
this
.
listLoading
=
false
;
},
async
handleClick
(
row
)
{
console
.
log
(
row
,
"我知道"
);
let
{
appNo
,
status
}
=
row
;
status
=
status
===
"1"
?
"2"
:
"1"
;
this
.
$confirm
(
`此操作将变更该产品状态, 是否继续?`
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
async
()
=>
{
const
result
=
await
API
.
prod_switch_upDown
({
appNo
,
status
});
if
(
result
.
success
)
{
this
.
$message
.
success
(
"操作成功"
);
await
this
.
fetchData
();
}
});
}
}
}
}
};
};
...
...
src/views/prod/new.vue
View file @
cd33ef55
...
@@ -254,8 +254,10 @@
...
@@ -254,8 +254,10 @@
<el-form-item
prop=
"incomeTimeBefore"
>
<el-form-item
prop=
"incomeTimeBefore"
>
<el-time-picker
<el-time-picker
v-model=
"form.incomeTimeBefore"
v-model=
"form.incomeTimeBefore"
value-format=
"HH:mm:ss"
style=
"width: 120px"
style=
"width: 120px"
placeholder=
"起始时间"
placeholder=
"起始时间"
:picker-options=
"{
:picker-options=
"{
selectableRange: '00:00:00 - 23:59:59'
selectableRange: '00:00:00 - 23:59:59'
}"
}"
...
@@ -271,6 +273,7 @@
...
@@ -271,6 +273,7 @@
<el-form-item
prop=
"incomeTimeLate"
>
<el-form-item
prop=
"incomeTimeLate"
>
<el-time-picker
<el-time-picker
v-model=
"form.incomeTimeLate"
v-model=
"form.incomeTimeLate"
value-format=
"HH:mm:ss"
style=
"width: 120px"
style=
"width: 120px"
placeholder=
"结束时间"
placeholder=
"结束时间"
:picker-options=
"{
:picker-options=
"{
...
@@ -482,8 +485,10 @@ export default {
...
@@ -482,8 +485,10 @@ export default {
this
.
$refs
[
formName
].
validate
(
async
(
valid
)
=>
{
this
.
$refs
[
formName
].
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
form
=
Object
.
assign
({},
this
.
form
);
const
form
=
Object
.
assign
({},
this
.
form
);
let
result
=
await
API
.
prod_add
({
...
form
});
//console.log(form,'表达');
//return false;
let
result
=
await
API
.
prod_add
({
...
form
});
if
(
result
.
success
)
{
if
(
result
.
success
)
{
this
.
$baseMessage
(
"产品保存成功"
,
"success"
);
this
.
$baseMessage
(
"产品保存成功"
,
"success"
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
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