Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b481bb9b
authored
Jul 10, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理接口配置
1 parent
ff281aa9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
257 additions
and
10 deletions
src/api/interface.js
src/api/system.js
src/config/micromodule.js
src/views/Main/components/AppMain.vue
src/views/system/personnel/index.vue
vue.config.js
src/api/interface.js
View file @
b481bb9
...
@@ -51,3 +51,7 @@ export const queryEleRelation = EADC_ARRCHITECTURE + '/archi-asset-relation/qEle
...
@@ -51,3 +51,7 @@ export const queryEleRelation = EADC_ARRCHITECTURE + '/archi-asset-relation/qEle
// 资产关系查询
// 资产关系查询
export
const
queryAssetRelation
=
EADC_ARRCHITECTURE
+
'/archi-asset-relation/qAssetRelation'
export
const
queryAssetRelation
=
EADC_ARRCHITECTURE
+
'/archi-asset-relation/qAssetRelation'
src/api/system.js
0 → 100644
View file @
b481bb9
import
{
ARCH_MANAGE
}
from
'@/config/micromodule'
import
{
post
}
from
'@/utils/http'
// 用户管理
//左组织机构树形
export
function
orgGetTree
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/org/tree'
,
params
)
}
//用户信息列表查询
export
function
userPage
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/page'
,
params
)
}
export
function
userAdd
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/add'
,
params
)
}
export
function
userGetUserTypes
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/getUserTypes'
,
params
)
}
export
function
userGetUserSex
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/getUserSex'
,
params
)
}
export
function
userDelete
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/delete'
,
params
)
}
export
function
userBatchDelete
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/batchDelete'
,
params
)
}
export
function
userUpdate
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/update'
,
params
)
}
export
function
roleList
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/role/getAll'
,
params
)
}
export
function
addLog
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/safelog/addLog'
,
params
)
}
export
function
getAddExpertList
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/getIscUserByName'
,
params
)
}
export
function
addExpertUser
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/addIscUser'
,
params
)
}
export
function
userGetId
(
params
)
{
return
post
(
ARCH_MANAGE
+
'/user/get'
,
params
)
}
\ No newline at end of file
src/config/micromodule.js
View file @
b481bb9
...
@@ -6,3 +6,7 @@ export const EADC_SHARED_ABILITY = '/eadc-shared-ability'
...
@@ -6,3 +6,7 @@ export const EADC_SHARED_ABILITY = '/eadc-shared-ability'
// 架构知识库
// 架构知识库
export
const
EADC_KNOWLEDGE_POOL
=
'/eadc-knowledge-pool'
export
const
EADC_KNOWLEDGE_POOL
=
'/eadc-knowledge-pool'
//国能项目
//系统管理
export
const
ARCH_MANAGE
=
'/arch-manage'
\ No newline at end of file
src/views/Main/components/AppMain.vue
View file @
b481bb9
...
@@ -2,6 +2,62 @@
...
@@ -2,6 +2,62 @@
<section
class=
"app-main"
>
<section
class=
"app-main"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<keep-alive
:include=
"cachedViews"
>
<keep-alive
:include=
"cachedViews"
>
<div
class=
"mains"
>
<div
class=
"top"
>
<div
class=
"left"
>
<div
class=
"header"
>
<img
class=
"btn_icon"
src=
"@/assets/images/a1.png"
alt=
""
/>
</div>
<div>
<p>
早安,李晓霞,祝你开心每一天!
</p>
<p
class=
"info"
>
公司/职位/某某某
</p>
</div>
</div>
<div
class=
"right"
>
<i
class=
"el-icon-plus"
></i>
<p>
创建架构视图
</p>
</div>
<div
class=
"right"
>
<i
class=
"el-icon-plus"
></i>
<p>
编写架构方案
</p>
</div>
</div>
<div
class=
"buttom"
>
<div
class=
"module"
>
<div
class=
"left"
>
<!--
<p
class=
"title"
>
视图列表
</p>
<p
v-for=
"(item, index) in arr"
:key=
index
class=
"content"
>
<span
>
{{
index
+
1
}}
</span>
{{
item
.
name
}}
</p>
<div
class=
"left"
>
<p
class=
"title"
>
视图列表
</p>
<p
v-for=
"(item, index) in arr"
:key=
index
class=
"content"
>
<span
>
{{
index
+
1
}}
</span>
{{
item
.
name
}}
</p>
</div>
-->
</div>
</div>
<div
class=
"module"
>
<p
class=
"title"
>
视图列表
</p>
<p
v-for=
"(item, index) in arr"
:key=
index
class=
"content"
>
<span
>
{{
index
+
1
}}
</span>
{{
item
.
name
}}
</p>
</div>
<div
class=
"module"
>
<p
class=
"title"
>
通知信息
</p>
<p
v-for=
"(item, index) in arr"
:key=
index
class=
"content"
>
<span
>
{{
index
+
1
}}
</span>
{{
item
.
name
}}
</p>
</div>
<div
class=
"module"
>
<p
class=
"title"
>
文档列表
</p>
<p
v-for=
"(item, index) in arr"
:key=
index
class=
"content"
>
<span
>
{{
index
+
1
}}
</span>
{{
item
.
name
}}
</p>
</div>
</div>
</div>
<router-view
:key=
"key"
/>
<router-view
:key=
"key"
/>
</keep-alive>
</keep-alive>
</transition>
</transition>
...
@@ -10,20 +66,32 @@
...
@@ -10,20 +66,32 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'AppMain'
,
name
:
"AppMain"
,
data
(){
return
{
arr
:[
{
name
:
'需要对XX项目架构进行审批'
},
{
name
:
'需要对XX项目架构进行审批'
},
{
name
:
'需要对XX项目架构进行审批'
},
{
name
:
'需要对XX项目架构进行审批'
},
{
name
:
'需要对XX项目架构进行审批'
},
]
}
},
computed
:
{
computed
:
{
cachedViews
()
{
cachedViews
()
{
return
this
.
$store
.
state
.
tagsView
.
cachedViews
return
this
.
$store
.
state
.
tagsView
.
cachedViews
;
},
},
key
()
{
key
()
{
return
this
.
$route
.
path
return
this
.
$route
.
path
;
}
}
,
}
}
,
}
}
;
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/styles/transition.scss'
;
@import
"@/styles/transition.scss"
;
.app-main
{
.app-main
{
/* 50= navbar 50 */
/* 50= navbar 50 */
//
min-height
:
calc
(
100vh
-
50px
);
//
min-height
:
calc
(
100vh
-
50px
);
...
@@ -38,7 +106,7 @@ export default {
...
@@ -38,7 +106,7 @@ export default {
box-shadow
:
10px
10px
30px
30px
rgba
(
201
,
226
,
225
,
1
);
box-shadow
:
10px
10px
30px
30px
rgba
(
201
,
226
,
225
,
1
);
}
}
.fixed-header
+
.app-main
{
.fixed-header
+
.app-main
{
padding-top
:
50px
;
padding-top
:
50px
;
}
}
...
@@ -48,7 +116,7 @@ export default {
...
@@ -48,7 +116,7 @@ export default {
min-height
:
calc
(
100vh
-
84px
);
min-height
:
calc
(
100vh
-
84px
);
}
}
.fixed-header
+
.app-main
{
.fixed-header
+
.app-main
{
padding-top
:
84px
;
padding-top
:
84px
;
}
}
}
}
...
@@ -61,4 +129,107 @@ export default {
...
@@ -61,4 +129,107 @@ export default {
padding-right
:
15px
;
padding-right
:
15px
;
}
}
}
}
.mains
{
width
:
100%
;
background
:
rgb
(
234
,
234
,
234
);
.top
{
margin
:
10px
;
display
:
flex
;
.left
{
//
padding
:
30px
10px
;
background
:
#fff
;
width
:
81%
;
height
:
160px
;
display
:
flex
;
text-align
:
left
;
align-items
:
center
;
.header
{
width
:
60px
;
height
:
60px
;
align-items
:
center
;
margin
:
0
20px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
.info
{
font-size
:
14px
;
color
:
gray
;
}
}
.right
{
height
:
160px
;
width
:
8%
;
background
:
#39817c
;
border-radius
:
10px
;
margin-left
:
15px
;
color
:
#fff
;
font-size
:
38px
;
font-weight
:
600
;
padding-top
:
32px
;
box-sizing
:
border-box
;
p
{
font-size
:
16px
;
font-weight
:
400
;
}
}
}
.buttom
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-around
;
.module
{
flex
:
0
0
49.4%
;
/* 每个模块宽度为容器宽度的一半 */
box-sizing
:
border-box
;
/* 防止padding引起宽度变化 */
//
padding
:
10px
;
margin
:
3px
;
/* 模块间间距 */
text-align
:
left
;
background
:
#fff
;
.title{
border-bottom
:
1px
solid
gainsboro
;
line-height
:
60px
;
margin
:
0
;
padding-left
:
20px
;
}
.content
{
padding-left
:
20px
;
}
span
{
display
:
inline-block
;
width
:
20px
;
height
:
20px
;
border-radius
:
10px
;
background
:
gainsboro
;
color
:
#000
;
text-align
:
center
;
line-height
:
22px
;
margin-right
:
20px
;
font-size
:
14px
;
}
>
:nth-of-type
(
2
)
{
span{
background
:
black
;
color
:
#fff
;
}
}
>
:nth-of-type
(
3
)
{
span{
background
:
black
;
color
:
#fff
;
}
}
>
:nth-of-type
(
4
)
{
span{
background
:
black
;
color
:
#fff
;
}
}
}
}
}
</
style
>
</
style
>
src/views/system/personnel/index.vue
View file @
b481bb9
...
@@ -380,7 +380,7 @@
...
@@ -380,7 +380,7 @@
addLog
,
addLog
,
getAddExpertList
,
getAddExpertList
,
addExpertUser
addExpertUser
}
from
"@/api/
index.js
"
;
}
from
"@/api/
system
"
;
export
default
{
export
default
{
mixins
:
[
mixins
],
mixins
:
[
mixins
],
components
:
{
components
:
{
...
...
vue.config.js
View file @
b481bb9
...
@@ -46,6 +46,14 @@ module.exports = defineConfig({
...
@@ -46,6 +46,14 @@ module.exports = defineConfig({
// secure: false,
// secure: false,
// pathRewrite: { '^/api': '' },
// pathRewrite: { '^/api': '' },
},
},
'/arch-manage'
:
{
target
:
`http://
${
ip
}
:19000/`
,
// 国能
changeOrigin
:
true
,
// secure: false,
// pathRewrite: { '^/api': '' },
},
},
},
},
},
chainWebpack
:
(
config
)
=>
{
chainWebpack
:
(
config
)
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment