parent
							
								
									89c91e6cdb
								
							
						
					
					
						commit
						bea1d98047
					
				|  | @ -13,7 +13,7 @@ module.exports = { | |||
| 
 | ||||
|     // Various Dev Server settings
 | ||||
|     host: '0.0.0.0', // can be overwritten by process.env.HOST
 | ||||
|     port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
 | ||||
|     port: 18461, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
 | ||||
|     autoOpenBrowser: false, | ||||
|     errorOverlay: true, | ||||
|     notifyOnErrors: true, | ||||
|  |  | |||
|  | @ -64,17 +64,54 @@ | |||
|             </el-button> | ||||
|           </el-form-item> | ||||
|         </el-col> | ||||
|         <el-col :span="10"> | ||||
|         <el-col :span="14"> | ||||
|           <el-form-item label-width="0px" style="text-align: right"> | ||||
|             <el-button v-waves v-if="false" type="primary" icon="el-icon-bottom-right" @click="dialogFormDaoru = true"> | ||||
|               导入 | ||||
|             </el-button> | ||||
|             <el-button v-waves type="primary" icon="el-icon-right" @click="getDaochu"> | ||||
|               导出 | ||||
|             <el-button v-waves type="primary" icon="el-icon-right" @click="exportCorpOpen"> | ||||
|               导出企业 | ||||
|             </el-button> | ||||
|           </el-form-item> | ||||
|         </el-col> | ||||
|       </el-row> | ||||
|       <el-row> | ||||
|         <el-form-item label-width="0px" style="text-align: right"> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportUserOpen"> | ||||
|             导出系统全部用户 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportListOpen"> | ||||
|             导出隐患排查清单台帐 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportCheckRecordOpen"> | ||||
|             导出清单排查记录台帐 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportHiddenOpen"> | ||||
|             导出隐患台帐 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportEduTaskOpen"> | ||||
|             导出教育培训开班记录 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportEduStudentOpen"> | ||||
|             导出教育培训人员学习记录 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportEduArchive1Open"> | ||||
|             导出一人一档记录 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportEduArchive2Open"> | ||||
|             导出一期一档记录 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportEduArchive3Open"> | ||||
|             导出一企一档记录 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportSuperviseInspectOpen"> | ||||
|             导出监督检查记录 | ||||
|           </el-button> | ||||
|           <el-button v-waves type="primary" icon="el-icon-right" @click="exportSuperviseInspectHiddenOpen"> | ||||
|             导出监督检查隐患 | ||||
|           </el-button> | ||||
|         </el-form-item> | ||||
|       </el-row> | ||||
|     </el-form> | ||||
|     <el-table | ||||
|       v-loading="listLoading" | ||||
|  | @ -185,7 +222,7 @@ | |||
|       </template> | ||||
|       <div slot="footer" class="dialog-footer"> | ||||
|         <el-button @click="dialogFormDaochu = false">取 消</el-button> | ||||
|         <el-button type="primary" @click="daochuConfirm">确 定</el-button> | ||||
|         <el-button type="primary" @click="exportCorpConfirm">确 定</el-button> | ||||
|       </div> | ||||
|     </el-dialog> | ||||
|     <el-dialog :visible.sync="dialogFormDaoru" title="导入" width="800px"> | ||||
|  | @ -209,6 +246,64 @@ | |||
|         <el-button type="primary" @click="goUpload">确 定</el-button> | ||||
|       </div> | ||||
|     </el-dialog> | ||||
| 
 | ||||
|     <el-dialog :visible.sync="dialog.export.visible" title="导出" width="800px"> | ||||
|       <template> | ||||
|         <div class="app-container"> | ||||
|           <el-row> | ||||
|             <el-col span="12"> | ||||
|               <el-checkbox v-model="dialog.export.regChecked" label="导出集团人员" border/> | ||||
|               <el-table | ||||
|                 ref="multipleRegTable" | ||||
|                 :data="dialog.export.regExportList" | ||||
|                 :header-cell-style="{ | ||||
|                   'font-weight': 'bold', | ||||
|                   'color': '#000' | ||||
|                 }" | ||||
|                 tooltip-effect="dark" | ||||
|                 border | ||||
|                 fit | ||||
|                 highlight-current-row | ||||
|               > | ||||
|                 <el-table-column | ||||
|                   type="selection" | ||||
|                   width="55" | ||||
|                   align="center"/> | ||||
|                 <el-table-column type="index" label="序号" width="50" align="center" /> | ||||
|                 <el-table-column prop="name" label="导出项" /> | ||||
|               </el-table> | ||||
|             </el-col> | ||||
|             <el-col span="12"> | ||||
|               <el-checkbox v-model="dialog.export.preChecked" label="导出下属企业人员" border/> | ||||
|               <el-table | ||||
|                 ref="multiplePreTable" | ||||
|                 :data="dialog.export.preExportList" | ||||
|                 :header-cell-style="{ | ||||
|                   'font-weight': 'bold', | ||||
|                   'color': '#000' | ||||
|                 }" | ||||
|                 tooltip-effect="dark" | ||||
|                 border | ||||
|                 fit | ||||
|                 highlight-current-row | ||||
|               > | ||||
|                 <el-table-column | ||||
|                   type="selection" | ||||
|                   width="55" | ||||
|                   align="center"/> | ||||
|                 <el-table-column type="index" label="序号" width="50" align="center" /> | ||||
|                 <el-table-column prop="name" label="导出项" /> | ||||
|               </el-table> | ||||
|             </el-col> | ||||
|           </el-row> | ||||
| 
 | ||||
