Tcsm
2023-09-25 380728d2f235e0253df0fc1c558874a549cf0256
ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -1,13 +1,18 @@
<template>
  <div class="app-container">
    <div class="form-header mt">
  <div class="app-container" id="printable-content">
    <div class="form-header mt" >
      <h1 style="font-size:21px;padding-top:30px;display: flex;justify-content: space-between;align-items: center;">
        <span>个人财产信息详情</span>
        <div   style="display: flex; align-items: center;">
          <el-button size="mini" type="text"  @click="checkNote()" v-hasPermi="['person:information:memo']">
          <el-button size="mini" type="text"  @click="checkNote"  v-hasPermi="['person:information:memo']">
            <div class="form" ><el-icon  style="padding-right:110px;"></el-icon>
              <span class="text" style="width: 69px;height: 26px;font-size: 16px;
            font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">备忘本</span></div>
          </el-button>
          <el-button size="mini" type="text"  v-print="'#printable-content'" v-hasPermi="['person:information:memo']">
            <div class="form" ><el-icon  style="padding-right:110px;"></el-icon>
              <span class="text" style="width: 69px;height: 26px;font-size: 16px;
            font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">打印</span></div>
          </el-button>
        </div>
      </h1>
@@ -81,15 +86,18 @@
            </el-cow>
          </el-row>
        </el-container>
        <h4 class="form-header">电子文件 </h4>
        <h4 class="form-header">相关图片 </h4>
        <el-upload
          action="#"
          list-type="picture-card"
          multiple
          :http-request="requestUpload"
          :file-list="fileList"
          :disabled="!btn"
          :class="{ hide: !btn }"
        >
          <i slot="default" class="el-icon-plus"></i>
          <div v-if="uploading" class="upload-status">正在上传...</div>
          <i v-if="!uploading" slot="default" class="el-icon-plus"></i>
          <div slot="file" slot-scope="{file}">
            <img
              class="el-upload-list__item-thumbnail"
@@ -101,14 +109,14 @@
            >
            <span class="el-upload-list__item-actions" >
            <span
              v-if="isShow"
              class="el-upload-list__item-preview"
              @click="handlePictureCardPreview(file)"
            >
              <i class="el-icon-zoom-in"></i>
            </span>
            <span
              v-if="isShow"
              class="el-upload-list__item-delete"
              @click="handleDownload(file.url)"
            >
@@ -126,27 +134,6 @@
          </div>
        </el-upload>
        <!--<h4 class="form-header">其他附件 </h4>
        <el-upload
          action=""
          :file-list="fileListOther"
          class="upload-demo"
          multiple
          :on-preview="handlePreview"
          :on-remove="handleRemove"
          :http-request="requestUpload"
          :show-file-list="true"
        >
          <el-button v-if="isShow" type="primary" >点击上传</el-button>
          <template #tip>
            <div class="el-upload__tip">
            </div>
          </template>
        </el-upload>-->
        <h4 class="form-header">其他附件 </h4>
        <el-upload
          action=""
@@ -158,9 +145,11 @@
          :on-remove="handleRemoveFile"
          :http-request="requestUpload"
          :show-file-list="true"
          :disabled="!btn"
          :class="{ hide: !btn }"
        >
          <i slot="default" class="el-icon-plus"></i>
          <div v-if="uploading" class="upload-status">正在上传...</div>
          <i v-if="!uploading" slot="default" class="el-icon-plus"></i>
          <div slot="file" slot-scope="{file}">
            <img
              class="el-upload-list__item-thumbnail"
@@ -170,14 +159,14 @@
              fit="cover"
            >
            <span class="el-upload-list__item-actions">
                    <span v-if="isShow"
                    <span
                          class="el-upload-list__item-preview"
                          @click="handleFileCardPreview(file)"
                    >
                      <i class="el-icon-zoom-in"></i>
                    </span>
                    <span
                      v-if="isShow"
                      class="el-upload-list__item-delete"
                      @click="handleDownload(file.url)"
                    >
@@ -235,7 +224,7 @@
      dsb:true,
      btn:false,
      isShow:true,
      uploading: false,
      selfeconomyList: [],
      formData: {
@@ -334,7 +323,8 @@
    else{
      document.title = "个人财产详细信息";
      this.$route.meta.title = "个人财产详细信息";//列表的名称
      this.isShow=true
      this.btn = false;
      this.isShow=false
    }
    let _this = this
@@ -464,7 +454,7 @@
    handleEdit()
    {
      this.dsb = false
      // this.btn = true
      this.btn = true
      this.isShow=false
    },
    requestUpload(params)
@@ -473,10 +463,11 @@
      var formData = new FormData();
      formData.append('uploadFile', file);
      let _this = this
      this.uploading = true;
      uploadPic(formData).then(response => {
        let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
        this.uploading = false;
        this.$modal.msgSuccess("上传成功");
        if(_this.fot.includes(pth) === true)
        {
          _this.fileList.push({name:response.data.fileName, "url":response.data.url})
@@ -531,6 +522,9 @@
.form{
  background:center/11% no-repeat url('../../assets/icons/form.png') ;
}
.hide .el-upload--picture-card {
  display: none;
}
.form_item{
  font-size: 12px;
  font-family: Microsoft YaHei-Regular, Microsoft YaHei;