linwenling
2023-08-09 c7d2fb7b04ea184df7c03a615ccda9bd172bb527
ruoyi-ui/src/views/wish/wishInfo.vue
@@ -17,7 +17,7 @@
          <el-row :span="12">
            <el-cow >
              <el-form-item label="时间" prop="happenTime" label-width="70px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                <el-input v-model="formData.happenTime" placeholder="请输入时间" clearable :style="{width: '100%'}" :disabled="dsb">
                <el-input v-model="formData.happenTime" placeholder="请输入时间" type="date" clearable :style="{width: '100%'}" :disabled="dsb">
                </el-input>
              </el-form-item>
@@ -58,7 +58,7 @@
            </el-cow>
            <el-cow >
              <el-form-item label="是否依旧有效" prop="isEffective" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                <el-select v-model="formData.isEffective" placeholder="请选择是否依旧有效" clearable :style="{width: '100%'}"  >
                <el-select v-model="formData.isEffective" 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>
@@ -91,14 +91,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)"
            >
@@ -117,26 +117,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=""
@@ -145,7 +125,7 @@
          multiple
          list-type="picture-card"
          :on-preview="handleFileCardPreview"
          :on-remove="handleRemove"
          :on-remove="handleRemoveFile"
          :http-request="requestUpload"
          :show-file-list="true"
        >
@@ -160,20 +140,19 @@
              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"
                      @click="handleRemove(file)"
                      class="el-upload-list__item-delete"
                      class="el-upload-list__item-delete"
                      @click="handleDownload(file.url)"
                    >
                      <i class="el-icon-download"></i>
                    </span>
                 <i class="el-icon-download"></i>
                 </span>
                    <span
                      v-if="isShow"
                      class="el-upload-list__item-delete"
@@ -215,8 +194,8 @@
  props: [],
  data() {
    return {
      cdi:"收藏与荣誉详细信息",
      udi:"收藏与荣誉信息详情",
      cdi:"百年心愿详细信息",
      udi:"百年心愿信息详情",
      fot:[".jpg",".jif"],
      fileList:[
      ],
@@ -309,13 +288,13 @@
    else{
      document.title = "百年心愿详细信息";
      this.$route.meta.title = "百年心愿详细信息";//列表的名称
      this.isShow=true
      this.isShow=false
    }
    let _this = this
    if (id) {
      this.loading = true;
      getWish(id).then((response) => {
      getWish({id}).then((response) => {
        this.formData = response.data;
        let paths = response.data.url.split(",");
        for(let i = 0; i < paths.length; i++)