Commit da8b91f4 authored by 邓超's avatar 邓超
parents e84e809a ca917f95
...@@ -369,7 +369,7 @@ const AddModal = props => { ...@@ -369,7 +369,7 @@ const AddModal = props => {
aa.push({ name: item, key: index, ID: index, children: arr[item] }); aa.push({ name: item, key: index, ID: index, children: arr[item] });
bb.push(item); bb.push(item);
}); });
console.log(aa,'aaaaaaaaaaaaa'); console.log(aa, 'aaaaaaaaaaaaa');
console.log(arr); console.log(arr);
console.log(newArr); console.log(newArr);
setSelectGroup(newArr); setSelectGroup(newArr);
...@@ -628,7 +628,7 @@ const AddModal = props => { ...@@ -628,7 +628,7 @@ const AddModal = props => {
<Spin tip="loading..." spinning={treeLoading}> <Spin tip="loading..." spinning={treeLoading}>
<div className={styles.containerBox}> <div className={styles.containerBox}>
<div className={styles.config}> <div className={styles.config}>
<div className={styles.title}> 页面属性{formObj}</div> <div className={styles.title}> 字段配置{formObj}</div>
<div style={{ display: 'flex', justifyContent: 'flex-end' }}> <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
<div style={{ lineHeight: '32px', marginRight: '5px' }}>快速切换表:</div> <div style={{ lineHeight: '32px', marginRight: '5px' }}>快速切换表:</div>
<div style={{ width: '350px', marginRight: '10px' }}> <div style={{ width: '350px', marginRight: '10px' }}>
......
/* eslint-disable no-else-return */
/* eslint-disable react-hooks/rules-of-hooks */ /* eslint-disable react-hooks/rules-of-hooks */
/* eslint-disable camelcase */ /* eslint-disable camelcase */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Space, Table, Popconfirm, Tooltip, Button, notification } from 'antd'; import { Space, Table, Popconfirm, Tooltip, Button, notification, Tag } from 'antd';
import { import {
CM_XWBPlan_DataList, CM_XWBPlan_DataList,
CM_XWBPlan_RemovePlan, CM_XWBPlan_RemovePlan,
...@@ -73,7 +74,7 @@ const maintenance = () => { ...@@ -73,7 +74,7 @@ const maintenance = () => {
align: 'center', align: 'center',
}, },
{ {
title: '台账名称', title: '维保设备',
dataIndex: 'accountName', dataIndex: 'accountName',
key: 'accountName', key: 'accountName',
width: 200, width: 200,
...@@ -114,34 +115,6 @@ const maintenance = () => { ...@@ -114,34 +115,6 @@ const maintenance = () => {
</Tooltip> </Tooltip>
), ),
}, },
{
title: '台账过滤条件',
dataIndex: 'filterCondition',
key: 'filterCondition',
width: 150,
onCell: () => ({
style: {
maxWidth: 150,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
},
{
title: '是否送审',
dataIndex: 'isSubmit',
key: 'isSubmit',
width: 80,
align: 'center',
},
{ {
title: '执行角色', title: '执行角色',
dataIndex: 'doRole', dataIndex: 'doRole',
...@@ -167,7 +140,7 @@ const maintenance = () => { ...@@ -167,7 +140,7 @@ const maintenance = () => {
title: '预生成天数', title: '预生成天数',
dataIndex: 'produceDays', dataIndex: 'produceDays',
key: 'produceDays', key: 'produceDays',
width: 80, width: 90,
align: 'center', align: 'center',
onCell: () => ({ onCell: () => ({
style: { style: {
...@@ -183,7 +156,7 @@ const maintenance = () => { ...@@ -183,7 +156,7 @@ const maintenance = () => {
title: '在线任务量', title: '在线任务量',
dataIndex: 'onLines', dataIndex: 'onLines',
key: 'onLines', key: 'onLines',
width: 80, width: 90,
align: 'center', align: 'center',
onCell: () => ({ onCell: () => ({
style: { style: {
...@@ -207,6 +180,41 @@ const maintenance = () => { ...@@ -207,6 +180,41 @@ const maintenance = () => {
// width: 80, // width: 80,
// align: 'center', // align: 'center',
// }, // },
{
title: '是否送审',
dataIndex: 'isSubmit',
key: 'isSubmit',
width: 80,
align: 'center',
render: record => {
if (record == '是') {
return <Tag color="success">{record}</Tag>;
} else {
return <Tag color="processing">{record}</Tag>;
}
},
},
{
title: '台账过滤条件',
dataIndex: 'filterCondition',
key: 'filterCondition',
width: 150,
onCell: () => ({
style: {
maxWidth: 150,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
},
{ {
title: '操作', title: '操作',
ellipsis: true, ellipsis: true,
......
...@@ -146,6 +146,11 @@ const ProxyConfig = () => { ...@@ -146,6 +146,11 @@ const ProxyConfig = () => {
// }); // });
GetNginxConfigInfo().then(res => { GetNginxConfigInfo().then(res => {
if (res.code === 0) { if (res.code === 0) {
form.setFieldsValue({
NginxPort: res.data.NginxPort,
IISIPProt: res.data.IISIPProt,
EMQIPPort: res.data.EMQIPPort,
});
setCurrentConfig({ setCurrentConfig({
NginxPort: res.data.NginxPort, NginxPort: res.data.NginxPort,
IISIPProt: res.data.IISIPProt, IISIPProt: res.data.IISIPProt,
......
...@@ -50,6 +50,12 @@ const AddModal = props => { ...@@ -50,6 +50,12 @@ const AddModal = props => {
}); });
setTypeList(list); setTypeList(list);
console.log(list); console.log(list);
} else {
notification.error({
message: '提示',
duration: 5,
description: res.msg,
});
} }
console.log(res, 'resss'); console.log(res, 'resss');
}); });
......
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