{"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\\stManager\\videoManger.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\stManager\\videoManger.vue","mtime":1684458239684},{"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/web.dom.iterable\";\nimport \"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport videoManger from '@/api/stManager/videoManger.js';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport videoFormDialog from \"./components/videoForm-dialog.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'videoManger',\n components: {\n videoFormDialog: videoFormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n veideoF: [],\n dialogVisible: false,\n values: '',\n loading: false,\n query: {\n zoneCode: null\n },\n multipleSelection: [],\n // 复选框\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n zoneCode: null,\n status: null\n }\n },\n treeTitle: '',\n regionIndexCode: '',\n queryParams: {\n pageBean: {\n pageSize: 10,\n page: 1\n },\n params: {\n name: null,\n //树点击查询条件\n zoneCode: null\n }\n },\n appTypes: [],\n total: 0,\n pId: '',\n treeLog: {\n //树节点配置弹框关闭\n zoneCode: null,\n appType: 1\n },\n tableData: [],\n videoTree: [],\n defaultProps: {\n value: 'code',\n label: 'name'\n },\n data: [],\n filterText: '',\n showApplication: false,\n //弹框判断\n prohibitButton: true,\n //是否可以点击\n videoVoList: {},\n //传过去的应用配置内容\n fullName: '',\n //树的部分数据\n czyyfl: []\n };\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n }\n },\n created: function created() {\n this.czyyfl = dictUtils.getDictItemsFromCache('czyyfl');\n this.getDateList();\n this.getTreen();\n },\n methods: {\n changeVedeoF: function changeVedeoF(val) {\n var _this = this;\n\n this.$refs.multipleSelection.clearSelection(); //切换,选中就归零\n\n if (val) {\n this.query.zoneCode = val;\n videoManger.getVideoTree(this.query, function (res) {\n _this.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 Application: function Application() {\n this.showApplication = true;\n },\n // 组织树查询\n getTreen: function getTreen() {\n var _this2 = this;\n\n videoManger.getVideoF({}, function (res) {\n _this2.veideoF = res.value; // console.log(this.veideoF);\n\n _this2.query.zoneCode = _this2.veideoF[0].code;\n videoManger.getVideoTree(_this2.query, function (res) {\n _this2.videoTree = res.value;\n _this2.queryParam.params.zoneCode = _this2.videoTree[0].code;\n });\n });\n },\n //同步数据\n synchroTree: function synchroTree() {\n var _this3 = this;\n\n videoManger.asycCataLog(function (res) {\n if (res.state) {\n if (res.state) {\n _this3.$message.success('同步成功');\n\n _this3.getTreen();\n } else {\n _this3.$message.error('同步失败');\n }\n }\n });\n },\n synchro: function synchro(node, data) {\n var _this4 = this;\n\n videoManger.asycCataLogZone({\n treeCode: this.query.zoneCode\n }, function (res) {\n if (res.state) {\n _this4.$message.success('同步成功');\n\n _this4.getTreen();\n } else {\n _this4.$message.error('同步失败');\n }\n });\n },\n renderContent: function renderContent(h, _ref) {\n var _this5 = this;\n\n var node = _ref.node,\n data = _ref.data,\n store = _ref.store;\n return h(\"span\", {\n \"style\": \"display:flex\",\n \"class\": \"custom-tree-node\",\n \"on\": {\n \"mouseover\": function mouseover() {\n _this5.show = true;\n },\n \"mouseout\": function mouseout() {\n _this5.show = false;\n }\n }\n }, [h(\"span\", [node.label])]);\n },\n onClickSynch: function onClickSynch() {\n var _this6 = this;\n\n videoManger.getSynch({\n regionIndexCode: this.queryParam.params.zoneCode\n }, function (res) {\n if (res.state) {\n _this6.$message.success('同步成功');\n } else {\n _this6.$message.error('同步失败');\n }\n });\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 _this7 = this;\n\n this.videoVoList = [];\n this.loading = true;\n this.tableData = [];\n videoManger.getList(this.queryParam, function (res) {\n if (res.state) {\n _this7.tableData = res.value.rows;\n console.log(_this7.tableData);\n\n _this7.tableData.forEach(function (e) {\n _this7.czyyfl.forEach(function (f) {\n if (e.appType == f.value) {\n console.log(e);\n e.appTypeName = f.name;\n }\n });\n });\n\n _this7.total = res.value.total;\n _this7.loading = false;\n\n _this7.closeFormDiao();\n }\n });\n },\n changeNode: function changeNode(val) {\n if (val) {\n this.fullName = val.fullName; //把名称传入弹框\n\n this.regionIndexCode = val.code;\n this.queryParam.params.zoneCode = val.code; //如果点击树,选中状态归0\n\n this.$refs.multipleSelection.clearSelection();\n }\n\n this.getDateList();\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getDateList(); // this.queryParam = {\n // pageBean: {\n // pageSize: 20,\n // page: 1,\n // },\n // params: {\n // name: null, //树点击查询条件\n // zoneCode: null,\n // },\n // };\n },\n handleClose: function handleClose() {\n this.treeLog = {\n zoneCode: null,\n appType: null\n };\n this.dialogVisible = false;\n },\n //闭应用配置弹框\n closeFormDiao: function closeFormDiao() {\n this.showApplication = false;\n this.$refs.multipleSelection.clearSelection(); //切换,选中就归零\n },\n opendialogVisible: function opendialogVisible() {\n var _this8 = this;\n\n videoManger.stationRelation(this.treeLog, function (res) {\n if (res.state) {\n _this8.$notify({\n type: 'success',\n message: '配置成功',\n duration: 2000\n });\n\n _this8.dialogVisible = false;\n }\n });\n },\n openClick: function openClick(node, data) {\n this.treeTitle = node.data.name;\n this.treeLog.zoneCode = node.data.code;\n this.dialogVisible = true;\n },\n // // 修改\n // handleUpdate(row) {\n // this.title = '修改'\n // this.pId = row.id\n // this.showFormDia = true;\n // },\n handleSelectionChange: function handleSelectionChange(val) {\n //判断是否选中,如果选中,可以点击弹框\n if (val.length) {\n this.prohibitButton = false;\n this.videoVoList = val; // console.log(this.videoVoList)\n } else {\n this.prohibitButton = true;\n this.videoVoList = []; // console.log(this.videoVoList + \"hhh\")\n }\n\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n // // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n // // // 批量删除\n // deleteSelect() {\n // this.$confirm('确定删除选中数据?', '提示', {\n // confirmButtonText: '确 定',\n // cancelButtonText: '取 消',\n // type: 'warning',\n // })\n // .then(() => {\n // videoManger\n // .remove(this.multipleSelection, (res) => {\n // if (res.state) {\n // this.$notify({\n // type: 'success',\n // message: '删除成功',\n // duration: 2000,\n // // offset: 80\n // })\n // // this.multipleSelection = [];\n // this.$refs.multipleSelection.clearSelection()\n // this.queryParam.pageBean.page = 1\n // this.getDateList()\n // }\n // })\n // .catch((res) => {\n // this.$notify({\n // type: 'error',\n // message: res.message,\n // duration: 2000,\n // offset: 80,\n // })\n // this.getDateList()\n // })\n // })\n // .catch(() => {})\n // },\n // /** 删除按钮操作 */\n handleSelect: function handleSelect(val) {// console.log(val)\n },\n // // 点击查询\n onClickSearch: function onClickSearch() {\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this9 = this;\n\n var portal = window.context.portal;\n return new Promise(function (resolve, reject) {\n req.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(function (response) {\n resolve(response.data);\n _this9.appTypes = response.data.czyyfl;\n\n _this9.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n }\n }\n};",null]}