| | |
| | | // 下载员工导入模版 |
| | | downloadEmpExcel: 'http://120.24.23.155:8000/员工信息.xls', |
| | | // 导入员工 |
| | | uploadEmpExcel: 'http://120.24.23.155:8301/hr/empBaseInfo/importEmp' |
| | | uploadEmpExcel: 'http://120.24.23.155:8301/hr/empBaseInfo/importEmp', |
| | | // 获取图片 |
| | | getFilesUploadImage: 'http://120.24.23.155:8301/hr/filesUpload/image/', |
| | | // 获取图片 |
| | | getAccessoryImage: 'http://120.24.23.155:8301/hr/empAccessory/image/' |
| | | } |
| | | } |
| | |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80px" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点(部门)" width="120px" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="70px" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="70px" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号" width="120px" /> |
| | | <template v-for="(col) in labelData"> |
| | | <el-table-column :key="col.labelid" show-overflow-tooltip :prop="col.labelcode" :label="col.labelname"> |
| | | <template slot-scope="scope"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="70px" /> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total>0" |
| | |
| | | />提示:文件不要超过10个,单个文件大小不超过50M,单击或者拖动文件到下面区域,支持单个或批量文件的上传。</el-col> |
| | | </el-row> |
| | | <el-row style="background-color: rgba(0,0,0,0.2);"> |
| | | <el-col :span="14"> |
| | | <el-col :span="16"> |
| | | <el-checkbox |
| | | v-model="checkAll" |
| | | class="myRedCheckBox" |
| | | style="color: #000; margin-left: 20px;" |
| | | @change="checkAllMethods()" |
| | | >全选</el-checkbox></el-col> |
| | | <el-col :span="10"> |
| | | <el-col :span="8"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | |
| | | <el-button slot="reference" class="hr-but" type="danger">转存</el-button> |
| | | </el-popconfirm> |
| | | <el-button type="warning" @click="openUpdateFileName()">重命名</el-button> |
| | | <el-button type="primary" @click="downloaddialogFormVisible = true">查看</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-header> |
| | |
| | | <el-card |
| | | shadow="never" |
| | | > |
| | | <img |
| | | <el-image |
| | | :src="showFileImg(node.filesformat)" |
| | | class="uploading-image" |
| | | @click="clickCard(index * 8 + nodeIndex)" |
| | | > |
| | | :preview-src-list="srcList" |
| | | @click="clickImg(node)" |
| | | /> |
| | | <el-tooltip class="item" effect="dark" :content="node.filesname" placement="bottom"> |
| | | <div style="padding-top: 14px;"> |
| | | <el-checkbox v-model="checkedArr[index * 8 + nodeIndex].isChecked" class="myRedCheckBox">{{ node.filesname }}</el-checkbox> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | srcList: [], |
| | | getImg: pages.getAccessoryImage, |
| | | updateFileNameFormVisible: false, |
| | | file: { |
| | | fileName: '' |
| | |
| | | this.initlabel() |
| | | }, |
| | | methods: { |
| | | clickImg(node) { |
| | | this.srcList = [] |
| | | if ('tif,bmp,jpg,png,gif'.indexOf(node.filesformat) >= 0) { |
| | | this.srcList.push(this.getImg + node.accessoryid) |
| | | } |
| | | }, |
| | | updateFileName(formName) { |
| | | this.$refs[formName].validate(valid => { |
| | | if (valid) { |
| | |
| | | />提示:文件不要超过10个,单个文件大小不超过200M,单击或者拖动文件到下面区域,支持单个或批量文件的上传。</el-col> |
| | | </el-row> |
| | | <el-row style="background-color: rgba(0,0,0,0.2);"> |
| | | <el-col :span="14"> |
| | | <el-col :span="16"> |
| | | <el-checkbox |
| | | v-model="checkAll" |
| | | class="myRedCheckBox" |
| | | style="color: #000; margin-left: 20px;" |
| | | @change="checkAllMethods()" |
| | | >全选</el-checkbox></el-col> |
| | | <el-col :span="10"> |
| | | <el-col :span="8"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | |
| | | <el-button slot="reference" class="hr-but" type="danger">转存</el-button> |
| | | </el-popconfirm> |
| | | <el-button type="warning" @click="openUpdateFileName()">重命名</el-button> |
| | | <el-button type="primary" @click="downloaddialogFormVisible = true">查看</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-header> |
| | |
| | | <el-card |
| | | shadow="never" |
| | | > |
| | | <img |
| | | <el-image |
| | | :src="showFileImg(node.filesformat)" |
| | | class="uploading-image" |
| | | @click="clickCard(index * rowCount + nodeIndex)" |
| | | > |
| | | :preview-src-list="srcList" |
| | | @click="clickImg(node)" |
| | | /> |
| | | <el-tooltip class="item" effect="dark" :content="node.filesname" placement="bottom"> |
| | | <div style="padding-top: 14px;"> |
| | | <el-checkbox v-model="checkedArr[index * 8 + nodeIndex].isChecked" class="myRedCheckBox">{{ node.filesname }}</el-checkbox> |
| | | <el-checkbox v-model="checkedArr[index * rowCount + nodeIndex].isChecked" class="myRedCheckBox">{{ node.filesname }}</el-checkbox> |
| | | </div> |
| | | </el-tooltip> |
| | | </el-card> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | srcList: [], |
| | | getImg: pages.getFilesUploadImage, |
| | | updateFileNameFormVisible: false, |
| | | file: { |
| | | fileName: '' |
| | |
| | | this.initFolder() |
| | | }, |
| | | methods: { |
| | | clickImg(node) { |
| | | this.srcList = [] |
| | | if ('tif,bmp,jpg,png,gif'.indexOf(node.filesformat) >= 0) { |
| | | this.srcList.push(this.getImg + node.filesid) |
| | | } |
| | | }, |
| | | updateFileName(formName) { |
| | | this.$refs[formName].validate(valid => { |
| | | if (valid) { |