| | |
| | | --> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.name"--> |
| | | <!-- 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.name" |
| | | placeholder="请输入名称" |
| | | placeholder="所有类别" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="dic in typeOptions" |
| | | :key="dic.value" |
| | | :label="dic.label" |
| | | :value="dic.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type" > |
| | | <!-- <el-input--> |
| | |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="dict in typeOptions" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | v-for="item in typeOption" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | |
| | |
| | | <el-table v-loading="loading" :data="honorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> |
| | | <el-table-column type="selection" :reserve-selection="true" width="25" 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="createTime" sortable width="120" align="center"> |
| | | <!-- <el-table-column label="时间" prop="createTime" sortable width="120" align="center">--> |
| | | |
| | | <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template> |
| | | </el-table-column> |
| | | <!-- <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template>--> |
| | | <!-- </el-table-column>--> |
| | | <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">{{ getSrc(scope.row.type) }}</template> |
| | | <template slot-scope="scope">{{ getSrc1(scope.row.type) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="名称" prop="name" sortable :show-overflow-tooltip="true" width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.name? scope.row.name: '————'}}</template> |
| | | <!-- <template slot-scope="scope">{{scope.row.name? scope.row.name: '————'}}</template>--> |
| | | <template slot-scope="scope"> |
| | | <!-- <template v-if="formDat.name===1">{{ getSrc(scope.row.name) }}</template>--> |
| | | <template v-if="scope.row.name == 1">出生证</template> |
| | | <template v-else-if="scope.row.name == 2">学生证</template> |
| | | <template v-else-if="scope.row.name == 3">毕业证</template> |
| | | <template v-else-if="scope.row.name == 4">结婚证</template> |
| | | <template v-else-if="scope.row.name == 5">户口簿</template> |
| | | <template v-else-if="scope.row.name == 6">独生子女证</template> |
| | | <template v-else-if="scope.row.name == 7">高级职称</template> |
| | | <template v-else-if="scope.row.name == 8">护照</template> |
| | | <template v-else-if="scope.row.name == 9">通行证</template> |
| | | <template v-else>{{ scope.row.name }}</template> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="证号/专业" prop="idNo" sortable width="170" align="center" > |
| | | <template slot-scope="scope">{{scope.row.idNo? scope.row.idNo: '————'}}</template> |
| | |
| | | <el-table-column label="电子文件" prop="url" width="160" align="center"> |
| | | <template slot-scope="scope" > |
| | | <div @click="handleCheck(scope.row)"> |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/images/deviceLis.png" |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | v-if="scope.row.url !== ','" |
| | | > |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/images/deviceA.png" |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | v-if="scope.row.url ===',' " |
| | | ></div> |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/images/deviceLis.png" |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)" |
| | | > |
| | | <img |
| | | v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/images/deviceA.png" |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | |
| | | ></div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="备注" prop="remark" sortable width="120" align="center"> |
| | |
| | | <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> |
| | | <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px"> |
| | | |
| | | <el-form-item label="时间" prop="createTime"> |
| | | <el-input v-model="formDat.createTime" type='date' placeholder='选择日期' clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="时间" prop="createTime">--> |
| | | <!-- <el-input v-model="formDat.createTime" type='date' placeholder='选择日期' clearable :style="{width: '100%'}" >--> |
| | | <!-- </el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="获得时间" prop="happenTime">--> |
| | | <!-- <el-date-picker v-model='formDat.happenTime' type='date' placeholder='选择日期'></el-date-picker>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="类别" prop="type"> |
| | | <!-- <el-input v-model="formDat.type" placeholder="请输入类别" clearable :style="{width: '100%'}" >--> |
| | | <!-- </el-input>--> |
| | | <el-select v-model="formDat.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | <el-select v-model="formDat.type" placeholder="请选择名称" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOption" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input v-model="formDat.name" placeholder="请输入名称" clearable :style="{width: '100%'}" ></el-input> |
| | | <el-select v-model="formDat.name" 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-form-item label="证件号/专业" prop="idNo"> |
| | | <el-input v-model="formDat.idNo" placeholder="请输入证件号/专业" clearable :style="{width: '100%'}" > |
| | |
| | | class="upload-demo" |
| | | multiple |
| | | |
| | | :on-remove="handleRemove" |
| | | :on-remove="handleRemoveFile" |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | |
| | | }, |
| | | selected:'', |
| | | typeOptions: [], |
| | | typeOption:[ |
| | | {value:'1',label:'荣誉'}, |
| | | {value:'0',label:'证件'}, |
| | | {value:'2',label:'资质'},] |
| | | |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | let _this = this |
| | | getCategory().then(response=>{ |
| | | |
| | | response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | response.data.itemValues.replace("{", "").replace("}", "").split(",").map(elem => { |
| | | const label = elem.split(":")[0].trim(); |
| | | const value = parseInt(elem.split(":")[1].trim()); |
| | | _this.typeOptions.push({ "label": label, "value": value }); |
| | | }) |
| | | }) |
| | | }, |
| | | //类别选择 |
| | | getSrc(type) { |
| | | if (type === 1){ |
| | | getSrc1(type){ |
| | | if(type===0){ |
| | | return '证件' |
| | | }else if(type===1){ |
| | | return '荣誉' |
| | | }else if(type===2){ |
| | | return '资质' |
| | | } |
| | | }, |
| | | //名称选择 |
| | | getSrc(name) { |
| | | if (name === 1){ |
| | | return '出生证' |
| | | }else if(type === 2){ |
| | | }else if(name === 2){ |
| | | return '学生证' |
| | | }else if(type === 3){ |
| | | }else if(name === 3){ |
| | | return '毕业证' |
| | | }else if(type === 4){ |
| | | }else if(name === 4){ |
| | | return '结婚证' |
| | | }else if(type === 5){ |
| | | }else if(name === 5){ |
| | | return '户口簿' |
| | | }else if(type === 6){ |
| | | }else if(name === 6){ |
| | | return '独生子女证' |
| | | }else if(type === 7){ |
| | | }else if(name === 7){ |
| | | return '高级职称' |
| | | }else if(type === 8){ |
| | | }else if(name === 8){ |
| | | return '护照' |
| | | }else if(type === 9){ |
| | | }else if(name === 9){ |
| | | return '通行证' |
| | | }else { |
| | | return '其它' |
| | |
| | | }, |
| | | |
| | | 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); |
| | | } |
| | | }, |
| | | handleRemoveFile(file) { |
| | | for(let i = 0; i < this.fileListOther.length; i++) |
| | | { |
| | | if(this.fileListOther[i].url==file.url) |
| | | this.$delete(this.fileListOther,i); |
| | | } |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | |
| | | }); |
| | | } |
| | | }); |
| | | // 清空formDat对象的数据 |
| | | Object.keys(this.formDat).forEach(key => { |
| | | this.formDat[key] = ''; |
| | | }); |
| | | this.handleRemove(this.fileList[0]); |
| | | this.handleRemoveFile(this.fileListOther[0]); |
| | | }, |
| | | requestUpload(params) |
| | | { |