Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mobi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wbx-PCAndMobi
mobi
Commits
06a30c98
Commit
06a30c98
authored
Apr 30, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改角色下拉搜索
parent
7fcc7c29
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
api.js
src/server/api.js
+2
-2
edit.vue
src/views/personal/InternalStaff/edit.vue
+4
-3
No files found.
src/server/api.js
View file @
06a30c98
...
@@ -63,8 +63,8 @@ case 'huangpu-prod':
...
@@ -63,8 +63,8 @@ case 'huangpu-prod':
default
:
// 默认环境下(开发环境)
default
:
// 默认环境下(开发环境)
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
//
BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
BASE_URL
=
'http://yangpu-hm.omniview.pro/api/v2'
BASE_URL
=
'http://xuhui.hm.omniview.pro/api/v2'
//
BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
// BASE_URL = 'http://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
MOCK_URL
=
'https://yapi.omniview.pro/mock/283'
MOCK_URL
=
'https://yapi.omniview.pro/mock/283'
...
...
src/views/personal/InternalStaff/edit.vue
View file @
06a30c98
...
@@ -57,9 +57,9 @@
...
@@ -57,9 +57,9 @@
<a-row
class=
"formItemLine"
>
<a-row
class=
"formItemLine"
>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
label=
"角色名称"
v-bind=
"colSpe"
>
<a-form-item
label=
"角色名称"
v-bind=
"colSpe"
>
<a-select
placeholder=
"请选择"
@
change=
"roleChange"
allowClear
mode=
"multiple"
labelInValue
v-decorator=
"['notes']
<a-select
placeholder=
"请选择"
@
change=
"roleChange"
allowClear
mode=
"multiple"
show-search
labelInValue
v-decorator=
"['notes']
"
>
"
>
<a-select-option
v-for=
"(item,index) in roleList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
roleName
}}
</a-select-option>
<a-select-option
v-for=
"(item,index) in roleList"
:key=
"index"
:value=
"item.
roleName+'#'+itegim.
id"
>
{{
item
.
roleName
}}
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
...
@@ -124,6 +124,7 @@ export default {
...
@@ -124,6 +124,7 @@ export default {
this
.
getTree
()
this
.
getTree
()
this
.
getRoleLists
()
this
.
getRoleLists
()
console
.
log
(
123
)
},
},
methods
:
{
methods
:
{
// 查询权限树
// 查询权限树
...
@@ -234,7 +235,7 @@ export default {
...
@@ -234,7 +235,7 @@ export default {
params
:
sparams
params
:
sparams
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
roleList
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
// 得到当前账号可支配全部角色 供多选框选择
this
.
roleList
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
// 得到当前账号可支配全部角色 供多选框选择
console
.
log
(
this
.
roleList
)
//如果路由有id则为修改数据-- 去获取对应数据渲染
//如果路由有id则为修改数据-- 去获取对应数据渲染
if
(
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
.
id
)
{
this
.
getDetail
()
this
.
getDetail
()
...
...
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