|
@@ -1,183 +1,183 @@
|
|
|
-// 质量月报
|
|
|
-import request from '@/utils/request'
|
|
|
-import { TeamManagement } from '@/apiConfig/api'
|
|
|
-
|
|
|
-// ----------------- 主页 --------------
|
|
|
-
|
|
|
-// 获取月报主页下拉选择
|
|
|
-export function getAvaliableInfo() {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/getAvaliableInfo`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 获取月报主页data
|
|
|
-export function monthlyReportIndex(id) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/monthlyReportIndex?id=${id}`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// ---------------- 通用设置 -------------------
|
|
|
-
|
|
|
-// 获取月报发起人列表
|
|
|
-export function getSponsorList() {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/sponsorList`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 添加月报发起人
|
|
|
-export function createSponsor(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/createSponsor`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 删除月报发起人
|
|
|
-export function deleteSponsor(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/deleteSponsor`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 获取业务线设置list
|
|
|
-export function monthlyReportSettingList() {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/settingList`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 更新业务线设置
|
|
|
-export function monthlyReportUpdatSetting(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/updatSetting`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// -------------------- 团队设置 ----------------------
|
|
|
-
|
|
|
-// 获取部门信息列表
|
|
|
-export function getDeptSetting() {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/getDeptSetting`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 删除部门关联业务线
|
|
|
-export function deleteDeptBizRel(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/deleteDeptBizRel`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 部门添加关联业务线
|
|
|
-export function createDeptBizRel(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/createDeptBizRel`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 点击部门获取部门人员信息
|
|
|
-export function getDeptMember(id) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/getDeptMember?deptCode=${id}`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 获取月报业务线
|
|
|
-export function getReportBizInfo(id) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/getReportBizInfo`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 获取部门下odin节点
|
|
|
-export function getOdinNode(id) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/getOdinNode?deptId=${id}`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// -------------- 节点树 ---------------
|
|
|
-
|
|
|
-// 获取月报节点树 待定
|
|
|
-export function getOdinTree(data) {
|
|
|
- return request({
|
|
|
- url: data !== null ? TeamManagement + `/monthlyReport/getOdinTree?keyWord=${data}` : TeamManagement + `/monthlyReport/getOdinTree`,
|
|
|
- timeout: '10000',
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 添加根节点
|
|
|
-export function addShowOdinNode(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/addShowOdinNode`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 创建月报
|
|
|
-export function createMonthlyReport(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/create`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 根据父odin节点加载odin子节点
|
|
|
-export function getOdinNodeByParentId(id) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/getOdinNodeByParentId?odinId=${id}`,
|
|
|
- timeout: '10000',
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 部门模糊搜索
|
|
|
-export function getDeptByKeyWord(id) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/getDeptByKeyWord?keyWord=${id}`,
|
|
|
- timeout: '10000',
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 节点树 增加团队
|
|
|
-export function createOdinDeptRel(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/createOdinDeptRelV2`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// 节点树 删除团队
|
|
|
-export function deleteOdinBizRel(data) {
|
|
|
- return request({
|
|
|
- url: TeamManagement + `/monthlyReport/deleteOdinDeptRelV2`,
|
|
|
- method: 'post',
|
|
|
- data
|
|
|
- })
|
|
|
-}
|
|
|
+// 质量月报
|
|
|
+import request from '@/utils/request'
|
|
|
+import { TeamManagement } from '@/apiConfig/api'
|
|
|
+
|
|
|
+// ----------------- 主页 --------------
|
|
|
+
|
|
|
+// 获取月报主页下拉选择
|
|
|
+export function getAvaliableInfo() {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/getAvaliableInfo`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 获取月报主页data
|
|
|
+export function monthlyReportIndex(id) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/monthlyReportIndex?id=${id}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// ---------------- 通用设置 -------------------
|
|
|
+
|
|
|
+// 获取月报发起人列表
|
|
|
+export function getSponsorList() {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/sponsorList`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 添加月报发起人
|
|
|
+export function createSponsor(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/createSponsor`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 删除月报发起人
|
|
|
+export function deleteSponsor(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/deleteSponsor`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 获取业务线设置list
|
|
|
+export function monthlyReportSettingList() {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/settingList`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 更新业务线设置
|
|
|
+export function monthlyReportUpdatSetting(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/updatSetting`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// -------------------- 团队设置 ----------------------
|
|
|
+
|
|
|
+// 获取部门信息列表
|
|
|
+export function getDeptSetting() {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/getDeptSetting`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 删除部门关联业务线
|
|
|
+export function deleteDeptBizRel(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/deleteDeptBizRel`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 部门添加关联业务线
|
|
|
+export function createDeptBizRel(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/createDeptBizRel`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 点击部门获取部门人员信息
|
|
|
+export function getDeptMember(id) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/getDeptMember?deptCode=${id}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 获取月报业务线
|
|
|
+export function getReportBizInfo(id) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/getReportBizInfo`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 获取部门下odin节点
|
|
|
+export function getOdinNode(id) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/getOdinNode?deptId=${id}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// -------------- 节点树 ---------------
|
|
|
+
|
|
|
+// 获取月报节点树 待定
|
|
|
+export function getOdinTree(data) {
|
|
|
+ return request({
|
|
|
+ url: data !== null ? TeamManagement + `/monthlyReport/getOdinTree?keyWord=${data}` : TeamManagement + `/monthlyReport/getOdinTree`,
|
|
|
+ timeout: '10000',
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 添加根节点
|
|
|
+export function addShowOdinNode(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/addShowOdinNode`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 创建月报
|
|
|
+export function createMonthlyReport(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/create`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 根据父odin节点加载odin子节点
|
|
|
+export function getOdinNodeByParentId(id) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/getOdinNodeByParentId?odinId=${id}`,
|
|
|
+ timeout: '10000',
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 部门模糊搜索
|
|
|
+export function getDeptByKeyWord(id) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/getDeptByKeyWord?keyWord=${id}`,
|
|
|
+ timeout: '10000',
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 节点树 增加团队
|
|
|
+export function createOdinDeptRel(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/createOdinDeptRelV2`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 节点树 删除团队
|
|
|
+export function deleteOdinBizRel(data) {
|
|
|
+ return request({
|
|
|
+ url: TeamManagement + `/monthlyReport/deleteOdinDeptRelV2`,
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|