linwenling
2023-10-22 dbca8bf9dde4fe0c7eb89a0c30b095eb823142a5
ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -36,8 +36,8 @@
            </el-cow>
            <el-cow >
              <el-form-item label="获得方式" prop="incomeName" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                <el-input v-model="formData.incomeName" placeholder="请输入收支名称" clearable :style="{width: '100%'}" :disabled="dsb">
              <el-form-item label="财产名称" prop="incomeName" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                <el-input v-model="formData.incomeName" placeholder="请输入财产名称" clearable :style="{width: '100%'}" :disabled="dsb">
                </el-input>
              </el-form-item>
            </el-cow>
@@ -55,8 +55,10 @@
            </el-cow>
            <el-cow >
              <el-form-item label="变更/注销" prop="isChange" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                <el-input v-model="formData.isChange" placeholder="请输入变更/注销" clearable :style="{width: '100%'}" :disabled="dsb">
                </el-input>
                <el-select v-model="formData.isChange" placeholder="请选择 " clearable :style="{width: '100%'}" :disabled="dsb"  >
                  <el-option v-for="(item, index) in typeOptions1" :key="index" :label="item.label" :value="item.value"
                  ></el-option>
                </el-select>
              </el-form-item>
            </el-cow>
            <el-cow >
@@ -73,7 +75,7 @@
            </el-cow>
            <el-cow >
              <el-form-item label="是否注销" prop="status" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                <el-select v-model="formData.status" placeholder="请选择是否注销" clearable :style="{width: '100%'}" :disabled="dsb"  >
                <el-select v-model="formData.status" placeholder="请选择 " clearable :style="{width: '100%'}" :disabled="dsb"  >
                  <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"
                  ></el-option>
                </el-select>
@@ -305,6 +307,14 @@
          value: '0',
          label: '否',
        }],
      typeOptions1: [{
        value: '变更',
        label: '变更',
      },
        {
          value: '注销',
          label: '注销',
        }],
    }
  },
  computed: {},
@@ -430,9 +440,16 @@
    },
    handleFileCardPreview(file){
      this.dialogFileUrl = file.url;
      // alert(file.url)
      // this.dialogFileUrl = 'https://www.bendudu.com:8080/profile/upload/2023/10/18/20231018214647A011.doc'
      // this.dialogFileUrl = 'https://47.93.189.255:8080/profile/upload/2023/03/19/test7_20230319222030A007.jpg'
      if(this.dialogFileUrl.includes("47.93.189.255")==true)
        this.dialogFileUrl = this.dialogFileUrl.replace("47.93.189.255","www.bendudu.com")
      //alert(this.dialogFileUrl)
      const Base64 = require('js-base64').Base64
      this.desurl = process.env.VUE_APP_BASE_OTHER_API+'onlinePreview?url='+encodeURIComponent(Base64.encode(this.dialogFileUrl));
      myWindow=window.open(this.desurl,'','width=1200,height=800,top=150,left=300');
      this.desurl = process.env.VUE_APP_BASE_OTHER_API+"preview/"+'onlinePreview?url='+encodeURIComponent(Base64.encode(this.dialogFileUrl));
      let myWindow=window.open(this.desurl,'','width=1200,height=800,top=150,left=300');
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;