{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\configureInfo\\ReportManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\configureInfo\\ReportManagement.vue","mtime":1677132741570},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-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/es6.object.keys\";\nimport \"core-js/modules/es7.object.values\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\nimport _toConsumableArray from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport _defineProperty from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { 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//\nimport utils from '@/utils.js';\nimport req from '@/request.js';\nvar portal = window.context.portal;\nimport pagination from '@/components/pagination';\nimport AuthDialog from \"./dialog/auth.vue\"; // 报表权限弹层页面\n\nimport RangDialog from \"./dialog/rang.vue\"; // 报表范围弹层页面\n\nimport SubjectDialog from \"./dialog/subject.vue\"; // 报表科目弹层页面\n\nimport AddDialog from \"./dialog/add.vue\"; // 添加报表弹层页面\n\nexport default {\n name: 'ReportManagement',\n components: {\n pagination: pagination,\n AuthDialog: AuthDialog,\n RangDialog: RangDialog,\n SubjectDialog: SubjectDialog,\n AddDialog: AddDialog\n },\n data: function data() {\n return {\n loading: false,\n activeName: '',\n conditions: [],\n reportFormData: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20\n }\n },\n dialogParams: {\n pageBean: {\n page: 1,\n pageSize: 20\n }\n },\n fillParams: {\n pageNum: 1,\n pageSize: 20,\n reportId: ''\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n dialog: {\n title: '填报权限',\n visible: false\n },\n searchForm: {},\n tableData: [],\n btnKey: '',\n // 判断点击卡片下面按钮key\n deleteIds: ''\n };\n },\n created: function created() {\n this.getHeaderTabsData(); // 获取头部tabs数据\n\n this.getReportForm(this.params); // 获取表报数据\n },\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n if (this.btnKey == 'auth' || this.btnKey == 'rang') {\n this.fillParams = _objectSpread(_objectSpread({}, this.fillParams), {}, {\n pageSize: pageSize\n });\n this.getDialogData(this.fillParams, this.btnKey);\n } else {\n this.dialogParams.pageBean = _objectSpread(_objectSpread({}, this.dialogParams.pageBean), {}, {\n pageSize: pageSize\n });\n this.getSubjectData(this.dialogParams);\n }\n },\n handleCurrentChange: function handleCurrentChange(page) {\n if (this.btnKey == 'auth' || this.btnKey == 'rang') {\n var pageNum = page;\n this.fillParams = _objectSpread(_objectSpread({}, this.fillParams), {}, {\n pageNum: pageNum\n });\n this.getDialogData(this.fillParams, this.btnKey);\n } else {\n this.dialogParams.pageBean = _objectSpread(_objectSpread({}, this.dialogParams.pageBean), {}, {\n page: page\n });\n this.getSubjectData(this.dialogParams);\n }\n },\n handleDialogClose: function handleDialogClose(done) {\n done();\n },\n // 获取头部tabs数据\n getHeaderTabsData: function getHeaderTabsData() {\n var data = [];\n\n if (this.$i18n.locale === 'zh-CN') {\n data.push.apply(data, [{\n name: '全部',\n value: 'all'\n }].concat(_toConsumableArray(utils.getDictItemsFromCache('ssyw'))));\n } else {\n data.push.apply(data, [{\n name: 'All',\n value: 'all'\n }].concat(_toConsumableArray(utils.getDictItemsFromCache('ssyw_en'))));\n }\n\n var colors = ['#0147eb', '#f04444', '#f7931a', '#8a3aed', '#0147eb', '#627eea'];\n data.forEach(function (item, index) {\n item.color = colors[index];\n item.title = item.name;\n });\n this.activeName = data[0].value;\n this.conditions = data;\n },\n // 获取报表数据\n getReportForm: function getReportForm(params) {\n var _this = this;\n\n this.loading = true;\n req.post(portal + '/qfReportInfo/v1/getList', params).then(function (res) {\n var data = res && res.data && res.data.value && res.data.value.rows || [];\n _this.reportFormData = _this.format(data);\n _this.loading = false;\n });\n },\n // 格式化数组成需要的格式\n format: function format(arr) {\n var dataInfo = {};\n arr.forEach(function (item) {\n var tyep = item.tyep;\n\n if (!dataInfo[tyep]) {\n dataInfo[tyep] = {\n tyep: tyep,\n child: []\n };\n }\n\n dataInfo[tyep].child.push(item);\n });\n var list = Object.values(dataInfo); // list 转换成功的数据\n\n return list;\n },\n // 填报数据弹出弹层\n handleFill: function handleFill(key, id) {\n if (key == 'auth') {\n this.dialog.title = this.$t('reportManagement.auth');\n } else {\n this.dialog.title = this.$t('reportManagement.rang');\n }\n\n this.dialog.visible = true;\n this.btnKey = key;\n this.fillParams.reportId = id;\n this.getDialogData(this.fillParams, key);\n },\n // 填报科目弹层\n handleFillSubject: function handleFillSubject(id) {\n this.dialogParams.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'reportId',\n relation: 'AND',\n value: id\n }];\n this.btnKey = 'subject';\n this.dialog.visible = true;\n this.dialog.title = this.$t('reportManagement.subject');\n this.getSubjectData(this.dialogParams);\n },\n // 获取科目列表数据\n getSubjectData: function getSubjectData(params) {\n var _this2 = this;\n\n req.post(portal + '/qfReportSubject/v1/getList', params).then(function (res) {\n _this2.tableData = res && res.data && res.data.value && res.data.value.rows || [];\n _this2.pageResult = {\n page: res && res.data && res.data.value && res.data.value.page || 1,\n pageSize: res && res.data && res.data.value && res.data.value.pageSize || 20,\n total: res && res.data && res.data.value && res.data.value.total || 0\n };\n });\n },\n // 获取弹层列表数据\n getDialogData: function getDialogData(params, key) {\n var _this3 = this;\n\n var api;\n\n if (key === 'auth') {\n api = '/qfReportAuthority/v1/getList';\n } else if (key === 'rang') {\n api = '/qfReportRange/v1/getList';\n }\n\n req.get(portal + api + \"?pageNum=\".concat(params.pageNum, \"&pageSize=\").concat(params.pageSize, \"&reportId=\").concat(params.reportId)).then(function (res) {\n _this3.tableData = res && res.data && res.data.value && res.data.value.rows || [];\n _this3.pageResult = {\n page: res && res.data && res.data.value && res.data.value.page || 1,\n pageSize: res && res.data && res.data.value && res.data.value.pageSize || 20,\n total: res && res.data && res.data.value && res.data.value.total || 0\n };\n });\n },\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.params.querys = querys;\n this.getReportForm(this.params); // 获取表报数据\n },\n handleAdd: function handleAdd() {\n if (this.btnKey == 'auth') {\n this.$refs.auth.open(this.fillParams.reportId);\n } else if (this.btnKey == 'rang') {\n this.$refs.rang.open(this.fillParams.reportId);\n } else {\n this.$refs.subject.open(this.fillParams.reportId);\n }\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n });\n this.deleteIds = ids.join('&ids=');\n },\n handleDelete: function handleDelete() {\n var _this4 = this;\n\n var api = '/qfReportAuthority/v1/deleteByIds';\n var method = 'get';\n\n if (this.btnKey == 'auth') {\n api = '/qfReportAuthority/v1/deleteByIds';\n method = 'remove';\n } else if (this.btnKey == 'rang') {\n api = '/qfReportRange/v1/deleteByIds';\n method = 'get';\n } else {\n api = '/qfReportSubject/v1/deleteByIds';\n method = 'get';\n }\n\n this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n req[method](portal + api + '?ids=' + _this4.deleteIds).then(function (res) {\n if (_this4.btnKey == 'auth') {\n _this4.upDataAuth();\n } else if (_this4.btnKey == 'rang') {\n _this4.upDataRang();\n } else {\n _this4.upDataSubject();\n }\n });\n });\n },\n handleTabsClick: function handleTabsClick(tab) {\n var querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'business',\n relation: 'AND',\n value: tab.name\n }];\n\n if (tab.name == 'all') {\n this.params.querys = [];\n } else {\n this.params.querys = querys;\n }\n\n this.getReportForm(this.params); // 获取表报数据\n },\n // 添加报表\n handleReportAdd: function handleReportAdd() {\n this.$refs.add.open();\n },\n // 删除报表\n handleReportDelete: function handleReportDelete(id) {\n var _this5 = this;\n\n this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n req.remove(portal + '/qfReportInfo/v1/?ids=' + id).then(function (res) {\n _this5.getReportForm(_this5.params); // 获取表报数据\n\n });\n });\n },\n upDataAuth: function upDataAuth() {\n this.getDialogData(this.fillParams, 'auth');\n },\n upDataRang: function upDataRang() {\n this.getDialogData(this.fillParams, 'rang');\n },\n upDataSubject: function upDataSubject() {\n this.getSubjectData(this.dialogParams);\n },\n handleReportEdit: function handleReportEdit(row) {\n this.$refs.add.open(row);\n }\n }\n};",null]}