| | |
| | | data, |
| | | }); |
| | | } |
| | | |
| | | export function danger_export_do(data) { |
| | | return request({ |
| | | headers: { |
| | | 'token': getTokenAndVerify().token, |
| | | 'verify': getTokenAndVerify().verify |
| | | }, |
| | | url: '/taboi/excel/danger_export_do', |
| | | method: 'post', |
| | | responseType: 'arraybuffer', |
| | | data |
| | | }); |
| | | } |
| | |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-search" @click="getPageList()">查询 |
| | | </el-button> |
| | | <el-button type="primary" class="btns" size="small" @click="reset()">重置</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2">导出excel</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2" @click="exportData">导出excel |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-row class="title-center"> |
| | |
| | | </template> |
| | | <script> |
| | | import {getPageList, next_step_do} from "@/api/sgyhpczl/delayHiddenDangerRectification"; |
| | | import {danger_export_do} from "@/api/sgyhpczl/hiddenDangerRectification"; |
| | | import {initJCBM, initYHLX, initBC, initJCLB, initYHBM, initYHJB, initLlr} from "@/api/sgyhpczl/initSelect"; |
| | | |
| | | export default { |
| | |
| | | }) |
| | | }, |
| | | sendBath() { |
| | | |
| | | var selectData = this.$refs.dataTable.selection; |
| | | if (selectData.length < 1) { |
| | | this.$message({type: 'warn', message: "请选择需要发送的数据!", duration: 3000}) |
| | |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | exportData() { |
| | | var requestData = this.listQuery; |
| | | requestData.export_type = 4; |
| | | //删除分页参数 |
| | | this.$delete(requestData, 'page') |
| | | this.$delete(requestData, 'limit') |
| | | danger_export_do(requestData).then(res => { |
| | | var blob = new Blob([res.data]) |
| | | var downloadElement = document.createElement('a') |
| | | var href = window.URL.createObjectURL(blob) //创建下载的链接 |
| | | downloadElement.href = href |
| | | downloadElement.download = '隐患整改延期.xlsx' //下载后文件名 |
| | | document.body.appendChild(downloadElement) |
| | | downloadElement.click() //点击下载 |
| | | document.body.removeChild(downloadElement) //下载完成移除元素 |
| | | window.URL.revokeObjectURL(href) //释放掉blob对象 |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | | } |
| | | } |
| | | }; |
| | |
| | | <el-row class="title-center"> |
| | | <el-col :span="7"> |
| | | <el-radio-group v-model="listQuery.form.alter_status"> |
| | | <el-radio-button v-for="item in statusList" :label="item.value" :key="item.value"></el-radio-button> |
| | | <el-radio-button v-for="item in statusList" :label="item.value" :key="item.value" @change.native="getPageList"></el-radio-button> |
| | | </el-radio-group> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | type="primary" |
| | | class="btns" |
| | | size="small" |
| | | v-show="buttomShow" |
| | | icon="el-icon-bottom" |
| | | >导入 |
| | | </el-button |
| | |
| | | type="primary" |
| | | class="btns" |
| | | size="small" |
| | | v-show="buttomShow" |
| | | icon="el-icon-download" |
| | | >下载模板 |
| | | </el-button |
| | |
| | | class="btns" |
| | | type="primary" |
| | | size="small" |
| | | v-show="buttomShow" |
| | | @click="fillRectification()" |
| | | >填写整改 |
| | | </el-button |
| | |
| | | >填写督查 |
| | | </el-button |
| | | > |
| | | <el-button class="btns" type="primary" icon="el-icon-plus" @click="jump" size="small" |
| | | <el-button |
| | | class="btns" |
| | | type="primary" |
| | | size="small" |
| | | v-show="!buttomShow" |
| | | @click="cancel()" |
| | | >撤销 |
| | | </el-button |
| | | > |
| | | <el-button class="btns" type="primary" icon="el-icon-plus" @click="jump" size="small" v-show="buttomShow" |
| | | >添加 |
| | | </el-button |
| | | > |
| | | <el-button size="small" @click="deleteBath" |
| | | <el-button size="small" @click="deleteBath" v-show="buttomShow" |
| | | >批量删除 |
| | | </el-button |
| | | > |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | buttomShow:true, |
| | | fileList: [], |
| | | statusList: [], |
| | | options: [], |
| | |
| | | this.initBC() |
| | | this.initJCLB() |
| | | this.initReformStatus() |
| | | }, |
| | | watch:{ |
| | | "listQuery.form.alter_status":function (newVal,oldVal) { |
| | | console.log(newVal) |
| | | if(newVal == "整改完成"){ |
| | | this.buttomShow = false; |
| | | }else{ |
| | | this.buttomShow = true; |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | initReformStatus() { |
| | |
| | | } |
| | | return true |
| | | }, |
| | | |
| | | cancel(){ |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请勾选需要撤销的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | }, |
| | | |
| | | deleteBath() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请选择勾选需要删除的数据!", duration: 3000}) |
| | | this.$message({type: 'warn', message: "请勾选需要删除的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | var deleteIds = ""; |
| | |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-search" @click="getPageList()">查询 |
| | | </el-button> |
| | | <el-button type="primary" class="btns" size="small" @click="reset()">重置</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2">导出excel</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2" @click="exportData">导出excel</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-row class="title-center"> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import {getPageList, uploadFile, saveDelayApply} from "@/api/sgyhpczl/hiddenDangerRectification"; |
| | | import {getPageList, uploadFile, saveDelayApply,danger_export_do} from "@/api/sgyhpczl/hiddenDangerRectification"; |
| | | import {initJCBM, initYHLX, initBC, initJCLB, initYHBM, initYHJB, initLlr} from "@/api/sgyhpczl/initSelect"; |
| | | |
| | | export default { |
| | |
| | | }); |
| | | }) |
| | | }, |
| | | exportData(){ |
| | | var requestData = this.listQuery; |
| | | requestData.export_type = 2; |
| | | //删除分页参数 |
| | | this.$delete(requestData, 'page') |
| | | this.$delete(requestData, 'limit') |
| | | danger_export_do(requestData).then(res => { |
| | | var blob = new Blob([res.data]) |
| | | var downloadElement = document.createElement('a') |
| | | var href = window.URL.createObjectURL(blob) //创建下载的链接 |
| | | downloadElement.href = href |
| | | downloadElement.download = '隐患整改治理.xlsx' //下载后文件名 |
| | | document.body.appendChild(downloadElement) |
| | | downloadElement.click() //点击下载 |
| | | document.body.removeChild(downloadElement) //下载完成移除元素 |
| | | window.URL.revokeObjectURL(href) //释放掉blob对象 |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | <el-form-item style="text-align:center;padding:0 50px"> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-search" @click="getPageList()">查询</el-button> |
| | | <el-button type="primary" class="btns" size="small" @click="reset()">重置</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2">导出excel</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2" @click="exportData">导出excel</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-row class="title-center"> |
| | |
| | | </template> |
| | | <script> |
| | | import {getPageList} from "@/api/sgyhpczl/recheckCancellationNumber"; |
| | | import {danger_export_do} from "@/api/sgyhpczl/hiddenDangerRectification"; |
| | | import {initJCBM ,initYHLX, initBC ,initJCLB ,initYHBM ,initYHJB,initLlr} from "@/api/sgyhpczl/initSelect"; |
| | | export default { |
| | | data() { |
| | |
| | | query:{"id":row.id} |
| | | }) |
| | | }, |
| | | exportData(){ |
| | | var requestData = this.listQuery; |
| | | requestData.export_type = 3; |
| | | //删除分页参数 |
| | | this.$delete(requestData, 'page') |
| | | this.$delete(requestData, 'limit') |
| | | danger_export_do(requestData).then(res => { |
| | | var blob = new Blob([res.data]) |
| | | var downloadElement = document.createElement('a') |
| | | var href = window.URL.createObjectURL(blob) //创建下载的链接 |
| | | downloadElement.href = href |
| | | downloadElement.download = '隐患复查销号.xlsx' //下载后文件名 |
| | | document.body.appendChild(downloadElement) |
| | | downloadElement.click() //点击下载 |
| | | document.body.removeChild(downloadElement) //下载完成移除元素 |
| | | window.URL.revokeObjectURL(href) //释放掉blob对象 |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | | } |
| | | } |
| | | }; |
| | | </script> |