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

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

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