{"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\\infoManagement\\components\\StresRelation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\StresRelation.vue","mtime":1684458239152},{"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//\n//\nimport videoManger from '@/api/stManager/czManager.js';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'videoManger',\n props: {\n StshowFormDias: {\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 relationList: {\n reCode: null,\n stationList: [],\n Relation: [],\n reType: null\n },\n value1: [],\n veideoF: [],\n values: '',\n loading: false,\n query: {\n zoneCode: null\n },\n multipleSelection: [],\n // 复选框\n multipleSelection1: [],\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 },\n search: '',\n search1: '',\n tableData1: []\n };\n },\n created: function created() {\n this.getRelation();\n this.getRelationList();\n this.relationList.reCode = this.relation;\n },\n methods: {\n getRelationList: function getRelationList() {\n var _this = this;\n\n this.relationList.reType = 2;\n videoManger.getRelation(this.relationList, function (res) {\n _this.tableData1 = res.value;\n\n if (_this.tableData1.length > 0) {\n _this.$nextTick(function () {\n _this.$refs.multipleTable.toggleAllSelection();\n });\n } // let arr = []\n // for (let i = 0; i < res.value.length; i++) {\n // arr.push(res.value[i].stcd)\n // }\n // this.relationList.Relation = arr\n\n });\n },\n getRelation: function getRelation() {\n var _this2 = this;\n\n videoManger.HyddetailRelation({}, function (res) {\n _this2.loading = true;\n _this2.tableData = res.value;\n });\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n handleSelectionChange1: function handleSelectionChange1(val) {\n this.multipleSelection1 = val;\n },\n rightChang: function rightChang() {\n var _this3 = this;\n\n // 点击选择按钮\n this.tableData1 = this.tableData1.concat(this.multipleSelection);\n this.tableData = this.tableData.filter(function (item) {\n return !_this3.tableData1.some(function (citem) {\n return citem.id == item.id;\n });\n }); // this.tableData1.forEach(e=>{\n // \tthis.multipleSelection.forEach(m=>{\n // \t\tif(e.id==m.id){\n // \t\t\tthis.$nextTick(()=>{\n // \t\t\t\tthis.$refs.multipleTable.toggleRowSelection(e)\n // \t\t\t})\n // \t\t}\n // \t})\n // })\n },\n leftChang: function leftChang() {\n var _this4 = this;\n\n this.tableData = this.tableData.concat(this.multipleSelection1);\n this.tableData1 = this.tableData1.filter(function (item) {\n return !_this4.tableData.some(function (citem) {\n return citem.id == item.id;\n });\n });\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n changeTable: function changeTable(val) {\n for (var index = 0; index < val.length; index++) {\n var parma = {};\n\n for (var i = 0; i < this.tableData.length; i++) {\n if (val[index] == this.tableData[i].stcd) {\n parma.stcd = val[index];\n parma.stnm = this.tableData[i].stnm;\n parma.sttp = this.tableData[i].sttp;\n this.relationList.stationList.push(parma);\n }\n }\n } // this.params.query = this.value1.toString()\n\n },\n // // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n changeRight: function changeRight(val) {},\n // 保存\n goInfo: function goInfo() {\n var _this5 = this;\n\n // if (this.multipleSelection1.length == 0) {\n // this.$message('请先选择关联测站')\n // } else {\n this.relationList.reType = 2;\n this.relationList.stationList = this.tableData1;\n videoManger.relationAd(this.relationList, function (res) {\n if (res.state) {\n _this5.$notify({\n type: 'success',\n message: '关联测站成功',\n duration: 2000\n });\n\n _this5.$emit('closeStshowForm');\n\n _this5.$emit('refList');\n }\n }); // }\n },\n handleClose: function handleClose() {\n this.params = {\n name: null,\n //树点击查询条件\n zoneCode: null\n };\n this.$emit('closeStshowForm');\n }\n }\n};",null]}