Explorar el Código

择岗数量问题

linwu hace 1 año
padre
commit
7d4a327a0c
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8 2
      public/themes/default/views/app/recruit/post_select.blade.php

+ 8 - 2
public/themes/default/views/app/recruit/post_select.blade.php

@@ -166,6 +166,7 @@
         let recruit_id = '{{ $info->recruit_id }}';
         let appoint_id = '{{ $info->appoint_id }}';
         let status = '{{ $info->status }}';
+        let type = '{{ $info->type }}';
 
         const app = new Vue({
             el: '#app',
@@ -185,11 +186,16 @@
             },
             methods: {
                 post: function() {
+                    if (type == 1 && this.select_list.length != 11) {
+                        this.$message.error('请对11个镇(街道)进行排序!');
+                        return false;
+                    }
 
-                    if(this.select_list.length != 13){
-                        this.$message.error('请对13个镇(街道)进行排序!');
+                    if (type == 2 && this.select_list.length != 16) {
+                        this.$message.error('请对16个镇(街道)进行排序!');
                         return false;
                     }
+
                     var msg = "您正在提交择岗的操作!";
                     this.$confirm(msg, '警告', {
                         confirmButtonText: '确认提交',