{"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\\dialog\\subject.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\configureInfo\\dialog\\subject.vue","mtime":1677060221207},{"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/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\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//\nimport tree from '@/components/tree';\nimport pagination from '@/components/pagination';\nimport req from '@/request.js';\nimport org from '@/api/org.js';\nimport uc from '@/api/uc.js';\nvar portal = window.context.portal;\nexport default {\n name: 'authDailog',\n components: {\n pagination: pagination,\n tree: tree\n },\n data: function data() {\n return {\n reportId: '',\n treeData: [{\n id: 1,\n name: this.$t('reportManagement.international')\n }, {\n id: 2,\n name: this.$t('reportManagement.domestic')\n }],\n title: '',\n visible: false,\n searchForm: {},\n tableData: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n params: {\n pageBean: {\n page: 1,\n pageSize: 20\n }\n },\n checkeds: [],\n treeKey: 1\n };\n },\n created: function created() {\n this.loadData(this.params, 1);\n },\n methods: {\n open: function open(reportId) {\n this.reportId = reportId;\n this.title = this.$t('reportManagement.subject');\n this.visible = true;\n this.checkeds = [];\n this.loadData(this.params, 1);\n },\n loadData: function loadData(params, key) {\n var _this = this;\n\n var api;\n\n if (key == 1) {\n api = '/qf/subject/international/info/query';\n } else {\n api = '/qf/subject/info/query';\n }\n\n req.post(portal + api, params).then(function (res) {\n _this.tableData = res && res.data && res.data.rows || [];\n _this.pageResult = {\n page: res && res.data && res.data.page || 1,\n pageSize: res && res.data && res.data.pageSize || 20,\n total: res && res.data && res.data.total || 0\n };\n });\n },\n handleClose: function handleClose() {\n this.visible = false;\n },\n handleNodeClick: function handleNodeClick(data) {\n this.checkedArrs = [];\n this.checkeds = [];\n this.treeKey = data.id;\n this.loadData(this.params, data.id);\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.loadData(this.params, this.treeKey);\n },\n handleSelectionChange: function handleSelectionChange(rows) {\n this.checkeds = rows;\n },\n // 去重\n uniqueFunc: function uniqueFunc(arr, uniId) {\n var res = new Map();\n return arr.filter(function (item) {\n return !res.has(item[uniId]) && res.set(item[uniId], 1);\n });\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params, this.treeKey);\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params, this.treeKey);\n },\n handleRightDelete: function handleRightDelete(id) {\n var _this2 = this;\n\n var rows = this.checkeds;\n rows = rows.filter(function (item) {\n return item.id == id;\n });\n\n if (rows.length !== 0) {\n rows.forEach(function (row) {\n _this2.$refs.table.toggleRowSelection(row);\n });\n } else {\n this.$refs.table.clearSelection();\n }\n },\n submit: function submit() {\n var _this3 = this;\n\n var param = {};\n var codes = [];\n this.checkeds.forEach(function (item) {\n codes.push({\n subjectCode: item.code,\n subjectName: item.name,\n subjectNameEn: item.nameEn,\n reportId: _this3.reportId\n });\n });\n param = codes;\n req.post(portal + '/qfReportSubject/v1/insertInfo', param).then(function (res) {\n _this3.visible = false;\n\n _this3.$emit('upDataSubject');\n });\n }\n }\n};",null]}