{"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\\brandDetail.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\brandDetail.vue","mtime":1686637637227},{"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/web.dom.iterable\";\nimport \"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//\n//\n//\nimport pagenation from \"./pagenation.vue\";\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport apiList from '@/api/bigScreen/districView.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'brandDetail',\n components: {\n filePreview: filePreview,\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 searchData: {},\n specificSituationOptions: [],\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n loading: false,\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n tableData: [],\n currentRow: {},\n code: '',\n paramsFile: {\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 paramsData: {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'e.effect_Form_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'e.specific_Details_',\n relation: 'AND',\n value: ''\n }]\n }\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.getSpecificSituationOptions(1);\n this.poliyComp();\n this.$bus.$on('changeDate', function () {\n _this.loadData();\n });\n },\n methods: {\n search: function search(e, type) {\n if (type == 'effect_Form_') {\n this.getSpecificSituationOptions(e);\n this.paramsData.querys[0].value = this.searchData['e.effect_Form_'];\n this.searchData['e.specific_Details_'] = '';\n } else if (type == 'specific_Details_') {}\n\n this.paramsData.querys[1].value = this.searchData['e.specific_Details_'];\n this.poliyComp();\n },\n poliyComp: function poliyComp() {\n var _this$$route$query = this.$route.query,\n type = _this$$route$query.type,\n code = _this$$route$query.code;\n\n if (type) {\n this.$set(this.searchData, 'e.effect_Form_', type + '');\n this.paramsData.querys[0].value = type + '';\n this.getSpecificSituationOptions(type);\n }\n\n this.code = code;\n this.loadData();\n },\n loadData: function loadData() {\n var _this2 = this;\n\n this.loading = true;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n var data = {\n year: searchDate.year,\n quarter: searchDate.quarter,\n unitCode: this.code\n };\n apiList.getBrandDetail(data, this.paramsData).then(function (res) {\n console.log(res);\n\n if (res && res.value) {\n _this2.tableData = res.value;\n\n if (_this2.tableData.length) {\n _this2.currentRow = _this2.tableData[0];\n\n _this2.$nextTick(function () {\n if (_this2.$refs.dataTable) {\n _this2.$refs.dataTable.setCurrentRow(_this2.$refs.dataTable.data[0]);\n }\n });\n } else {\n _this2.currentRow = {};\n }\n }\n\n _this2.loading = false;\n });\n },\n currentChange: function currentChange(currentRow) {\n console.log(1233);\n this.getFiles(currentRow);\n this.currentRow = currentRow;\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 _this3.$forceUpdate();\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 getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getSubDictName: function getSubDictName(code, subCode, value, subValue) {\n var dict = utils.getDictItemsFromCache(code);\n var name = '';\n dict.forEach(function (item) {\n if (item.value == value) {\n item.lowerDic[subCode].forEach(function (sub) {\n if (sub.value == subValue) {\n name = sub.name;\n }\n });\n }\n });\n return name;\n },\n // 根据成效形式获取具体情形列表\n getSpecificSituationOptions: function getSpecificSituationOptions(val) {\n var _this4 = this;\n\n var arr = utils.getDictItemsFromCache('hkdxs');\n arr.forEach(function (item) {\n if (item.value == val) {\n _this4.specificSituationOptions = item.lowerDic['cxxs-jtqx'];\n }\n });\n console.log(this.specificSituationOptions);\n }\n }\n};",null]}