Commit b481bb9b by liangzhen

用户管理接口配置

1 parent ff281aa9
......@@ -51,3 +51,7 @@ export const queryEleRelation = EADC_ARRCHITECTURE + '/archi-asset-relation/qEle
// 资产关系查询
export const queryAssetRelation = EADC_ARRCHITECTURE + '/archi-asset-relation/qAssetRelation'
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
......@@ -6,3 +6,7 @@ export const EADC_SHARED_ABILITY = '/eadc-shared-ability'
// 架构知识库
export const EADC_KNOWLEDGE_POOL = '/eadc-knowledge-pool'
//国能项目
//系统管理
export const ARCH_MANAGE = '/arch-manage'
\ No newline at end of file
......@@ -2,6 +2,62 @@
<section class="app-main">
<transition name="fade-transform" mode="out-in">
<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" />
</keep-alive>
</transition>
......@@ -10,20 +66,32 @@
<script>
export default {
name: 'AppMain',
name: "AppMain",
data(){
return{
arr:[
{name:'需要对XX项目架构进行审批'},
{name:'需要对XX项目架构进行审批'},
{name:'需要对XX项目架构进行审批'},
{name:'需要对XX项目架构进行审批'},
{name:'需要对XX项目架构进行审批'},
]
}
},
computed: {
cachedViews() {
return this.$store.state.tagsView.cachedViews
return this.$store.state.tagsView.cachedViews;
},
key() {
return this.$route.path
}
}
}
return this.$route.path;
},
},
};
</script>
<style lang="scss" scoped>
@import '@/styles/transition.scss';
@import "@/styles/transition.scss";
.app-main {
/* 50= navbar 50 */
// min-height: calc(100vh - 50px);
......@@ -38,7 +106,7 @@ export default {
box-shadow: 10px 10px 30px 30px rgba(201, 226, 225, 1);
}
.fixed-header+.app-main {
.fixed-header + .app-main {
padding-top: 50px;
}
......@@ -48,7 +116,7 @@ export default {
min-height: calc(100vh - 84px);
}
.fixed-header+.app-main {
.fixed-header + .app-main {
padding-top: 84px;
}
}
......@@ -61,4 +129,107 @@ export default {
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>
......@@ -380,7 +380,7 @@
addLog,
getAddExpertList,
addExpertUser
} from "@/api/index.js";
} from "@/api/system";
export default {
mixins: [mixins],
components: {
......
......@@ -46,6 +46,14 @@ module.exports = defineConfig({
// secure: false,
// pathRewrite: { '^/api': '' },
},
'/arch-manage': {
target: `http://${ip}:19000/`, // 国能
changeOrigin: true,
// secure: false,
// pathRewrite: { '^/api': '' },
},
},
},
chainWebpack: (config) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!