Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
罗超
SuperMan
Commits
ec941dda
Commit
ec941dda
authored
May 09, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
b6948ff0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
66 deletions
+69
-66
positionManagement.vue
src/components/administrative/positionManagement.vue
+69
-66
No files found.
src/components/administrative/positionManagement.vue
View file @
ec941dda
...
...
@@ -7,13 +7,16 @@
<ul>
<li>
<!-- 岗位名称 -->
<span><em>
{{
$t
(
'adm.adm_gwname'
)
}}
</em><el-input
class=
'w210'
v-model=
'msg.PostName'
@
keyup
.
enter
.
native=
"getList"
></el-input></span>
<span><em>
{{
$t
(
'adm.adm_gwname'
)
}}
</em>
<el-input
class=
'w210'
v-model=
'msg.PostName'
@
keyup
.
enter
.
native=
"getList"
></el-input>
</span>
</li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
@
click=
"outerVisible = true,dialogTitle=$t('objFill.xingzenganwei'),layerShowIndex=1,getCompany()"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
@
click=
"outerVisible = true,dialogTitle=$t('objFill.xingzenganwei'),layerShowIndex=1,getCompany()"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
/>
</li>
</ul>
</div>
...
...
@@ -37,7 +40,8 @@
<el-button
@
click=
"roleAllocation(item.PostId,1)"
type=
"primary"
icon=
"iconfont icon-user11"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('objFill.appjuesegl')"
placement=
"top-start"
>
<el-button
v-if=
"qjGroupId==userInfo.RB_Group_id || A_AppMenu_Allot"
@
click=
"roleAllocation(item.PostId,2)"
type=
"primary"
icon=
"iconfont icon-user11"
></el-button>
<el-button
v-if=
"qjGroupId==userInfo.RB_Group_id || A_AppMenu_Allot"
@
click=
"roleAllocation(item.PostId,2)"
type=
"primary"
icon=
"iconfont icon-user11"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
@
click=
"deleteData(item.PostId)"
type=
"danger"
icon=
"el-icon-delete"
></el-button>
...
...
@@ -47,14 +51,15 @@
</tr>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"total"
>
</el-pagination>
<el-dialog
custom-class=
'w550'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"120px"
>
<div
v-if=
"this.layerShowIndex==1"
>
<el-form-item
:label=
"$t('adm.adm_gwname')"
prop=
"PostName"
>
<el-input
class=
'w300'
type=
"text"
v-model=
"addMsg.PostName"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
class=
'w300'
type=
"text"
v-model=
"addMsg.PostName"
:placeholder=
"$t('pub.pleaseImport')"
>
</el-input>
</el-form-item>
<el-form-item
:label=
"$t('adm.adm_ynyyfenqu')"
prop=
"IsUseSubarea"
>
<el-select
v-model=
"addMsg.IsUseSubarea"
:placeholder=
"$t('pub.pleaseSel')"
>
...
...
@@ -64,16 +69,19 @@
</el-form-item>
</div>
<div
v-if=
"this.layerShowIndex==2"
>
<el-transfer
filterable
v-model=
"postRoleListId"
:data=
"groupRoleList"
:props=
"
{key: 'Id',label: 'Name'}" :titles="[$t('objFill.kexuanjuese'), $t('objFill.yiuxanjuese')]">
</el-transfer>
<el-transfer
filterable
v-model=
"postRoleListId"
:data=
"groupRoleList"
:props=
"
{key: 'Id',label: 'Name'}"
:titles="[$t('objFill.kexuanjuese'), $t('objFill.yiuxanjuese')]">
</el-transfer>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"outerVisible = false,resetForm('addMsg')"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
v-if=
"this.layerShowIndex==1"
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
v-if=
"this.layerShowIndex==2"
class=
"normalBtn"
type=
"primary"
@
click=
"updateRole()"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"outerVisible = false,resetForm('addMsg')"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
v-if=
"this.layerShowIndex==1"
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
v-if=
"this.layerShowIndex==2"
class=
"normalBtn"
type=
"primary"
@
click=
"updateRole()"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
</div>
</el-dialog>
</div>
</
template
>
...
...
@@ -81,10 +89,9 @@
export
default
{
data
()
{
//穿梭
return
{
A_AppMenu_Allot
:
false
,
qjGroupId
:
-
1
,
userInfo
:{},
A_AppMenu_Allot
:
false
,
qjGroupId
:
-
1
,
userInfo
:
{},
loading
:
true
,
total
:
0
,
pageSize
:
''
,
...
...
@@ -111,8 +118,16 @@
Status
:
0
,
},
rules
:
{
PostName
:
[{
required
:
true
,
message
:
this
.
$t
(
'adm.adm_qsrgwname'
),
trigger
:
'blur'
}],
IsUseSubarea
:
[{
required
:
true
,
message
:
this
.
$t
(
'adm.adm_qxzsfyyfenqu'
),
trigger
:
'blur'
}]
PostName
:
[{
required
:
true
,
message
:
this
.
$t
(
'adm.adm_qsrgwname'
),
trigger
:
'blur'
}],
IsUseSubarea
:
[{
required
:
true
,
message
:
this
.
$t
(
'adm.adm_qxzsfyyfenqu'
),
trigger
:
'blur'
}]
},
addMsg
:
{
PostId
:
'-1'
,
...
...
@@ -146,9 +161,10 @@
let
userInfo
=
this
.
getLocalStorage
();
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
GetSupperOrderEditAuth
();
this
.
qjGroupId
=
this
.
QjGroupId
();
this
.
qjGroupId
=
this
.
QjGroupId
();
this
.
msg
.
RB_Group_Id
=
this
.
getDepartmentMsg
.
RB_Group_Id
=
this
.
getCompanyMsg
.
RB_Group_Id
=
this
.
addMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团
this
.
msg
.
RB_Group_Id
=
this
.
getDepartmentMsg
.
RB_Group_Id
=
this
.
getCompanyMsg
.
RB_Group_Id
=
this
.
addMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团
this
.
getList
();
this
.
getCompany
();
this
.
getDerpartMent
();
...
...
@@ -156,14 +172,12 @@
methods
:
{
GetSupperOrderEditAuth
()
{
var
actionCodeNew
=
this
.
$AuthCode
.
A_AppMenu_Allot
;
// 制单权限
this
.
CheckUserAuth
(
actionCodeNew
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
A_AppMenu_Allot
=
true
;
}
});
},
getCompany
()
{
this
.
apipost
(
'admin_get_BranchGetList'
,
this
.
getCompanyMsg
,
res
=>
{
...
...
@@ -173,10 +187,8 @@
}
else
{
this
.
companyList
=
res
.
data
.
data
;
}
}
else
{
}
},
err
=>
{
})
}
else
{}
},
err
=>
{})
},
getDerpartMent
()
{
//获取部门
this
.
apipost
(
'admin_get_DepartmentGetList'
,
this
.
getDepartmentMsg
,
res
=>
{
...
...
@@ -186,10 +198,8 @@
}
else
{
this
.
departMentList
=
res
.
data
.
data
;
}
}
else
{
}
},
err
=>
{
})
}
else
{}
},
err
=>
{})
},
getList
()
{
//获取数据
this
.
loading
=
true
,
...
...
@@ -198,10 +208,8 @@
this
.
DataList
=
res
.
data
.
data
.
pageData
this
.
total
=
res
.
data
.
data
.
count
this
.
loading
=
false
}
else
{
}
},
err
=>
{
})
}
else
{}
},
err
=>
{})
},
addData
()
{
//新增数据
this
.
apipost
(
'admin_post_PostSet'
,
this
.
addMsg
,
res
=>
{
...
...
@@ -213,21 +221,19 @@
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{
})
},
err
=>
{})
},
updateData
(
index
,
id
)
{
this
.
addMsg
.
PostId
=
id
this
.
apipost
(
'admin_get_PostGet'
,
{
PostId
:
id
},
res
=>
{
this
.
apipost
(
'admin_get_PostGet'
,
{
PostId
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
this
.
addMsg
=
res
.
data
.
data
;
this
.
addMsg
.
IsUseSubarea
=
this
.
addMsg
.
IsUseSubarea
.
toString
();
}
else
{
}
},
err
=>
{
})
},
err
=>
{})
this
.
layerShowIndex
=
1
;
},
roleAllocation
(
id
,
platform
)
{
//角色管理
this
.
platform
=
platform
;
...
...
@@ -237,23 +243,24 @@
this
.
updatePostId
=
id
;
this
.
layerShowIndex
=
2
;
this
.
outerVisible
=
true
;
this
.
apipost
(
'admin_get_PostGetPostRole'
,
{
PostId
:
id
,
Platform
:
platform
},
res
=>
{
this
.
apipost
(
'admin_get_PostGetPostRole'
,
{
PostId
:
id
,
Platform
:
platform
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
groupRoleList
=
res
.
data
.
data
.
groupRoleList
;
res
.
data
.
data
.
postRoleList
.
forEach
(
i
=>
{
this
.
postRoleListId
.
push
(
i
.
Id
)
});
}
else
{
}
},
err
=>
{
})
},
err
=>
{})
},
updateRole
()
{
//修改岗位角色
let
roleIdsString
=
this
.
postRoleListId
.
join
(
','
);
this
.
apipost
(
'admin_post_PostUpdatePostRole'
,
{
PostId
:
this
.
updatePostId
,
RoleIds
:
roleIdsString
,
Platform
:
this
.
platform
Platform
:
this
.
platform
},
res
=>
{
this
.
insideDialogTxt
=
res
.
data
.
message
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -262,8 +269,7 @@
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{
})
},
err
=>
{})
},
deleteData
(
id
)
{
this
.
$confirm
(
this
.
$t
(
'tips.shifoushanchu'
),
this
.
$t
(
'tips.tips'
),
{
...
...
@@ -280,17 +286,14 @@
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
()
}
else
{
}
},
err
=>
{
})
}
else
{}
},
err
=>
{})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
this
.
$t
(
'tips.cancleDelete'
)
});
});
},
linkageDepartment
()
{
//联动部门
this
.
msg
.
RB_Department_Id
=
'0'
;
...
...
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