Commit d1f6b8d3 authored by 田翔's avatar 田翔

fix: 代码完善

parent b2159f20
{
"name": "panda-xform",
"version": "5.8.0",
"description": "5.8.0 统一标签宽度",
"version": "5.8.1",
"description": "5.8.1 去掉site问题",
"keywords": [
"panda-xform"
],
......
......@@ -22,15 +22,12 @@ const headers = {
'Civ-Site': window?.globalConfig?.userInfo?.site
};
console.log('headers', headers)
// 获取字典的接口
export function getSelectName(nodeName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetSelectItemList?nodeName=${nodeName}`,
method: 'get',
});
......@@ -39,9 +36,9 @@ export function getSelectName(nodeName) {
//字段校验
export function getFormFieldHideDtos(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaWorkFlow/WorkFlow/BPM/CaseManage/GetFormFieldHideDtos`,
method: 'post',
data
......@@ -51,9 +48,9 @@ export function getFormFieldHideDtos(data) {
//关联表单显示隐藏控制规则
export function ruleValidation(ruleContent) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaOMS/OMS/WorkFlow/RuleValidation${ruleContent ? `?ruleContent=${ruleContent}` : ''}`,
method: 'get',
});
......@@ -61,9 +58,9 @@ export function ruleValidation(ruleContent) {
export function getTableNumberList(tableName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaOMS/OMS/CaseManage/GetTableNumberList${tableName ? `?tableName=${tableName}` : ''}`,
method: 'get',
});
......@@ -72,9 +69,9 @@ export function getTableNumberList(tableName) {
// 选择器选项的子节点查询
export function getSelectChildName(nodeName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/WorkChildFlow`,
method: 'get',
});
......@@ -83,9 +80,9 @@ export function getSelectChildName(nodeName) {
//站点选择器查询(带ID)
export function getStationIDListByUserID(id, isAll) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaWorkFlow/WorkFlow/WorkFlow/GetStationIDListByUserID?userID=${id}${'&isAll=' + isAll}`,
method: 'get',
});
......@@ -94,9 +91,9 @@ export function getStationIDListByUserID(id, isAll) {
// 站点选择器查询
export function getStationListByUserID(id, isAll) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaWorkFlow/WorkFlow/WorkFlow/GetStationListByUserID?userID=${id}${'&isAll=' + isAll}`,
method: 'get',
});
......@@ -105,9 +102,9 @@ export function getStationListByUserID(id, isAll) {
//自动计算字符串转化
export function getFormFieldAnalysisDtos(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaWorkFlow/WorkFlow/BPM/CaseManage/GetFormFieldAnalysisDtos`,
method: 'post',
data
......@@ -117,9 +114,9 @@ export function getFormFieldAnalysisDtos(data) {
//表单字段自动计算
export function formAutomaticComputation(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaWorkFlow/WorkFlow/BPM/CaseManage/FormAutomaticComputation`,
method: 'post',
data
......@@ -129,9 +126,9 @@ export function formAutomaticComputation(data) {
//表单字段隐藏计算
export function formFieldHideComputation(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaWorkFlow/WorkFlow/BPM/CaseManage/FormFieldHideComputation`,
method: 'post',
data
......@@ -140,9 +137,9 @@ export function formFieldHideComputation(data) {
export function getGroupAndRole() {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/CaseManage/GetGroupAndRole`,
method: 'get',
})
......@@ -151,9 +148,9 @@ export function getGroupAndRole() {
//人员选择器获取(三种形态)
export function getUserSelector(role, userID) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaWorkFlow/WorkFlow/WorkFlow/GetUserSelector?${role ? 'role=' + role : ''}${userID ? '&userID=' + userID : ''}`,
method: 'get',
});
......@@ -162,9 +159,9 @@ export function getUserSelector(role, userID) {
// 人员选择器查询
export function getUserListForRole(params) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetUserListForRole${params.roleName ? `?roleName=${params.roleName}` : ''}`,
method: 'get',
});
......@@ -174,9 +171,9 @@ export function getUserListForRole(params) {
export const getMenTreeByRole = (paramas) => {
const { role, userID } = paramas
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASE}/WorkFlow/GetMenTreeByRole?userID=${userID}&role=${role}`,
method: 'get',
})
......@@ -185,9 +182,9 @@ export const getMenTreeByRole = (paramas) => {
//部门选择器
export const getDeptList = (params) => {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetDeptList`,
method: 'post',
})
......@@ -196,9 +193,9 @@ export const getDeptList = (params) => {
// 台账的配置查询
export function GetAccountConfigInfo(accountName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetAccountConfigInfo?accountName=${accountName}`,
method: 'get',
});
......@@ -207,9 +204,9 @@ export function GetAccountConfigInfo(accountName) {
//台账树形查询
export function GetAccountTree(accountName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetAccountTree?accountName=${accountName}`,
method: 'get',
});
......@@ -218,9 +215,9 @@ export function GetAccountTree(accountName) {
// 台账的表查询
export function GetAccountPageList(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetAccountPageList`,
method: 'post',
data,
......@@ -229,9 +226,9 @@ export function GetAccountPageList(data) {
export function GetTableGroupMeta(accountName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetTableGroupMeta?accountName=${accountName}`,
method: 'get'
});
......@@ -240,9 +237,9 @@ export function GetTableGroupMeta(accountName) {
// NEXT需要增加分页
export function GetFieldValueFromTable(accountName, fieldName, filter) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetFieldValueFromTable?tableName=${accountName}&fieldName=${fieldName}${filter ? '&filter=' + filter : ''}`,
method: 'get',
});
......@@ -250,9 +247,9 @@ export function GetFieldValueFromTable(accountName, fieldName, filter) {
export function getUserName(userID) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/UserCenter/GetUserName?userIds=${userID}`,
method: 'get',
});
......@@ -260,9 +257,9 @@ export function getUserName(userID) {
export function getGroupName(groupIds) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/UserCenter/GetGroupName?groupIds=${groupIds}`,
method: 'get',
});
......@@ -271,9 +268,9 @@ export function getGroupName(groupIds) {
// 台账表单的提交
export function SubmitAccountData(tableName, key, value, data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/EditTableData?tableName=${tableName}&key=${key}&id=${value}`,
method: 'post',
data: data,
......@@ -283,9 +280,9 @@ export function SubmitAccountData(tableName, key, value, data) {
// 台账的新增
export function AddNewAccountData(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/`,
method: 'post',
data,
......@@ -296,9 +293,9 @@ export function AddNewAccountData(data) {
// 上传文件
export function UploadFileReturnUrl(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${url}/UploaderFiles`,
method: 'post',
data,
......@@ -310,7 +307,7 @@ export function downloadFile(str) {
url: `${url}/DownloadFiles?filePath=${str}`,
method: 'get',
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site,
// 'Civ-Site': window?.globalConfig?.userInfo?.site,
'Content-Type': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
},
responseType: 'blob'
......@@ -327,9 +324,9 @@ export function downloadFile(str) {
export function GetTableDataInfo({ accountName, id }) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetTableDataInfo?accountName=${accountName}&id=${id}`,
method: 'GET',
});
......@@ -344,9 +341,9 @@ export function GetTableDataInfo({ accountName, id }) {
export function SaveTableDataInfo(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/SaveTableDataInfo`,
method: 'post',
data,
......@@ -362,9 +359,9 @@ export function SaveTableDataInfo(data) {
export function EditTableDataInfo(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/EditTableDataInfo`,
method: 'post',
data,
......@@ -373,9 +370,9 @@ export function EditTableDataInfo(data) {
export function BatchEditTableDataInfo(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/BatchEditTableDataInfo`,
method: 'post',
data,
......@@ -384,9 +381,9 @@ export function BatchEditTableDataInfo(data) {
export function DeleteTableDataInfo(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/DeleteTableDataInfo`,
method: 'post',
data,
......@@ -410,7 +407,7 @@ export function ExportAccountData({ accountName, ids, exportAll }) {
url: `${BASEURL}/ExportAccountData?accountName=${accountName}&ids=${ids}&exportAll=${exportAll}`,
method: 'get',
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site,
// 'Civ-Site': window?.globalConfig?.userInfo?.site,
'Content-Type': 'application/json; charset=UTF-8',
},
responseType: 'blob'
......@@ -423,7 +420,7 @@ export function ExportAccountModel({ accountName, exportAll }) {
url: `${BASEURL}/ExportAccountModel?accountName=${accountName}&exportAll=${exportAll}`,
method: 'get',
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site,
// 'Civ-Site': window?.globalConfig?.userInfo?.site,
'Content-Type': 'application/json; charset=UTF-8',
},
responseType: 'blob'
......@@ -433,9 +430,9 @@ export function ExportAccountModel({ accountName, exportAll }) {
//获取数据字典
export function GetDataDictionaryList(params) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaOMS/OMS/DataManger/GetDataDictionaryList${params.nodeID ? `?nodeID=${params.nodeID}` : ''}`,
method: 'get',
})
......@@ -444,9 +441,9 @@ export function GetDataDictionaryList(params) {
//获取数据字典子项
export function GetSelectItemList({ nodeName }) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaWorkFlow/WorkFlow/AccountManage/GetSelectItemList${nodeName ? `?nodeName=${nodeName}` : ''}`,
method: 'get',
})
......@@ -455,9 +452,9 @@ export function GetSelectItemList({ nodeName }) {
//获取所有表
export function LoadTableV2() {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/CaseManage/LoadTableV2`,
method: 'get'
})
......@@ -466,9 +463,9 @@ export function LoadTableV2() {
//获取台账表
export function LoadLedgers() {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/WorkOrderCenter/GetCM_Ledger_LoadLedgers`,
method: 'get'
})
......@@ -477,9 +474,9 @@ export function LoadLedgers() {
//通过台账名称获取字段
export function QueryFields(accountName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/WorkOrderCenter/GetCMLedger_QueryFields${accountName ? `?accountName=${accountName}` : ''}`,
method: 'get'
})
......@@ -488,9 +485,9 @@ export function QueryFields(accountName) {
//获取台账添加字段
export function QueryAddFields(accountName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaOMS/OMS/WorkOrderCenter/GetCMLedger_QueryAddFields${accountName ? `?accountName=${accountName}` : ''}`,
method: 'get'
})
......@@ -499,9 +496,9 @@ export function QueryAddFields(accountName) {
//根据坐标点获取地名
export function getLocation(location) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/pandagis/mapserver/Tool/PlaceAround?key=6e0b74fa6de65506b360e2e801f8582f&location=${location}`,
method: 'get'
})
......@@ -510,9 +507,9 @@ export function getLocation(location) {
//模糊搜索地名
export function searchAdress({ keywords, region }) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/pandagis/mapserver/Tool/PlaceAroundV2?key=6e0b74fa6de65506b360e2e801f8582f&keywords=${keywords}&region=${region}`,
method: 'get'
})
......@@ -521,9 +518,9 @@ export function searchAdress({ keywords, region }) {
//获取表字段
export function LoadTableFields(paramas) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/CaseManage/LoadTableFields?tableName=${paramas.tableName}`,
method: 'get'
})
......@@ -533,9 +530,9 @@ export function LoadTableFields(paramas) {
//获取地图方案
export function getMaplayerByTerminalType() {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaGIS/MapServer/Maplayer/GetMaplayerByTerminalType?terminalType=scheme&isBaseMap=false&v=1691659617`,
method: 'get'
})
......@@ -544,9 +541,9 @@ export function getMaplayerByTerminalType() {
//通过方案获取获图层
export function GetLayerList(serviceName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaGIS/MapServer/MetaData/D_GetLayerList?serviceName=${serviceName}`,
method: 'get'
})
......@@ -555,9 +552,9 @@ export function GetLayerList(serviceName) {
//通过图层获取字段
export function GetLayerFields({ mapServer, layerName }) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaGIS/MapServer/MetaData/GetLayerFields?mapServer=${mapServer}&layerName=${layerName}`,
method: 'get'
})
......@@ -566,9 +563,9 @@ export function GetLayerFields({ mapServer, layerName }) {
//获取表字段(无附加表)
export function ReloadTableFields(paramas) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/CaseManage/ReloadTableFields?tableName=${paramas.tableName}`,
method: 'get'
})
......@@ -577,9 +574,9 @@ export function ReloadTableFields(paramas) {
//获取所有表
export function LoadUnattachedTables() {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/CaseManage/LoadUnattachedTables`,
method: 'get'
})
......@@ -588,9 +585,9 @@ export function LoadUnattachedTables() {
//获取附加表信息中的JSON配置
export function GetTableConfigJson(paramas) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/CaseManage/GetTableConfigJson?tableName=${paramas.tableName}`,
method: 'get'
})
......@@ -599,9 +596,9 @@ export function GetTableConfigJson(paramas) {
//获取台账的json
export function GetTableJson(accountName) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `/PandaOMS/OMS/CaseManage/GetAccountTableJson?accountName=${accountName}`,
method: 'get',
})
......@@ -610,9 +607,9 @@ export function GetTableJson(accountName) {
//保存附加表信息,支持台账6.0
export function saveTableConfig(data) {
return request({
headers: {
'Civ-Site': window?.globalConfig?.userInfo?.site
},
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `PandaOMS/OMS/CaseManage/SaveTableConfig `,
method: 'post',
data
......
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