| | |
| | | @keyup.enter.native="handleQuery"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | <!-- <el-input |
| | | v-model="searchVal" |
| | | placeholder="在“通讯录”中搜索" |
| | | clearable |
| | | style="width: 240px" |
| | | @input="inputChange"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | <div class="outer-table"> |
| | | 此父组件引用子组件tablemax |
| | | <tablemax label="myLabel" :tableData="contactList"> |
| | | <template v-slot:table> |
| | | <el-table-column label="操作" width="180"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="handleCheck(scope.row)" type="text" size="small" |
| | | >调用</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | | </tablemax> |
| | | </div>--> |
| | | |
| | | <!-- v-model="queryParams.id" |
| | | |
| | | v-model:phone="queryParams.phone" |
| | | v-model:wx="queryParams.wx" |
| | | v-model:qq="queryParams.qq" |
| | | v-model:twitter="queryParams.twitter" |
| | | v-model:isAlways="queryParams.isAlways" |
| | | v-model:remark="queryParams.remark" |
| | | @keyup.enter.native="handleQuery" |
| | | --> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="name"> |
| | | |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div> |
| | | <!-- <div style="width: 171px;--> |
| | | <!-- height: 28px;--> |
| | | <!-- font-size: 21px;--> |
| | | <!-- font-family: Microsoft YaHei-Regular, Microsoft YaHei;--> |
| | | <!-- font-weight: 400;--> |
| | | <!-- color: #000000;--> |
| | | <!-- line-height: 25px;--> |
| | | <!-- ">证件、荣誉、资质</div>--> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | |
| | | <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="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="createTime" sortable width="120" align="center">--> |
| | | |
| | | <!-- <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">{{ 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">--> |
| | | <!-- <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 label="名称" prop="name" sortable width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.name? scope.row.name: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="证号/专业" prop="idNo" sortable width="170" 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="happenTime">--> |
| | | <!-- <el-date-picker v-model='formDat.happenTime' type='date' placeholder='选择日期'></el-date-picker>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="类别" prop="type"> |
| | | <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" |
| | |
| | | :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" |
| | |
| | | dsb:true, |
| | | btn:false, |
| | | fit:['fill'], |
| | | |
| | | uploading: false, |
| | | formDat: { |
| | | //荣誉证书记录 |
| | | id:undefined, |
| | |
| | | created() { |
| | | this.getList(); |
| | | this.getTypeOptions(); |
| | | // for (let i = 0; i < this.contactList.length; i++) { |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | | }, |
| | | methods: { |
| | | // 取消按钮 |
| | |
| | | |
| | | }, |
| | | /** 查询类别信息 */ |
| | | getCateInfor() |
| | | { |
| | | let _this = this |
| | | getCategory().then(response=>{ |
| | | |
| | | // getCateInfor() |
| | | // { |
| | | // 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 }); |
| | | }) |
| | | }) |
| | | }, |
| | | // const label = elem.split(":")[0].trim(); |
| | | // const value = parseInt(elem.split(":")[1].trim()); |
| | | // _this.typeOptions.push({ "label": label, "value": value }); |
| | | // }) |
| | | // }) |
| | | // }, |
| | | //类别选择 |
| | | getSrc1(type){ |
| | | if(type===0){ |
| | |
| | | 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}) |
| | |
| | | }).catch(() => { Message({ message: "导入失败", type: 'error' })}); |
| | | |
| | | } |
| | | }, |
| | | watch: { |
| | | type(value) { |
| | | if (value === '') { |
| | | this.showInput = true; |
| | | } else { |
| | | this.showInput = false; |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |