feige
2023-06-06 a85494cc5769c3dab7f210c012fba1c45103e779
ruoyi-ui/src/views/collection/collectionInfo.vue
@@ -19,12 +19,18 @@
              <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>
              </el-form-item>
<!--               <el-form-item label="获得时间" prop="happenTime" label-width="78px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">-->
<!--                 <el-date-picker v-model='formData.happenTime' type='date' placeholder='请选择日期'></el-date-picker>-->
<!--               </el-form-item>-->
             </el-cow>
             <el-cow >
               <el-form-item label="类别" prop="type" label-width="40px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                <el-input v-model="formData.type" placeholder="请输入类别" clearable :style="{width: '100%'}" :disabled="dsb">
                </el-input>
                 <el-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}"  >
                   <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"
                   ></el-option>
                 </el-select>
              </el-form-item>
             </el-cow>
             <el-cow >
@@ -189,7 +195,7 @@
    </div>
        <el-dialog  :visible.sync="dialogVisible">
          <img w-full :src="dialogImageUrl" alt="Preview Image" />
          <img w-full :src="dialogImageUrl"    style="width: 700px; height: 700px" alt="Preview Image" />
        </el-dialog>
@@ -282,7 +288,30 @@
        }],
      },
      typeOptions: [],
      typeOptions: [
        {
          value: '邮票',
          label: '邮票'
        }, {
          value: '日本军刀',
          label: '日本军刀'
        }, {
          value: '茅台酒',
          label: '茅台酒'
        }, {
          value: '红木',
          label: '红木'
        }, {
          value: '纪念品',
          label: '纪念品'
        }, {
          value: '瓷器',
          label: '瓷器'
        }, {
          value: '书籍',
          label: '书籍'
        }
      ],
    }
  },
  computed: {},
@@ -299,9 +328,9 @@
      this.$route.meta.title = "修改收藏与荣誉详细信息";//列表的名称
    }
    else{
      document.title = "查看收藏与荣誉详细信息";
      this.$route.meta.title = "查看收藏与荣誉详细信息";//列表的名称
      this.isShow=false
      document.title = "收藏与荣誉详细信息";
      this.$route.meta.title = "收藏与荣誉详细信息";//列表的名称
      this.isShow=true
    }
    let _this = this
@@ -392,10 +421,18 @@
      })
    },
    handleRemoveFile(file) {
      alert(23)
      for(let i = 0; i < this.fileListOther.length; i++)
      {
        if(this.fileListOther[i].url==file.url)
          this.$delete(this.fileListOther,i);
      }
    },
    handleRemove(file) {
      alert(323)
      for(let i = 0; i < this.fileList.length; i++)
      {
        if(this.fileList[i].url==file.url)
          this.$delete(this.fileList,i);
      }
    },
    handleFileCardPreview(file){
      this.dialogFileUrl = file.url;