{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\StresRelation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\StresRelation.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\nimport videoManger from '@/api/stManager/czManager.js'\nimport req from '@/request.js'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nexport default {\n\tname: 'videoManger',\n\tprops: {\n\t\tStshowFormDias: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\trelation: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\trowId: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\trscd: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t}\n\t},\n\tcomponents: {},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\trelationList: {\n\t\t\t\treCode: null,\n\t\t\t\tstationList: [\n\n\t\t\t\t],\n\t\t\t\tRelation: [],\n\t\t\t\treType: null\n\t\t\t},\n\t\t\tvalue1: [],\n\t\t\tveideoF: [],\n\t\t\tvalues: '',\n\t\t\tloading: false,\n\t\t\tquery: {\n\t\t\t\tzoneCode: null,\n\t\t\t},\n\t\t\tmultipleSelection: [], // 复选框\n\t\t\tmultipleSelection1:[],\n\t\t\tleftDisabled:true,\n\t\t\trightDisabled:true,\n\t\t\tqueryParam: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpageSize: 10,\n\t\t\t\t\tpage: 1,\n\t\t\t\t},\n\t\t\t\tparams: {\n\t\t\t\t\tzoneCode: null,\n\t\t\t\t},\n\t\t\t},\n\t\t\ttotal: 0,\n\t\t\tpId: '',\n\t\t\ttableData: [],\n\t\t\tvideoTree: [],\n\t\t\tdefaultProps: {\n\t\t\t\tvalue: 'code',\n\t\t\t\tlabel: 'name',\n\t\t\t},\n\t\t\tdata: [],\n\t\t\ttableData1: [],\n\t\t\tsearch: '',\n\t\t\tsearch1: '',\n\t\t\tparams: {\n\t\t\t\tid: '',\n\t\t\t\trscd: '',\n\t\t\t\trsnm: '',\n\t\t\t\tquery: '',\n\t\t\t},\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.relationList.reCode=this.rscd\n\n\t},\n\tmounted() {\n\t\tthis.getRelation()\n\t\tthis.getRelationList()\n\t},\n\tmethods: {\n\t\tgetRelationList() {\n\t\t\tthis.relationList.reType = 1\n\t\t\tvideoManger.getRelation(this.relationList, (res) => {\n\t\t\t\tlet arr = []\n\t\t\t\tfor (let i = 0; i < res.value.length; i++) {\n\t\t\t\t\tarr.push(res.value[i].stcd)\n\t\t\t\t}\n\t\t\t\tthis.tableData1 = res.value\n\t\t\t\tif(this.tableData1.length>0){\n\t\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\t this.$refs.multipleTable.toggleAllSelection()\n\t\t\t\t\t })\n\t\t\t\t}\n\t\t\t\t\n\t\t\t})\n\t\t},\n\t\tgetRelation() {\n\t\t\tvideoManger.HyddetailRelation({}, (res) => {\n\t\t\t\tthis.loading = true;\n\t\t\t\tthis.tableData = res.value\n\t\t\t})\n\t\t},\n\t\tfilterNode(value, data) {\n\t\t\tif (!value) return true\n\t\t\treturn data.name.indexOf(value) !== -1\n\t\t},\n\t\tchangeTable(val) {\n\t\t\tfor (let index = 0; index < val.length; index++) {\n\t\t\t\tlet parma = {}\n\t\t\t\tfor (let i = 0; i < this.tableData.length; i++) {\n\t\t\t\t\tif (val[index] == this.tableData[i].stcd) {\n\t\t\t\t\t\tparma.stcd = val[index]\n\t\t\t\t\t\tparma.stnm = this.tableData[i].stnm\n\t\t\t\t\t\tparma.sttp = this.tableData[i].sttp\n\t\t\t\t\t\tthis.relationList.stationList.push(parma)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// this.params.query = this.value1.toString()\n\t\t},\n\t\t// // 指定一个key标识这一行的数据\n\t\tgetRowKey(row) {\n\t\t\treturn row.id\n\t\t},\n\t\thandleSelectionChange(val) {\n\t\t\tthis.multipleSelection = val\n\t\t\t// if(this.multipleSelection.length>0){\n\t\t\t// \tthis.rightDisabled=false\n\t\t\t// }\n\t\t},\n\t\thandleSelectionChange1(val) {\n\t\t\tthis.multipleSelection1 = val\n\t\t\t// if(this.multipleSelection1.length>0){\n\t\t\t// \tthis.leftDisabled=false\n\t\t\t// }\n\t\t},\n\t\trightChang() {\n\t\t\t// 点击选择按钮\n\t\t\tthis.tableData1 = this.tableData1.concat(this.multipleSelection)\n\t\t\tthis.tableData = this.tableData.filter(item => !this.tableData1.some(citem => citem.id == item.id))\n\t\t},\n\t\tleftChang(){\n\t\t\tthis.tableData=this.tableData.concat(this.multipleSelection1)\n\t\t\tthis.tableData1 = this.tableData1.filter(item => !this.tableData.some(citem => citem.id == item.id))\n\t\t},\n\t\tchangeRight(val) {\n\n\n\t\t},\n\t\t// 保存\n\t\tgoInfo() {\n\t\t\t// if (this.multipleSelection1.length === 0) {\n\t\t\t// \tthis.$message('请先选择关联监控点')\n\t\t\t// } else {\n\t\t\t\tthis.relationList.reType = 1\n\t\t\t\tthis.relationList.stationList=this.tableData1\n\t\t\t\tvideoManger.relationAd(this.relationList, (res) => {\n\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\tmessage: '关联测站成功',\n\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.$emit('closeStshowForm')\n\t\t\t\t\t\tthis.$emit('refList')\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t// }\n\t\t},\n\t\thandleClose() {\n\t\t\tthis.params = {\n\t\t\t\tname: null, //树点击查询条件\n\t\t\t\tzoneCode: null,\n\t\t\t}\n\t\t\tthis.$emit('closeStshowForm')\n\t\t},\n\t},\n}\n",null]}