Commit 0e016648 authored by 皮倩雯's avatar 皮倩雯

fix: '方案制定接口修改'

parent d461d0aa
Pipeline #79844 failed with stages
...@@ -46,7 +46,7 @@ import { ...@@ -46,7 +46,7 @@ import {
CM_XWBPlan_feedbackTable, CM_XWBPlan_feedbackTable,
CM_XWBPlan_DataEditORAdd, CM_XWBPlan_DataEditORAdd,
CM_XWBPlan_DataList, CM_XWBPlan_DataList,
CM_XWBPlan_DeviceAccountTable, QueryDevicesList,
GetParentDeviceTemplate, GetParentDeviceTemplate,
GetFeedbackTableFields, GetFeedbackTableFields,
GetAccountConfigInfo, GetAccountConfigInfo,
...@@ -452,7 +452,7 @@ const AddModal = props => { ...@@ -452,7 +452,7 @@ const AddModal = props => {
}; };
const getList = () => { const getList = () => {
CM_XWBPlan_DeviceAccountTable().then(res => { QueryDevicesList().then(res => {
if (res.code === 0) { if (res.code === 0) {
setTreeData(res.data); setTreeData(res.data);
} }
...@@ -784,7 +784,7 @@ const AddModal = props => { ...@@ -784,7 +784,7 @@ const AddModal = props => {
const mapTree = org => { const mapTree = org => {
if (org.Value) { if (org.Value) {
return ( return (
<TreeNode value={org.Key} title={org.Key} disabled> <TreeNode value={org.key} title={org.key} disabled>
{org.Value.map(item => mapTree(item))} {org.Value.map(item => mapTree(item))}
</TreeNode> </TreeNode>
); );
......
...@@ -374,7 +374,7 @@ const maintenance = () => { ...@@ -374,7 +374,7 @@ const maintenance = () => {
return <Tag color="#d3adf7">水箱清洗</Tag>; return <Tag color="#d3adf7">水箱清洗</Tag>;
} else if (record === '扫码巡检') { } else if (record === '扫码巡检') {
return <Tag color="#e3799e">扫码巡检</Tag>; return <Tag color="#e3799e">扫码巡检</Tag>;
} else { } else if (record) {
return <Tag color="#f50">{record}</Tag>; return <Tag color="#f50">{record}</Tag>;
} }
}, },
......
...@@ -28,6 +28,10 @@ export const CM_XWBPlan_AccountTable = query => ...@@ -28,6 +28,10 @@ export const CM_XWBPlan_AccountTable = query =>
export const CM_XWBPlan_DeviceAccountTable = query => export const CM_XWBPlan_DeviceAccountTable = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_XWBPlan_DeviceAccountTable`, query); get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_XWBPlan_DeviceAccountTable`, query);
// 新巡维保获取维保设备
export const QueryDevicesList = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/QueryDevicesList`, query);
// 计划关联反馈台账表 // 计划关联反馈台账表
export const CM_XWBPlan_feedbackTable = query => export const CM_XWBPlan_feedbackTable = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_XWBPlan_feedbackTable`, query); get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_XWBPlan_feedbackTable`, query);
...@@ -52,4 +56,4 @@ export const GetFeedbackTableFields = query => ...@@ -52,4 +56,4 @@ export const GetFeedbackTableFields = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetFeedbackTableFields`, query); get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetFeedbackTableFields`, query);
export const GetAccountConfigInfo = query => export const GetAccountConfigInfo = query =>
get(`/PandaWorkFlow/WorkFlow/AccountManage/GetAccountConfigInfo`, query); get(`/PandaWorkFlow/WorkFlow/AccountManage/GetAccountConfigInfo`, query);
\ No newline at end of file
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