xy %!s(int64=7) %!d(string=hai) anos
pai
achega
e5e74550f1

+ 37 - 5
src/app/common/deploy/tencent/NotificationCard.js

@@ -3,10 +3,24 @@ import {FormattedMessage} from 'react-intl';
 import {Input, Tooltip, Icon, Button} from 'antd';
 import {manageUsers} from "../../../../config";
 
-class NotificationCard extends Component {
 
+const valueToKey = {
+    'dingding webhook': 'dingding webhook',
+    'notification name': 'requestMethod'
+};
+
+const toolTipTitle = {
+    'dingding webhook': 'its dingding webhook',
+    'notification name': 'its notification name'
+};
 
+const youMustFill = {
+    'dingding webhook': false,
+    'notification name': false
+};
 
+
+class NotificationCard extends Component {
     render() {
         return (
             <div>
@@ -15,8 +29,17 @@ class NotificationCard extends Component {
                     <div className='item'>
                         <p style={{marginBottom: 10}}>
                             <span className='item-title'>
-                                <span><FormattedMessage id="Web hook"/>  </span>
-                                <Tooltip placement="top" title='dingding webhook'>
+                                <span>
+                                    {
+                                        youMustFill['dingding webhook']?
+                                            <span style={{color: 'red', display: 'inline', marginRight: 10}}>*</span>
+                                            :
+                                            ''
+                                    }
+                                    <FormattedMessage id="Web hook"/>
+                                    &nbsp;
+                                </span>
+                                <Tooltip placement="top" title={toolTipTitle['dingding webhook']}>
                                     <Icon type="question-circle"/>
                                 </Tooltip>
                             </span>
@@ -24,8 +47,17 @@ class NotificationCard extends Component {
                         </p>
                         <p style={{marginBottom: 10}}>
                             <span className='item-title'>
-                                <span><FormattedMessage id="Notification Name"/>  </span>
-                                <Tooltip placement="top" title='notification name'>
+                                <span>
+                                    {
+                                        youMustFill['notification name']?
+                                            <span style={{color: 'red', display: 'inline', marginRight: 10}}>*</span>
+                                            :
+                                            ''
+                                    }
+                                    <FormattedMessage id="Notification Name"/>
+                                    &nbsp;
+                                </span>
+                                <Tooltip placement="top" title={toolTipTitle['notification name']}>
                                     <Icon type="question-circle"/>
                                 </Tooltip>
                             </span>

+ 0 - 2
src/app/common/deploy/tencent/TencentConfig.js

@@ -102,8 +102,6 @@ class TencentConfig extends Component {
                         let dataProject = data.project_by_id;
                         let {cloud_id, apiGWGroup_id, deploy_id, projectType, schema_id, wxConfig_id, projectName} = dataProject;
 
-                        console.log(configID);
-
                         if (cloud_id !== null && cloud_id.cloudName === 'tencent') {
                             group = apiGWGroup_id;
                             deploy = deploy_id;

+ 4 - 0
src/app/wechatService/wxConfig/WxConfig.jsx

@@ -120,6 +120,10 @@ class Display extends Component {
         let {userID,configID, appName,projectID, mch_id, notify_url, appSecret, appID, token, spbill_create_ip, enter_url, pay_api_key, body, welcome_words, attach} = this.state;
         return (
             <div>
+                <div className={'schema-name'}>
+                    {/*<FormattedMessage id='service manage'/>*/}
+                    app
+                </div>
                 {
                     configs.map(config => (
                         <div key={config} style={{marginBottom: 10}}>