feige
2024-01-23 d0136913a2c74a44f5bb30327ebbb3fd85e24fce
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("修改失败");
            }