{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\views\\main\\VenueManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\views\\main\\VenueManagement.vue","mtime":1667327529934},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 req from '@/request.js';\nexport default {\n name: 'VenueManagement',\n data: function data() {\n return {\n title: '',\n treeForm: {},\n dialogVisible2: false,\n //添加树型节点\n typeKey: '',\n filterText: '',\n //树型搜索内容\n isIeExplorer: false,\n //\n isExpand: false,\n loading: false,\n props: {\n label: 'name',\n code: 'code',\n id: 'id',\n children: 'children',\n pcode: 'pcode',\n isLeaf: 'leaf' // 指定节点是否为叶子节点,仅在指定了 lazy 属性的情况下生效\n\n },\n treeData: [{\n name: '分组管理',\n code: 'root',\n id: '1',\n children: []\n }],\n defaultCheckedKeys: [],\n //默认选中节点\n defaultExpandedKeys: ['1'],\n //默认展开节点\n node: '',\n resolve: '',\n //表单验证\n treeRules: {\n pName: {\n required: true,\n message: '请输入',\n trigger: 'blur'\n },\n name: {\n required: true,\n message: '请输入',\n trigger: 'blur'\n }\n },\n projectObj: [],\n //获取的所有项目数组\n searchForm: {\n name: '',\n uri: ''\n },\n //顶部搜索参数\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n form: {},\n dialogVisible: false,\n //表格\n dialogTitle: '添加',\n //表单验证\n rules: {\n name: {\n required: true,\n message: '请输入会场名称',\n trigger: 'blur'\n },\n alias: {\n required: true,\n message: '请输入会场别名',\n trigger: 'blur'\n },\n uri: {\n required: true,\n message: '请输入会场标识',\n trigger: 'blur'\n },\n type: {\n required: true,\n message: '请输入会场类型',\n trigger: 'blur'\n },\n rate: {\n required: true,\n message: '请输入速率',\n trigger: 'blur'\n },\n groupId: {\n required: true,\n message: '请选择会场分组',\n trigger: 'change'\n } // regPassword: {\n // required: true,\n // message: '请输入H.323、SIP协议会场注册SC的密码',\n // trigger: 'blur',\n // },\n // regUser: {\n // required: true,\n // message: '请输入H.323、SIP协议会场注册SC的用户名',\n // trigger: 'blur',\n // },\n\n },\n typeId: '',\n isShowAside: true //左侧菜单默认显示\n\n };\n },\n computed: {\n deleteUrl: function deleteUrl() {\n return window.context.xqhk + '/bizSiteParamEx/v1/';\n }\n },\n mounted: function mounted() {\n this.getTreeData();\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n }\n },\n methods: {\n handleReset: function handleReset() {\n var _this = this;\n\n this.searchForm.name = '';\n this.searchForm.alias = '';\n this.$refs['searchForm'].resetFields();\n this.pageResult = {\n page: 1,\n pageSize: 20,\n total: 0\n };\n this.$nextTick(function () {\n _this.$refs.AtTable.load();\n });\n },\n //导入后重新加载数据\n load: function load() {\n this.$refs.AtTable.load();\n },\n //查询\n handleSearch: function handleSearch() {\n var _this2 = this;\n\n this.pageResult = {\n page: 1,\n pageSize: 20,\n total: 0\n };\n this.$nextTick(function () {\n _this2.$refs.AtTable.load();\n });\n },\n afterSaveData: function afterSaveData() {\n var _this3 = this;\n\n setTimeout(function () {\n _this3.dialogVisible = false;\n\n _this3.$refs.AtTable.load();\n }, 500);\n },\n handleAdd: function handleAdd() {\n this.form = {\n name: '',\n alias: ''\n };\n this.dialogTitle = '添加';\n this.dialogVisible = true; // if (this.form.typeInfo && this.form.typeInfo.id) {\n // this.dialogTitle = '添加'\n // this.dialogVisible = true\n // } else {\n // this.$message('请选择一条子节点')\n // }\n },\n handleRowDBClick: function handleRowDBClick(data) {\n this.dialogTitle = '修改';\n this.dialogVisible = true;\n this.form = data;\n },\n handleSelect: function handleSelect(selection) {},\n //取消\n handleDialogCancel: function handleDialogCancel() {\n this.dialogVisible = false;\n },\n //关闭窗口\n handleDialogClose: function handleDialogClose(val) {\n this.dialogVisible = false;\n },\n //提交保存\n handleDialogSubmit: function handleDialogSubmit(formName) {\n var _this4 = this;\n\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this4.loading = true;\n\n _this4.$http.post('${xqhk}/bizSiteParamEx/v1/', _this4.form).then(function (res) {\n if (res.status == 200) {\n setTimeout(function () {\n _this4.$message.success('操作成功');\n\n _this4.afterSaveData();\n }, 500);\n } else {\n _this4.$message.error(res.data.message);\n }\n\n _this4.loading = false;\n });\n } else {\n _this4.$message({\n message: '*号必填项,不能为空!',\n type: 'warning'\n });\n\n return false;\n }\n });\n },\n loadData: function loadData(param, cb) {\n var _this5 = this;\n\n var query = [];\n var search = {\n uri: this.searchForm.uri,\n name: this.searchForm.name\n };\n\n for (var i in search) {\n if (search[i]) {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n\n if (param.querys && param.querys.length) {\n var _param$querys;\n\n (_param$querys = param.querys).push.apply(_param$querys, query);\n } else {\n param.querys = query;\n }\n\n this.$http.post('${xqhk}/bizSiteParamEx/v1/query', param).then(function (resp) {\n var response = resp.data;\n _this5.data = response.rows;\n _this5.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n handleClose: function handleClose() {\n this.dialogVisible2 = false;\n },\n //初始节点\n getTreeData: function getTreeData() {\n var _this6 = this;\n\n var params = {\n pageBean: {\n pageSize: -1\n }\n };\n this.$http.post('${xqhk}/bizMeetingPlaceName/v1/getJson', params).then(function (res) {\n var resp = res.data.value;\n _this6.treeData[0].children = resp;\n });\n },\n //点击节点\n handleNodeClick: function handleNodeClick(data) {\n this.searchForm = {\n name: '',\n uri: ''\n };\n this.form = {};\n\n if (data.name != '分组管理') {\n this.searchForm.name = data.name;\n } //根组件查询全部节点数据\n\n\n this.$refs.AtTable.load();\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data[this.props.label].indexOf(value) !== -1;\n },\n loadNode: function loadNode(node, resolve) {},\n // 树状菜单的全部展开和收起\n handleExpandCollapse: function handleExpandCollapse() {\n var elTree = this.$refs.tree;\n\n for (var i = 0; i < elTree.store._getAllNodes().length; i++) {\n elTree.store._getAllNodes()[i].expanded = this.isExpand;\n }\n\n this.isExpand = !this.isExpand;\n },\n //树状刷新\n refresh: function refresh() {\n var _this7 = this;\n\n this.loading = true;\n this.$emit('refresh', function () {\n _this7.loading = false;\n _this7.filterText = '';\n\n _this7.getTreeData();\n });\n setTimeout(function () {\n _this7.loading = false;\n _this7.filterText = '';\n }, 2000);\n },\n closeBefore: function closeBefore() {\n var _this8 = this;\n\n setTimeout(function () {\n _this8.dialogVisible2 = false;\n\n _this8.getTreeData();\n }, 500);\n },\n //确定添加节点\n handleConfirm: function handleConfirm() {\n var _this9 = this;\n\n if (this.title == '添加') {\n this.$http.post('${xqhk}/bizMeetingPlaceName/v1/', this.treeForm).then(function (res) {\n if (res.data.state) {\n _this9.$message.success('添加成功');\n\n _this9.closeBefore();\n } else {\n _this9.$message.error('添加失败');\n\n _this9.dialogVisible2 = false;\n }\n });\n } else {\n this.$http.put('${xqhk}/bizMeetingPlaceName/v1/', this.treeForm).then(function (res) {\n if (res.data.state) {\n _this9.$message.success('修改成功');\n\n _this9.closeBefore();\n } else {\n _this9.$message.error('修改失败');\n\n _this9.dialogVisible2 = false;\n }\n });\n }\n },\n //树状更多下拉操作\n handleCommand: function handleCommand(command) {\n var node = command.node;\n var data = command.data;\n var action = command.action;\n\n switch (action) {\n case 'add':\n this.dialogVisible2 = true;\n this.title = '添加';\n this.treeForm = {\n pName: data.name,\n pcode: data.code,\n code: '',\n name: '',\n hasChildren: 0,\n children: []\n };\n break;\n\n case 'edit':\n this.dialogVisible2 = true;\n this.title = '编辑';\n\n if (data.pcode == 'root') {\n this.treeForm = _objectSpread({\n pName: '分组管理'\n }, data);\n } else {\n this.treeForm = _objectSpread({\n pName: data.name\n }, data);\n }\n\n break;\n\n case 'delete':\n this.del(data);\n break;\n\n default:\n break;\n }\n },\n del: function del(data) {\n var _this10 = this;\n\n this.$confirm('是否继续删除?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n req.remove(window.context.xqhk + '/bizMeetingPlaceName/v1/?ids=' + data.id).then(function (res) {\n if (res.data.state) {\n _this10.$message.success('删除成功');\n\n _this10.closeBefore();\n } else {\n _this10.$message.error('删除失败');\n\n _this10.dialogVisible2 = false;\n }\n });\n }).catch(function () {\n _this10.$message({\n type: 'info',\n message: '已取消删除'\n });\n });\n },\n //隐藏目录\n handleHideMenu: function handleHideMenu() {\n this.isShowAside = !this.isShowAside;\n },\n //返回一个boolean类型,是否显示列表按钮\n getMethodauth: function getMethodauth(elAuth) {\n var allMethod = window.sessionStorage.allMethod;\n var methodAuth = window.sessionStorage.methodAuth;\n var allMethodArray = allMethod && allMethod.split(',');\n var methodAuthArray = methodAuth && methodAuth.split(','); // 无权限则隐藏按钮\n\n if (methodAuthArray && methodAuthArray.includes(elAuth) && allMethodArray && allMethodArray.includes(elAuth)) {\n return true;\n } else {\n return false;\n }\n },\n changeAlias: function changeAlias(val) {\n if (this.dialogTitle != '修改') {\n this.form.alias = val;\n }\n }\n }\n};",null]}