forked from zhurui/management
1 line
7.6 KiB
JSON
1 line
7.6 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\registerManage\\staff.vue?vue&type=style&index=0&id=7dc43bca&lang=scss&scoped=true&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\registerManage\\staff.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\sass-loader\\lib\\loader.js","mtime":1533139052000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.el-table {\n .student-img {\n vertical-align: top;\n width: 53px;\n height: 70px;\n }\n .danger-button{\n color: #FF4040;\n }\n}\n",{"version":3,"sources":["staff.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"staff.vue","sourceRoot":"src/views/modules/registerManage","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <el-form ref=\"dataForm\" :model=\"dataForm\" label-width=\"80px\" inline>\n <el-form-item label=\"姓名\" prop=\"scWaname\">\n <el-input v-model=\"dataForm.scWaname\" placeholder=\"请输入\" clearable></el-input>\n </el-form-item>\n <el-form-item label=\"职工编号\" prop=\"scEmpno\">\n <el-input v-model=\"dataForm.scEmpno\" placeholder=\"请输入\" clearable></el-input>\n </el-form-item>\n <el-form-item>\n <el-button @click=\"search\">查询</el-button>\n <el-button type=\"warning\" @click=\"resetForm('dataForm')\">重置</el-button>\n <el-button type=\"success\" @click=\"uploadExcel\">导入</el-button>\n </el-form-item>\n </el-form>\n <el-table :data=\"dataList\">\n <el-table-column type=\"index\" label=\"序号\" width=\"100\" align=\"center\"></el-table-column>\n <el-table-column label=\"照片\">\n <template slot-scope=\"scope\">\n <el-image class=\"student-img\" :src=\"$ImgServerUrl+scope.row.scPhotoimg\" :preview-src-list=\"previewList\">\n <div slot=\"error\" class=\"image-slot\">\n <img class=\"student-img\" src=\"../../../assets/img/person.jpg\">\n </div>\n </el-image>\n </template>\n </el-table-column>\n <el-table-column prop=\"scWaname\" label=\"姓名\"></el-table-column>\n\t <el-table-column prop=\"scEmpno\" label=\"职工编号\"></el-table-column>\n <el-table-column prop=\"scWasex\" label=\"性别\" :formatter=\"formatterSex\"></el-table-column>\n <el-table-column prop=\"scIdno\" label=\"身份证号码\"></el-table-column>\n <el-table-column prop=\"scRfcardid\" label=\"RFID\"></el-table-column>\n <el-table-column prop=\"scUwbid\" label=\"UWB标签\"></el-table-column>\n <el-table-column label=\"操作\">\n <template slot-scope=\"scope\">\n <div>\n <el-button type=\"text\" @click=\"viewHandle(scope.row)\">详情</el-button>\n <el-button\n class=\"danger-button\"\n type=\"text\"\n v-if=\"scope.row.scRfcardid||scope.row.scUwbid\"\n @click=\"unbindHandle(scope.row)\"\n >解绑</el-button>\n <el-button type=\"text\" v-else @click=\"editHandle(scope.row)\">绑卡</el-button>\n </div>\n </template>\n </el-table-column>\n </el-table>\n <el-pagination\n :current-page=\"page\"\n :page-sizes=\"[6,10, 20, 50, 100]\"\n :page-size=\"limit\"\n :total=\"total\"\n layout=\"total, sizes, prev, pager, next, jumper\"\n @size-change=\"pageSizeChangeHandle\"\n @current-change=\"pageCurrentChangeHandle\">\n </el-pagination>\n <!-- 新增修改 -->\n <add-or-update ref=\"addOrUpdate\"></add-or-update>\n <!-- 查看 -->\n <view-staff ref=\"viewStaff\"></view-staff>\n <!-- 批量上传信息 -->\n <upload ref=\"staffUploadExcel\" template-url=\"./template/职工卡登记表导入模板.xls\" upload-url=\"/system/scworkersarchives/importRegisterInfoExcel\"></upload>\n\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport addOrUpdate from '@/views/modules/registerManage/staff-bind'\nimport viewStaff from '@/views/modules/registerManage/staff-view'\nimport { getDictLabel} from '@/utils'\nimport upload from '@/components/public/upload-excel-or-img'\nexport default {\n mixins: [mixinViewModule],\n components:{ addOrUpdate,viewStaff,upload },\n data(){\n return{\n mixinViewModuleOptions: {\n getDataListURL: '/system/scworkersarchives/page',\n deleteURL: '/system/scworkersarchives',\n getDataListIsPage:true\n },\n limit:6,\n dataForm:{\n scWaname:'',\n scEmpno:''\n },\n dataList:[]\n }\n },\n computed:{\n previewList(){\n return this.dataList.map(item=>{\n return this.$ImgServerUrl+item.scPhotoimg\n })\n },\n },\n methods:{\n addStaff(){\n this.$refs['addOrUpdate'].init()\n },\n search(){\n this.page=1;\n this.query();\n },\n resetQuery(){\n this.page=1;\n this.dataForm={\n scWaname:'',\n scEmpno:''\n };\n this.query();\n },\n viewHandle(row){\n this.$refs['viewStaff'].init(row)\n },\n editHandle(row){\n this.$refs['addOrUpdate'].init(row)\n },\n uploadExcel(){\n this.$refs['staffUploadExcel'].init()\n },\n trackHandle(row){},\n unbindHandle(row){\n this.$confirm('确定进行解绑操作?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n let dataForm={\n ...row,\n scUwbid:'',\n scRfcardid:'',\n };\n this.$http({\n url:\"/system/scworkersarchives\",\n method:'put',\n data:dataForm\n }).then(({data})=>{\n if(data.code!=0){\n return this.$message.error(data.msg)\n }\n this.query();\n this.$message.success(data.msg)\n })\n })\n },\n formatterSex(row){\n return getDictLabel('gender',row.scWasex)\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.el-table {\n .student-img {\n vertical-align: top;\n width: 53px;\n height: 70px;\n }\n .danger-button{\n color: #FF4040;\n }\n}\n</style>"]}]} |