{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\SafeModel.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\SafeModel.vue","mtime":1684458238559},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\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\r\nimport digitalReservoir from '@/api/frontScreen/digitalReservoir.js'\r\nexport default {\r\n name: 'SafeModel',\r\n components: {\r\n },\r\n props: {\r\n },\r\n data() {\r\n return {\r\n visible: false,\r\n title: '',\r\n text: '',\r\n data: [],\r\n params: {\r\n rscd: '',\r\n },\r\n queryParam: {\r\n pageBean: {\r\n pageSize: 10,\r\n page: 1,\r\n },\r\n params: {\r\n rscd: '',\r\n },\r\n },\r\n safeList: [],\r\n ReinforceList: [],\r\n MaintainList: [],\r\n path: ''\r\n }\r\n },\r\n created() {\r\n this.params.rscd = window.sessionStorage.getItem(\"rscdId\");\r\n window.sessionStorage.removeItem(\"rscdId\")\r\n },\r\n methods: {\r\n // 查看安全PDF\r\n handleSafe(index, item) {\r\n console.log(item);\r\n let PdfId = JSON.parse(item.filePaths)\r\n this.safeList = []\r\n // 获取pdf文件路径\r\n digitalReservoir.PdfListSaf(item.rscd, (res) => {\r\n if (res.state) {\r\n this.safeList = res.value.安全鉴定\r\n this.safeList.forEach(PdfItem => {\r\n if (PdfItem.id == PdfId[0].fileId) {\r\n this.path = PdfItem.filePath\r\n this.$parent.openPDF(3, this.path)\r\n }\r\n })\r\n }\r\n })\r\n },\r\n handleReinforce(index, item) {\r\n let PdfId = JSON.parse(item.filePaths)\r\n this.ReinforceList = []\r\n // 获取pdf文件路径\r\n digitalReservoir.PdfListSaf(item.rscd, (res) => {\r\n if (res.state) {\r\n this.ReinforceList = res.value.除险加固\r\n this.ReinforceList.forEach(PdfItem => {\r\n if (PdfItem.id == PdfId[0].fileId) {\r\n this.path = PdfItem.filePath\r\n this.$parent.openPDF(3, this.path)\r\n }\r\n }) \r\n }\r\n })\r\n\r\n },\r\n handleMaintain(index, item) {\r\n let PdfId = JSON.parse(item.filePaths)\r\n this.MaintainList = []\r\n // 获取pdf文件路径\r\n digitalReservoir.PdfListSaf(item.rscd, (res) => {\r\n if (res.state) {\r\n this.MaintainList = res.value.维修养护\r\n this.MaintainList.forEach(PdfItem => {\r\n if (PdfItem.id == PdfId[0].fileId) {\r\n this.path = PdfItem.filePath\r\n this.$parent.openPDF(3, this.path)\r\n }\r\n })\r\n }\r\n })\r\n },\r\n open(value, id) {\r\n this.data = []\r\n this.queryParam.params.rscd = id\r\n if (value == 1) {\r\n this.title = \"安全鉴定\"\r\n this.visible = true\r\n digitalReservoir.ListGetSaf(this.queryParam, (res) => {\r\n if (res.state) {\r\n this.data = res.value.rows\r\n }\r\n })\r\n } else if (value == 2) {\r\n this.title = \"除险加固\"\r\n this.visible = true\r\n digitalReservoir.ListGetRes(this.queryParam, (res) => {\r\n if (res.state) {\r\n this.data = res.value.rows\r\n }\r\n })\r\n } else if (value == 3) {\r\n this.title = \"维修养护\"\r\n this.visible = true\r\n digitalReservoir.ListGetMain(this.queryParam, (res) => {\r\n if (res.state) {\r\n this.data = res.value.rows\r\n }\r\n })\r\n }\r\n },\r\n close() {\r\n this.data = []\r\n this.rscd = \"\"\r\n this.title = \"\"\r\n this.visible = false\r\n this.$emit('close')\r\n },\r\n }\r\n\r\n}\r\n",null]}