瀏覽代碼

会员管理添加校验

corn 6 月之前
父節點
當前提交
4647846b44
共有 1 個文件被更改,包括 36 次插入0 次删除
  1. 36 0
      src/views/members/memberDetails.vue

+ 36 - 0
src/views/members/memberDetails.vue

@@ -301,6 +301,42 @@
           });
           return
         }
+        if (this.vipPostTimes == '') {
+          this.$notify({
+            title: '提示',
+            duration: 1800,
+            message: '请输入普通招聘次数',
+            type: 'warning'
+          });
+          return
+        }
+        if (this.vipViewTimes == '') {
+          this.$notify({
+            title: '提示',
+            duration: 1800,
+            message: '请输入职位查看次数',
+            type: 'warning'
+          });
+          return
+        }
+        if (this.vipConTimes == '') {
+          this.$notify({
+            title: '提示',
+            duration: 1800,
+            message: '请输入交流次数',
+            type: 'warning'
+          });
+          return
+        }
+        if (this.vipDueTimes == '') {
+          this.$notify({
+            title: '提示',
+            duration: 1800,
+            message: '请输入急聘次数',
+            type: 'warning'
+          });
+          return
+        }
         this.$http({
           url: this.$http.adornUrl('vipDetails/insertVipDetails'),
           method: 'post',