{"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\\projectInitiativeIteration.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\projectInitiativeIteration.vue","mtime":1702263619948},{"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\r\nimport pagenation from './pagenation.vue'\r\nimport apiList from '@/api/bigScreen/majorView.js'\r\nimport moment from 'moment'\r\nexport default {\r\n name: 'iterationList',\r\n components: {pagenation},\r\n props: {\r\n tableOptions: {\r\n type: Object,\r\n default: () => {\r\n return {}\r\n },\r\n },\r\n },\r\n data() {\r\n return {\r\n loading: false,\r\n loadingColor: 'rgba(6, 46, 106, 0.4)',\r\n tableData: [],\r\n infoTableData: [],\r\n iterLoading: false,\r\n infoLoading: false,\r\n }\r\n },\r\n beforeDestroy() {\r\n this.$bus.$off('changeDate')\r\n },\r\n mounted() {\r\n this.$emit('searchDateChange')\r\n this.getProjectBrand()\r\n this.$bus.$on('changeDate', (searchDate) => {\r\n this.getProjectBrand()\r\n })\r\n },\r\n methods: {\r\n currentChange(currentRow, oldCurrentRow) {\r\n this.handleDetail(currentRow)\r\n },\r\n handleDetail(row) {\r\n this.infoLoading = true\r\n apiList.getIterationList(row.projectId, (res) => {\r\n if (res) {\r\n res.iterationAddVO.forEach((item) => {\r\n item.iterType = '新增举措'\r\n item.newName = item.name\r\n item.time = moment(item.time).format('YYYY-MM-DD')\r\n })\r\n res.iterationUpdateVO.forEach((item) => {\r\n item.iterType = '迭代举措'\r\n item.time = moment(item.time).format('YYYY-MM-DD')\r\n })\r\n this.infoTableData = [\r\n ...res.iterationUpdateVO,\r\n ...res.iterationAddVO,\r\n ]\r\n this.iterLoading = false\r\n }\r\n this.infoLoading = false\r\n })\r\n },\r\n // 迭代榜\r\n getProjectBrand() {\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 month: searchDate.month,\r\n }\r\n apiList.getIteration(data, (res) => {\r\n if (res) {\r\n this.tableData = res\r\n this.$nextTick(() => {\r\n this.$refs.myTable.setCurrentRow(\r\n this.$refs.myTable.data[0]\r\n )\r\n })\r\n }\r\n this.loading = false\r\n })\r\n },\r\n },\r\n}\r\n",null]}