| | |
| | | <div> |
| | | <el-container> |
| | | <el-row> |
| | | <!-- <el-cow :span="8">--> |
| | | <!-- <el-form-item label="时间" prop="createTime" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">--> |
| | | <!-- <el-input v-model="formData.createTime" placeholder="请输入时间" clearable :style="{width: '100%'}" :disabled="dsb">--> |
| | | <!-- </el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-cow>--> |
| | | <el-cow :span="8"> |
| | | <el-form-item label="类别" prop="type" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;" :disabled="dsb"> |
| | | <template v-if="!isEditing" > |
| | | <el-input v-if="formData.type===0" placeholder="证件"></el-input> |
| | | <el-input v-if="formData.type===1" placeholder="荣誉"></el-input> |
| | | <el-input v-if="formData.type===2" placeholder="资质"></el-input> |
| | | </template> |
| | | <template v-else> |
| | | <el-select v-model="types" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option label="证件" value='0'></el-option> |
| | | <el-option label="荣誉" value='1'></el-option> |
| | | <el-option label="资质" value='2'></el-option> |
| | | <el-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | <el-option v-for="(item, index) in typeOption" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow :span="8"> |
| | |
| | | <el-row> |
| | | <el-cow :span="8"> |
| | | <el-form-item label="有效时间" prop="validityDate" label-width="68px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-model="formData.validityDate" type="date" placeholder="请输入有效时间" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | <el-date-picker v-model="formData.validityDate" type="date" placeholder="请选择日期" |
| | | :editable="false" :clearable="false" :style="{width: '100%'}" :disabled="dsb" value-format="yyyy-MM-dd" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow :span="8"> |
| | | <el-form-item label="获得时间" prop="getDate" label-width="68px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-model="formData.getDate" type="date" placeholder="请输入获得时间" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | <el-date-picker v-model="formData.getDate" type="date" placeholder="请选择日期" |
| | | :editable="false" :clearable="false" :style="{width: '100%'}" :disabled="dsb" value-format="yyyy-MM-dd" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow :span="8"> |
| | |
| | | </el-container> |
| | | </div> |
| | | </el-container> |
| | | <h4 class="form-header">电子文件 </h4> |
| | | <h4 class="form-header">相关图片 </h4> |
| | | <el-upload |
| | | action="#" |
| | | list-type="picture-card" |
| | |
| | | :http-request="requestUpload" |
| | | :file-list="fileList" |
| | | > |
| | | <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" |
| | |
| | | <i class="el-icon-delete"></i> |
| | | </span> |
| | | </span> |
| | | |
| | | |
| | | </div> |
| | | </el-upload> |
| | | |
| | |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | | |
| | | <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" |
| | |
| | | btn:false, |
| | | isShow:true, |
| | | isEditing: false, |
| | | uploading: false, |
| | | // 荣誉表格数据 |
| | | honorList: [], |
| | | typeList:[], |
| | |
| | | newOption: undefined, |
| | | showInput: false, |
| | | typeOption:[ |
| | | {value:'0',label:'证件'}, |
| | | {value:'1',label:'荣誉'}, |
| | | {value:'2',label:'资质'},], |
| | | {value:'证件',label:'证件'}, |
| | | {value:'荣誉',label:'荣誉'}, |
| | | {value:'资质',label:'资质'},], |
| | | types:undefined |
| | | } |
| | | }, |
| | |
| | | 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}) |