萤石摄像头
This commit is contained in:
@ -1,6 +1,17 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ProgressCategoryVO, ProgressCategoryForm, ProgressCategoryQuery, ProgressPlanForm, lastTimeVo, workScheduleListVO, workScheduleListQuery, progressPlanDetailForm, pvModuleListQuery, pvModuleListVO } from '@/api/progress/plan/types';
|
||||
import {
|
||||
ProgressCategoryVO,
|
||||
ProgressCategoryForm,
|
||||
ProgressCategoryQuery,
|
||||
ProgressPlanForm,
|
||||
lastTimeVo,
|
||||
workScheduleListVO,
|
||||
workScheduleListQuery,
|
||||
progressPlanDetailForm,
|
||||
pvModuleListQuery,
|
||||
pvModuleListVO
|
||||
} from '@/api/progress/plan/types';
|
||||
|
||||
/**
|
||||
* 查询进度类别列表
|
||||
@ -68,9 +79,8 @@ export const delProgressCategory = (id: string | number | Array<string | number>
|
||||
*/
|
||||
export const getProjectSquare = (projectId: string) => {
|
||||
return request({
|
||||
url: '/facility/matrix/list',
|
||||
method: 'get',
|
||||
params: {projectId}
|
||||
url: '/project/project/list/sub/matrix/' + projectId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
@ -78,7 +88,7 @@ export const getProjectSquare = (projectId: string) => {
|
||||
* 获取进度类别最后一次进度信息
|
||||
* @param id
|
||||
*/
|
||||
export const lastTime = (id: string | number ):AxiosPromise<lastTimeVo> => {
|
||||
export const lastTime = (id: string | number): AxiosPromise<lastTimeVo> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/lastTime/' + id,
|
||||
method: 'get'
|
||||
@ -101,7 +111,7 @@ export const workScheduleAddPlan = (data: ProgressPlanForm) => {
|
||||
* 获取进度计划详细信息
|
||||
* @param params
|
||||
*/
|
||||
export const workScheduleList = (query: workScheduleListQuery):AxiosPromise<workScheduleListVO[]> => {
|
||||
export const workScheduleList = (query: workScheduleListQuery): AxiosPromise<workScheduleListVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressPlan/list',
|
||||
method: 'get',
|
||||
@ -113,10 +123,10 @@ export const workScheduleList = (query: workScheduleListQuery):AxiosPromise<work
|
||||
* 获取进度类别坐标信息
|
||||
* @param params
|
||||
*/
|
||||
export const workScheduleListPosition = (id: string):AxiosPromise<any> => {
|
||||
export const workScheduleListPosition = (id: string): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/coordinate/' + id,
|
||||
method: 'get',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
@ -136,11 +146,11 @@ export const workScheduleSubmit = (data: progressPlanDetailForm) => {
|
||||
* 获取进度计划详情未完成设施详细信息
|
||||
* @param params
|
||||
*/
|
||||
export const pvModuleList = (query: pvModuleListQuery):AxiosPromise<pvModuleListVO[]> => {
|
||||
export const pvModuleList = (query: pvModuleListQuery): AxiosPromise<pvModuleListVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/detail/unFinish/' + query.id ,
|
||||
url: '/progress/progressPlanDetail/detail/unFinish/' + query.id,
|
||||
method: 'get',
|
||||
params:query
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
@ -160,9 +170,9 @@ export const addDaily = (data: progressPlanDetailForm) => {
|
||||
* 获取进度计划详情已完成设施详细信息
|
||||
* @param params
|
||||
*/
|
||||
export const getDailyBook = (query: pvModuleListQuery):AxiosPromise<pvModuleListVO[]> => {
|
||||
export const getDailyBook = (query: pvModuleListQuery): AxiosPromise<pvModuleListVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/detail/finished/'+ query.id,
|
||||
url: '/progress/progressPlanDetail/detail/finished/' + query.id,
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
@ -172,7 +182,7 @@ export const getDailyBook = (query: pvModuleListQuery):AxiosPromise<pvModuleList
|
||||
* 删除进度计划详情
|
||||
* @param id
|
||||
*/
|
||||
export const deleteDaily = (query: {id:string,detailIdList:string[]}) => {
|
||||
export const deleteDaily = (query: { id: string; detailIdList: string[] }) => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/remove/detail',
|
||||
method: 'delete',
|
||||
@ -180,4 +190,4 @@ export const deleteDaily = (query: {id:string,detailIdList:string[]}) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const workScheduleDel=()=>{}
|
||||
export const workScheduleDel = () => {};
|
||||
|
@ -29,8 +29,8 @@ export interface ProgressCategoryVO {
|
||||
*/
|
||||
children: ProgressCategoryVO[];
|
||||
threeChildren: any[];
|
||||
hasChildren:any;
|
||||
detailChildren:any;
|
||||
hasChildren: any;
|
||||
detailChildren: any;
|
||||
}
|
||||
|
||||
export interface ProgressCategoryForm extends BaseEntity {
|
||||
|
Reference in New Issue
Block a user