Commit ffd10ebf by 胡悦

修复

1 parent 72d984cc
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
id="glsx-system-sub" id="glsx-system-sub"
class="glsx-system-sub" class="glsx-system-sub"
> >
<div id="nav"> <!-- <div id="nav">
<router-link to="/">Home</router-link> | <router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link> | <router-link to="/about">About</router-link> |
<router-link to="/user">user</router-link> | <router-link to="/user">user</router-link> |
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
<router-link to="/dictionaryManage">dictionaryManage</router-link> | <router-link to="/dictionaryManage">dictionaryManage</router-link> |
<router-link to="/dictionaryData">dictionaryData</router-link> | <router-link to="/dictionaryData">dictionaryData</router-link> |
<router-link to="/workLog">workLog</router-link> <router-link to="/workLog">workLog</router-link>
<!-- <p>a链接跳转到主项目/其他子项目的页面,页面会刷新,效果不好<a href="/about">parent About</a></p> --> <p>a链接跳转到主项目/其他子项目的页面,页面会刷新,效果不好<a href="/about">parent About</a></p>
<p v-if="isQiankun"> <p v-if="isQiankun">
主项目把router传给子项目,子项目用这个router来跳转 主项目把router传给子项目,子项目用这个router来跳转
<span @click="goToPage('/about')">parent About</span> <span @click="goToPage('/about')">parent About</span>
<span @click="goToPage('/app-vue-history/about')">app-vue-history About</span> <span @click="goToPage('/app-vue-history/about')">app-vue-history About</span>
</p> </p>
</div> </div> -->
<router-view /> <router-view />
</div> </div>
</template> </template>
......
...@@ -41,14 +41,14 @@ const MENU_API = { ...@@ -41,14 +41,14 @@ const MENU_API = {
MENU_PERMTREE: '/usercenter/menu/permtree' MENU_PERMTREE: '/usercenter/menu/permtree'
} }
const ORGINIZA_API = { const ORGINIZA_API = {
ORGINIZA_SEARCH: BASE_URL + '/usercenter/organization/search', ORGINIZA_SEARCH: '/usercenter/organization/search',
ORGINIZA_CHILDREN: BASE_URL + '/usercenter/organization/children', ORGINIZA_CHILDREN: '/usercenter/organization/children',
ORGINIZA_SIMPLElIST: BASE_URL + '/usercenter/organization/simplelist', ORGINIZA_SIMPLElIST: '/usercenter/organization/simplelist',
ORGINIZA_TREEORY: BASE_URL + '/usercenter/organization/orgtree', ORGINIZA_TREEORY: '/usercenter/organization/orgtree',
ORGINIZA_ADD: BASE_URL + '/usercenter/organization/add', ORGINIZA_ADD: '/usercenter/organization/add',
ORGINIZA_EDIT: BASE_URL + '/usercenter/organization/edit', ORGINIZA_EDIT: '/usercenter/organization/edit',
ORGINIZA_DELETE: BASE_URL + '/usercenter/organization/delete', ORGINIZA_DELETE: '/usercenter/organization/delete',
ORGINIZA_INFO: BASE_URL + '/usercenter/organization/info' ORGINIZA_INFO: '/usercenter/organization/info'
} }
const DICT_API = { const DICT_API = {
DICT_SEARCH: '/publiccenter/dict/type/search', DICT_SEARCH: '/publiccenter/dict/type/search',
......
...@@ -34,7 +34,10 @@ ...@@ -34,7 +34,10 @@
height: 30px; height: 30px;
} }
} }
.container {
padding: 20px 10px 0px 20px;
width: 100%;
}
.user-container { .user-container {
padding: 20px 10px 0px 20px; padding: 20px 10px 0px 20px;
float: left; float: left;
......
<template> <template>
<div class="system-container"> <div class="system-container">
<div class="user-container"> <div class="container">
<search-form <search-form
class="searchTop border-shadow" class="searchTop border-shadow"
:formModel="searchForm" :formModel="searchForm"
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
v-for="(child,childIndex) in $Constants.ROLE_VISIBLE" v-for="(child,childIndex) in $Constants.ROLE_VISIBLE"
:key="childIndex" :key="childIndex"
:label="childIndex" :label="childIndex"
>{{child}}{{childIndex}}</el-radio> >{{child}}</el-radio>
</el-radio-group> </el-radio-group>
<el-select <el-select
v-if="roleForm.roleVisibility == 2" v-if="roleForm.roleVisibility == 2"
...@@ -214,14 +214,14 @@ export default { ...@@ -214,14 +214,14 @@ export default {
menuIdList: this.roleForm.menuIdList menuIdList: this.roleForm.menuIdList
} }
params.enableStatus = this.roleForm.enableStatus ? 1 : 2 params.enableStatus = this.roleForm.enableStatus ? 1 : 2
params.roleVisibility = Number(this.roleForm.roleVisibility)
params.rolePermissionType = Number(this.roleForm.rolePermissionType)
if (params.roleVisibility == 2) {
params.roleTenants = this.roleForm.roleTenants.toString()
}
if (this.roleForm.id) { if (this.roleForm.id) {
api = editRole api = editRole
params.roleId = this.roleForm.id params.roleId = this.roleForm.id
params.roleVisibility = Number(this.roleForm.roleVisibility)
params.rolePermissionType = Number(this.roleForm.rolePermissionType)
if (params.roleVisibility == 2) {
params.roleTenants = this.roleForm.roleTenants.toString()
}
} }
console.log(params) console.log(params)
api(params).then(res => { api(params).then(res => {
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
node-key="id" node-key="id"
@node-click="handleNodeClick" @node-click="handleNodeClick"
:render-content="renderContent" :render-content="renderContent"
default-expand-all
> >
</el-tree> </el-tree>
</div> </div>
...@@ -133,6 +134,7 @@ export default { ...@@ -133,6 +134,7 @@ export default {
return { return {
USERSTATUS: this.$Constants.USER_STATUS, USERSTATUS: this.$Constants.USER_STATUS,
orgName: '', orgName: '',
isExpand: false,
searchForm: {}, searchForm: {},
userFormList: [ userFormList: [
{ {
...@@ -156,8 +158,8 @@ export default { ...@@ -156,8 +158,8 @@ export default {
} }
], ],
tableParams: { tableParams: {
mutiSelectName: 'user', // mutiSelectName: 'user',
mutiSelectUniqueKey: 'id', // mutiSelectUniqueKey: 'id',
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableColumns: [ tableColumns: [
...@@ -244,69 +246,7 @@ export default { ...@@ -244,69 +246,7 @@ export default {
filterDialogTitle: '选择组织', filterDialogTitle: '选择组织',
filterVisible: false, filterVisible: false,
filterText: '', filterText: '',
filterTextData: [ filterTextData: [],
{
id: 1,
label: '广汇集团',
children: [
{
id: 10,
label: '东北大区'
}, {
id: 11,
label: '华南大区'
}, {
id: 12,
label: '西北大区',
children: [
{
id: 100,
label: '新疆',
children: [
{
id: 1000,
label: '新疆克拉玛依华威4S店'
}, {
id: 1001,
label: '新疆克拉玛依华威4S店'
}
]
}, {
id: 101,
label: '陕西'
}
]
}
]
}, {
id: 2,
label: '成都轱辘汽车服务公司',
children: [
{
id: 20,
label: '新疆克拉玛依华威4S店'
}, {
id: 21,
label: '深圳市',
children: [
{
id: 200,
label: '南山区',
children: [
{
id: 2000,
label: '南山科技园片区'
}
]
}, {
id: 201,
label: '福田竹子林金融产业园区'
}
]
}
]
}
],
} }
}, },
watch: { watch: {
...@@ -513,6 +453,7 @@ export default { ...@@ -513,6 +453,7 @@ export default {
orgName: value orgName: value
} }
this.getTreeOrg(params) this.getTreeOrg(params)
this.isExpand = true
// this.$refs.userTable.refreshTable() // this.$refs.userTable.refreshTable()
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!