| | |
| | | |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="name"> |
| | | |
| | | <el-select v-model="queryParams.name" placeholder="所有名称" clearable |
| | | style="width: 240px" @keyup.enter.native="handleQuery"> |
| | | <el-option v-for="item in typeOptions" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type" > |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.type"--> |
| | | <!-- placeholder="请输入类别"--> |
| | | <!-- clearable--> |
| | | <!-- style="width: 240px"--> |
| | | <!-- @keyup.enter.native="handleQuery">--> |
| | | <!-- <i slot="prefix" class="el-input__icon el-icon-search"></i>--> |
| | | <!-- </el-input>--> |
| | | <el-select |
| | | v-model="queryParams.type" |
| | | placeholder="所有类别" |
| | |
| | | <el-table-column type="selection" :reserve-selection="true" width="55" align="center" /> |
| | | <el-table-column fixed label="序号" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/> |
| | | <el-table-column label="类别" prop="type" sortable :show-overflow-tooltip="true" width="120" align="center" > |
| | | <!-- <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template>--> |
| | | <template slot-scope="scope">{{ getSrc1(scope.row.type) }}</template> |
| | | <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template> |
| | | <!-- <template slot-scope="scope">{{ getSrc1(scope.row.type) }}</template>--> |
| | | </el-table-column> |
| | | <el-table-column label="名称" prop="name" sortable width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.name? scope.row.name: '————'}}</template> |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="有效时间" prop="validityDate"> |
| | | <el-input v-model="formDat.validityDate" type='date' placeholder='选择日期' clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | <el-date-picker v-model="formDat.validityDate" type="date" placeholder="请选择日期" |
| | | :editable="false" :style="{width: '100%'}" value-format="yyyy-MM-dd" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="获得时间" prop="getDate"> |
| | | <el-input v-model="formDat.getDate" type='date' placeholder='选择日期' clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | <el-date-picker v-model="formDat.getDate" type="date" placeholder="请选择日期" |
| | | :editable="false" :style="{width: '100%'}" value-format="yyyy-MM-dd" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="存放位置" prop="location"> |
| | | <el-input v-model="formDat.location" placeholder="请输入存放位置" clearable :style="{width: '100%'}" > |
| | |
| | | <el-input v-model="formDat.remark" placeholder="请输入备注" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | | |
| | | <h4 class="form-header">电子文件 </h4> |
| | | <h4 class="form-header">相关图片 </h4> |
| | | <el-upload |
| | | action="#" |
| | | list-type="picture-card" |
| | |
| | | :http-request="requestUpload" |
| | | :file-list="fileList" |
| | | > |
| | | <div v-if="uploading" class="upload-status">正在上传...</div> |
| | | <i v-if="!uploading" slot="default" class="el-icon-plus"></i> |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | <div slot="file" slot-scope="{file}"> |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | |
| | | :show-file-list="true" |
| | | > |
| | | <el-button type="primary">点击上传</el-button> |
| | | <div v-if="uploading" class="upload-status">正在上传...</div> |
| | | <template #tip> |
| | | <div class="el-upload__tip"> |
| | | </div> |
| | |
| | | newOption: undefined, |
| | | showInput: true, |
| | | typeOption:[ |
| | | {value:'0',label:'证件'}, |
| | | {value:'1',label:'荣誉'}, |
| | | {value:'2',label:'资质'},] |
| | | {value:'证件',label:'证件'}, |
| | | {value:'荣誉',label:'荣誉'}, |
| | | {value:'资质',label:'资质'},] |
| | | |
| | | }; |
| | | }, |
| | |
| | | const newOption = this.newOption.trim(); |
| | | if (newOption && !this.typeOptions.includes(newOption)) { |
| | | this.typeOptions.push(newOption); |
| | | this.$set(this.formDat, 'type', newOption); // 更新formDat.type的值为新的选项 |
| | | this.$set(this.formDat, 'name', newOption); // 更新formDat.type的值为新的选项 |
| | | } |
| | | }, |
| | | /** 查询记录列表 */ |