Commit 9aee8da0 authored by 皮倩雯's avatar 皮倩雯

fix: '优化事件是否内置配置'

parent 378d7cf1
Pipeline #65756 waiting for manual action with stages
......@@ -536,10 +536,10 @@ const AddModal = props => {
obj.ReportFromMobile = '';
obj.ReportFromWeb = '';
}
if(visibleChecked===false){
obj.Reportable=true;
}else{
obj.Reportable=false;
if (visibleChecked === false) {
obj.Reportable = true;
} else {
obj.Reportable = false;
}
if ((obj.Roles == '' || obj.Roles == undefined) && obj.CreateMode === '0') {
console.log(obj.CreateMode);
......@@ -642,9 +642,9 @@ const AddModal = props => {
setEditable(res.data.root.Editable);
setReportFromMobile(res.data.root.ReportFromMobile);
setReportFromWeb(res.data.root.ReportFromWeb);
if(res.data.root.Reportable=== false){
if (res.data.root.Reportable === false) {
setVisibleChecked(true);
}else{
} else {
setVisibleChecked(false);
}
setType1(res.data.root.BusinessType);
......@@ -1553,16 +1553,6 @@ const AddModal = props => {
{/* </Item> */}
</Col>
<Col span={24}>
<Item name="Reportable" label="是否内置" labelCol={{ span: 5 }}>
<Switch
checkedChildren="是"
unCheckedChildren="否"
checked={visibleChecked}
onChange={change}
/>
</Item>
</Col>
{/* <Col span={5}>
<Item />
</Col>
......@@ -1901,6 +1891,32 @@ const AddModal = props => {
<Input placeholder="请输入接口配置" />
</Item>
</Col>
<Col span={24}>
<Item
name="Reportable"
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
<Tooltip title="内置事件将无法上报和正常办理">
<InfoCircleOutlined
style={{
color: '#1890ff',
marginRight:'2px'
}}
/>
</Tooltip>
<span>是否内置</span>
</div>
}
labelCol={{ span: 5 }}
>
<Switch
checkedChildren="是"
unCheckedChildren="否"
checked={visibleChecked}
onChange={change}
/>
</Item>
</Col>
</Row>
<Row>
<Col span={10}>
......
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