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

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

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