Commit 3334c5c6 authored by 皮倩雯's avatar 皮倩雯

fix: '优化所有树标题样式'

parent c3de86d0
Pipeline #67159 waiting for manual action with stages
......@@ -376,7 +376,6 @@ const StandingBook = props => {
fontSize: '15px ',
fontWeight: 'bold',
color: '#333E51',
paddingLeft: '14px',
}}
>
台账列表
......@@ -386,14 +385,14 @@ const StandingBook = props => {
style={{
color: '#1890FF',
fontSize: '25px',
verticalAlign: 'middle',
float: 'right',
paddingRight: '14px',
paddingRight: '5px',
marginTop: '2px',
}}
onClick={e => showPopup()}
/>
</Tooltip>
<hr style={{ width: '100%', color: '#eeecec' }} />
<hr style={{ width: '97%', color: '#eeecec', marginLeft: '0px' }} />
<div
style={{
height: 'calc(100% - 35px)',
......
......@@ -555,7 +555,7 @@ const TableManager = props => {
fontSize: '20px',
color: '#1890FF',
cursor: 'pointer',
marginLeft: '130px',
marginLeft: '150px',
}}
/>
</Tooltip>
......
......@@ -102,7 +102,6 @@
font-size: 15px;
font-weight: bold;
color: #333e51;
padding-left: 14px;
}
.splitLine {
......
......@@ -346,7 +346,6 @@ const patrolFeedback = () => {
style={{
fontSize: '15px ',
fontWeight: 'bold',
marginLeft: '14px',
}}
>
业务划分
......
......@@ -43,7 +43,7 @@ import {
CM_Event_RemoveEventTable,
CM_Event_ReOrder,
GetCM_Event_LoadEventTypeTable,
CM_Event_EditBusinessType
CM_Event_EditBusinessType,
} from '@/services/standingBook/api';
import classnames from 'classnames';
import styles from './incident.less';
......@@ -480,41 +480,41 @@ const incident = () => {
});
}
});
};
const editBusiness = () =>{
setEditBusinessVisible(true)
addForm.setFieldsValue({newBusinessType:pickItem})
}
const editBusiness = () => {
setEditBusinessVisible(true);
addForm.setFieldsValue({ newBusinessType: pickItem });
};
const editOk = () =>{
let aa =addForm.getFieldsValue().newBusinessType;
const editOk = () => {
let aa = addForm.getFieldsValue().newBusinessType;
console.log(aa);
CM_Event_EditBusinessType({
oldBusinessType:pickItem,
newBusinessType:aa
}).then(res=>{
if(res.code===0){
setEditBusinessVisible(false);
setFlag(flag + 1);
notification.success({
message: '提示',
duration: 3,
description: '编辑成功',
});
}else{
notification.error({
message: '提示',
duration: 3,
description: res.msg||'编辑失败',
});
}
}).catch(err => {
message.error(err);
});
}
oldBusinessType: pickItem,
newBusinessType: aa,
})
.then(res => {
if (res.code === 0) {
setEditBusinessVisible(false);
setFlag(flag + 1);
notification.success({
message: '提示',
duration: 3,
description: '编辑成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.msg || '编辑失败',
});
}
})
.catch(err => {
message.error(err);
});
};
return (
<div className={styles.incidentContainer}>
......@@ -532,7 +532,6 @@ const incident = () => {
style={{
fontSize: '15px ',
fontWeight: 'bold',
marginLeft: '14px',
}}
>
事件列表
......@@ -543,12 +542,11 @@ const incident = () => {
style={{
color: '#1890FF',
fontSize: '25px',
verticalAlign: 'middle',
marginLeft: '51%',
marginLeft: '123px',
}}
/>
</Tooltip>
<hr style={{ width: '100%', color: '#eeecec' }} />
<hr style={{ width: '97%', color: '#eeecec', marginLeft: '0px' }} />
<div
style={{
height: 'calc(100% - 60px)',
......@@ -616,7 +614,11 @@ const incident = () => {
>
<div style={{ height: '50px' }}>
<span className={styles.titleName}>{pickItem}</span>
<span ><Tooltip title="编辑业务类型名称"><FormOutlined className={styles.iconSize} onClick={editBusiness}/></Tooltip></span>
<span>
<Tooltip title="编辑业务类型名称">
<FormOutlined className={styles.iconSize} onClick={editBusiness} />
</Tooltip>
</span>
<span style={{ float: 'right', marginRight: '10px' }}>
<Button
icon={<OrderedListOutlined className={styles.icon} />}
......@@ -678,14 +680,18 @@ const incident = () => {
keepIdValue={keepIdValue}
/>
<Modal
title='编辑业务类型名称'
title="编辑业务类型名称"
visible={editBusinessVisible}
onCancel={()=>setEditBusinessVisible(false)}
onOk={()=>editOk()}
onCancel={() => setEditBusinessVisible(false)}
onOk={() => editOk()}
>
<Form form={addForm} labelCol={{ span: 3 }}>
<Form.Item name="newBusinessType" label="名称" rules={[{ required: true, message: '不能为空' }]}>
<Input placeholder="请输入名称" style={{ width: '95%' }} allowClear/>
<Form.Item
name="newBusinessType"
label="名称"
rules={[{ required: true, message: '不能为空' }]}
>
<Input placeholder="请输入名称" style={{ width: '95%' }} allowClear />
</Form.Item>
<Form.Item name="newBusinessType" label="名称" style={{ display: 'none' }}>
<Input placeholder="请输入名称" style={{ width: '95%' }} />
......
......@@ -24,7 +24,6 @@
font-size: 15px;
font-weight: bold;
color: #333e51;
padding-left: 14px;
}
.splitLine {
......
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