Commit 76515a30 authored by 皮倩雯's avatar 皮倩雯

fix: '消息平台内置方案不可选择方案类型'

parent 2de65965
Pipeline #65070 passed with stages
...@@ -112,6 +112,7 @@ const EditModal = props => { ...@@ -112,6 +112,7 @@ const EditModal = props => {
const [im, setIm] = useState(); const [im, setIm] = useState();
const [previewModal, setPreviewModal] = useState(false); const [previewModal, setPreviewModal] = useState(false);
const [type, setType] = useState(''); const [type, setType] = useState('');
const [hidden, setHidden] = useState(false);
useEffect(() => { useEffect(() => {
getMessageIcon(); getMessageIcon();
...@@ -164,6 +165,15 @@ const EditModal = props => { ...@@ -164,6 +165,15 @@ const EditModal = props => {
} }
// 编辑 // 编辑
if (template.ThemeName) { if (template.ThemeName) {
if (
template.MsgType === '通用报警' ||
template.MsgType === '工单提醒' ||
template.MsgType === '系统通知'
) {
setHidden(true);
} else {
setHidden(false);
}
setType('edit'); setType('edit');
form.setFieldsValue({ form.setFieldsValue({
name: template.MsgType, name: template.MsgType,
...@@ -768,6 +778,7 @@ const EditModal = props => { ...@@ -768,6 +778,7 @@ const EditModal = props => {
onClick={() => { onClick={() => {
setBtnType(item.title); setBtnType(item.title);
}} }}
disabled={hidden}
> >
{item.title} {item.title}
</Button> </Button>
......
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