{"remainingRequest":"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\\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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport pagenation from './pagenation.vue'\r\nimport filePreview from '@/components/FilePreview/filePreview.vue'\r\nimport apiList from '@/api/bigScreen/districView.js'\r\nimport utils from '@/utils.js'\r\nconst portal = window.context.portal\r\nexport default {\r\n name: 'brandDetail',\r\n components: {\r\n filePreview,\r\n pagenation\r\n },\r\n props: {\r\n options: {\r\n type: Object,\r\n default: () => {\r\n return {}\r\n }\r\n }\r\n },\r\n data() {\r\n return {\r\n searchData: {},\r\n specificSituationOptions: [],\r\n loadingColor: 'rgba(6, 46, 106, 0.4)',\r\n loading: false,\r\n previewUrl: `${portal}/file/onlinePreviewController/v1/getFileById_`,\r\n tableData: [],\r\n currentRow: {},\r\n code: '',\r\n paramsFile: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: -1,\r\n showTotal: true\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'BIZ_ID_',\r\n relation: 'AND',\r\n value: ''\r\n }\r\n ]\r\n },\r\n paramsData: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n showTotal: true\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'e.effect_Form_',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'e.specific_Details_',\r\n relation: 'AND',\r\n value: ''\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n mounted() {\r\n this.getSpecificSituationOptions(1)\r\n this.poliyComp()\r\n this.$bus.$on('changeDate', () => {\r\n this.loadData()\r\n })\r\n },\r\n methods: {\r\n search(e,type) {\r\n if (type == 'effect_Form_') {\r\n this.getSpecificSituationOptions(e)\r\n this.paramsData.querys[0].value = this.searchData['e.effect_Form_']\r\n this.searchData['e.specific_Details_'] = ''\r\n } else if (type == 'specific_Details_') {\r\n \r\n }\r\n this.paramsData.querys[1].value = this.searchData['e.specific_Details_']\r\n this.poliyComp()\r\n },\r\n poliyComp() {\r\n let {type, code} = this.$route.query\r\n if (type) {\r\n this.$set(this.searchData, 'e.effect_Form_', type+'')\r\n this.paramsData.querys[0].value = type+''\r\n this.getSpecificSituationOptions(type)\r\n }\r\n this.code = code\r\n this.loadData()\r\n },\r\n loadData() {\r\n this.loading = true\r\n let searchDate = sessionStorage.getItem('searchDate')\r\n searchDate = JSON.parse(searchDate)\r\n let data = {\r\n year: searchDate.year,\r\n quarter: searchDate.quarter,\r\n unitCode: this.code\r\n }\r\n apiList.getBrandDetail(data,this.paramsData).then(res => {\r\n console.log(res)\r\n if (res && res.value) {\r\n this.tableData = res.value\r\n if (this.tableData.length) {\r\n this.currentRow = this.tableData[0]\r\n this.$nextTick(() => {\r\n if (this.$refs.dataTable) {\r\n this.$refs.dataTable.setCurrentRow(this.$refs.dataTable.data[0])\r\n }\r\n })\r\n } else {\r\n this.currentRow = {}\r\n }\r\n }\r\n this.loading = false\r\n })\r\n },\r\n currentChange(currentRow) {\r\n console.log(1233)\r\n this.getFiles(currentRow)\r\n this.currentRow = currentRow\r\n },\r\n getFiles(row) {\r\n this.paramsFile.querys[0].value = row.id\r\n apiList.getFiles(this.paramsFile, data => {\r\n this.currentRow.fileList = data.rows\r\n this.$forceUpdate()\r\n })\r\n },\r\n handlePreview(file) {\r\n let id = file.fileId\r\n ? file.fileId\r\n : file.id\r\n ? file.id\r\n : file.response.fileId\r\n let type = file.extensionName\r\n ? file.extensionName\r\n : file.name.split('.')[1]\r\n this.$refs.filePreview.previewUrl = this.previewUrl + id\r\n this.$refs.filePreview.open(type)\r\n },\r\n // 文件下载\r\n handleDownloadFile(file) {\r\n console.log(file)\r\n let id = file.fileId\r\n ? file.fileId\r\n : file.id\r\n ? file.id\r\n : file.response.fileId\r\n window.open(portal + `/file/v1/downloadFile?fileId=${id}`, '_self')\r\n },\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\r\n },\r\n getSubDictName(code, subCode, value, subValue) {\r\n let dict = utils.getDictItemsFromCache(code)\r\n let name = ''\r\n dict.forEach(item => {\r\n if (item.value == value) {\r\n item.lowerDic[subCode].forEach(sub => {\r\n if (sub.value == subValue) {\r\n name = sub.name\r\n }\r\n })\r\n }\r\n })\r\n return name\r\n },\r\n // 根据成效形式获取具体情形列表\r\n getSpecificSituationOptions(val) {\r\n let arr = utils.getDictItemsFromCache('hkdxs')\r\n arr.forEach(item => {\r\n if (item.value == val) {\r\n this.specificSituationOptions = item.lowerDic['cxxs-jtqx']\r\n }\r\n })\r\n console.log(this.specificSituationOptions);\r\n }\r\n }\r\n}\r\n",null]}