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