| | |
| | | |
| | | </el-col> |
| | | </el-row> |
| | | <el-table :data="tableData" ref="dataTable" style="width: 100%"> |
| | | <el-table :data="tableData" ref="dataTable" style="width: 100%" v-loading="loading"> |
| | | <el-table-column type="selection" width="55" align="center"></el-table-column> |
| | | <el-table-column prop="number" label="编号" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="number" label="编号" align="center" width="120"> |
| | | <template slot-scope="scope"> |
| | | <div class="blue-font-color" @click="showDetails(scope.row)">{{ scope.row.number }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="ht_branch" label="隐患单位" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="check_man" label="检查人" align="center" width="120"></el-table-column> |
| | | <el-table-column label="隐患项目" align="center"> |
| | |
| | | YHBMList: [], |
| | | YHJBList: [], |
| | | tableData: [], |
| | | loading:false, |
| | | listQuery: { |
| | | page: 1, |
| | | limit: 10, |
| | |
| | | getPageList() { |
| | | this.listQuery.page = 1 |
| | | this.checkTime() |
| | | this.loading = true |
| | | getPageList(this.listQuery).then(res => { |
| | | this.loading = false |
| | | if (res.data.ok == 1) { |
| | | this.tableData = res.data.data.items |
| | | this.recordTotal = res.data.data.total |
| | |
| | | fillRectification() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请选择勾选需要填写的数据!", duration: 3000}) |
| | | this.$message({type: 'warning', message: "请选择勾选需要填写的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | this.$router.push({ |
| | |
| | | fillInspector() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请选择勾选需要填写的数据!", duration: 3000}) |
| | | this.$message({type: 'warning', message: "请选择勾选需要填写的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | this.$router.push({ |
| | |
| | | window.open(href, '_blank'); |
| | | }, |
| | | exportData() { |
| | | var requestData = this.listQuery; |
| | | this.listLoading = true |
| | | var requestData = JSON.parse(JSON.stringify(this.listQuery)); |
| | | //删除分页参数 |
| | | this.$delete(requestData, 'page') |
| | | this.$delete(requestData, 'limit') |
| | | self_export_do(requestData).then(res => { |
| | | this.listLoading = false |
| | | var blob = new Blob([res.data]) |
| | | var downloadElement = document.createElement('a') |
| | | var href = window.URL.createObjectURL(blob) //创建下载的链接 |
| | |
| | | revoke() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请勾选需要撤销的数据!", duration: 3000}) |
| | | this.$message({type: 'warning', message: "请勾选需要撤销的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | var revokeIds = ""; |
| | |
| | | deleteBath() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请勾选需要删除的数据!", duration: 3000}) |
| | | this.$message({type: 'warning', message: "请勾选需要删除的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | var deleteIds = ""; |
| | |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | showDetails(row){ |
| | | this.$router.push({ |
| | | path: "/dangerDetails", |
| | | query:{"id":row.id} |
| | | }) |
| | | } |
| | | } |
| | | }; |
| | |
| | | border: none; |
| | | border-radius: 0px; |
| | | } |
| | | |
| | | .blue-font-color:hover{ |
| | | cursor: pointer; |
| | | color: blue; |
| | | } |
| | | .title-center /deep/ .el-radio-button__orig-radio:checked + .el-radio-button__inner { |
| | | background-color: #034ea2; |
| | | background-color: #034ea2; |