yz3456
2024-07-21 6669c680f79663fc220935d61c3f3f6eee078e7c
ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -83,7 +83,7 @@
            </el-cow>
            <el-cow >
              <el-form-item label="备注" prop="remark" label-width="45px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                <el-input v-model="formData.remark" placeholder="请输入备注" clearable :style="{width: '100%'}" :disabled="dsb"></el-input>
                <el-input v-model="formData.remark" placeholder="请输入备注" clearable :style="{width: '100%'}" :disabled="dsb" type="textarea"></el-input>
              </el-form-item>
            </el-cow>
          </el-row>
@@ -178,7 +178,7 @@
            ></video>
            <img v-else
                 class="el-upload-list__item-thumbnail"
                 src="../../assets/401_images/401.gif"
                 src="../../assets/images/deviceLis.png"
                 alt=""
                 style="width: 147px; height: 147px"
                 fit="cover">
@@ -346,10 +346,15 @@
        value: '变更',
        label: '变更',
      },
        {
          value: '注销',
          label: '注销',
        }],
      {
        value: '注销',
        label: '注销',
      },
      {
        value: '购买',
        label: '购买',
      },
      ],
    }
  },
  computed: {},
@@ -376,6 +381,7 @@
    if (id) {
      this.loading = true;
      getSelfEconomyInfo({id}).then((response) => {
        console.log(response.data,'123123123')
        this.formData = response.data;
      if(this.formData.status==1)
         this.formData.status = '是'
@@ -389,12 +395,26 @@
              let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
             // alert(pth)
              if (_this.fot.includes(pth) === true)
             {
                if(paths[i][0]=="/")
                _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
               else
                  _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
               }
             // {
             //    if(paths[i][0]=="/")
           //      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
             //   else
             //      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
             //   }
            {
              if(paths[i].includes(process.env.VUE_APP_BASE_TRUE_API)){
                if(paths[i][0]=="/")
                      _this.fileList.push({name:paths[i],url: paths[i].substr(1),res:false})
                else
                   _this.fileList.push({name:paths[i],url: paths[i],res:false})
              }else{
                if(paths[i][0]=="/")
                      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
                else
                   _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
              }
              }
              else {
                // alert(paths[i])
              // alert()
@@ -566,7 +586,10 @@
           updateSelfEconomy(this.formData).then(response => {
            this.$modal.msgSuccess("删除成功");
            // this.open = false;
          if(this.formData.status==1)
            this.formData.status = '是'
          else
            this.formData.status = '否'
           });
        }
    },
@@ -611,6 +634,10 @@
                          this.formData.status = 0
           updateSelfEconomy(this.formData).then(response => {
            this.$modal.msgSuccess("删除成功");
          if(this.formData.status==1)
            this.formData.status = '是'
          else
            this.formData.status = '否'
           });
        }
    },