Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
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
chehuidong
saas-manage
Commits
9bbdb4f8
Commit
9bbdb4f8
authored
Jun 16, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into ljh-sass
parents
37ff948c
75ad97ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
154 deletions
+98
-154
src/views/system/announceManage.vue
+8
-5
src/views/system/users.vue
+86
-147
src/views/user/rechargeRecord.vue
+4
-2
No files found.
src/views/system/announceManage.vue
View file @
9bbdb4f8
...
@@ -80,11 +80,14 @@
...
@@ -80,11 +80,14 @@
<el-switch
v-model=
"editForm.priority"
></el-switch>
<el-switch
v-model=
"editForm.priority"
></el-switch>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<v-editor
<div
v-if=
"dialogVisible"
>
filename=
"files"
<v-editor
v-model=
"editForm.content"
filename=
"files"
ref=
"wangeditor"
v-model=
"editForm.content"
height=
"300px"
/>
ref=
"wangeditor"
height=
"300px"
/>
</div>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
@
click=
"dialogVisible = false"
size=
"mini"
>
取 消
</el-button>
<el-button
@
click=
"dialogVisible = false"
size=
"mini"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
size=
"mini"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
size=
"mini"
>
确 定
</el-button>
...
...
src/views/system/users.vue
View file @
9bbdb4f8
...
@@ -4,27 +4,24 @@
...
@@ -4,27 +4,24 @@
:inline=
"true"
:inline=
"true"
size=
"mini"
size=
"mini"
@
submit
.
native
.
prevent
@
submit
.
native
.
prevent
@
keyup
.
enter
.
capture=
"search"
@
keyup
.
enter
.
capture=
"search"
>
>
<el-form-item
label=
"用户名"
>
<el-form-item
label=
"用户名"
>
<el-input
<el-input
style=
"width: 120px"
style=
"width: 120px"
clearable
clearable
v-model=
"searchForm.employeeName"
v-model=
"searchForm.employeeName"
placeholder=
"用户名/姓名"
placeholder=
"用户名/姓名"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"启用状态"
>
<el-form-item
label=
"启用状态"
>
<el-select
<el-select
clearable
clearable
:class=
"
{
:class=
"
{
green: searchForm.enable
,
green: searchForm.enable,
red: !searchForm.enable
,
red: !searchForm.enable
}"
}"
v-model="searchForm.enable"
v-model="searchForm.enable"
style="width: 120px"
style="width: 120px"
placeholder="请选择"
placeholder="请选择">
>
<el-option
label=
"启用"
:value=
"true"
></el-option>
<el-option
label=
"启用"
:value=
"true"
></el-option>
<el-option
label=
"禁用"
:value=
"false"
></el-option>
<el-option
label=
"禁用"
:value=
"false"
></el-option>
</el-select>
</el-select>
...
@@ -35,15 +32,12 @@
...
@@ -35,15 +32,12 @@
native-type=
"submit"
native-type=
"submit"
type=
"primary"
type=
"primary"
@
click=
"search()"
@
click=
"search()"
icon=
"el-icon-search"
icon=
"el-icon-search"
>
>
查询
查询
</el-button>
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"success"
@
click=
"addDialog(1)"
<el-button
type=
"success"
@
click=
"addDialog(1)"
>
新增
</el-button>
>
新增
</el-button
>
</el-form-item>
</el-form-item>
<!--
<el-form-item>
<!--
<el-form-item>
...
@@ -57,8 +51,7 @@
...
@@ -57,8 +51,7 @@
:tableColumns=
"usersTableColumns"
:tableColumns=
"usersTableColumns"
@
currentChange=
"currentTabFn"
@
currentChange=
"currentTabFn"
:rowClassName=
"cellClass"
:rowClassName=
"cellClass"
@
selectionChange=
"selectionChange"
@
selectionChange=
"selectionChange"
></table-vue>
></table-vue>
</div>
</div>
<div
class=
"pagination"
>
<div
class=
"pagination"
>
<el-pagination
<el-pagination
...
@@ -68,9 +61,7 @@
...
@@ -68,9 +61,7 @@
:page-size=
"pageSize"
:page-size=
"pageSize"
:current-page=
"currentPage"
:current-page=
"currentPage"
@
size-change=
"sizeChange"
@
size-change=
"sizeChange"
@
current-change=
"onCurrentChange"
@
current-change=
"onCurrentChange"
></el-pagination>
>
</el-pagination>
</div>
</div>
<!-- 弹出层 -->
<!-- 弹出层 -->
...
@@ -78,8 +69,7 @@
...
@@ -78,8 +69,7 @@
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
:title=
"is_title == 1 ? '新增' : '编辑'"
:title=
"is_title == 1 ? '新增' : '编辑'"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
width=
"590px"
width=
"590px"
>
>
<el-form
<el-form
label-position=
"right"
label-position=
"right"
label-width=
"100px"
label-width=
"100px"
...
@@ -87,40 +77,29 @@
...
@@ -87,40 +77,29 @@
:inline=
"true"
:inline=
"true"
:model=
"addcurrencyform"
:model=
"addcurrencyform"
:rules=
"addrules"
:rules=
"addrules"
ref=
"addcurrencyform"
ref=
"addcurrencyform"
>
>
<el-form-item
label=
"登录账号"
prop=
"account"
required
>
<el-form-item
label=
"登录账号"
prop=
"account"
required
>
<el-input
<el-input
style=
"width: 164px"
style=
"width: 164px"
v-model=
"addcurrencyform.account"
v-model=
"addcurrencyform.account"
placeholder=
"请输入登录账号"
placeholder=
"请输入登录账号"
maxlength=
"30"
maxlength=
"30"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"姓名"
prop=
""
required
>
<el-form-item
label=
"姓名"
prop=
""
required
>
<el-input
<el-input
style=
"width: 164px"
style=
"width: 164px"
v-model=
"addcurrencyform.realName"
v-model=
"addcurrencyform.realName"
placeholder=
"请输入姓名"
placeholder=
"请输入姓名"
maxlength=
"30"
maxlength=
"30"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否启用"
prop=
"enable"
>
<el-form-item
label=
"是否启用"
prop=
"enable"
>
<div
style=
"width: 164px"
placeholder=
"请选择"
>
<div
style=
"width: 164px"
placeholder=
"请选择"
>
<el-radio
<el-radio
:label=
"true"
v-model=
"addcurrencyform.enable"
>
:label=
"true"
是
v-model=
"addcurrencyform.enable"
</el-radio>
>
是
</el-radio
<el-radio
:label=
"false"
v-model=
"addcurrencyform.enable"
>
>
否
<el-radio
</el-radio>
:label=
"false"
v-model=
"addcurrencyform.enable"
>
否
</el-radio
>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -128,16 +107,14 @@
...
@@ -128,16 +107,14 @@
<el-button
<el-button
@
click=
"dialogVisible = false"
@
click=
"dialogVisible = false"
size=
"mini"
size=
"mini"
style=
"width: 100px"
style=
"width: 100px"
>
>
取消
取消
</el-button>
</el-button>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"addUser()"
@
click=
"addUser()"
size=
"mini"
size=
"mini"
style=
"width: 100px"
style=
"width: 100px"
>
>
确认
确认
</el-button>
</el-button>
</span>
</span>
...
@@ -151,7 +128,7 @@ import tableVue from '@/common/components/base/tableView.vue'
...
@@ -151,7 +128,7 @@ import tableVue from '@/common/components/base/tableView.vue'
export
default
{
export
default
{
name
:
'system_users'
,
name
:
'system_users'
,
components
:
{
components
:
{
tableVue
,
tableVue
},
},
data
()
{
data
()
{
const
validatePass
=
(
rule
,
value
,
callback
)
=>
{
const
validatePass
=
(
rule
,
value
,
callback
)
=>
{
...
@@ -180,7 +157,7 @@ export default {
...
@@ -180,7 +157,7 @@ export default {
searchForm
:
{
searchForm
:
{
employeeName
:
''
,
employeeName
:
''
,
enable
:
true
,
enable
:
true
,
platform
:
''
,
platform
:
''
},
},
dialogVisible
:
false
,
dialogVisible
:
false
,
addcurrencyform
:
{
addcurrencyform
:
{
...
@@ -193,44 +170,40 @@ export default {
...
@@ -193,44 +170,40 @@ export default {
employeeId
:
''
,
employeeId
:
''
,
roleId
:
''
,
roleId
:
''
,
funcRoleIds
:
[],
funcRoleIds
:
[],
platform
:
''
,
platform
:
''
},
},
addcurrencyform2
:
null
,
addcurrencyform2
:
null
,
formId
:
null
,
formId
:
null
,
addrules
:
{
addrules
:
{
password
:
[
password
:
[{
validator
:
validatePass
,
trigger
:
'blur'
}],
{
validator
:
validatePass
,
trigger
:
'blur'
},
confirmpwd
:
[{
validator
:
confirmPass
,
trigger
:
'blur'
}],
],
confirmpwd
:
[
{
validator
:
confirmPass
,
trigger
:
'blur'
},
],
loginName
:
[
loginName
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请输入登录账号'
,
message
:
'请输入登录账号'
,
trigger
:
'blur'
,
trigger
:
'blur'
}
,
}
],
],
employeeName
:
[
employeeName
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择员工'
,
message
:
'请选择员工'
,
trigger
:
'change'
,
trigger
:
'change'
}
,
}
],
],
roleId
:
[
roleId
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择角色'
,
message
:
'请选择角色'
,
trigger
:
'change'
,
trigger
:
'change'
}
,
}
]
,
]
},
},
roleList
:
[],
roleList
:
[],
paginationOptions
:
{
paginationOptions
:
{
pageSize
:
100
,
pageSize
:
100
,
currentPage
:
1
,
currentPage
:
1
,
total
:
0
,
total
:
0
},
},
details
:
[],
details
:
[],
roleOptions
:
[],
roleOptions
:
[],
...
@@ -238,14 +211,12 @@ export default {
...
@@ -238,14 +211,12 @@ export default {
total
:
0
,
total
:
0
,
pageSize
:
100
,
pageSize
:
100
,
currentPage
:
1
,
currentPage
:
1
,
loading
:
false
,
loading
:
false
}
}
},
},
created
()
{
created
()
{
this
.
getList
(
1
)
this
.
getList
(
1
)
this
.
addcurrencyform2
=
JSON
.
parse
(
this
.
addcurrencyform2
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addcurrencyform
))
JSON
.
stringify
(
this
.
addcurrencyform
),
)
// axios.get('sysRole/role_option')
// axios.get('sysRole/role_option')
// .then((res) => {
// .then((res) => {
// if (res.code === 200) {
// if (res.code === 200) {
...
@@ -280,19 +251,16 @@ export default {
...
@@ -280,19 +251,16 @@ export default {
<
i
<
i
class
=
"circle"
class
=
"circle"
style
=
{{
style
=
{{
backgroundColor
:
item
.
enable
backgroundColor
:
item
.
enable
?
'green'
:
'red'
?
'green'
}}
><
/i
>
:
'red'
,
}}
><
/i
>
{
item
.
account
}
{
item
.
account
}
<
/span
>
<
/span
>
)
,
)
},
},
{
{
label
:
'姓名'
,
label
:
'姓名'
,
key
:
'realName'
,
key
:
'realName'
,
width
:
''
,
width
:
''
},
},
{
{
label
:
'相关操作'
,
label
:
'相关操作'
,
...
@@ -305,47 +273,38 @@ export default {
...
@@ -305,47 +273,38 @@ export default {
<
i
<
i
class
=
"el-icon-edit-outline"
class
=
"el-icon-edit-outline"
style
=
"color:#E6A23C"
style
=
"color:#E6A23C"
onClick
=
{(
e
)
=>
onClick
=
{(
e
)
=>
this
.
addDialog
(
2
,
item
,
e
)}
><
/i
>
this
.
addDialog
(
2
,
item
,
e
)
}
><
/i
>
<
/span
>
<
/span
>
<
span
title
=
"重置密码"
class
=
"icon-view "
>
<
span
title
=
"重置密码"
class
=
"icon-view "
>
<
i
<
i
style
=
"color:#67C23A"
style
=
"color:#67C23A"
class
=
"el-icon-refresh-left"
class
=
"el-icon-refresh-left"
onClick
=
{(
e
)
=>
this
.
resetPwd
(
e
,
item
)}
onClick
=
{(
e
)
=>
this
.
resetPwd
(
e
,
item
)}
><
/i
>
><
/i
>
<
/span
>
<
/span
>
<
span
title
=
"删除"
class
=
"icon-view "
>
<
span
title
=
"删除"
class
=
"icon-view "
>
<
i
<
i
style
=
"color:#F56C6C"
style
=
"color:#F56C6C"
class
=
"el-icon-delete"
class
=
"el-icon-delete"
onClick
=
{(
e
)
=>
this
.
deleteSection
(
item
)}
onClick
=
{(
e
)
=>
this
.
deleteSection
(
item
)}
><
/i
>
><
/i
>
<
/span
>
<
/span
>
<
/div
>
<
/div
>
)
,
)
}
,
}
]
]
},
},
funcRoleList
()
{
funcRoleList
()
{
if
(
this
.
roleList
.
length
>
0
)
{
if
(
this
.
roleList
.
length
>
0
)
{
return
this
.
roleList
.
filter
(
return
this
.
roleList
.
filter
((
item
)
=>
item
.
type
===
'FUNCTION_ROLE'
)
(
item
)
=>
item
.
type
===
'FUNCTION_ROLE'
,
)
}
}
return
[]
return
[]
},
},
dataRoleList
()
{
dataRoleList
()
{
if
(
this
.
roleList
.
length
>
0
)
{
if
(
this
.
roleList
.
length
>
0
)
{
return
this
.
roleList
.
filter
(
return
this
.
roleList
.
filter
((
item
)
=>
item
.
type
===
'DATA_ROLE'
)
(
item
)
=>
item
.
type
===
'DATA_ROLE'
,
)
}
}
return
[]
return
[]
}
,
}
},
},
methods
:
{
methods
:
{
onCurrentChange
()
{},
onCurrentChange
()
{},
...
@@ -354,7 +313,7 @@ export default {
...
@@ -354,7 +313,7 @@ export default {
axios
axios
.
post
(
'platform/user/update'
,
{
.
post
(
'platform/user/update'
,
{
...
item
,
...
item
,
cost
:
v
,
cost
:
v
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
getList
()
this
.
getList
()
...
@@ -380,7 +339,7 @@ export default {
...
@@ -380,7 +339,7 @@ export default {
this
.
$confirm
(
'确定删除选中的信息?'
,
'提示'
,
{
this
.
$confirm
(
'确定删除选中的信息?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
})
.
then
(()
=>
{})
.
then
(()
=>
{})
.
catch
(()
=>
{})
.
catch
(()
=>
{})
...
@@ -388,20 +347,15 @@ export default {
...
@@ -388,20 +347,15 @@ export default {
resetPwd
(
e
,
row
)
{
resetPwd
(
e
,
row
)
{
e
&&
e
.
stopPropagation
()
e
&&
e
.
stopPropagation
()
this
.
$confirm
(
'确认要重置密码?'
,
'提示'
,
{
this
.
$confirm
(
`确认要重置用户
${
row
.
account
}
的密码?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
axios
axios
.
post
(
'platform/user/resetPassword/'
+
row
.
id
).
then
((
res
)
=>
{
.
post
(
'platform/user/resetPassword/'
+
row
.
id
)
this
.
$alert
(
'重置成功
\
n
\
r 新密码为:'
+
res
.
data
.
passWord
)
.
then
((
res
)
=>
{
})
this
.
$alert
(
'重置成功
\
n
\
r 新密码为:'
+
res
.
data
.
passWord
,
)
})
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{})
},
},
...
@@ -409,7 +363,7 @@ export default {
...
@@ -409,7 +363,7 @@ export default {
axios
axios
.
post
(
'platform/user/setEnableStatus'
,
{
.
post
(
'platform/user/setEnableStatus'
,
{
enable
:
val
,
enable
:
val
,
userId
:
row
.
id
,
userId
:
row
.
id
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
$message
.
success
(
res
.
message
)
this
.
$message
.
success
(
res
.
message
)
...
@@ -420,7 +374,7 @@ export default {
...
@@ -420,7 +374,7 @@ export default {
axios
axios
.
post
(
'platform/user/setBindingStatus'
,
{
.
post
(
'platform/user/setBindingStatus'
,
{
bindStatus
:
!
row
.
bindStatus
,
bindStatus
:
!
row
.
bindStatus
,
userId
:
row
.
id
,
userId
:
row
.
id
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
$message
.
success
(
res
.
message
)
this
.
$message
.
success
(
res
.
message
)
...
@@ -430,8 +384,7 @@ export default {
...
@@ -430,8 +384,7 @@ export default {
setempNo
(
id
)
{
setempNo
(
id
)
{
for
(
const
iterator
of
this
.
employee
)
{
for
(
const
iterator
of
this
.
employee
)
{
if
(
iterator
.
id
===
id
)
{
if
(
iterator
.
id
===
id
)
{
this
.
addcurrencyform
.
empNumber
=
this
.
addcurrencyform
.
empNumber
=
iterator
.
empNumber
iterator
.
empNumber
break
break
}
}
}
}
...
@@ -456,19 +409,16 @@ export default {
...
@@ -456,19 +409,16 @@ export default {
axios
axios
.
get
(
'platform/user/get'
,
{
.
get
(
'platform/user/get'
,
{
params
:
{
params
:
{
id
:
v
.
id
,
id
:
v
.
id
}
,
}
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
const
funcRoleIds
=
[]
const
funcRoleIds
=
[]
const
dataRoleIds
=
[]
const
dataRoleIds
=
[]
if
(
res
.
data
.
roleIds
)
{
if
(
res
.
data
.
roleIds
)
{
const
roleIds
=
const
roleIds
=
res
?.
data
?.
roleIds
.
split
(
','
)
||
[]
res
?.
data
?.
roleIds
.
split
(
','
)
||
[]
for
(
const
iterator
of
roleIds
)
{
for
(
const
iterator
of
roleIds
)
{
const
item
=
this
.
roleList
.
find
(
const
item
=
this
.
roleList
.
find
((
item
)
=>
item
.
id
===
iterator
)
(
item
)
=>
item
.
id
===
iterator
,
)
if
(
item
)
{
if
(
item
)
{
if
(
item
.
type
===
'FUNCTION_ROLE'
)
{
if
(
item
.
type
===
'FUNCTION_ROLE'
)
{
funcRoleIds
.
push
(
Number
(
iterator
))
funcRoleIds
.
push
(
Number
(
iterator
))
...
@@ -482,20 +432,17 @@ export default {
...
@@ -482,20 +432,17 @@ export default {
this
.
addcurrencyform
=
{
this
.
addcurrencyform
=
{
...
res
.
data
,
...
res
.
data
,
funcRoleIds
,
funcRoleIds
,
dataRoleIds
,
dataRoleIds
}
}
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
})
})
}
else
{
}
else
{
this
.
addcurrencyform
=
JSON
.
parse
(
this
.
addcurrencyform
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addcurrencyform2
))
JSON
.
stringify
(
this
.
addcurrencyform2
),
)
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
}
}
this
.
is_title
=
i
this
.
is_title
=
i
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
addcurrencyform
&&
this
.
$refs
.
addcurrencyform
&&
this
.
$refs
.
addcurrencyform
.
clearValidate
()
this
.
$refs
.
addcurrencyform
.
clearValidate
()
})
})
},
},
addUser
()
{
addUser
()
{
...
@@ -514,13 +461,12 @@ export default {
...
@@ -514,13 +461,12 @@ export default {
// 查询
// 查询
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
pageSize
,
currentPage
}
=
const
{
pageSize
,
currentPage
}
=
this
.
paginationOptions
this
.
paginationOptions
axios
axios
.
post
(
'platform/user/list_page'
,
{
.
post
(
'platform/user/list_page'
,
{
pageSize
,
pageSize
,
currentPage
,
currentPage
,
...
this
.
searchForm
,
...
this
.
searchForm
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -529,7 +475,7 @@ export default {
...
@@ -529,7 +475,7 @@ export default {
this
.
paginationOptions
.
total
=
res
.
data
.
total
this
.
paginationOptions
.
total
=
res
.
data
.
total
}
else
{
}
else
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
})
})
}
}
})
})
...
@@ -540,13 +486,10 @@ export default {
...
@@ -540,13 +486,10 @@ export default {
const
url
=
'platform/user/update'
const
url
=
'platform/user/update'
this
.
$refs
.
addcurrencyform
.
validate
((
valid
)
=>
{
this
.
$refs
.
addcurrencyform
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
data
=
JSON
.
parse
(
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addcurrencyform
))
JSON
.
stringify
(
this
.
addcurrencyform
),
let
roleIds
=
this
.
addcurrencyform
.
funcRoleIds
.
concat
(
this
.
addcurrencyform
.
dataRoleIds
)
)
let
roleIds
=
this
.
addcurrencyform
.
funcRoleIds
.
concat
(
this
.
addcurrencyform
.
dataRoleIds
,
)
roleIds
=
roleIds
.
join
()
roleIds
=
roleIds
.
join
()
data
.
roleIds
=
roleIds
data
.
roleIds
=
roleIds
axios
.
post
(
url
,
data
).
then
((
res
)
=>
{
axios
.
post
(
url
,
data
).
then
((
res
)
=>
{
...
@@ -554,12 +497,12 @@ export default {
...
@@ -554,12 +497,12 @@ export default {
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
$message
({
this
.
$message
({
message
:
'修改成功'
,
message
:
'修改成功'
,
type
:
'success'
,
type
:
'success'
})
})
this
.
getList
(
this
.
currentPage
)
this
.
getList
(
this
.
currentPage
)
}
else
{
}
else
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
})
})
}
}
})
})
...
@@ -571,27 +514,23 @@ export default {
...
@@ -571,27 +514,23 @@ export default {
const
url
=
'platform/user/add'
const
url
=
'platform/user/add'
this
.
$refs
.
addcurrencyform
.
validate
((
valid
)
=>
{
this
.
$refs
.
addcurrencyform
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
data
=
JSON
.
parse
(
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addcurrencyform
))
JSON
.
stringify
(
this
.
addcurrencyform
),
let
roleIds
=
this
.
addcurrencyform
.
funcRoleIds
.
concat
(
this
.
addcurrencyform
.
dataRoleIds
)
)
let
roleIds
=
this
.
addcurrencyform
.
funcRoleIds
.
concat
(
this
.
addcurrencyform
.
dataRoleIds
,
)
roleIds
=
roleIds
.
join
()
roleIds
=
roleIds
.
join
()
data
.
roleIds
=
roleIds
data
.
roleIds
=
roleIds
axios
.
post
(
url
,
data
).
then
((
res
)
=>
{
axios
.
post
(
url
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
$alert
(
this
.
$alert
(
'添加成功
\
n
\
r 用户密码为:'
+
'添加成功
\
n
\
r 用户密码为:'
+
res
.
data
?.
passWord
||
''
res
.
data
?.
passWord
||
''
,
)
)
this
.
getList
(
this
.
currentPage
)
this
.
getList
(
this
.
currentPage
)
}
else
{
}
else
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
})
})
}
}
})
})
...
@@ -615,32 +554,32 @@ export default {
...
@@ -615,32 +554,32 @@ export default {
this
.
$confirm
(
'确定删除选中的信息?'
,
'提示'
,
{
this
.
$confirm
(
'确定删除选中的信息?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
axios
axios
.
get
(
'platform/user/delete'
,
{
.
get
(
'platform/user/delete'
,
{
params
:
{
params
:
{
ids
:
ids
,
ids
:
ids
}
,
}
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'删除成功!'
,
message
:
'删除成功!'
})
})
this
.
getList
(
this
.
currentPage
)
this
.
getList
(
this
.
currentPage
)
}
else
{
}
else
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
dangerouslyUseHTMLString
:
true
,
dangerouslyUseHTMLString
:
true
})
})
}
}
})
})
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{})
}
,
}
}
,
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
src/views/user/rechargeRecord.vue
View file @
9bbdb4f8
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
<el-table-column
<el-table-column
label=
"付款时间"
label=
"付款时间"
sortable=
"custom"
sortable=
"custom"
prop=
"
client
Time"
prop=
"
server
Time"
header-align=
"center"
header-align=
"center"
align=
"center"
align=
"center"
width=
"160"
width=
"160"
...
@@ -230,7 +230,9 @@ export default {
...
@@ -230,7 +230,9 @@ export default {
period
:
[],
period
:
[],
subjectList
:
[],
subjectList
:
[],
sortParmas
:
{},
sortParmas
:
{},
searchForm
:
{},
searchForm
:
{
payStatus
:
'已支付'
},
total
:
0
,
total
:
0
,
pageSize
:
50
,
pageSize
:
50
,
currentPage
:
1
,
currentPage
:
1
,
...
...
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