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

fix: '巡检反馈新增业务划分'

parent 018809d5
Pipeline #64612 passed with stages
...@@ -78,6 +78,10 @@ const AddModal = props => { ...@@ -78,6 +78,10 @@ const AddModal = props => {
if (type === 'edit') { if (type === 'edit') {
CM_Feedback_QueryPatrolFeedback({ id: formObj.id }).then(res => { CM_Feedback_QueryPatrolFeedback({ id: formObj.id }).then(res => {
form.setFieldsValue({ ...res.data }); form.setFieldsValue({ ...res.data });
console.log(res.data);
if (!res.data.businessGroup) {
form.setFieldsValue({ businessGroup: '区域巡检' });
}
let aa = JSON.parse(res.data.mappingFields); let aa = JSON.parse(res.data.mappingFields);
getGetTaskSyncField(aa); // 获取字段名数据 getGetTaskSyncField(aa); // 获取字段名数据
...@@ -86,6 +90,7 @@ const AddModal = props => { ...@@ -86,6 +90,7 @@ const AddModal = props => {
getRoles(); getRoles();
}); });
} else { } else {
form.setFieldsValue({ businessGroup: '区域巡检' });
getGetTaskSyncField(); getGetTaskSyncField();
getFeedbackTable(); getFeedbackTable();
getRoles(); getRoles();
...@@ -675,6 +680,18 @@ const AddModal = props => { ...@@ -675,6 +680,18 @@ const AddModal = props => {
<Input placeholder="巡检对象名称不可重复" /> <Input placeholder="巡检对象名称不可重复" />
</Item> </Item>
</Col> </Col>
<Col span={23}>
<Item label="业务划分" name="businessGroup" labelCol={{ span: 4 }}>
<Select placeholder="请选择业务划分" showSearch>
<Option key="区域巡检" value="区域巡检">
区域巡检
</Option>
<Option key="DMA巡检" value="DMA巡检">
DMA巡检
</Option>
</Select>
</Item>
</Col>
<Col span={23}> <Col span={23}>
<Item label="分组" name="groupType" labelCol={{ span: 4 }}> <Item label="分组" name="groupType" labelCol={{ span: 4 }}>
<Input placeholder="请输入分组名称" /> <Input placeholder="请输入分组名称" />
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
.contentContainers { .contentContainers {
height: 100%; height: 100%;
display: flex;
width: 100%;
position: relative;
.ant-table-wrapper { .ant-table-wrapper {
height: calc(100% - 100px); height: calc(100% - 100px);
...@@ -14,6 +17,154 @@ ...@@ -14,6 +17,154 @@
.ant-pagination { .ant-pagination {
padding: 10px; padding: 10px;
} }
.pickItem {
background-color: #aed8fa;
}
.listHover {
background-color: #f5f6f9;
}
.listItem {
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 400;
color: #414e65;
cursor: pointer;
line-height: 28px;
align-items: center;
padding: 8px 14px;
}
.orgContainer {
// height: calc(100vh - 74px);
height: 100%;
width: 250px;
left: 0;
top: 0;
margin-right: 10px;
position: relative;
transition-property: width, left;
transition-duration: 0.5s;
white-space: nowrap;
.ant-card-body {
height: 100%;
}
.ant-tree {
padding-top: 6px;
.ant-tree-switcher {
line-height: 1;
margin-right: 0px !important;
color: #1890ff;
.ant-tree-switcher-line-icon {
margin-left: 5px;
}
}
}
.switcher {
display: block;
position: absolute;
font-size: 18px;
color: #1890ff !important;
top: 50%;
right: 2px;
transform: translate(0%, -50%);
z-index: 1;
}
}
.orgContainerHide {
// transform: translateX(-230px);
left: 0px;
top: 0;
width: 26px;
}
.userContainer {
height: 100%;
z-index: 999;
min-width: 800px;
background: white;
width: 100%;
position: relative;
transition: width 0.5s;
.title {
margin: 16px 0 10px 16px;
display: inline-block;
width: 270px;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ant-table-pagination {
padding-right: 12px;
background: white;
margin: 1px 0;
padding: 8px;
padding-right: 20px;
}
.ant-btn {
margin: 0px 10px;
.ant-btn-primary {
background: #50aefc;
}
}
.ant-input-search-button {
margin-left: 0px !important;
}
.ant-table-thead tr th {
font-weight: 600;
color: rgba(0, 0, 0, 0.85);
background-color: #f6f9fe;
}
.ant-table-cell {
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ant-table-wrapper {
height: calc(100% - 50px);
.ant-table {
height: calc(100% - 45px);
.ant-table-container {
height: 100%;
}
}
}
// .ant-table-body {
// height: calc(100vh - 210px);
// border-right: white;
// overflow: auto !important;
// }
.clickRowStyle {
background: #cfe7fd;
}
.ant-pagination {
z-index: 999;
border-top: 1px solid #f0eded;
}
}
} }
......
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