Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
ff8b5001
Commit
ff8b5001
authored
Apr 14, 2023
by
huyf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的部门目标添加目标设置
parent
d71ebde0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
dept.js
src/api/system/dept.js
+9
-0
myDeptTarget.vue
src/views/ecw/deptTarget/myDeptTarget.vue
+10
-10
No files found.
src/api/system/dept.js
View file @
ff8b5001
...
@@ -9,6 +9,15 @@ export function listDept(query) {
...
@@ -9,6 +9,15 @@ export function listDept(query) {
})
})
}
}
// 查询当前登陆人的所属部门列表
export
function
myListDept
(
query
)
{
return
request
({
url
:
'
/system/dept/myListDept
'
,
method
:
'
get
'
,
params
:
query
})
}
// 查询部门列表(排除节点)
// 查询部门列表(排除节点)
export
function
listDeptExcludeChild
(
deptId
)
{
export
function
listDeptExcludeChild
(
deptId
)
{
return
request
({
return
request
({
...
...
src/views/ecw/deptTarget/myDeptTarget.vue
View file @
ff8b5001
...
@@ -27,14 +27,14 @@
...
@@ -27,14 +27,14 @@
</el-form>
</el-form>
<!-- 操作工具栏 -->
<!-- 操作工具栏 -->
<!--
<el-row
:gutter=
"10"
class=
"mb8"
>
--
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<!--
<el-col
:span=
"1.5"
>
--
>
<el-col
:span=
"1.5"
>
<!--
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
--
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
<!-- v-hasPermi="['ecw:dept-target:create']">
{{
$t
(
'
目标设置
'
)
}}
-->
v-hasPermi=
"['ecw:dept-target:create']"
>
{{
$t
(
'
目标设置
'
)
}}
<!--
</el-button>
--
>
</el-button
>
<!--
</el-col>
--
>
</el-col
>
<!--
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
--
>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar
>
<!--
</el-row>
--
>
</el-row
>
<!-- 列表 -->
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
getPersonTargetPage
,
getPersonTargetPage
,
getMyDeptTargetPage
getMyDeptTargetPage
}
from
"
@/api/ecw/deptTarget
"
;
}
from
"
@/api/ecw/deptTarget
"
;
import
{
l
istDept
,
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
myL
istDept
,
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
;
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
;
import
dayjs
from
"
dayjs
"
;
import
dayjs
from
"
dayjs
"
;
import
{
parseTime
}
from
'
@/utils/ruoyi
'
;
import
{
parseTime
}
from
'
@/utils/ruoyi
'
;
...
@@ -271,7 +271,7 @@ import { parseTime } from '@/utils/ruoyi';
...
@@ -271,7 +271,7 @@ import { parseTime } from '@/utils/ruoyi';
/** 查询部门列表 */
/** 查询部门列表 */
getDeptList
(){
getDeptList
(){
this
.
loading
=
true
;
this
.
loading
=
true
;
l
istDept
(
this
.
queryParams
).
then
(
response
=>
{
myL
istDept
(
this
.
queryParams
).
then
(
response
=>
{
this
.
deptList
=
this
.
handleTree
(
response
.
data
,
"
id
"
);
this
.
deptList
=
this
.
handleTree
(
response
.
data
,
"
id
"
);
console
.
log
(
"
this.deptList:
"
+
JSON
.
stringify
(
this
.
deptList
));
console
.
log
(
"
this.deptList:
"
+
JSON
.
stringify
(
this
.
deptList
));
this
.
deptList
.
forEach
((
item
)
=>
{
this
.
deptList
.
forEach
((
item
)
=>
{
...
...
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