{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\PendingDisposal\\components\\MyReportDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\PendingDisposal\\components\\MyReportDialog.vue","mtime":1701739983669},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-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//\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//\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//\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 utils from '@/utils.js'\r\nimport MyReport from '@/api/PendingDisposal/MyReport'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport TreatedEventListDialog from './TreatedEventListDialog'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport PlazaLocation from '@/api/basicConfiguration/PlazaLocation'\r\nimport Team from '@/api/basicConfiguration/Team'\r\nimport IntelligentDevice from '@/api/basicConfiguration/IntelligentDevice'\r\nimport bigScreenAPI from '@/api/BigScreen/index.js'\r\nexport default {\r\n props: {},\r\n name: 'MyReportDialog',\r\n mixins: [TableMixin],\r\n components: {TreatedEventListDialog},\r\n data() {\r\n return {\r\n activeName: 'first',\r\n activeSubTab: 'sub-tab-1',\r\n visible: false,\r\n loading: false,\r\n openType: '详细信息',\r\n rules: {\r\n name: [\r\n {\r\n required: true,\r\n message: '请输入姓名',\r\n trigger: 'blur',\r\n },\r\n ],\r\n xb: [\r\n {\r\n required: true,\r\n message: '请选择性别',\r\n trigger: 'blur',\r\n },\r\n ],\r\n tel: [\r\n {\r\n required: true,\r\n message: '请输入联系电话',\r\n trigger: 'blur',\r\n },\r\n ],\r\n personalid: [\r\n {\r\n required: true,\r\n message: '请输入联系电话',\r\n trigger: 'blur',\r\n },\r\n ],\r\n address: [\r\n {\r\n type: 'date',\r\n required: true,\r\n message: '请选择地址',\r\n trigger: 'blur',\r\n },\r\n ],\r\n },\r\n basicsData: {},\r\n formData: {},\r\n xboptions: [],\r\n areaCode: [],\r\n noise: [],\r\n options: [],\r\n noiseOptions: [],\r\n taskList: [],\r\n squareList: [],\r\n url: '',\r\n srcList: [],\r\n }\r\n },\r\n created() {\r\n this.getNoiseTree()\r\n this.getTownTree()\r\n this.getPlazaLocation()\r\n },\r\n methods: {\r\n open(data, type) {\r\n this.activeName = 'first'\r\n this.getTaskList(data.id)\r\n\r\n if (type == 'detail') {\r\n this.openType = '详细信息'\r\n if (data) {\r\n this.formData.taskId = data.tasKId\r\n MyReport.detailId(data.id, (res) => {\r\n this.basicsData = res\r\n this.formData.id = res.id\r\n this.areaCode = res.areaFullCode\r\n ? res.areaFullCode.split('/').splice(1)\r\n : []\r\n if (res.noiseLevelId && res.noiseTypeId) {\r\n this.noise = [res.noiseTypeId, res.noiseLevelId]\r\n } else if (res.noiseTypeId) {\r\n this.noise = [res.noiseTypeId]\r\n } else {\r\n this.noise = []\r\n }\r\n })\r\n }\r\n } else {\r\n this.openType = '更新事件'\r\n }\r\n this.visible = true\r\n },\r\n //获取广场舞地点\r\n getPlazaLocation() {\r\n IntelligentDevice.plazaQuery(\r\n {\r\n pageBean: {\r\n page: 1,\r\n pageSize: -1,\r\n },\r\n },\r\n (res) => {\r\n this.squareList = res.rows\r\n }\r\n )\r\n },\r\n //流程\r\n getTaskList(id) {\r\n MyReport.taskList(id, (res) => {\r\n this.taskList = res\r\n })\r\n },\r\n //噪音标准\r\n getNoiseTree() {\r\n PlazaLocation.getNoise({}, (res) => {\r\n if (res.state) {\r\n this.noiseOptions = res.value\r\n }\r\n })\r\n },\r\n //行政区划\r\n getTownTree() {\r\n MyReport.getbaseAreaTree({}, (res) => {\r\n if (res.state) {\r\n this.options = res.value\r\n }\r\n })\r\n },\r\n findDispose(data, value) {\r\n let arr = []\r\n if (data && data.length > 0) {\r\n for (let obj of data) {\r\n if (value === 'processDeptName') {\r\n if (obj[value] != '') {\r\n arr.push(obj[value])\r\n } else {\r\n arr.push(obj.processOrgName)\r\n }\r\n } else {\r\n arr.push(obj[value])\r\n }\r\n }\r\n }\r\n\r\n return arr.join(',')\r\n },\r\n downloadFile(id) {\r\n window.open(\r\n window.context.portal + `/file/v1/downloadFile?fileId=${id}`,\r\n '_blank'\r\n )\r\n },\r\n handleCancel() {\r\n this.visible = false\r\n },\r\n handleSubmit() {},\r\n handleMore() {\r\n this.$refs.treatedListDialog.open()\r\n },\r\n // 打开预警图片\r\n openImg() {\r\n // console.log(this.$refs.warningImg);\r\n if (this.basicsData.imgUrl) {\r\n bigScreenAPI.getImgByUrl(this.basicsData.imgUrl).then((res) => {\r\n this.srcList = res\r\n this.$refs.warningImg.clickHandler()\r\n })\r\n } else {\r\n this.$message({\r\n message: '暂无图片!',\r\n type: 'warning',\r\n })\r\n }\r\n },\r\n },\r\n}\r\n",null]}