Commit d03cd9fe authored by 皮倩雯's avatar 皮倩雯

fix: '巡检反馈支持业务划分支持多选'

parent 932f4bec
Pipeline #64723 passed with stages
...@@ -16,7 +16,7 @@ const PerviewPrase = props => { ...@@ -16,7 +16,7 @@ const PerviewPrase = props => {
overflow: 'hidden', overflow: 'hidden',
}} }}
width="1800px" width="1800px"
style={{ marginTop: '-80px' }} style={{ marginTop: '-80px', width: '75%' }}
destroyOnClose destroyOnClose
maskClosable={false} maskClosable={false}
footer={ footer={
......
...@@ -324,9 +324,9 @@ const maintenance = () => { ...@@ -324,9 +324,9 @@ const maintenance = () => {
onClick={add} onClick={add}
type="primary" type="primary"
style={{ style={{
marginLeft: '30px',
verticalAlign: 'middle', verticalAlign: 'middle',
marginTop: '10px', marginTop: '10px',
marginRight: '20px',
}} }}
> >
<span style={{ marginTop: '-2px' }}>新增</span> <span style={{ marginTop: '-2px' }}>新增</span>
...@@ -335,7 +335,6 @@ const maintenance = () => { ...@@ -335,7 +335,6 @@ const maintenance = () => {
icon={<OrderedListOutlined className={styles.icon} />} icon={<OrderedListOutlined className={styles.icon} />}
onClick={sort} onClick={sort}
style={{ style={{
marginLeft: '30px',
verticalAlign: 'middle', verticalAlign: 'middle',
marginTop: '10px', marginTop: '10px',
}} }}
......
...@@ -81,6 +81,8 @@ const AddModal = props => { ...@@ -81,6 +81,8 @@ const AddModal = props => {
console.log(res.data); console.log(res.data);
if (!res.data.businessGroup) { if (!res.data.businessGroup) {
form.setFieldsValue({ businessGroup: '区域巡检' }); form.setFieldsValue({ businessGroup: '区域巡检' });
} else {
form.setFieldsValue({ businessGroup: res.data.businessGroup.split(',') });
} }
let aa = JSON.parse(res.data.mappingFields); let aa = JSON.parse(res.data.mappingFields);
getGetTaskSyncField(aa); // 获取字段名数据 getGetTaskSyncField(aa); // 获取字段名数据
...@@ -319,6 +321,8 @@ const AddModal = props => { ...@@ -319,6 +321,8 @@ const AddModal = props => {
} }
}); });
}); });
console.log(obj);
obj.businessGroup = obj.businessGroup.toString();
if (type == 'add') { if (type == 'add') {
CM_Feedback_OperatePatrolFeedback({ CM_Feedback_OperatePatrolFeedback({
...obj, ...obj,
...@@ -682,7 +686,7 @@ const AddModal = props => { ...@@ -682,7 +686,7 @@ const AddModal = props => {
</Col> </Col>
<Col span={23}> <Col span={23}>
<Item label="业务划分" name="businessGroup" labelCol={{ span: 4 }}> <Item label="业务划分" name="businessGroup" labelCol={{ span: 4 }}>
<Select placeholder="请选择业务划分" showSearch> <Select placeholder="请选择业务划分" showSearch mode="multiple" allowClear>
<Option key="区域巡检" value="区域巡检"> <Option key="区域巡检" value="区域巡检">
区域巡检 区域巡检
</Option> </Option>
......
...@@ -151,7 +151,7 @@ const patrolFeedback = () => { ...@@ -151,7 +151,7 @@ const patrolFeedback = () => {
title: '字段集', title: '字段集',
dataIndex: 'fields', dataIndex: 'fields',
key: 'fields', key: 'fields',
width: 50, width: 80,
align: 'center', align: 'center',
}, },
// { // {
...@@ -223,6 +223,12 @@ const patrolFeedback = () => { ...@@ -223,6 +223,12 @@ const patrolFeedback = () => {
area.push(i); area.push(i);
} else if (i.businessGroup === 'DMA巡检') { } else if (i.businessGroup === 'DMA巡检') {
dma.push(i); dma.push(i);
} else if (
i.businessGroup === '区域巡检,DMA巡检' ||
i.businessGroup === 'DMA巡检,区域巡检'
) {
area.push(i);
dma.push(i);
} else { } else {
other.push(i); other.push(i);
} }
...@@ -416,7 +422,6 @@ const patrolFeedback = () => { ...@@ -416,7 +422,6 @@ const patrolFeedback = () => {
onClick={add} onClick={add}
type="primary" type="primary"
style={{ style={{
marginLeft: '30px',
verticalAlign: 'middle', verticalAlign: 'middle',
marginTop: '10px', marginTop: '10px',
}} }}
...@@ -427,7 +432,6 @@ const patrolFeedback = () => { ...@@ -427,7 +432,6 @@ const patrolFeedback = () => {
icon={<OrderedListOutlined className={styles.icon} />} icon={<OrderedListOutlined className={styles.icon} />}
onClick={sort} onClick={sort}
style={{ style={{
marginLeft: '30px',
verticalAlign: 'middle', verticalAlign: 'middle',
marginTop: '10px', marginTop: '10px',
}} }}
...@@ -437,7 +441,6 @@ const patrolFeedback = () => { ...@@ -437,7 +441,6 @@ const patrolFeedback = () => {
<Button <Button
icon={<DeleteOutlined className={styles.icon} />} icon={<DeleteOutlined className={styles.icon} />}
style={{ style={{
marginLeft: '30px',
verticalAlign: 'middle', verticalAlign: 'middle',
marginTop: '10px', marginTop: '10px',
}} }}
......
...@@ -1106,7 +1106,7 @@ const EditModal = props => { ...@@ -1106,7 +1106,7 @@ const EditModal = props => {
<Row> <Row>
<Col span={24}> <Col span={24}>
<div style={{ marginTop: '1rem', display: 'flex', justifyContent: 'flex-end' }}> <div style={{ marginTop: '1rem', display: 'flex', justifyContent: 'flex-end' }}>
<Button htmlType="button" onClick={back} style={{ marginRight: '2rem' }}> <Button htmlType="button" onClick={back} style={{ marginRight: '20px' }}>
返回 返回
</Button> </Button>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
......
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