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

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

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