Commit ada095e6 authored by 田翔's avatar 田翔

feat: 事件配置增加抄送字段

parent b3f51977
Pipeline #92387 failed with stages
...@@ -437,10 +437,12 @@ const AddModal = (props) => { ...@@ -437,10 +437,12 @@ const AddModal = (props) => {
const [reportIsShow, setReportIsShow] = useState('none'); // 上报字段外部字段是否显示 const [reportIsShow, setReportIsShow] = useState('none'); // 上报字段外部字段是否显示
const [displayIsShow, setDisplayIsShow] = useState('none'); // 显示字段外部字段是否显示 const [displayIsShow, setDisplayIsShow] = useState('none'); // 显示字段外部字段是否显示
const [transitIsShow, setTransitIsShow] = useState('none'); // 转单字段外部字段是否显示 const [transitIsShow, setTransitIsShow] = useState('none'); // 转单字段外部字段是否显示
const [copyIsShow, setCopyIsShow] = useState('none'); // 抄送字段外部字段是否显示
const [summaryValue, setSummaryValue] = useState(); // 保存摘要字段外部字段 const [summaryValue, setSummaryValue] = useState(); // 保存摘要字段外部字段
const [reportValue, setReportValue] = useState(); // 保存上报字段外部字段 const [reportValue, setReportValue] = useState(); // 保存上报字段外部字段
const [displayValue, setDisplayValue] = useState(); // 保存显示字段外部字段 const [displayValue, setDisplayValue] = useState(); // 保存显示字段外部字段
const [displayColumns, setDisplayColumns] = useState(); // 保存显示列字段外部字段 const [displayColumns, setDisplayColumns] = useState(); // 保存显示列字段外部字段
const [copyValue, setCopyValue] = useState(); //保存抄送字段外部字段
const [question, setQuestion] = useState({ outSearchFields: 0, outOrderByFieldConfig: 0 }) const [question, setQuestion] = useState({ outSearchFields: 0, outOrderByFieldConfig: 0 })
const [keepFiled, setKeepFiled] = useState([]); const [keepFiled, setKeepFiled] = useState([]);
const [imageUrl, setImageUrl] = useState(); const [imageUrl, setImageUrl] = useState();
...@@ -595,6 +597,12 @@ const AddModal = (props) => { ...@@ -595,6 +597,12 @@ const AddModal = (props) => {
} else { } else {
setTransitIsShow('none'); setTransitIsShow('none');
} }
setCopyValue(res.data.root.outCopyField)
if (res.data.root.outCopyField != 0) {
setCopyIsShow('inline')
} else {
setCopyIsShow('none')
}
setQuestion({ setQuestion({
outSearchFields, outSearchFields,
outOrderByFieldConfig outOrderByFieldConfig
...@@ -1556,6 +1564,38 @@ const AddModal = (props) => { ...@@ -1556,6 +1564,38 @@ const AddModal = (props) => {
</div> </div>
</Item> </Item>
</Col> </Col>
<Col span={24}>
<Item
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
<Tooltip title={`存在${copyValue}个外部字段`}>
<InfoCircleOutlined
style={{
color: 'red',
marginRight: '2px',
display: copyIsShow,
}}
/>
</Tooltip>
<span>抄送字段</span>
</div>
}
name="CopyField"
labelCol={{ span: 5 }}
>
<div style={{ display: 'flex' }}>
<Form.Item name="CopyField" style={{ marginBottom: 0, width: '100%' }}>
<Input placeholder="请选择抄送字段" allowClear />
</Form.Item>
<Button
type="dashed"
onClick={() => pickFiled('CopyField')}
icon={<PlusOutlined style={{ marginTop: '5px' }} />}
style={{ marginLeft: '10px', width: '70px' }}
/>
</div>
</Item>
</Col>
<Col span={24}> <Col span={24}>
<Item <Item
name="Reportable" name="Reportable"
......
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