From 76b5ea39de5cdcba0426a428207e24cac1fd0cb8 Mon Sep 17 00:00:00 2001 From: vapao Date: Thu, 14 Oct 2021 17:56:19 +0800 Subject: [PATCH] fix issue --- spug_web/src/pages/deploy/app/Ext1Setup1.js | 16 +++++++++++++++- spug_web/src/pages/deploy/app/Ext2Setup1.js | 16 +++++++++++++++- spug_web/src/pages/schedule/Step1.js | 17 ++++++++++++++++- 3 files changed, 46 insertions(+), 3 deletions(-) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup1.js b/spug_web/src/pages/deploy/app/Ext1Setup1.js index 0ab2376..00d2dd7 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup1.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup1.js @@ -28,6 +28,20 @@ export default observer(function Ext1Setup1() { }, []) const info = store.deploy; + let modePlaceholder; + switch (info['rst_notify']['mode']) { + case '0': + modePlaceholder = '已关闭' + break + case '1': + modePlaceholder = 'https://oapi.dingtalk.com/robot/send?access_token=xxx' + break + case '3': + modePlaceholder = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx' + break + default: + modePlaceholder = '请输入' + } return (
@@ -88,7 +102,7 @@ export default observer(function Ext1Setup1() { disabled={store.isReadOnly || info['rst_notify']['mode'] === '0'} value={info['rst_notify']['value']} onChange={e => info['rst_notify']['value'] = e.target.value} - placeholder="请输入"/> + placeholder={modePlaceholder}/>