Commit ff8b5001 authored by huyf's avatar huyf

我的部门目标添加目标设置

parent d71ebde0
...@@ -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({
......
...@@ -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 {listDept, listSimpleDepts} from "@/api/system/dept"; import {myListDept, 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;
listDept(this.queryParams).then(response => { myListDept(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) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment