Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
52b3859e
authored
2023-03-14 14:05:59 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcjg-web
2 parents
9bdcd195
ccbc2d34
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
338 additions
and
204 deletions
src/api/authorityManage.js
src/api/orders.js
src/components/Echart/Map/Chart.vue
src/components/Echart/Rose/Chart.vue
src/components/Echart/Rose/index.vue
src/layout1/components/Navbar.vue
src/layout1/components/Sidebar/index.vue
src/views/home/dataView/rightcard.vue
src/views/jktj/ywltj/index.vue
src/views/loginjg/index.vue
src/views/loginsb/index.vue
src/views/system/information/base-set.vue
src/views/system/information/index.vue
src/views/system/information/password-edit.vue
src/views/system/roles/index.vue
src/views/system/users/index.vue
src/api/authorityManage.js
View file @
52b3859
/*
* @Author: yangwei
* @Date: 2023-02-24 15:12:45
* @LastEditors: yangwei
* @LastEditTime: 2023-03-14 10:45:11
* @FilePath: \bdcjg-web\src\api\authorityManage.js
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
*/
import
{
getParams
}
from
'./util'
import
{
...
...
@@ -8,16 +18,16 @@ import {
}
from
'./manageApi'
/** 角色管理开始 */
// 获取角色列表 by categoryId
export
const
getRolesById
=
categoryId
=>
{
export
const
getRolesById
=
categoryId
List
=>
{
const
conditionGroup
=
{
conditions
:
[
{
property
:
'category'
,
value
:
categoryId
,
operator
:
'
EQ
'
value
:
categoryId
List
,
operator
:
'
IN
'
}
],
queryRelation
:
'AND'
queryRelation
:
'AND'
,
}
const
params
=
getParams
(
conditionGroup
)
return
getAction
(
api
.
roles
,
params
)
...
...
src/api/orders.js
0 → 100644
View file @
52b3859
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
/*
更新排序
record-排序整条数据
operate-BOTTOM(置底), DOWN(向下), TOP(置顶), UP(向上)
*/
export
function
updateOrder
(
url
,
record
,
operate
,
swapId
)
{
return
request
({
url
:
SERVER
.
MANAGEMENTAPI
+
url
+
"/"
+
record
.
id
+
"/orders"
,
method
:
"put"
,
params
:
{
operate
:
operate
,
swapId
:
swapId
,
},
});
}
src/components/Echart/Map/Chart.vue
View file @
52b3859
...
...
@@ -17,7 +17,7 @@
data
()
{
return
{
options
:
{},
max
:
"
1
00"
,
//最大value值
max
:
"
50
00"
,
//最大value值
min
:
"1"
,
// 最小value值
key
:
0
,
mapjson
:
""
,
...
...
@@ -87,10 +87,10 @@
itemGap: 2, // 每两个图元之间的间隔距离,单位为px
pieces: [
// 自定义每一段的范围,以及每一段的文字
{ gte: 100, label: "
1
00以上", color: "#035cf5" }, // 不指定 max,表示 max 为无限大(Infinity)。
{ gte: 50, lte: 6000, label: "
20-1
00", color: "#3375e4" },
{ gte: 20, lte: 2000, label: "
1-2
00", color: "#6797ef" },
{ gte: 1, lte: 1000, label: "
1-2
0", color: "#96b5ef" },
{ gte: 100, label: "
50
00以上", color: "#035cf5" }, // 不指定 max,表示 max 为无限大(Infinity)。
{ gte: 50, lte: 6000, label: "
1000-50
00", color: "#3375e4" },
{ gte: 20, lte: 2000, label: "
500-10
00", color: "#6797ef" },
{ gte: 1, lte: 1000, label: "
0-50
0", color: "#96b5ef" },
],
textStyle: {
color: "#737373",
...
...
src/components/Echart/Rose/Chart.vue
View file @
52b3859
...
...
@@ -26,7 +26,7 @@
watch
:
{
cdata
:
{
handler
(
newData
)
{
console
.
log
(
"newData"
,
newData
);
this
.
options
=
{
color
:
[
"#37a2da"
,
...
...
@@ -34,31 +34,29 @@
"#9fe6b8"
,
"#ffdb5c"
,
"#ff9f7f"
,
"#8378ea"
,
"#fb7293"
,
"#e7bcf3"
,
"#8378ea"
],
tooltip
:
{
trigger
:
"item"
,
formatter
:
"<br/>{b} : {c} ({d}%)"
,
},
series
:
[
{
name
:
"Access From"
,
type
:
"pie"
,
radius
:
[
"54%"
,
"70%"
],
avoidLabelOverlap
:
true
,
label
:
{
formatter
:
(
params
)
=>
{
// console.log(params)
return
`
${
params
.
name
}
\n(
${
params
.
value
}
)`
;
return
`
${
params
.
name
}
`
;
},
position
:
"outer"
,
alignTo
:
"edge"
,
margin
:
5
},
labelLine
:
{
lineStyle
:
{
width
:
3
,
},
},
data
:
newData
.
seriesData
,
}
],
...
...
src/components/Echart/Rose/index.vue
View file @
52b3859
...
...
@@ -5,57 +5,71 @@
</
template
>
<
script
>
import
Chart
from
"./Chart"
;
import
work
from
"@/api/work"
;
export
default
{
data
()
{
import
Chart
from
"./Chart"
;
import
work
from
"@/api/work"
;
export
default
{
data
()
{
return
{
cdata
:
{
seriesData
:
[],
},
getdata
:
[],
};
},
components
:
{
Chart
,
},
mounted
()
{
this
.
getdjywl
total
();
mounted
()
{
this
.
addhouse
total
();
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
cdata
.
seriesD
ata
=
[];
this
.
getdjywl
total
();
this
.
getd
ata
=
[];
this
.
addhouse
total
();
});
},
methods
:
{
// 获取登记业务量玫瑰图数据
async
getdjywltotal
(
)
{
if
(
this
.
cdata
.
seriesData
.
length
==
0
)
{
async
addhousetotal
()
{
if
(
this
.
getdata
.
length
==
0
)
{
this
.
getdata
=
[];
try
{
let
p
=
{
DJLX
:
""
,
QLLX
:
""
,
XZQDM
:
""
,
};
this
.
cdata
.
seriesData
=
[];
let
res
=
await
work
.
getdjywltotal
(
p
);
if
(
this
.
cdata
.
seriesData
.
length
==
0
){
res
.
result
.
map
((
item
)
=>
{
let
{
result
:
res
}
=
await
work
.
addhousetotal
();
res
.
map
((
item
)
=>
{
return
this
.
cdata
.
seriesData
.
push
({
name
:
item
.
AREACODE
,
value
:
item
.
ywtotal
,
name
:
`
${
item
.
fwyt
+
'('
+
item
.
fwxz
}
)`
,
value
:
item
.
mj
,
});
});
}
// 遍历修改数组键,作为echars图表的参数
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
"error"
,
error
);
}
}
let
delarr
=
this
.
cdata
.
seriesData
.
sort
(
this
.
up
)
this
.
setadat
(
delarr
)
},
// 处理数据方法
setadat
(
delarr
)
{
this
.
cdata
.
seriesData
=
delarr
.
splice
(
0
,
6
);
let
sum
=
0
for
(
var
i
=
0
;
i
<
delarr
.
length
;
i
++
)
{
sum
=
sum
+
delarr
[
i
].
value
}
sum
=
sum
.
toFixed
(
2
)
this
.
cdata
.
seriesData
.
push
({
name
:
"其他(其他种类)"
,
values
:
"其他种类"
,
value
:
sum
,
})
},
};
// 排序方法
up
(
x
,
y
)
{
return
y
.
value
-
x
.
value
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
...
...
src/layout1/components/Navbar.vue
View file @
52b3859
...
...
@@ -2,7 +2,8 @@
<div
class=
"navbar-con"
>
<div
class=
"navbar"
>
<div
class=
"logo"
>
<img
:src=
"require('@/image/logo.png')"
alt=
""
/>
<img
:src=
"require('@/image/bdclogo.png')"
alt=
""
/>
<h4>
不动产登记上报系统
</h4>
</div>
<div
class=
"right-menu"
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"hover"
@
command=
"handleCommand"
>
...
...
@@ -20,10 +21,10 @@
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
Breadcrumb
from
'./Breadcrumb'
import
defaultSettings
from
'@/settings'
export
default
{
import
{
mapGetters
}
from
'vuex'
import
Breadcrumb
from
'./Breadcrumb'
import
defaultSettings
from
'@/settings'
export
default
{
components
:
{
Breadcrumb
},
...
...
@@ -50,25 +51,35 @@ export default {
}
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.navbar-con
{
.navbar-con
{
position
:
relative
;
.logo
{
color
:
#fff
;
font-size
:
26px
;
font-weight
:
700
;
display
:
flex
;
img
{
width
:
47px
;
height
:
47px
;
}
h4
{
margin-left
:
20px
;
height
:
50px
;
line-height
:
50px
;
}
}
}
}
.NoticeBar
{
.NoticeBar
{
position
:
absolute
;
bottom
:
0
;
}
}
.el-dropdown-menu
{
.el-dropdown-menu
{
padding
:
0
!important
;
border
:
1px
solid
#ebeef5
;
box-shadow
:
0
2px
10px
0
rgba
(
0
,
0
,
0
,
0.12
);
...
...
@@ -101,13 +112,13 @@ export default {
background
:
#f6f7f9
;
color
:
#4a4a4a
;
}
}
}
.navbar
{
.navbar
{
height
:
$
headerHeight
;
overflow
:
hidden
;
position
:
relative
;
background
:
#3D59C4
;
background
:
linear-gradient
(
270deg
,
#ebf1ff
0%
,
#3d59c4
100%
)
;
display
:
flex
;
align-items
:
center
;
padding-right
:
20px
;
...
...
@@ -229,5 +240,5 @@ export default {
}
}
}
}
}
</
style
>
...
...
src/layout1/components/Sidebar/index.vue
View file @
52b3859
...
...
@@ -9,7 +9,7 @@
<el-menu
router
:default-active=
"activeMenu"
:background-color=
"variables.menuBg"
:text-color=
"variables.menuText"
:unique-opened=
"true"
:active-text-color=
"variables.menuActiveText"
:collapse-transition=
"false"
mode=
"vertical"
>
<!-- 权限菜单 -->
<sidebar-item
v-for=
"route in permission_routes.slice(
3
)"
:key=
"route.path"
:item=
"route"
<sidebar-item
v-for=
"route in permission_routes.slice(
4
)"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
<!-- 菜单全部展示 -->
<!--
<sidebar-item
v-for=
"route in asyncRoutes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
-->
...
...
@@ -19,13 +19,13 @@
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
Logo
from
'./Logo'
import
defaultSettings
from
'@/settings'
import
SidebarItem
from
'./SidebarItem'
import
variables
from
'@/styles/variables.scss'
import
{
asyncRoutes
}
from
'@/router'
export
default
{
import
{
mapGetters
}
from
'vuex'
import
Logo
from
'./Logo'
import
defaultSettings
from
'@/settings'
import
SidebarItem
from
'./SidebarItem'
import
variables
from
'@/styles/variables.scss'
import
{
asyncRoutes
}
from
'@/router'
export
default
{
components
:
{
SidebarItem
,
Logo
},
data
()
{
return
{
...
...
@@ -51,6 +51,10 @@ export default {
asyncRoutes
()
{
return
asyncRoutes
}
},
mounted
()
{
console
.
log
(
"this. permission_routes"
,
this
.
permission_routes
);
}
}
}
</
script
>
...
...
src/views/home/dataView/rightcard.vue
View file @
52b3859
<
template
>
<div
class=
"rightcard"
>
<div
class=
"card2 cardCon mt-10"
>
<div
class=
"cardhead"
>
登记业务量
</div>
<Rose
/>
</div>
<div
class=
"card1 cardCon d-center"
>
<div
class=
"cardhead"
>
新建国有房屋信息
</div>
<div
class=
"cardhead"
>
登记业务量
</div>
<div
class=
"cardcontent"
style=
"margin-top: .3646rem"
>
<dv-scroll-board
v-if=
"config.data.length > 0"
:config=
"config"
class=
"board"
/>
<div
v-else
class=
"nodata"
>
暂无数据
</div>
</div>
</div>
<div
class=
"card2 cardCon mt-10"
>
<div
class=
"cardhead"
>
新建国有房屋信息
</div>
<Rose
/>
</div>
<div
class=
"card3 cardCon mt-10"
>
<div
class=
"cardhead"
>
登记类型总量
</div>
<columnarsmat
/>
...
...
@@ -30,7 +29,8 @@
headerBGC
:
'#016AC5'
,
oddRowBGC
:
'#154295'
,
evenRowBGC
:
'#154295'
,
header
:
[
'序号'
,
'用途'
,
'性质'
,
'面积'
],
header
:
[
'序号'
,
'业务名称'
,
'登记业务量'
],
columnWidth
:
[
120
,
270
,
140
],
data
:
[],
key
:
0
}
...
...
@@ -38,23 +38,38 @@
},
components
:
{
columnarsmat
,
Rose
},
mounted
()
{
this
.
addhousetotal
();
this
.
getdjywltotal
();
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
cdata
.
seriesData
=
[];
this
.
getdjywltotal
();
});
// scroll(tableref.value.$refs.bodyWrapper);//设置滚动
},
methods
:
{
async
addhousetotal
()
{
// 获取登记业务量玫瑰图数据
async
getdjywltotal
()
{
try
{
let
{
result
:
res
}
=
await
work
.
addhousetotal
();
res
.
map
((
item
,
index
)
=>
{
return
(
this
.
config
.
data
.
push
([
index
,
item
.
fwyt
,
item
.
fwxz
,
item
.
mj
])
)
let
p
=
{
DJLX
:
""
,
QLLX
:
""
,
XZQDM
:
""
,
};
let
res
=
await
work
.
getdjywltotal
(
p
);
res
.
result
.
map
((
item
,
index
)
=>
{
this
.
config
.
data
.
push
([
index
,
item
.
AREACODE
,
item
.
ywtotal
])
});
// 遍历修改数组键,作为echars图表的参数
}
catch
(
error
)
{
console
.
log
(
"error"
,
error
);
}
}
console
.
log
(
error
);
}
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -134,6 +149,7 @@
background
:
url("~@/image/djywl.png")
no-repeat
;
background-size
:
100%
100%
;
padding
:
0.3825rem
0
0
0
;
overflow
:
hidden
;
}
.card3
{
...
...
src/views/jktj/ywltj/index.vue
View file @
52b3859
...
...
@@ -105,6 +105,7 @@ export default {
// 初始化图表
this
.
chartData
.
length
&&
this
.
echartInit
(
this
.
chartData
)
});
},
// 重置
resetForm
()
{
...
...
@@ -131,6 +132,7 @@ export default {
},
grid
:
{
top
:
120
,
bottom
:
100
,
},
xAxis
:
[
{
...
...
@@ -138,6 +140,7 @@ export default {
data
:
chartArr
.
map
(
item
=>
item
.
recTypeName
),
axisLabel
:
{
interval
:
0
,
rotate
:
40
,
formatter
:
function
(
val
)
{
let
c
=
document
.
createElement
(
"canvas"
);
const
ctx
=
c
.
getContext
(
"2d"
);
...
...
src/views/loginjg/index.vue
View file @
52b3859
...
...
@@ -60,7 +60,7 @@
getAction
(
api
.
subsystem
,
params
).
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
console
.
log
(
" res.contentJJJGGG"
,
res
.
content
);
//
this.productName = res.content[0].name;
this
.
productName
=
res
.
content
[
0
].
name
;
this
.
$store
.
dispatch
(
"products/setData"
,
res
.
content
[
0
].
code
);
sessionStorage
.
setItem
(
"products"
,
res
.
content
[
0
].
code
)
console
.
log
(
"jjjggg的product"
);
...
...
src/views/loginsb/index.vue
View file @
52b3859
...
...
@@ -67,7 +67,6 @@
getAction
(
api
.
subsystem
,
params
).
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
this
.
productName
=
res
.
content
[
0
].
name
;
// console.log(" res.contentSSSSSBBBBB", res.content);
this
.
$store
.
dispatch
(
"products/setData"
,
res
.
content
[
0
].
code
);
sessionStorage
.
setItem
(
"products"
,
res
.
content
[
0
].
code
)
...
...
src/views/system/information/base-set.vue
View file @
52b3859
...
...
@@ -84,7 +84,7 @@
},
mounted
()
{
if
(
this
.
userInfo
)
{
this
.
getUserdata
(
this
.
userInfo
)
this
.
getUserdata
(
this
.
userInfo
.
id
)
}
this
.
sexList
=
[
{
...
...
@@ -105,8 +105,8 @@
]
},
methods
:
{
getUserdata
(
p
)
{
getAction
(
`
${
api
.
users
}
/
${
p
.
id
}
`
).
then
((
res
)
=>
{
getUserdata
(
id
)
{
getAction
(
`
${
api
.
users
}
/
${
id
}
`
).
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
this
.
form
=
res
.
content
}
else
{
...
...
@@ -135,7 +135,6 @@
<
style
scoped
lang=
"scss"
>
.user-info
{
margin
:
0.1875rem
1.0417rem
;
background
:
#ffffff
;
overflow-y
:
auto
;
.form-wrapper
{
padding
:
0px
120px
0px
;
...
...
@@ -156,7 +155,7 @@
}
.bottom-wrapper
{
padding
:
0px
120px
0px
;
text-align
:
right
;
text-align
:
center
;
}
}
</
style
>
...
...
src/views/system/information/index.vue
View file @
52b3859
<!--
* @Author: xiaomiao 1158771342@qq.com
* @Date: 2023-03-08 15:30:43
* @LastEditors:
xiaomiao 1158771342@qq.com
* @LastEditTime: 2023-03-
08 16:33:50
* @FilePath: \
监管系统\js-web-jianguan\src\views\system\information copy
\index.vue
* @LastEditors:
yangwei
* @LastEditTime: 2023-03-
13 17:19:46
* @FilePath: \
bdcjg-web\src\views\system\information
\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
...
...
@@ -15,8 +15,18 @@
</el-form-item>
<el-row
class=
"mb-5"
>
<el-col
:span=
"3"
class=
"btnColRight"
>
<btn
nativeType=
"cx"
@
click=
"information"
>
基本信息
</btn>
<btn
nativeType=
"cx"
@
click=
"password"
>
修改密码
</btn>
<!--
<btn
nativeType=
"cx"
@
click=
"information"
>
基本信息
</btn
>
<btn
nativeType=
"cx"
:class=
"isshow ? '' : ''"
@
click=
"password"
>
修改密码
</btn
>
-->
<button
@
click=
"information"
:class=
"isshow ? 'button choosed' : 'button'"
>
基本信息
</button>
<button
@
click=
"password"
:class=
"isshow ? 'button' : 'button choosed'"
>
修改密码
</button>
</el-col>
</el-row>
</el-form>
...
...
@@ -30,45 +40,59 @@
</div>
</
template
>
<
script
>
import
"@/utils/flexible.js"
;
import
BaseSet
from
"./base-set.vue"
;
import
PasswordEdit
from
"./password-edit.vue"
;
export
default
{
import
"@/utils/flexible.js"
;
import
BaseSet
from
"./base-set.vue"
;
import
PasswordEdit
from
"./password-edit.vue"
;
export
default
{
components
:
{
BaseSet
,
PasswordEdit
,
},
data
()
{
data
()
{
return
{
isshow
:
true
,
};
},
computed
:
{
userData
()
{
userData
()
{
return
this
.
$store
.
state
.
user
.
userInfo
;
},
},
watch
:
{},
created
()
{
},
mounted
()
{
},
created
()
{},
mounted
()
{},
methods
:
{
information
()
{
information
()
{
this
.
isshow
=
true
;
},
password
()
{
password
()
{
this
.
isshow
=
false
;
},
},
};
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/public.scss"
;
.information
{
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/public.scss"
;
.information
{
display
:
flex
;
flex-direction
:
column
;
.btnColRight
{
.button
{
width
:
76px
;
height
:
32px
;
color
:
#ffffff
;
margin
:
0
5px
;
cursor
:
pointer
;
border
:
0
;
background
:
url('../../../image/btn.png')
no-repeat
0
0
;
background-size
:
cover
;
}
.choosed
{
background
:
url('../../../image/btn.png')
no-repeat
0
-34px
;
}
}
/
deep
/
.content
{
.el-input__inner
{
background
:
none
;
...
...
@@ -76,10 +100,9 @@
.user-info
{
background
:
none
;
}
.boxin
{
height
:
79%
;
}
}
.boxin
{
flex
:
1
;
}
}
</
style
>
...
...
src/views/system/information/password-edit.vue
View file @
52b3859
...
...
@@ -6,27 +6,31 @@
label-width=
"100px"
:model=
"form"
class=
"form-wrapper"
:rules=
"rules"
>
:rules=
"rules"
>
<el-form-item
label=
"旧密码:"
prop=
"oldPassword"
>
<el-input
v-model=
"form.oldPassword"
clearable
type=
"password"
show-password
/>
show-password
/>
</el-form-item>
<el-form-item
label=
"新密码:"
prop=
"newPassword"
>
<el-input
v-model=
"form.newPassword"
clearable
type=
"password"
show-password
/>
show-password
/>
</el-form-item>
<el-form-item
label=
"确认密码:"
prop=
"confirmPassword"
>
<el-input
v-model=
"form.confirmPassword"
clearable
type=
"password"
show-password
/>
show-password
/>
</el-form-item>
</el-form>
<div
class=
"bottom-wrapper"
>
...
...
@@ -37,83 +41,81 @@
</
template
>
<
script
>
import
{
updateUserPassword
}
from
"@/api/personnelManage"
;
export
default
{
import
{
updateUserPassword
}
from
"@/api/personnelManage"
;
export
default
{
props
:
{
userInfo
:
{
type
:
Object
,
default
:
null
}
default
:
null
,
},
},
data
()
{
data
()
{
return
{
form
:
{},
sexList
:
[],
userId
:
''
,
userId
:
""
,
rules
:
{
oldPassword
:
[
{
required
:
true
,
message
:
'旧密码不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
"旧密码不能为空"
,
trigger
:
"blur"
},
],
newPassword
:
[
{
required
:
true
,
message
:
'新密码不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
"新密码不能为空"
,
trigger
:
"blur"
},
],
confirmPassword
:
[
{
required
:
true
,
message
:
'确认密码不能为空'
,
trigger
:
'blur'
},
{
validator
:
this
.
validatorConfirmPassword
,
trigger
:
'blur'
}
]
}
}
{
required
:
true
,
message
:
"确认密码不能为空"
,
trigger
:
"blur"
},
{
validator
:
this
.
validatorConfirmPassword
,
trigger
:
"blur"
},
],
},
};
},
computed
:
{},
watch
:
{
userInfo
:
{
handler
:
function
(
val
)
{
if
(
val
)
{
this
.
getid
(
val
)
}
this
.
getid
(
val
);
}
}
},
mounted
()
{
},
},
mounted
()
{
if
(
this
.
userInfo
)
{
this
.
getid
(
this
.
userInfo
)
this
.
getid
(
this
.
userInfo
);
}
},
methods
:
{
getid
(
val
)
{
this
.
userId
=
val
.
id
getid
(
val
)
{
this
.
userId
=
val
.
id
;
},
validatorConfirmPassword
(
rule
,
value
,
callback
)
{
const
{
newPassword
}
=
this
.
form
validatorConfirmPassword
(
rule
,
value
,
callback
)
{
const
{
newPassword
}
=
this
.
form
;
if
(
value
!==
newPassword
)
{
callback
(
'两次输入密码不一致'
)
callback
(
"两次输入密码不一致"
);
}
else
{
callback
()
callback
();
}
},
updatePassword
()
{
updatePassword
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
const
params
=
Object
.
assign
({},
this
.
form
,
{
id
:
this
.
userId
})
const
params
=
Object
.
assign
({},
this
.
form
,
{
id
:
this
.
userId
});
updateUserPassword
(
params
).
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
this
.
$message
.
success
({
message
:
res
.
message
,
showClose
:
true
})
this
.
$message
.
success
({
message
:
res
.
message
,
showClose
:
true
});
}
else
{
this
.
$message
.
error
({
message
:
res
.
message
,
showClose
:
true
})
}
})
}
})
}
this
.
$message
.
error
({
message
:
res
.
message
,
showClose
:
true
});
}
});
}
});
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
.user-info
{
.user-info
{
margin
:
36px
200px
;
background
:
#ffffff
;
overflow-y
:
auto
;
.form-wrapper
{
padding
:
24px
120px
0px
;
...
...
@@ -132,7 +134,7 @@
}
.bottom-wrapper
{
padding
:
32px
120px
24px
;
text-align
:
right
;
}
text-align
:
center
;
}
}
</
style
>
...
...
src/views/system/roles/index.vue
View file @
52b3859
...
...
@@ -38,6 +38,7 @@
import
EditDialog
from
"./edit-dialog.vue"
;
import
Roleslistdiglog
from
"./roleslistdiglog.vue"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
updateOrder
}
from
"@/api/orders"
export
default
{
name
:
"menus"
,
mixins
:
[
tableMixin
],
...
...
@@ -107,7 +108,7 @@
.
concat
([
{
label
:
"排序"
,
width
:
1
00
,
width
:
2
00
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
...
...
@@ -115,7 +116,16 @@
type
=
"text"
disabled
=
{
scope
.
row
.
isTop
}
onClick
=
{()
=>
{
this
.
moveUpward
(
scope
.
$index
,
scope
.
row
);
this
.
updateOrder
(
scope
.
row
,
'TOP'
);
}}
>
置顶
<
/el-button
>
<
el
-
button
type
=
"text"
disabled
=
{
scope
.
row
.
isTop
}
onClick
=
{()
=>
{
this
.
updateOrder
(
scope
.
row
,
'UP'
);
}}
>
上移
...
...
@@ -124,11 +134,20 @@
type
=
"text"
disabled
=
{
scope
.
row
.
isBottom
}
onClick
=
{()
=>
{
this
.
moveDown
(
scope
.
$index
,
scope
.
row
);
this
.
updateOrder
(
scope
.
row
,
'DOWN'
);
}}
>
下移
<
/el-button
>
<
el
-
button
type
=
"text"
disabled
=
{
scope
.
row
.
isBottom
}
onClick
=
{()
=>
{
this
.
updateOrder
(
scope
.
row
,
'BOTTOM'
);
}}
>
置底
<
/el-button
>
<
/div
>
);
},
...
...
@@ -225,22 +244,12 @@
methods
:
{
// 获取角色列表
getTableData
()
{
let
Builtinrole
=
[];
let
Publicrole
=
[];
getRolesById
(
1
)
.
then
((
res
)
=>
{
Builtinrole
=
res
.
content
;
getRolesById
(
2
)
getRolesById
([
1
,
2
])
.
then
((
res
)
=>
{
Publicrole
=
res
.
content
;
this
.
listdata
=
Builtinrole
.
concat
(
Publicrole
);
this
.
listdata
=
res
.
content
;
this
.
listdata
=
judgeSort
(
this
.
listdata
);
})
.
catch
((
e
)
=>
console
.
error
(
e
));
})
.
catch
((
e
)
=>
console
.
error
(
e
));
},
// 获取菜单列表
...
...
@@ -397,20 +406,24 @@
this
.
$refs
.
addEditDialog
.
showAddEditDialog
=
true
;
this
.
$refs
.
addEditDialog
.
dialogTitle
=
value
.
id
?
"修改"
:
"新增"
;
},
// 上移下移
moveUpward
(
index
,
row
)
{
realMove
(
row
.
dictid
,
"UP"
,
this
.
listdata
);
this
.
key
++
;
let
id
=
findParents
(
this
.
listdata
,
row
.
dictid
);
this
.
keyList
=
id
;
},
moveDown
(
index
,
row
)
{
realMove
(
row
.
dictid
,
"DOWN"
,
this
.
listdata
);
this
.
key
++
;
let
id
=
findParents
(
this
.
listdata
,
row
.
dictid
);
this
.
keyList
=
id
;
//排序
updateOrder
(
record
,
operate
){
const
findIndex
=
this
.
listdata
.
findIndex
(
item
=>
item
.
id
===
record
.
id
)
let
swapId
=
''
if
(
operate
===
'UP'
)
{
swapId
=
this
.
listdata
[
findIndex
-
1
].
id
}
else
if
(
operate
===
'DOWN'
)
{
swapId
=
this
.
listdata
[
findIndex
+
1
].
id
}
updateOrder
(
'/rest/roles'
,
record
,
operate
,
swapId
).
then
(
res
=>
{
if
(
res
.
status
===
1
)
{
this
.
$message
.
success
({
message
:
res
.
message
,
showClose
:
true
})
this
.
getTableData
();
}
else
{
this
.
$message
.
error
({
message
:
res
.
message
,
showClose
:
true
})
}
})
},
// 删除
handleDelete
:
function
(
id
,
content
=
""
)
{
this
.
$confirm
(
...
...
src/views/system/users/index.vue
View file @
52b3859
...
...
@@ -46,6 +46,7 @@
import
{
deleteDomStr
}
from
'@/utils/proDomStr'
import
tableMixin
from
"@/mixins/tableMixin.js"
;
import
EditDialog
from
"./edit-dialog.vue"
;
import
{
updateOrder
}
from
"@/api/orders"
export
default
{
name
:
"menus"
,
mixins
:
[
tableMixin
],
...
...
@@ -109,7 +110,7 @@
},
{
label
:
"排序"
,
width
:
1
00
,
width
:
2
00
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
...
...
@@ -117,7 +118,16 @@
type
=
"text"
disabled
=
{
scope
.
row
.
isTop
}
onClick
=
{()
=>
{
this
.
moveUpward
(
scope
.
$index
,
scope
.
row
);
this
.
updateOrder
(
scope
.
row
,
'TOP'
);
}}
>
置顶
<
/el-button
>
<
el
-
button
type
=
"text"
disabled
=
{
scope
.
row
.
isTop
}
onClick
=
{()
=>
{
this
.
updateOrder
(
scope
.
row
,
'UP'
);
}}
>
上移
...
...
@@ -126,11 +136,20 @@
type
=
"text"
disabled
=
{
scope
.
row
.
isBottom
}
onClick
=
{()
=>
{
this
.
moveDown
(
scope
.
$index
,
scope
.
row
);
this
.
updateOrder
(
scope
.
row
,
'DOWN'
);
}}
>
下移
<
/el-button
>
<
el
-
button
type
=
"text"
disabled
=
{
scope
.
row
.
isBottom
}
onClick
=
{()
=>
{
this
.
updateOrder
(
scope
.
row
,
'BOTTOM'
);
}}
>
置底
<
/el-button
>
<
/div
>
);
},
...
...
@@ -257,18 +276,23 @@
})
.
catch
(()
=>
{
})
},
// 上移下移
moveUpward
(
index
,
row
)
{
realMove
(
row
.
dictid
,
"UP"
,
this
.
tableData
.
data
);
this
.
key
++
;
let
id
=
findParents
(
this
.
tableData
.
data
,
row
.
dictid
);
this
.
keyList
=
id
;
},
moveDown
(
index
,
row
)
{
realMove
(
row
.
dictid
,
"DOWN"
,
this
.
tableData
.
data
);
this
.
key
++
;
let
id
=
findParents
(
this
.
tableData
.
data
,
row
.
dictid
);
this
.
keyList
=
id
;
//排序
updateOrder
(
record
,
operate
){
const
findIndex
=
this
.
tableData
.
data
.
findIndex
(
item
=>
item
.
id
===
record
.
id
)
let
swapId
=
''
if
(
operate
===
'UP'
)
{
swapId
=
this
.
tableData
.
data
[
findIndex
-
1
].
id
}
else
if
(
operate
===
'DOWN'
)
{
swapId
=
this
.
tableData
.
data
[
findIndex
+
1
].
id
}
updateOrder
(
'/rest/users'
,
record
,
operate
,
swapId
).
then
(
res
=>
{
if
(
res
.
status
===
1
)
{
this
.
$message
.
success
({
message
:
res
.
message
,
showClose
:
true
})
this
.
getTableList
();
}
else
{
this
.
$message
.
error
({
message
:
res
.
message
,
showClose
:
true
})
}
})
},
// 修改人员信息
handleEdit
(
row
)
{
...
...
Please
register
or
sign in
to post a comment