From 383b09adf02df41d6a70cb0800652bbbc697e49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A6=8D?= <1455167345@qq.com> Date: Wed, 28 May 2025 11:21:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=A1=86=E6=9E=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=86=85=E5=AE=B9=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tiankongdi/index.ts | 206 ------------------ src/api/tiankongdi/model/index.ts | 54 ----- src/components/FormViewer/cardGourp.vue | 4 +- src/components/FormViewer/index.vue | 137 ++++-------- .../package/designer/plugins/translate/zh.ts | 5 + .../package/penal/PropertiesPanel.vue | 18 +- .../ProcessDesigner/package/penal/page.ts | 1 + .../package/penal/transaction/index.vue | 82 +++++++ .../Upload/src/components/FileUpload.vue | 121 ++++------ .../components/FileUploadSelectOtherModal.vue | 152 ------------- .../Upload/src/components/ImageUpload.vue | 104 ++++----- .../ImageUploadSelectOtherModal.vue | 155 ------------- src/router/routes/basic.ts | 13 +- src/utils/env.ts | 2 + .../VFormDesign/components/FormItemProps.vue | 7 + .../VFormDesign/config/formItemPropsConfig.ts | 6 + src/views/demo/workflow/create/preview.vue | 41 +++- .../demo/workflow/task/process/audit.vue | 48 +++- .../demo/workflow/task/uncompletedTask.vue | 3 + src/views/sys/login/Login.vue | 6 +- types/config.d.ts | 1 + 21 files changed, 337 insertions(+), 829 deletions(-) delete mode 100644 src/api/tiankongdi/index.ts delete mode 100644 src/api/tiankongdi/model/index.ts create mode 100644 src/components/ProcessDesigner/package/penal/transaction/index.vue delete mode 100644 src/components/Upload/src/components/FileUploadSelectOtherModal.vue delete mode 100644 src/components/Upload/src/components/ImageUploadSelectOtherModal.vue diff --git a/src/api/tiankongdi/index.ts b/src/api/tiankongdi/index.ts deleted file mode 100644 index 37d0ed9..0000000 --- a/src/api/tiankongdi/index.ts +++ /dev/null @@ -1,206 +0,0 @@ -// WFProcess 流程模版基本信息 -import { defHttp } from '@/utils/http/axios'; -import { - taskCountParams, - caseInfoParams, - countModel, - taskInfoParams, - addCaseFavoriteParams, - updateCaseInfoParams, -} from './model/index'; - -enum Api { - // 获取待办任务统计数据 - LoadTaskCount = '/api/DroneCaseInfoSingle/LoadTaskCount', - // 获取图斑信息统计数据 - LoadDroneCaseInfoCount = '/api/DroneCaseInfoSingle/LoadDroneCaseInfoCount', - // 分页获取图斑信息列表 - LoadDroneCaseInfoDetail = '/api/DroneCaseInfoSingle/LoadTasklList', - // 分页获取任务信息列表 - LoadTaskDetailList = '/api/DroneCaseInfoSingle/LoadTaskDetailList', - // 收藏图斑 - AddCaseFavorite = '/api/DroneCaseInfoSingle/AddCaseFavorite', - // 获取收藏图斑列表 - FavoriteCaseList = '/api/DroneCaseinfo/FavoriteCaseList', - DeleteFavoriteCase = '/api/DroneCaseInfoSingle/DeleteFavoriteCase', - // 获取图斑详情 - GetCaseInfoById = '/api/DroneCaseInfoSingle/GetCaseInfoById', - // 更新图斑行政区划 - UpdateDroneCaseInfo = '/api/DroneCaseInfoSingle/UpdateDroneCaseInfo', - // 督办流程 - Supervise = '/api/WFProcess/Supervise', - // 获取部门父级 - LoadParents = '/api/Orgs/LoadParents', - // 审核列表收藏 - AddtaskFavorite = '/api/DroneCaseInfoSingle/AddtaskFavorite', - // 审核列表删除收藏 - DeleteTaskCase = '/api/DroneCaseInfoSingle/DeleteTaskCase', - // 获取当前账号可以看见的乡镇 - loadStreet = '/api/DroneCaseInfoSingle/loadStreet', - // 违法处理,待办任务列表 - LoadTaskIllegalDetailList = '/api/DroneCaseInfoSingle/LoadTaskIllegalDetailList', - // 分割图斑 - SplitCase = '/api/DroneCaseInfoSingle/CaseSplit', - // 恢复还原 - RecoverCase = '/api/DroneCaseInfoSingle/CaseRecover', - // 获取图斑中心点 - GetPolygonCenter = '/api/DroneCaseInfoSingle/GetCenterPoints', - // 获取用户访问机构权限 - GetUserOrgs = '/api/Check/GetOrgs', - // 大屏下发图斑统计 - IssuedStatitical = '/api/DroneScreenDisplay/CaseOffenceXiaFa', - // 大屏核实新增统计 - VerifyStatitical = '/api/DroneScreenDisplay/CaseOffenceCheckAdd', - // 大屏整改剩余统计 - RectificationStatitical = '/api/DroneScreenDisplay/CaseOffenceModifyRemain', - // 获取案件图片坐标、方位角信息 - LoadCaseImgList = '/api/DroneCaseInfoSingle/LoadCaseImgList', - // 获取范围内影像服务信息 - GetIntersects = '/api/GeoTiffManager/GetIntersects', - // 获取网络环境 - GetNetWorkEev = '/api/DroneCloudQuery/IsPublic', - // 获取其他专题或历史图斑图片 - rebackzhuantipic = '/api/DroneCaseInfoSingle/rebackzhuantipic', - CopyImg = '/api/DroneCaseInfoSingle/CopyImg', - // 获取其他专题或历史图斑附件 - rebackzhuantifujian = '/api/DroneCaseInfoSingle/rebackzhuantifujian', - Copyfujian = '/api/DroneCaseInfoSingle/Copyfujian', -} - -/** - * @description: getCaseFlowLog - */ -export function getLoadTaskCount(params?: taskCountParams) { - return defHttp.get({ url: Api.LoadTaskCount, params }); -} -export function getLoadStreet() { - return defHttp.get({ url: Api.loadStreet }); -} - -/** - * @description: getCaseFlowLog - */ -export function getLoadDroneCaseInfoCount(params?: taskCountParams) { - return defHttp.get({ url: Api.LoadDroneCaseInfoCount, params }); -} - -/** - * @description: getCaseFlowLog - */ -export function getLoadDroneCaseInfoDetail(params?: caseInfoParams) { - return defHttp.get({ url: Api.LoadDroneCaseInfoDetail, params }); -} -/** - * @description: getCaseFlowLog - */ -export function getLoadTaskDetailList(params?: taskInfoParams) { - return defHttp.get({ url: Api.LoadTaskDetailList, params }); -} - -export function addCaseFavorite(params?: addCaseFavoriteParams) { - return defHttp.post({ url: Api.AddCaseFavorite, params }); -} -export function addTaskFavorite(params?: { taskId: string; favoriteUserId: string }) { - return defHttp.post({ url: Api.AddtaskFavorite, params }); -} -export function deleteFavoriteCase(params: string) { - return defHttp.post({ url: Api.DeleteFavoriteCase, data: params }); -} -export function deleteTaskCase(params: string) { - return defHttp.post({ url: Api.DeleteTaskCase, data: params }); -} - -export function getFavoriteCaseList(params?: { uid: string }) { - return defHttp.get({ url: Api.FavoriteCaseList, params }); -} -export function getCaseInfoById(params?: { id: string }) { - return defHttp.get({ url: Api.GetCaseInfoById, params }); -} -export const updateDroneCaseInfo = (params: updateCaseInfoParams) => - defHttp.post({ url: Api.UpdateDroneCaseInfo, params }); - -export const updateSupervise = (params: { id: string; supervise: number }) => - defHttp.post({ url: `${Api.Supervise}?id=${params.id}&supervise=${params.supervise}`, params }); - -export const getLoadParents = (params: { childId: Number }) => - defHttp.get({ url: `${Api.LoadParents}?childId=${params.childId}` }); - -export function getLoadTaskIllegalDetailList(params?: taskInfoParams) { - return defHttp.get({ url: Api.LoadTaskIllegalDetailList, params }); -} - -export function splitCase(params) { - return defHttp.post({ url: Api.SplitCase, data: params }); -} - -export function recoverCase(params) { - return defHttp.post({ url: Api.RecoverCase, data: params }); -} - -export function getPolygonCenter(params) { - return defHttp.get({ url: Api.GetPolygonCenter, params }); -} - -export function getUserOrgs(params) { - return defHttp.get({ url: Api.GetUserOrgs, params }); -} - -export function getIssuedStatitical(params) { - return defHttp.get({ - url: Api.IssuedStatitical, - params, - }); -} - -export function getVerifyStatitical(params) { - return defHttp.get({ - url: Api.VerifyStatitical, - params, - }); -} - -export function getRectificationStatitical(params) { - return defHttp.get({ - url: Api.RectificationStatitical, - params, - }); -} - -export function getLoadCaseImgList(params) { - return defHttp.get({ - url: Api.LoadCaseImgList, - params, - }); -} - -export function getIntersectTif(params) { - return defHttp.get({ url: Api.GetIntersects, params }); -} - -export function getNetworkType() { - return defHttp.get({ url: Api.GetNetWorkEev }); -} -export function rebackzhuantipic(params: { zhuanti; CaseId }) { - return defHttp.get({ - url: Api.rebackzhuantipic, - params, - }); -} -export function CopyImg(params: { caseid; images }) { - return defHttp.post({ - url: Api.CopyImg, - data: params, - }); -} -export function rebackzhuantifujian(params: { zhuanti; CaseId }) { - return defHttp.get({ - url: Api.rebackzhuantifujian, - params, - }); -} -export function Copyfujian(params: string[]) { - return defHttp.post({ - url: Api.Copyfujian, - data: params, - }); -} diff --git a/src/api/tiankongdi/model/index.ts b/src/api/tiankongdi/model/index.ts deleted file mode 100644 index ec41f91..0000000 --- a/src/api/tiankongdi/model/index.ts +++ /dev/null @@ -1,54 +0,0 @@ -export interface taskCountParams { - year?: number; -} - -export interface taskInfoParams { - page?: number; - limit?: number; - level?: number; - areaid?: string; - geomid?: string; - year?: number; - is_build_complete?: number; -} - -export interface addCaseFavoriteParams { - id: string; - caseNo: string; - favoriteUserId: string; -} - -export interface caseInfoParams { - page?: number; - limit?: number; - level?: number; - areaid?: string; - year?: number; - geomid?: string; - countyid?: string; - streetid?: string; - is_illegal?: number; - weifaleixing?: number; - measure_name?: string; - is_build_complete?: number; - handle_status_id?: number; - key?: string; -} - -export interface countItem { - areaid: string; - areaname: string; - level: number; - count: number; -} -export type countModel = countItem[]; - -export interface updateCaseInfoParams { - id?: string; - countyid?: string; - countyname?: string; - streetid?: string; - streetname?: string; - communityid?: string; - communityname?: string; -} diff --git a/src/components/FormViewer/cardGourp.vue b/src/components/FormViewer/cardGourp.vue index 0361332..5248ccb 100644 --- a/src/components/FormViewer/cardGourp.vue +++ b/src/components/FormViewer/cardGourp.vue @@ -247,8 +247,8 @@ let oldDefaultGroupData = subTableDataStore.getOldDefaultGroupData; let result = {}; Object.keys(data).forEach((key) => { - if (key.indexOf('_select') !== -1 || key.indexOf('_upload') !== -1) { - if(oldDefaultGroupData[key] != data[key]){ + if (key.indexOf('_select') !== -1 || key.indexOf('_upload') !== -1 || key.indexOf('_date_picker') !== -1) { + if(oldDefaultGroupData[key] != data[key] && data[key]){ result[key] = data[key]; } } diff --git a/src/components/FormViewer/index.vue b/src/components/FormViewer/index.vue index dabb2f5..d45b3f5 100644 --- a/src/components/FormViewer/index.vue +++ b/src/components/FormViewer/index.vue @@ -3,7 +3,11 @@
- +