|         </div> | ||||
|       </template> | ||||
|       <div slot="footer" class="dialog-footer"> | ||||
|         <el-button @click="dialog.export.visible = false">取 消</el-button> | ||||
|         <el-button type="primary" @click="exportUserConfirm">确 定</el-button> | ||||
|       </div> | ||||
|     </el-dialog> | ||||
|   </div> | ||||
| </template> | ||||
| <script> | ||||
|  | @ -282,6 +377,15 @@ export default { | |||
|       daoruFrom: { | ||||
|         FILE: '', | ||||
|         FILEName: '' | ||||
|       }, | ||||
|       dialog: { | ||||
|         export: { | ||||
|           visible: false, | ||||
|           regChecked: true, | ||||
|           regExportList: [], | ||||
|           preChecked: true, | ||||
|           preExportList: [] | ||||
|         } | ||||
|       } | ||||
| 
 | ||||
|     } | ||||
|  | @ -709,7 +813,7 @@ export default { | |||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     getDaochu() { | ||||
|     exportCorpOpen() { | ||||
|       const _selectData = this.$refs.multipleTable.selection | ||||
|       if (_selectData == null || _selectData.length == 0) { | ||||
|         this.$message({ | ||||
|  | @ -734,7 +838,7 @@ export default { | |||
|           this.listLoading = false | ||||
|         }) | ||||
|     }, | ||||
|     daochuConfirm() { | ||||
|     exportCorpConfirm() { | ||||
|       const _selectData = this.$refs.multipleDaochuTable.selection | ||||
|       if (_selectData == null || _selectData.length == 0) { | ||||
|         this.$message({ | ||||
|  | @ -778,6 +882,291 @@ export default { | |||
|       }).catch((e) => { | ||||
|         this.listLoading = false | ||||
|       }) | ||||
|     }, | ||||
| 
 | ||||
|     exportUserOpen() { | ||||
|       this.$confirm('确定要导出系统人员台帐吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = this.config.httpurl + | ||||
|           '/user/exportExcelDaochu' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|       // if (this.varList.length === 0) { | ||||
|       //   this.$message({ | ||||
|       //     message: '暂无数据无法导出...', | ||||
|       //     type: 'error' | ||||
|       //   }) | ||||
|       //   return false | ||||
|       // } | ||||
|       // requestFN( | ||||
|       //   '/user/goDaochu', | ||||
|       //   { | ||||
|       //     tm: new Date().getTime() | ||||
|       //   } | ||||
|       // ).then((data) => { | ||||
|       //   this.dialog.export.regChecked = true | ||||
|       //   this.dialog.export.regExportList = data.regList | ||||
|       //   this.dialog.export.preChecked = false | ||||
|       //   this.dialog.export.preExportList = data.preList | ||||
|       //   this.dialog.export.visible = true | ||||
|       // }) | ||||
|       //   .catch((e) => { | ||||
|       //     this.listLoading = false | ||||
|       //   }) | ||||
|     }, | ||||
|     exportUserConfirm() { | ||||
|       // eslint-disable-next-line one-var | ||||
|       let regKeys = '', regVals = '', preKeys = '', preVals = '' | ||||
|       if (this.dialog.export.regChecked) { | ||||
|         const _selectData = this.$refs.multipleRegTable.selection | ||||
|         if (_selectData == null || _selectData.length == 0) { | ||||
|           this.$message({ | ||||
|             message: '请选中要导出的项...', | ||||
|             type: 'error' | ||||
|           }) | ||||
|           return false | ||||
|         } | ||||
|         regKeys = _selectData.map((item, index) => { | ||||
|           return item.key | ||||
|         }).join(',') | ||||
|         regVals = _selectData.map((item, index) => { | ||||
|           return item.name | ||||
|         }).join(',') | ||||
|       } | ||||
|       if (this.dialog.export.preChecked) { | ||||
|         const _selectData = this.$refs.multiplePreTable.selection | ||||
|         if (_selectData == null || _selectData.length == 0) { | ||||
|           this.$message({ | ||||
|             message: '请选中要导出的项...', | ||||
|             type: 'error' | ||||
|           }) | ||||
|           return false | ||||
|         } | ||||
|         preKeys = _selectData.map((item, index) => { | ||||
|           return item.key | ||||
|         }).join(',') | ||||
|         preVals = _selectData.map((item, index) => { | ||||
|           return item.name | ||||
|         }).join(',') | ||||
|       } | ||||
|       const loading = this.$loading({ | ||||
|         lock: true, | ||||
|         text: '数据导出中...', | ||||
|         spinner: 'el-icon-loading', | ||||
|         background: 'rgba(0, 0, 0, 0.7)' | ||||
|       }) | ||||
|       window.location.href = this.config.httpurl + | ||||
|         '/user/exportExcelDaochu?regVals=' + regVals + | ||||
|         '®Keys=' + regKeys + | ||||
|         '&preVals=' + preVals + | ||||
|         '&preKeys=' + preKeys | ||||
|       setTimeout(function() { | ||||
|         loading.close() | ||||
|       }, 2000) | ||||
|     }, | ||||
|     exportListOpen() { | ||||
|       this.$confirm('确定要导出系统隐患排查清单吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = this.config.httpurl + | ||||
|           '/listmanager/exportExcelSystemLedger' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportCheckRecordOpen() { | ||||
|       this.$confirm('确定要导出清单排查记录台帐吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = this.config.httpurl + | ||||
|           '/checkrecord/exportExcelSystemLedger' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportHiddenOpen() { | ||||
|       this.$confirm('确定要导出系统隐患台帐吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = config.httpurl + '/hidden/exportExcelSystemLedger' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportEduTaskOpen() { | ||||
|       this.$confirm('确定要导出教育培训开班记录吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = config.httpurl + '/studytask/exportExcelSystemLedger' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportEduStudentOpen() { | ||||
|       this.$confirm('确定要导出教育培训人员学习记录吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = config.httpurl + '/stagestudentrelation/exportExcelSystemLedger' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportEduArchive1Open() { | ||||
|       this.$confirm('确定要导出教育培训档案一人一档记录吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = config.httpurl + '/archivesedumanager/exportExcelSystemLedger' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportEduArchive2Open() { | ||||
|       this.$confirm('确定要导出教育培训档案一期一档记录吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = config.httpurl + '/archivesedumanager/exportExcelSystemLedgerEduArchive2' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportEduArchive3Open() { | ||||
|       this.$confirm('确定要导出教育培训档案一企一档记录吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = config.httpurl + '/archivesedumanager/exportExcelSystemLedgerEduArchive3' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportSuperviseInspectOpen() { | ||||
|       this.$confirm('确定要导出监督检查记录吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = config.httpurl + '/superviseinspect/exportExcelSystemLedger' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     }, | ||||
|     exportSuperviseInspectHiddenOpen() { | ||||
|       this.$confirm('确定要导出监督检查隐患吗?', { | ||||
|         confirmButtonText: '确定', | ||||
|         cancelButtonText: '取消', | ||||
|         type: 'warning' | ||||
|       }).then(() => { | ||||
|         const loading = this.$loading({ | ||||
|           lock: true, | ||||
|           text: '数据导出中...', | ||||
|           spinner: 'el-icon-loading', | ||||
|           background: 'rgba(0, 0, 0, 0.7)' | ||||
|         }) | ||||
|         window.location.href = config.httpurl + '/superviseinspecthidden/exportExcelSystemLedger' | ||||
|         setTimeout(function() { | ||||
|           loading.close() | ||||
|         }, 2000) | ||||
|       }).catch(() => { | ||||
|       }) | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,8 +1,8 @@ | |||
| const config = { | ||||
|   weburl: 'http://192.168.0.16:8082/', // 前台地址
 | ||||
|   httpurl: 'http://192.168.0.16:7061/', // 后台地址
 | ||||
|   weburl: 'http://192.168.0.16:18461/', // 前台地址
 | ||||
|   httpurl: 'http://192.168.0.16:8461/', // 后台地址
 | ||||
|   qyurl: 'http://192.168.0.16:8082/', // 企业前台
 | ||||
|   // fileUrl: 'http://192.168.0.14:8081/'
 | ||||
|   // fileUrl: 'http://36.133.193.8:8086/wlaqfile/', // 附件服务器地址(测试)
 | ||||
|   fileUrl: 'https://wlqy.zcloudchina.com/file/'// 附件服务器地址
 | ||||
|   fileUrl: 'http://192.168.20.240:8463/wlaq/', // 附件服务器地址(内测)
 | ||||
|   // fileUrl: 'https://wlqy.zcloudchina.com/file/'// 附件服务器地址
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue