From 99ea751b716e9998e98de987ce0b5b28032b330b Mon Sep 17 00:00:00 2001
From: sk1551 <15175617877@163.com>
Date: Mon, 24 Aug 2020 10:58:09 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9F=BA=E5=9C=B0=E5=8C=BA?=
 =?UTF-8?q?=E7=BA=A7=E5=AE=A1=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ruoyi-ui/src/views/jxjs/jdcx/index.vue  | 16 +++++++++++++---
 ruoyi-ui/src/views/jxjs/jdxcx/index.vue |  3 +--
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/ruoyi-ui/src/views/jxjs/jdcx/index.vue b/ruoyi-ui/src/views/jxjs/jdcx/index.vue
index d693d2372..7b29565fb 100644
--- a/ruoyi-ui/src/views/jxjs/jdcx/index.vue
+++ b/ruoyi-ui/src/views/jxjs/jdcx/index.vue
@@ -254,6 +254,7 @@ export default {
   name: "Jdcx",
   data() {
     return {
+      
       // 遮罩层
       loading: true,
       // 选中数组
@@ -466,7 +467,7 @@ export default {
         jdxshr: null,
         jdxshzt: null,
         sbly: null,
-        qjshr: null,
+        qjshr: 2,
         qjshzt: null,
         qjshyj: null,
         jdpx: null,
@@ -511,7 +512,6 @@ export default {
       const id = row.id || this.ids;
       getJdcx(id).then((response) => {
         this.form = response.data;
-        console.log(this.form);
         this.open = true;
         this.title = "修改基地区级审核";
       });
@@ -520,7 +520,12 @@ export default {
     submitForm() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
-          if (this.form.id != null) {
+          if (this.form.id != null ) {
+            if (this.form.qjshzt == "0") {
+              this.form.dqzt = "8";
+            } else if (this.form.qjshzt == "1") {
+              this.form.dqzt = "9";
+            }
             updateJdcx(this.form).then((response) => {
               if (response.code === 200) {
                 this.msgSuccess("修改成功");
@@ -529,6 +534,11 @@ export default {
               }
             });
           } else {
+            if (this.form.qjshzt == "0") {
+              this.form.dqzt = "8";
+            } else if (this.form.qjshzt == "1") {
+              this.form.dqzt = "9";
+            }
             addJdcx(this.form).then((response) => {
               if (response.code === 200) {
                 this.msgSuccess("新增成功");
diff --git a/ruoyi-ui/src/views/jxjs/jdxcx/index.vue b/ruoyi-ui/src/views/jxjs/jdxcx/index.vue
index aaccdab6c..12709f92d 100644
--- a/ruoyi-ui/src/views/jxjs/jdxcx/index.vue
+++ b/ruoyi-ui/src/views/jxjs/jdxcx/index.vue
@@ -261,7 +261,7 @@ export default {
   methods: {
     isShow(row) {
       console.log(row.dqzt);
-      if (row.dqzt == "2" || row.dqzt == "9") {
+      if (row.dqzt == "2" || row.dqzt == "9" || row.dqzt == "8") {
         return false;
       } else {
         return true;
@@ -381,7 +381,6 @@ export default {
       this.title = "基地校初选";
       listJxjsjbxx(null).then((response) => {
         this.jss = response.rows;
-        console.log(this.jss + '-------------');
       });
     },
     /** 修改按钮操作 */