{"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\\BrandCreation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\BrandCreation.vue","mtime":1688459521314},{"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//\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport apiList from '@/api/bigScreen/districView.js';\nimport pagenation from \"./pagenation.vue\";\nexport default {\n name: 'indexRank',\n components: {\n filePreview: filePreview,\n FileList: FileList,\n pagenation: pagenation\n },\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n loading: false,\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n tableData: [],\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n params: {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'BIZ_ID_',\n relation: 'AND',\n value: ''\n }]\n },\n infoData: {},\n currentRow: {}\n };\n },\n mounted: function mounted() {\n this.querysParams = this.$route.query;\n var code = this.querysParams.code;\n\n var _JSON$parse = JSON.parse(sessionStorage.getItem('searchDate')),\n year = _JSON$parse.year,\n quarter = _JSON$parse.quarter;\n\n this.loadData(code, year, quarter);\n },\n methods: {\n currentChange: function currentChange(currentRow, oldCurrentRow) {\n console.log(currentRow);\n this.currentRow = currentRow;\n this.getFiles(currentRow);\n },\n expandChange: function expandChange(row, expandedRows) {\n if (row.files) return;\n this.getFiles(row);\n },\n getFiles: function getFiles(row) {\n var _this = this;\n\n this.params.querys[0].value = row.id;\n apiList.getFiles(this.params, function (data) {\n // this.currentRow.files = data.rows\n _this.$set(_this.currentRow, 'files', 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.fileType || (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 getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 改革品牌榜\n loadData: function loadData(unitCode, year, quarter) {\n var _this2 = this;\n\n this.loading = true;\n var api = \"/county/largeScreen/v1/brandBuild_sec?unitCode=\".concat(unitCode, \"&year=\").concat(year, \"&quarter=\").concat(quarter);\n req.post(portal + api).then(function (res) {\n _this2.params.pageBean.page = res.page;\n _this2.params.pageBean.pageSize = res.pageSize;\n _this2.params.pageBean.total = res.total;\n var data = res && res.data || {};\n _this2.tableData = data.details || [];\n _this2.loading = false;\n\n if (_this2.tableData.length) {\n _this2.currentRow = _this2.tableData[0];\n\n _this2.$nextTick(function () {\n _this2.$refs.myTable.setCurrentRow(_this2.$refs.myTable.data[0]);\n\n _this2.getFiles(_this2.currentRow);\n });\n } else {\n _this2.currentRow = {};\n _this2.infoData = {};\n }\n }).catch(function () {\n _this2.loading = false;\n });\n },\n pageChange: function pageChange() {\n var code = this.querysParams.code;\n\n var _JSON$parse2 = JSON.parse(sessionStorage.getItem('searchDate')),\n year = _JSON$parse2.year,\n quarter = _JSON$parse2.quarter;\n\n this.loadData(code, year, quarter);\n }\n }\n};",null]}