| | |
| | | import Titlename from "../../components/Titlename/index.vue"; |
| | | import {sendDangerNext, getDangerDetails, getWfRecordList} from "@/api/sgyhpczl/recheckCancellationNumber"; |
| | | import {downloadFile} from "@/api/sgyhpczl/fileUtils"; |
| | | import {self_info} from "../../api/sgyhpczl/hiddenDangerManagement"; |
| | | |
| | | export default { |
| | | components: {Titlename}, |
| | |
| | | }, |
| | | methods: { |
| | | getDangerDetails() { |
| | | getDangerDetails(this.$route.query.id).then(res => { |
| | | var data = res.data; |
| | | if (data.ok) { |
| | | this.ruleForm = data.data; |
| | | this.ruleForm.url = process.env.BASE_API; |
| | | this.ruleForm.callback_branch= data.data.check_main_branch |
| | | //this.ruleForm.ispass=0 |
| | | this.sendDataForm.id = this.ruleForm.id |
| | | } else { |
| | | this.$message({type: 'error', message: "数据查询失败,请重试!", duration: 3000}) |
| | | } |
| | | }) |
| | | if(this.$route.query.route!=null && this.$route.query.route == '/hiddenDangerManagement'){ |
| | | self_info(this.$route.query.id).then(res => { |
| | | var data = res.data; |
| | | if (data.ok) { |
| | | this.ruleForm = data.data; |
| | | this.ruleForm.url = process.env.BASE_API; |
| | | this.ruleForm.callback_branch= data.data.check_main_branch |
| | | //this.ruleForm.ispass=0 |
| | | this.sendDataForm.id = this.ruleForm.id |
| | | } else { |
| | | this.$message({type: 'error', message: "数据查询失败,请重试!", duration: 3000}) |
| | | } |
| | | }) |
| | | }else{ |
| | | getDangerDetails(this.$route.query.id).then(res => { |
| | | var data = res.data; |
| | | if (data.ok) { |
| | | this.ruleForm = data.data; |
| | | this.ruleForm.url = process.env.BASE_API; |
| | | this.ruleForm.callback_branch= data.data.check_main_branch |
| | | //this.ruleForm.ispass=0 |
| | | this.sendDataForm.id = this.ruleForm.id |
| | | } else { |
| | | this.$message({type: 'error', message: "数据查询失败,请重试!", duration: 3000}) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | getWfRecordList() { |
| | | getWfRecordList(this.$route.query.id).then(res => { |