|
@@ -1,7 +1,7 @@
|
|
|
/* eslint-disable no-return-assign */
|
|
|
/* eslint-disable camelcase */
|
|
|
import React, { Component, Fragment } from 'react'
|
|
|
-import { Divider, Modal, message, Button, Tag } from 'antd'
|
|
|
+import { Divider, Modal, message, Button, Tag, notification } from 'antd'
|
|
|
import { FilterTable, ImagePreview } from 'wptpc-design'
|
|
|
import { connect } from 'dva'
|
|
|
import { routerRedux } from 'dva/router'
|
|
@@ -27,6 +27,14 @@ class Poster extends Component {
|
|
|
imgs: [], // 预览图片的url
|
|
|
visible: false // 预览框是否展示
|
|
|
}
|
|
|
+
|
|
|
+ notification.open({
|
|
|
+ message: '重要警告',
|
|
|
+ description: '海报上线前,请认真评估调用量,以免导致系统故障',
|
|
|
+ onClick: () => {
|
|
|
+ console.log('poster confirm');
|
|
|
+ },
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
// 查看配置
|
|
@@ -77,6 +85,15 @@ class Poster extends Component {
|
|
|
}
|
|
|
|
|
|
changeState = (status, id) => {
|
|
|
+ if (status === 1) {
|
|
|
+ notification.open({
|
|
|
+ message: '重要警告',
|
|
|
+ description: '海报上线前,请认真评估调用量,以免导致系统故障',
|
|
|
+ onClick: () => {
|
|
|
+ console.log('poster confirm');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
Modal.confirm({
|
|
|
title: status === 0 ? '确定要禁用该海报模板吗' : '确定要启用该海报模板吗',
|
|
|
onOk: () => {
|