{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\resIns\\components\\dsm-doalog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\resIns\\components\\dsm-doalog.vue","mtime":1684458239465},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport dsmInsPosition from '@/api/resIns/dsmInsInin.js'\r\nimport req from '@/request.js'\r\nexport default {\r\n name: 'videoManger',\r\n props: {\r\n StshowFormDias: {\r\n type: Boolean,\r\n default: false\r\n },\r\n rowId: {\r\n type: String,\r\n default: ''\r\n },\r\n nol: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n components: {},\r\n data() {\r\n return {\r\n falg: false,\r\n params: {},\r\n urls: 'http://183.230.17.146:9080',\r\n lists: [],\r\n tempList: [],\r\n tabList: [],\r\n temp: [],\r\n current: 0,\r\n rules: {\r\n excResult: [\r\n {\r\n required: true,\r\n message: '请输入处理结果',\r\n trigger: 'blur'\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n created() {\r\n // console.log(this.urls);\r\n if (this.nol == '正常') {\r\n this.falg = true\r\n } else {\r\n this.falg = false\r\n }\r\n // this.getDetailInfo()\r\n this.dome()\r\n },\r\n methods: {\r\n dome() {\r\n dsmInsPosition.structureList(this.rowId, res => {\r\n // 获取对象配置tabs标签\r\n this.lists = res.value\r\n dsmInsPosition.getInsResult(this.rowId, res => {\r\n this.lists.forEach((w, wi) => {\r\n res.value.forEach(e => {\r\n if (e.structure == w.structure) {\r\n if (e.position == w.position) {\r\n e.srcList = []\r\n e.pic.forEach(p => {\r\n e.srcList.push(this.urls + '/' + p.filePath)\r\n })\r\n this.lists[wi] = e\r\n // console.log(e);\r\n }\r\n }\r\n })\r\n })\r\n for (let i = 0; i < this.lists.length; i++) {\r\n let objTabList = {\r\n name: this.lists[i].structure\r\n }\r\n this.tabList.push(objTabList)\r\n }\r\n this.tabList = this.tabList.filter((element, index, self) => {\r\n return self.findIndex(x => x.name === element.name) === index\r\n })\r\n\r\n // 获取tabs标签对于列表内容\r\n this.temp = []\r\n this.tabList.forEach(e => {\r\n this.temp.push(this.lists.filter(i => i.structure === e.name))\r\n })\r\n let temp = this.temp[this.current]\r\n this.tempList = temp\r\n })\r\n })\r\n },\r\n\r\n handleClick(tab) {\r\n this.current = tab.index\r\n this.tempList = this.temp[this.current]\r\n },\r\n getDetailInfo() {\r\n if ((this.StshowFormDias = true)) {\r\n dsmInsPosition.detailId(this.rowId, res => {})\r\n }\r\n },\r\n goInfo() {\r\n let arr = []\r\n let newArr = []\r\n let types = true\r\n let times\r\n let date = new Date()\r\n let y = date.getFullYear()\r\n let MM = date.getMonth() + 1\r\n MM = MM < 10 ? '0' + MM : MM\r\n let d = date.getDate()\r\n d = d < 10 ? '0' + d : d\r\n let h = date.getHours()\r\n h = h < 10 ? '0' + h : h\r\n let m = date.getMinutes()\r\n m = m < 10 ? '0' + m : m\r\n let s = date.getSeconds()\r\n s = s < 10 ? '0' + s : s\r\n times = y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s\r\n console.log(times)\r\n this.lists.forEach(e => {\r\n if (Object.keys(e).length > 3) {\r\n delete e.srcList\r\n arr.push(e)\r\n }\r\n })\r\n\r\n arr.forEach(a => {\r\n if (a.isNormal == '2' && a.result == '') {\r\n this.$message.warning('请填写处理结果')\r\n types = false\r\n return\r\n }\r\n })\r\n arr.forEach(item => {\r\n if (item.isNormal == 2) {\r\n newArr.push({\r\n excMemo: item.exceptionData.excMemo, //备注\r\n excResult: item.result, //处理结果\r\n excTime: times, //处理时间\r\n excUser: this.$store.state.login.currentUser.username, //处理用户\r\n id: item.exceptionData.id,\r\n insId: item.exceptionData.insId,\r\n isDele: item.exceptionData.isDele,\r\n pkVal: item.exceptionData.pkVal,\r\n resId: item.exceptionData.resId,\r\n tenantId: ''\r\n })\r\n }\r\n })\r\n if (types) {\r\n dsmInsPosition.saveBatch(newArr, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '处理成功'\r\n })\r\n this.$emit('closeStshowForm')\r\n this.$emit('refList')\r\n }\r\n })\r\n }\r\n },\r\n handleClose() {\r\n this.$emit('closeStshowForm')\r\n }\r\n }\r\n}\r\n",null]}