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