Browse Source

修改模板提示语

zhangxc 5 years ago
parent
commit
106dd96b8f
2 changed files with 6 additions and 1 deletions
  1. 0 1
      src/components/Operation/index.jsx
  2. 6 0
      src/components/PushContainer/index.jsx

+ 0 - 1
src/components/Operation/index.jsx

@@ -314,7 +314,6 @@ class Operation extends Component {
         that.context.scrollArea&&that.context.scrollArea.refresh();
       });
     } else if (type == 3) {
-      console.log('this.state.fstName',this.state.fstName)
       if (this.state.title.trim() == '') {
         Notify.error('请输入模板名称')
         return;

+ 6 - 0
src/components/PushContainer/index.jsx

@@ -451,6 +451,12 @@ class PushContainer extends Component {
       if (title.trim() == '') {
         Notify.info('请输入模板名称');
         return;
+      }else if(fstName.trim() == ''){
+        Notify.error('请输入模板名首拼')
+        return;
+      }else if(this.props.admin&&deptId  == ''){
+        Notify.error('请选择科室')
+        return;
       }
       let tempObj = {
         id: currId,