Commit 810ea3f2 authored by 田翔's avatar 田翔

fix: 去掉注释代码

parent 53182d38
...@@ -69,7 +69,8 @@ import caseChooseImg from '@/assets/images/workOptions/工单发起选中.png'; ...@@ -69,7 +69,8 @@ import caseChooseImg from '@/assets/images/workOptions/工单发起选中.png';
import eventChooseImg from '@/assets/images/workOptions/事件选中.png'; import eventChooseImg from '@/assets/images/workOptions/事件选中.png';
const { Option } = Select; const { Option } = Select;
const AddModal = props => { const AddModal = (props) => {
console.log('props', props)
const { const {
callBackSubmit = () => { }, callBackSubmit = () => { },
visible, visible,
...@@ -1275,16 +1276,12 @@ const AddModal = props => { ...@@ -1275,16 +1276,12 @@ const AddModal = props => {
}; };
const pickFiled1 = fileds => { const pickFiled1 = fileds => {
console.log(nu1);
// let pp = formateArrDataA1(nu1, 'group');
setKeepFiled(groupArr(nu1, 'group')); setKeepFiled(groupArr(nu1, 'group'));
if (form.getFieldValue(fileds)) { if (form.getFieldValue(fileds)) {
// setFiled1(pp);
setCheckedList1(form.getFieldValue(fileds).split(',')); setCheckedList1(form.getFieldValue(fileds).split(','));
setPickItem(fileds); setPickItem(fileds);
setIsVisible(true); setIsVisible(true);
} else { } else {
// setFiled1(pp);
setCheckedList1([]); setCheckedList1([]);
setPickItem(fileds); setPickItem(fileds);
setIsVisible(true); setIsVisible(true);
...@@ -1420,29 +1417,6 @@ const AddModal = props => { ...@@ -1420,29 +1417,6 @@ const AddModal = props => {
{modalLoading ? null : ( {modalLoading ? null : (
<Form form={form}> <Form form={form}>
<Row> <Row>
{/* <Col span={24}>
<Item
label={
<div style={{ display: 'flex', alignItems: 'center', fontWeight: 'bold' }}>
<Tooltip title="选择仅上报时,事件权限必填">
<InfoCircleOutlined
style={{
color: '#1890ff',
}}
/>
</Tooltip>
<span>上报方式</span>
</div>
}
name="CreateMode"
labelCol={{ span: 5 }}
>
<Radio.Group onChange={onChange2} value={value} defaultValue={chee}>
<Radio value={1}>立即发起(工单模型)</Radio>
<Radio value={0}>仅上报(事件模型)</Radio>
</Radio.Group>
</Item>
</Col> */}
<Col span={24}> <Col span={24}>
<Item name="CreateMode" labelCol={{ span: 5 }}> <Item name="CreateMode" labelCol={{ span: 5 }}>
<div <div
...@@ -1540,50 +1514,6 @@ const AddModal = props => { ...@@ -1540,50 +1514,6 @@ const AddModal = props => {
}, },
]} ]}
> >
{/* <div>
<Input
className="ue-editable-select-input"
onChange={inputType}
value={Type1}
style={{ marginLeft: '-3px' }}
/>
<Dropdown
placement="bottomRight"
style={{ width: '430px' }}
overlay={
<Menu>
{treeData.length
? treeData.map((item, index) => (
<Menu.Item
onClick={() => {
setType1(item);
form.setFieldsValue({ BusinessType: item });
}}
style={{ width: '430px', marginLeft: '-8px' }}
key={index}
>
{item}
</Menu.Item>
))
: ''}
</Menu>
}
>
<div
onClick={e => e.preventDefault()}
style={{
position: 'absolute',
left: '94%',
width: '1rem',
top: '0',
marginTop: '6px',
}}
>
<DownOutlined style={{ fontSize: '12px', color: 'rgba(0, 0, 0, 0.25)' }} />
</div>
</Dropdown>
</div> */}
<Select <Select
placeholder="选择业务类型" placeholder="选择业务类型"
// onChange={inputType} // onChange={inputType}
...@@ -1631,42 +1561,7 @@ const AddModal = props => { ...@@ -1631,42 +1561,7 @@ const AddModal = props => {
</Item> </Item>
</Col> </Col>
</Row> </Row>
{/* </Item> */}
{/* <Col span={5}>
<Item />
</Col>
<Col span={19}>
<Item name="Editable">
<Checkbox onChange={onChange1} checked={editable}>
上报后可以编辑(需配置编辑字段)
</Checkbox>
</Item>
</Col> */}
<Row> <Row>
{/* <Col span={24}>
<Item
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
<Tooltip title="选择仅上报时,事件权限必填">
<InfoCircleOutlined
style={{
color: '#1890ff',
}}
/>
</Tooltip>
<span>上报方式</span>
</div>
}
name="CreateMode"
labelCol={{ span: 5 }}
>
<Radio.Group onChange={onChange2} value={value} defaultValue={chee}>
<Radio value={1}>立即发起(工单模型)</Radio>
<Radio value={0}>仅上报(事件模型)</Radio>
</Radio.Group>
</Item>
</Col> */}
<Col span={24}> <Col span={24}>
<Item <Item
label={ label={
...@@ -1679,7 +1574,6 @@ const AddModal = props => { ...@@ -1679,7 +1574,6 @@ const AddModal = props => {
}} }}
/> />
</Tooltip> </Tooltip>
<span>摘要字段</span> <span>摘要字段</span>
</div> </div>
} }
...@@ -1701,9 +1595,6 @@ const AddModal = props => { ...@@ -1701,9 +1595,6 @@ const AddModal = props => {
if (aa == '') { if (aa == '') {
return Promise.reject('摘要字段必选'); return Promise.reject('摘要字段必选');
} }
// if (bb.length < 1 || aa.split(',').length > 5) {
// return Promise.reject('最少配置一个字段,最多配置五个字段');
// }
if (bb.length < 1) { if (bb.length < 1) {
return Promise.reject('最少配置一个字段'); return Promise.reject('最少配置一个字段');
} }
...@@ -1827,53 +1718,6 @@ const AddModal = props => { ...@@ -1827,53 +1718,6 @@ const AddModal = props => {
</Item> </Item>
</Col> </Col>
) : null} ) : null}
{/* <Col span={24}>
<Item
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
<Tooltip title={`存在${editableValue}个外部字段`}>
<InfoCircleOutlined
style={{
color: 'red',
display: editableIsShow,
}}
/>
</Tooltip>
<span>编辑字段</span>
</div>
}
name="EditableFields"
labelCol={{ span: 5 }}
// rules={[
// {
// validator: (rule, value) => {
// if (form.getFieldValue().EditableFields == '') {
// return Promise.reject('编辑字段必选');
// }
// return Promise.resolve();
// },
// },
// {
// required: true,
// message: '请选择编辑字段',
// },
// ]}
>
<div style={{ display: 'flex' }}>
<Form.Item name="EditableFields" style={{ marginBottom: 0, width: '100%' }}>
<Input placeholder="请选择编辑字段" allowClear />
</Form.Item>
<Button
type="dashed"
onClick={() => pickFiled('EditableFields')}
icon={<PlusOutlined style={{ marginTop: '5px' }} />}
style={{ marginLeft: '10px', width: '70px' }}
/>
</div>
</Item>
</Col> */}
<Col span={24}> <Col span={24}>
<Item <Item
label={ label={
...@@ -1906,59 +1750,6 @@ const AddModal = props => { ...@@ -1906,59 +1750,6 @@ const AddModal = props => {
</div> </div>
</Item> </Item>
</Col> </Col>
{/* <Col span={24}>
<Item label="置顶条件" name="TopWhere" labelCol={{ span: 5 }}>
<Input placeholder="请输入置顶条件" allowClear />
</Item>
</Col> */}
{/* <Col span={24}>
<Item label="上报视图" name="ReportPage" labelCol={{ span: 5 }}>
<Input placeholder="请输入上报视图" allowClear />
</Item>
</Col>
<Col span={24}>
<Item label="处理视图" name="DealPage" labelCol={{ span: 5 }}>
<Input placeholder="请输入处理视图" allowClear />
</Item>
</Col> */}
{/* <Col span={24}>
<Item label="关联事件" name="RelatedEvents" labelCol={{ span: 5 }}>
<Input placeholder="请输入关联事件" allowClear />
</Item>
</Col> */}
{/* <Col span={24}>
<Item
label={
<div>
<Tooltip title={`存在${relatedEventValue}个外部字段`}>
<InfoCircleOutlined
style={{
color: 'red',
marginRight: '2px',
display: relatedEventIsShow,
}}
/>
</Tooltip>
<span>关联字段</span>
</div>
}
name="RelatedEventFields"
labelCol={{ span: 5 }}
>
<div style={{ display: 'flex' }}>
<Form.Item name="RelatedEventFields" style={{ marginBottom: 0, width: '100%' }}>
<Input placeholder="请选择关联字段" allowClear />
</Form.Item>
<Button
type="dashed"
onClick={() => pickFiled('RelatedEventFields')}
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"
...@@ -1973,8 +1764,6 @@ const AddModal = props => { ...@@ -1973,8 +1764,6 @@ const AddModal = props => {
内置使用,使用第三方完整功能,仅调用接口、表结构和流程,工单系统中无法使用 内置使用,使用第三方完整功能,仅调用接口、表结构和流程,工单系统中无法使用
</div> </div>
} }
// title="标准使用,使用标准工单系统,可通过勾选 前端/手持,来控制是否展示事件的填报入口,勾选即展示;
// 内置使用,使用第三方完整功能,仅调用接口、表结构和流程,工单系统中无法使用。"
> >
<InfoCircleOutlined <InfoCircleOutlined
style={{ style={{
...@@ -1989,7 +1778,6 @@ const AddModal = props => { ...@@ -1989,7 +1778,6 @@ const AddModal = props => {
labelCol={{ span: 5 }} labelCol={{ span: 5 }}
> >
<div style={{ display: 'flex' }}> <div style={{ display: 'flex' }}>
{/* <span style={{ marginRight: '5px' }}>内置使用</span> */}
<Switch <Switch
checkedChildren="标准用法" checkedChildren="标准用法"
unCheckedChildren="内置用法" unCheckedChildren="内置用法"
...@@ -2054,9 +1842,6 @@ const AddModal = props => { ...@@ -2054,9 +1842,6 @@ const AddModal = props => {
</Item> </Item>
</Col> </Col>
</Row> </Row>
{/* <Item style={{ marginBottom: '0px' }}>
<span style={{ marginLeft: '112px' }}>客户端上报(需配置事件权限、受理流程)</span>
</Item> */}
<Row> <Row>
<Col span={10}> <Col span={10}>
<Item <Item
...@@ -2133,25 +1918,10 @@ const AddModal = props => { ...@@ -2133,25 +1918,10 @@ const AddModal = props => {
)} )}
</Item> </Item>
</Col> </Col>
{/* <Col span={12}>
<Item>
<Button type="primary" onClick={pictruePreview} style={{ marginTop: '33px' }}>
从图片库中选择
</Button>
</Item>
</Col> */}
</Row> </Row>
</Form> </Form>
)} )}
</Spin> </Spin>
{/* <ChangeAdd
visible={isVisible}
onCancel={onCancel}
callBackSubmit={onOK}
newCheckedList={checkedList1}
filed11={filed1}
pickItem={pickItem}
/> */}
<PreviewModal <PreviewModal
visible={previewModal} visible={previewModal}
onCancel={() => { onCancel={() => {
......
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