Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-admin
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli-admin
Commits
6548d789
Commit
6548d789
authored
Apr 07, 2023
by
zhangmengjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
23.4.7
parent
8e5d7127
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
23 deletions
+39
-23
src/api/login.js
+3
-3
src/components/ImageUpload/index.vue
+2
-2
src/store/modules/user.js
+2
-1
src/views/marketing/index.vue
+1
-0
src/views/orderform/components/index.vue
+1
-1
src/views/orderform/index.vue
+27
-13
src/views/statement/index.vue
+3
-3
No files found.
src/api/login.js
View file @
6548d789
...
@@ -31,13 +31,13 @@ export function register(data) {
...
@@ -31,13 +31,13 @@ export function register(data) {
}
}
// 获取用户详细信息
// 获取用户详细信息
export
function
getInfo
()
{
export
function
getInfo
(
query
)
{
return
request
({
return
request
({
url
:
'/getInfo'
,
url
:
'/getInfo'
,
method
:
'get'
method
:
'get'
,
params
:
query
})
})
}
}
// 退出方法
// 退出方法
export
function
logout
()
{
export
function
logout
()
{
return
request
({
return
request
({
...
...
src/components/ImageUpload/index.vue
View file @
6548d789
...
@@ -78,7 +78,7 @@ export default {
...
@@ -78,7 +78,7 @@ export default {
dialogVisible
:
false
,
dialogVisible
:
false
,
hideUpload
:
false
,
hideUpload
:
false
,
baseUrl
:
process
.
env
.
VUE_APP_BASE_API
,
baseUrl
:
process
.
env
.
VUE_APP_BASE_API
,
uploadImgUrl
:
process
.
env
.
VUE_APP_BASE_API
+
"/system/oss
/upload"
,
// 上传的图片服务器地址
uploadImgUrl
:
"http://xinrenli.nyinhong.com/api/xinrenli/file
/upload"
,
// 上传的图片服务器地址
headers
:
{
headers
:
{
Authorization
:
"Bearer "
+
getToken
(),
Authorization
:
"Bearer "
+
getToken
(),
},
},
...
@@ -158,7 +158,7 @@ export default {
...
@@ -158,7 +158,7 @@ export default {
// 上传成功回调
// 上传成功回调
handleUploadSuccess
(
res
,
file
)
{
handleUploadSuccess
(
res
,
file
)
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
uploadList
.
push
({
name
:
res
.
data
.
fileName
,
url
:
res
.
data
.
url
,
ossId
:
res
.
data
.
ossId
});
this
.
uploadList
.
push
({
url
:
res
.
data
.
url
});
this
.
uploadedSuccessfully
();
this
.
uploadedSuccessfully
();
}
else
{
}
else
{
this
.
number
--
;
this
.
number
--
;
...
...
src/store/modules/user.js
View file @
6548d789
...
@@ -49,7 +49,8 @@ const user = {
...
@@ -49,7 +49,8 @@ const user = {
// 获取用户信息
// 获取用户信息
GetInfo
({
commit
,
state
})
{
GetInfo
({
commit
,
state
})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getInfo
().
then
(
res
=>
{
console
.
log
(
'111111111'
)
getInfo
({
adminTag
:
'adminTag'
}).
then
(
res
=>
{
const
user
=
res
.
data
.
user
const
user
=
res
.
data
.
user
const
avatar
=
(
user
.
avatar
==
""
||
user
.
avatar
==
null
)
?
require
(
"@/assets/images/profile.jpg"
)
:
user
.
avatar
;
const
avatar
=
(
user
.
avatar
==
""
||
user
.
avatar
==
null
)
?
require
(
"@/assets/images/profile.jpg"
)
:
user
.
avatar
;
if
(
res
.
data
.
roles
&&
res
.
data
.
roles
.
length
>
0
)
{
// 验证返回的roles是否是一个非空数组
if
(
res
.
data
.
roles
&&
res
.
data
.
roles
.
length
>
0
)
{
// 验证返回的roles是否是一个非空数组
...
...
src/views/marketing/index.vue
View file @
6548d789
...
@@ -75,6 +75,7 @@ export default {
...
@@ -75,6 +75,7 @@ export default {
handleAdd
()
{
handleAdd
()
{
let
that
=
this
;
let
that
=
this
;
that
.
title
=
"添加优惠券"
;
that
.
title
=
"添加优惠券"
;
this
.
$refs
[
'refDialogFile'
].
form
=
{}
that
.
isEdit
=
true
that
.
isEdit
=
true
that
.
dialogVisible
=
true
;
that
.
dialogVisible
=
true
;
},
},
...
...
src/views/orderform/components/index.vue
View file @
6548d789
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-dialog
:title=
'title'
:visible
.
sync=
"dialogVisibl"
width=
"30%"
:before-close=
"dialog"
center
>
<el-dialog
:title=
'title'
:visible
.
sync=
"dialogVisibl"
width=
"30%"
:before-close=
"dialog"
center
>
<div
v-if=
"control != 4"
>
<div
v-if=
"control != 4"
>
<!-- 图片说明 -->
<!-- 图片说明 -->
<el-image
v-if=
"control == '1'"
style=
"width:100%; "
:src=
"
url
"
:preview-src-list=
"srcList"
>
<el-image
v-if=
"control == '1'"
style=
"width:100%; "
:src=
"
idt
"
:preview-src-list=
"srcList"
>
</el-image>
</el-image>
<!-- 视频说明 -->
<!-- 视频说明 -->
<comvideo
v-if=
"control == '2'"
></comvideo>
<comvideo
v-if=
"control == '2'"
></comvideo>
...
...
src/views/orderform/index.vue
View file @
6548d789
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"actualAmount"
label=
"沟通后金额(元)"
:show-overflow-tooltip=
"true"
align=
"center"
>
<el-table-column
prop=
"actualAmount"
label=
"沟通后金额(元)"
:show-overflow-tooltip=
"true"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-input
v-if=
"!scope.row.actualAmount"
class=
"delInput
"
<el-input
v-if=
"!scope.row.actualAmount"
class=
"delInput"
type=
'number'
v-model=
"scope.row.dataName
"
type=
'number'
v-model=
"scope.row.dataName"
@
change=
"cc(
scope.row)"
placeholder=
"请输入联系人姓名"
clearable
/>
@
change=
"cc(
scope.row)"
placeholder=
"请输入联系人姓名"
clearable
/>
<div
v-else
>
{{
scope
.
row
.
actualAmount
}}
</div>
<div
v-else
>
{{
scope
.
row
.
actualAmount
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"图片说明"
:show-overflow-tooltip=
"true"
align=
"center"
>
<el-table-column
prop=
"address"
label=
"图片说明"
:show-overflow-tooltip=
"true"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"imageCaption(scope, '1')"
>
查看详情
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"imageCaption(scope
.row
, '1')"
>
查看详情
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"视频说明"
:show-overflow-tooltip=
"true"
align=
"center"
>
<el-table-column
prop=
"address"
label=
"视频说明"
:show-overflow-tooltip=
"true"
align=
"center"
>
...
@@ -84,10 +84,11 @@
...
@@ -84,10 +84,11 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<!-- 其他 -->
<!-- 其他 -->
<comindex
:dialogVisibl=
"dialogVisible"
:idt=
"id"
@
visivie=
'visivie'
@
clickDialog=
"clickDialog"
:control=
"control"
ref=
"refIndex"
:bindex=
"bb"
></comindex>
<comindex
:dialogVisibl=
"dialogVisible"
:idt=
"id"
@
visivie=
'visivie'
@
clickDialog=
"clickDialog"
:control=
"control"
ref=
"refIndex"
:bindex=
"bb"
></comindex>
<!-- 修改 详情 -->
<!-- 修改 详情 -->
<commodify
:title=
"title"
:dialogVisibl=
"dialogVi"
@
diaisibl=
"diaisibl"
@
onSubmit=
"onSubmit"
:disabled=
"disabled"
<commodify
:title=
"title"
:dialogVisibl=
"dialogVi"
@
diaisibl=
"diaisibl"
@
onSubmit=
"onSubmit"
:disabled=
"disabled"
ref=
"refModify"
></commodify>
ref=
"refModify"
></commodify>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
@
pagination=
"getList"
/>
</div>
</div>
...
@@ -149,7 +150,7 @@ export default {
...
@@ -149,7 +150,7 @@ export default {
value
:
'6'
,
value
:
'6'
,
label
:
'已退款'
label
:
'已退款'
}],
}],
disabled
:
false
,
disabled
:
false
,
particulars
:
{},
particulars
:
{},
tableData
:
[],
tableData
:
[],
// 日期范围
// 日期范围
...
@@ -182,8 +183,8 @@ export default {
...
@@ -182,8 +183,8 @@ export default {
comindex
,
comindex
,
commodify
commodify
},
},
watch
:{
watch
:
{
//监听器的作用就是用来监听数据是否发生了变化,变化后可以进行一些其他操作
//监听器的作用就是用来监听数据是否发生了变化,变化后可以进行一些其他操作
//只要没有发生变化,就没有办法进行其他的操作
//只要没有发生变化,就没有办法进行其他的操作
bb
:
function
(
newData
,
oldData
)
{
bb
:
function
(
newData
,
oldData
)
{
//newData是更新后的数据
//newData是更新后的数据
...
@@ -234,26 +235,40 @@ export default {
...
@@ -234,26 +235,40 @@ export default {
},
},
// 打开查看详情
// 打开查看详情
imageCaption
(
sta
,
val
)
{
imageCaption
(
sta
,
val
)
{
let
self
=
this
switch
(
val
)
{
switch
(
val
)
{
case
'1'
:
case
'1'
:
if
(
sta
.
fileVos
&&
sta
.
fileVos
.
length
)
{
self
.
id
=
sta
.
fileVos
[
0
].
url
self
.
dialogVisible
=
true
}
else
{
this
.
$message
({
message
:
'暂无图片'
,
type
:
'warning'
});
}
this
.
control
=
val
this
.
control
=
val
// this.dialogVisible = true
break
;
break
;
case
'2'
:
case
'2'
:
this
.
control
=
val
this
.
control
=
val
this
.
dialogVisible
=
true
break
;
break
;
case
'3'
:
case
'3'
:
this
.
control
=
val
this
.
control
=
val
this
.
dialogVisible
=
true
break
;
break
;
case
'4'
:
case
'4'
:
this
.
id
=
sta
.
id
this
.
id
=
sta
.
id
this
.
control
=
val
this
.
control
=
val
this
.
dialogVisible
=
true
break
;
break
;
case
'5'
:
case
'5'
:
this
.
id
=
sta
.
id
this
.
id
=
sta
.
id
this
.
control
=
val
this
.
control
=
val
this
.
dialogVisible
=
true
break
;
break
;
}
}
this
.
dialogVisible
=
true
},
},
cc
(
index
)
{
cc
(
index
)
{
console
.
log
(
"更改后的值:"
,
index
);
console
.
log
(
"更改后的值:"
,
index
);
...
@@ -275,11 +290,11 @@ export default {
...
@@ -275,11 +290,11 @@ export default {
},
},
// 其他 弹窗关闭
// 其他 弹窗关闭
visivie
()
{
visivie
()
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
},
},
// 其他 确认
// 其他 确认
clickDialog
(){
clickDialog
()
{
if
(
this
.
control
==
'5'
)
{
if
(
this
.
control
==
'5'
)
{
var
params
=
{
var
params
=
{
reasonsForRejection
:
this
.
$refs
[
'refIndex'
].
form
.
name
,
reasonsForRejection
:
this
.
$refs
[
'refIndex'
].
form
.
name
,
...
@@ -295,7 +310,7 @@ export default {
...
@@ -295,7 +310,7 @@ export default {
})
})
}
else
if
(
this
.
control
==
'4'
)
{
}
else
if
(
this
.
control
==
'4'
)
{
var
params
=
{
var
params
=
{
reasonsForRejection
:
this
.
$refs
[
'refIndex'
].
form
.
money
,
actualAmount
:
this
.
$refs
[
'refIndex'
].
form
.
money
,
status
:
2
,
status
:
2
,
id
:
this
.
id
id
:
this
.
id
}
}
...
@@ -321,7 +336,6 @@ export default {
...
@@ -321,7 +336,6 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
::v-deep
.delInput
input
::-webkit-outer-spin-button
,
::v-deep
.delInput
input
::-webkit-outer-spin-button
,
::v-deep
.delInput
input
::-webkit-inner-spin-button
{
::v-deep
.delInput
input
::-webkit-inner-spin-button
{
-webkit-appearance
:
none
!important
;
-webkit-appearance
:
none
!important
;
...
...
src/views/statement/index.vue
View file @
6548d789
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
show
:
false
show
:
false
},
},
data
:
[
data
:
[
{
value
:
this
.
cache
.
totalM
oney
,
name
:
'累计成交额'
}
{
value
:
this
.
cache
.
m
oney
,
name
:
'累计成交额'
}
]
]
}
}
]
]
...
@@ -239,12 +239,12 @@ export default {
...
@@ -239,12 +239,12 @@ export default {
},
},
series
:
[
series
:
[
{
{
name
:
'Access From'
,
//
name: 'Access From',
type
:
'pie'
,
type
:
'pie'
,
radius
:
'50%'
,
radius
:
'50%'
,
data
:
[
data
:
[
{
value
:
this
.
cache
.
accomplish
,
name
:
'已完成订单'
},
{
value
:
this
.
cache
.
accomplish
,
name
:
'已完成订单'
},
{
value
:
this
.
cache
.
contrastOrder
,
name
:
'未完成订单'
},
{
value
:
this
.
cache
.
noAccomplish
,
name
:
'未完成订单'
},
],
],
emphasis
:
{
emphasis
:
{
itemStyle
:
{
itemStyle
:
{
...
...
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