From d0136913a2c74a44f5bb30327ebbb3fd85e24fce Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期二, 23 一月 2024 10:56:30 +0800
Subject: [PATCH] 修改了很多

---
 ruoyi-ui/src/views/secret/secretInfo.vue |   47 +++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 41 insertions(+), 6 deletions(-)

diff --git a/ruoyi-ui/src/views/secret/secretInfo.vue b/ruoyi-ui/src/views/secret/secretInfo.vue
index e8642c9..44af156 100644
--- a/ruoyi-ui/src/views/secret/secretInfo.vue
+++ b/ruoyi-ui/src/views/secret/secretInfo.vue
@@ -274,21 +274,21 @@
         },
         typeOptions2: [
           {
-            value: '0',
+            value: '鍚�',
             label: '鍚�',
           },
           {
-            value: '1',
+            value: '鏄�',
             label: '鏄�',
           }
         ],
         typeOptions3: [
           {
-            value: '0',
+            value: '绉佹湁',
             label: '绉佹湁',
           },
           {
-            value: '1',
+            value: '鍏湁',
             label: '鍏湁',
           }
         ],
@@ -337,7 +337,7 @@
           else
           this.formData.isFace = '鍚�'
           if(this.formData.isPrivate==1)
-                 this.formData.isPrivate = '鍏辨湁'
+                 this.formData.isPrivate = '鍏湁'
                else
                this.formData.isPrivate = '绉佹湁'
           let paths = response.data.url.split(",");
@@ -390,7 +390,18 @@
           return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
          }).join(",")
           this.formData.url = ul+","+uls
-
+if(this.formData.isFinger=='鏄�')
+            this.formData.isFinger = 1
+          else
+          this.formData.isFinger = 0
+     if(this.formData.isFace=='鏄�')
+            this.formData.isFace = 1
+          else
+          this.formData.isFace = 0
+          if(this.formData.isPrivate== '鍏湁')
+                 this.formData.isPrivate =1
+               else
+               this.formData.isPrivate = 0
         this.$refs['elForm'].validate(valid => {
 
 
@@ -398,10 +409,34 @@
             if (this.formData.id != undefined) {
               updateSecret(this.formData).then(response => {
                 this.$modal.msgSuccess("淇敼鎴愬姛");
+                if(this.formData.isFinger==1)
+                       this.formData.isFinger = '鏄�'
+                     else
+                     this.formData.isFinger = '鍚�'
+                if(this.formData.isFace==1)
+                       this.formData.isFace = '鏄�'
+                     else
+                     this.formData.isFace = '鍚�'
+                     if(this.formData.isPrivate==1)
+                            this.formData.isPrivate = '鍏湁'
+                          else
+                          this.formData.isPrivate = '绉佹湁'
                 // this.open = false;
                 this.btn=false
               });
             } else {
+              if(this.formData.isFinger==1)
+                     this.formData.isFinger = '鏄�'
+                   else
+                   this.formData.isFinger = '鍚�'
+              if(this.formData.isFace==1)
+                     this.formData.isFace = '鏄�'
+                   else
+                   this.formData.isFace = '鍚�'
+                   if(this.formData.isPrivate==1)
+                          this.formData.isPrivate = '鍏湁'
+                        else
+                        this.formData.isPrivate = '绉佹湁'
               this.$modal.msgSuccess("淇敼澶辫触");
 
             }

--
Gitblit v1.9.1