humingbo пре 2 година
родитељ
комит
6286c73b04
1 измењених фајлова са 14 додато и 2 уклоњено
  1. 14 2
      src/views/meeting/meeting.vue

+ 14 - 2
src/views/meeting/meeting.vue

@@ -191,7 +191,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button size="mini" @click="closeDialog">取消</el-button>
-        <el-button size="mini" type="primary" :loading="loading" class="title" @click="submitForm('editForm')">保存
+        <el-button size="mini" type="primary"  class="title" @click="submitForm('editForm')">保存
         </el-button>
       </div>
     </el-dialog>
@@ -560,6 +560,18 @@ export default {
     },
     confirmMeeting(row) {
       let id = row.id;
+      //点击会议确认时候判断信息是否完整
+      let data = this.pro.meetingContents;
+      for (let i = 0; i < data.length; i++) {
+        let t = data[i];
+        if (t.question === '' || t.optionss === '' || t.executorName === '' || t.times===null ||  t.times.length ===0  ) {
+          this.$message({
+            message: '请将信息填写完整!',
+            type: 'warning'
+          });
+          return
+        }
+      }
       confirmMeetings(id).then(res => {
         this.$message({
           message: '操作成功!',
@@ -749,7 +761,7 @@ export default {
       let data = this.pro.meetingContents;
       for (let i = 0; i < data.length; i++) {
         let t = data[i];
-        if (t.question === '' || t.optionss === '' || t.executorName === '' || t.times === '') {
+        if (t.question === '' || t.optionss === '' || t.executorName === '' || t.times===null ||  t.times.length ===0) {
           this.$message({
             message: '请将信息填写完整!',
             type: 'warning'