feige
2024-06-10 b6929a606c64d1b6063521ed8a183da88463a5e1
ruoyi-ui/src/views/secret/secretInfo.vue
@@ -355,6 +355,7 @@
        this.loading = true;
        getSecretInfo({id}).then((response) => {
          _this.formData = response.data;
          console.log(_this.formData,'123')
          if(_this.formData.isFinger==1)
            _this.formData.isFinger = '是'
          else
@@ -546,17 +547,17 @@
              });
            } else {
              if(this.formData.isFinger==1)
                     this.formData.isFinger = '是'
                   else
                   this.formData.isFinger = '否'
                this.formData.isFinger = '是'
              else
                this.formData.isFinger = '否'
              if(this.formData.isFace==1)
                     this.formData.isFace = '是'
                   else
                   this.formData.isFace = '否'
                   if(this.formData.isPrivate==0)
                          this.formData.isPrivate = '公有'
                        else
                        this.formData.isPrivate = '私有'
                this.formData.isFace = '是'
              else
                this.formData.isFace = '否'
              if(this.formData.isPrivate==0)
                this.formData.isPrivate = '公有'
              else
                this.formData.isPrivate = '私有'
              this.$modal.msgSuccess("修改失败");
            }
@@ -624,6 +625,18 @@
             updateSecret(this.formData).then(response => {
              this.$modal.msgSuccess("删除成功");
              // this.open = false;
            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==0)
              this.formData.isPrivate = '公有'
            else
              this.formData.isPrivate = '私有'
             });
          }
@@ -680,6 +693,18 @@
                     this.formData.isPrivate = 1
             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==0)
              this.formData.isPrivate = '公有'
            else
              this.formData.isPrivate = '私有'
             });
          }
@@ -778,6 +803,18 @@
                     _this.formData.isPrivate = 1
                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==0)
                  this.formData.isPrivate = '公有'
                else
                  this.formData.isPrivate = '私有'
                  // this.open = false;
                this.getData()
                this.fileListOther1=[]
@@ -840,6 +877,18 @@
                updateSecret(_this.formData).then(response => {
                  _this.$modal.msgSuccess("图片上传成功");
                  // this.open = false;
                  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==0)
                    this.formData.isPrivate = '公有'
                  else
                    this.formData.isPrivate = '私有'
                });
              // }