Commit d1f6b8d3 authored by 田翔's avatar 田翔

fix: 代码完善

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