{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\rvMonitorRelation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\rvMonitorRelation.vue","mtime":1684458239215},{"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\r\nimport videoManger from '@/api/stManager/videoManger.js'\r\nimport req from '@/request.js'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nexport default {\r\n name: 'videoManger',\r\n props: {\r\n showFormDias: {\r\n type: Boolean,\r\n default: false\r\n },\r\n relation: {\r\n type: String,\r\n default: ''\r\n },\r\n rowId: {\r\n type: String,\r\n default: ''\r\n },\r\n rvCode: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n components: {},\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n value1: [],\r\n veideoF: [],\r\n values: '',\r\n loading: false,\r\n query: {\r\n zoneCode: null\r\n },\r\n multipleSelection: [], // 复选框\r\n relationList: {\r\n rvCode: null,\r\n videoVoList: []\r\n },\r\n queryParam: {\r\n pageBean: {\r\n pageSize: 10,\r\n page: 1\r\n },\r\n params: {\r\n zoneCode: null\r\n }\r\n },\r\n total: 0,\r\n pId: '',\r\n tableData: [],\r\n videoTree: [],\r\n defaultProps: {\r\n value: 'code',\r\n label: 'name'\r\n },\r\n data: [],\r\n params: {\r\n id: '',\r\n query: '',\r\n videoVoList: [\r\n {\r\n pkVal: '',\r\n rvCode: '',\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n created() {\r\n this.getTreen()\r\n this.getRelation()\r\n },\r\n methods: {\r\n getRelation() {\r\n videoManger.RvdetailRelation(this.rowId, res => {\r\n this.relationList.videoVoList = res.value.videoVoList\r\n this.relationList.rvCode = res.value.rvCode\r\n console.log(res)\r\n })\r\n },\r\n changeVedeoF(val) {\r\n if (val) {\r\n this.query.zoneCode = val\r\n videoManger.getVideoTree(this.query, res => {\r\n this.videoTree = res.value\r\n })\r\n this.getDateList()\r\n } else {\r\n this.videoTree = []\r\n this.$set(this.videoTree, this.videoTree, res.value)\r\n this.getDateList()\r\n }\r\n },\r\n // 组织树查询\r\n getTreen() {\r\n videoManger.getVideoF({}, res => {\r\n this.veideoF = res.value\r\n this.query.zoneCode = this.veideoF[0].code\r\n videoManger.getVideoTree(this.query, res => {\r\n this.videoTree = res.value\r\n // console.log(this.videoTree,666)\r\n this.queryParam.params.zoneCode = this.videoTree[0].code\r\n this.getDateList()\r\n })\r\n })\r\n },\r\n renderContent(h, {node, data, store}) {\r\n return (\r\n {\r\n this.show = true\r\n }}\r\n on-mouseout={() => {\r\n this.show = false\r\n }}\r\n >\r\n {node.label}\r\n \r\n )\r\n },\r\n filterNode(value, data) {\r\n if (!value) return true\r\n return data.name.indexOf(value) !== -1\r\n },\r\n getDateList() {\r\n this.loading = true\r\n this.tableData = []\r\n videoManger.getListPage(this.queryParam, res => {\r\n if (res.state) {\r\n this.tableData = res.value\r\n this.total = res.value.total\r\n this.loading = false\r\n }\r\n })\r\n },\r\n changeNode(val) {\r\n if (val) {\r\n this.queryParam.params.zoneCode = val.code\r\n this.getDateList()\r\n }\r\n },\r\n changeTable(val) {\r\n // this.params.query = this.value1.toString()\r\n },\r\n // // 指定一个key标识这一行的数据\r\n getRowKey(row) {\r\n return row.id\r\n },\r\n handleSelectionChange(val) {\r\n this.multipleSelection = val.map(item => {\r\n return item.id\r\n })\r\n },\r\n changeRight(val) {\r\n console.log(val)\r\n\r\n // this.params.query = val.toString()\r\n // val.forEach(e => {\r\n // this.relationList.videoVoList.forEach(i=>{\r\n // i.code=e;\r\n // })\r\n // });\r\n this.relationList.videoVoList = val\r\n },\r\n // 保存\r\n goInfo() {\r\n // if (this.relationList.videoVoList.length === 0) {\r\n // this.$message('请先选择关联监控点')\r\n // } else {\r\n videoManger.relationRv(this.relationList, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '关联成功',\r\n duration: 2000\r\n })\r\n this.$emit('closeFormDiaos')\r\n this.$emit('refList')\r\n }\r\n })\r\n // }\r\n },\r\n handleClose() {\r\n this.params = {\r\n name: null, //树点击查询条件\r\n zoneCode: null\r\n }\r\n this.$emit('closeFormDiaos')\r\n }\r\n }\r\n}\r\n",null]}