Commit 0c86c5c5c78cdda35e8341f689d9df9e906028b6
1 parent
ddee6076
暂停不要填原因;
Showing
1 changed file
with
11 additions
and
11 deletions
src/mes/scheduledTasks/machineTasks/index.js
| @@ -834,7 +834,7 @@ const TaskConfirmModal = props => { | @@ -834,7 +834,7 @@ const TaskConfirmModal = props => { | ||
| 834 | title={<span style={{ fontSize: 22 }}>提示!</span>} | 834 | title={<span style={{ fontSize: 22 }}>提示!</span>} |
| 835 | open={taskConfirmModalVisible} | 835 | open={taskConfirmModalVisible} |
| 836 | width={500} | 836 | width={500} |
| 837 | - height={370} | 837 | + height={250} |
| 838 | className="mesCommonModal" | 838 | className="mesCommonModal" |
| 839 | footer={ | 839 | footer={ |
| 840 | <Space> | 840 | <Space> |
| @@ -844,10 +844,10 @@ const TaskConfirmModal = props => { | @@ -844,10 +844,10 @@ const TaskConfirmModal = props => { | ||
| 844 | type="primary" | 844 | type="primary" |
| 845 | className={styles.btnZt} | 845 | className={styles.btnZt} |
| 846 | onClick={() => { | 846 | onClick={() => { |
| 847 | - if (!pauseValue.trim()) { | ||
| 848 | - message.warning("请先输入暂停原因!"); | ||
| 849 | - return; | ||
| 850 | - } | 847 | + // if (!pauseValue.trim()) { |
| 848 | + // message.warning("请先输入暂停原因!"); | ||
| 849 | + // return; | ||
| 850 | + // } | ||
| 851 | props.pauseCallback(pauseValue.trim()); | 851 | props.pauseCallback(pauseValue.trim()); |
| 852 | }} | 852 | }} |
| 853 | > | 853 | > |
| @@ -875,10 +875,10 @@ const TaskConfirmModal = props => { | @@ -875,10 +875,10 @@ const TaskConfirmModal = props => { | ||
| 875 | type="primary" | 875 | type="primary" |
| 876 | className={styles.btnZt} | 876 | className={styles.btnZt} |
| 877 | onClick={() => { | 877 | onClick={() => { |
| 878 | - if (!pauseValue.trim()) { | ||
| 879 | - message.warning("请先输入暂停原因!"); | ||
| 880 | - return; | ||
| 881 | - } | 878 | + // if (!pauseValue.trim()) { |
| 879 | + // message.warning("请先输入暂停原因!"); | ||
| 880 | + // return; | ||
| 881 | + // } | ||
| 882 | if (props.itemClickRef.current?.data) | 882 | if (props.itemClickRef.current?.data) |
| 883 | props.onTableBtnClick({ | 883 | props.onTableBtnClick({ |
| 884 | ...(props.itemClickRef.current?.data || {}), | 884 | ...(props.itemClickRef.current?.data || {}), |
| @@ -897,7 +897,7 @@ const TaskConfirmModal = props => { | @@ -897,7 +897,7 @@ const TaskConfirmModal = props => { | ||
| 897 | onCancel={handleClose} | 897 | onCancel={handleClose} |
| 898 | > | 898 | > |
| 899 | <div className={styles.taskConfirmModal}>{taskConfirmModalMsg}</div> | 899 | <div className={styles.taskConfirmModal}>{taskConfirmModalMsg}</div> |
| 900 | - <div className={styles.pauseReason}> | 900 | + {/* <div className={styles.pauseReason}> |
| 901 | <div className={styles.pauseTitle}>暂停原因</div> | 901 | <div className={styles.pauseTitle}>暂停原因</div> |
| 902 | <Input.TextArea | 902 | <Input.TextArea |
| 903 | placeholder="请输入暂停原因" | 903 | placeholder="请输入暂停原因" |
| @@ -906,7 +906,7 @@ const TaskConfirmModal = props => { | @@ -906,7 +906,7 @@ const TaskConfirmModal = props => { | ||
| 906 | value={pauseValue} | 906 | value={pauseValue} |
| 907 | onChange={e => setPauseValue(e.target.value)} | 907 | onChange={e => setPauseValue(e.target.value)} |
| 908 | /> | 908 | /> |
| 909 | - </div> | 909 | + </div> */} |
| 910 | </Modal> | 910 | </Modal> |
| 911 | ); | 911 | ); |
| 912 | }; | 912 | }; |