{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\reformNews.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\reformNews.vue","mtime":1687922570904},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nimport apiList from '@/api/bigScreen/districView.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nimport pagenation from \"./pagenation.vue\";\nexport default {\n components: {\n pagenation: pagenation\n },\n props: {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n loading: false,\n tableData: [],\n currentRow: {},\n searchData: {},\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'n.OPERATE_TYPE_',\n relation: 'AND',\n value: '2'\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'n.EXCELLENT_',\n relation: 'AND',\n value: '3'\n }]\n }\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.loadData();\n this.$bus.$on('changeDate', function () {\n _this.loadData();\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.tableData = [];\n this.currentRow = {};\n },\n methods: {\n search: function search(data, type) {\n this.params.pageBean.page = 1;\n var RESULT_FORM_ = this.params.querys[0];\n this.params.querys = [RESULT_FORM_];\n\n for (var key in this.searchData) {\n this.params.querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: key,\n relation: 'AND',\n value: this.searchData[key]\n });\n }\n\n this.loadData();\n },\n currentChange: function currentChange(currentRow) {\n this.getNewsDetail(currentRow);\n },\n getNewsDetail: function getNewsDetail(column) {\n var _this2 = this;\n\n // this.loading = true\n var api = \"/fill/bizWorkNews/v1/findById\";\n var formData = new FormData();\n formData.append('id', column.id);\n req.post(portal + api, formData).then(function (res) {\n _this2.currentRow = res && res.data || {}; // this.loading = false\n }).catch(function () {// this.loading = false\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n pageChange: function pageChange(key) {\n this.params.pageBean.page = key;\n this.loadData();\n },\n expandChange: function expandChange(row, expandedRows) {\n console.log(row, expandedRows);\n if (row.fileList) return;\n this.getFiles(row);\n },\n getFiles: function getFiles(row) {\n var _this3 = this;\n\n this.paramsFile.querys[0].value = row.id;\n apiList.getFiles(this.paramsFile, function (data) {\n _this3.currentRow.fileList = data.rows;\n });\n },\n handlePreview: function handlePreview(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n var type = file.extensionName ? file.extensionName : file.name.split('.')[1];\n this.$refs.filePreview.previewUrl = this.previewUrl + id;\n this.$refs.filePreview.open(type);\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(file) {\n console.log(file);\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_self');\n },\n loadData: function loadData() {\n var _this4 = this;\n\n this.loading = true;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.params.params = {\n year: searchDate.year,\n quarter: searchDate.quarter\n };\n apiList.getNews(this.params, function (res) {\n if (res && res.rows) {\n _this4.tableData = res.rows;\n _this4.params.pageBean.page = res.page;\n _this4.params.pageBean.pageSize = res.pageSize;\n _this4.params.pageBean.total = res.total;\n\n if (_this4.tableData.length) {\n _this4.currentRow = _this4.tableData[0];\n\n _this4.$nextTick(function () {\n if (!_this4.$refs.dataTable) return;\n\n _this4.$refs.dataTable.setCurrentRow(_this4.$refs.dataTable.data[0]);\n });\n } else {\n _this4.currentRow = {};\n }\n }\n\n _this4.loading = false;\n });\n }\n }\n};",null]}