{"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\\innerTables\\pilotAccount.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\innerTables\\pilotAccount.vue","mtime":1686194718318},{"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\r\nimport utils from '@/utils.js'\r\nimport apiList from '@/api/bigScreen/districView.js'\r\nimport EasyDialog from '@/views/BigScreen/components/easy-dialog/index.vue'\r\nimport pagenation from './pagenation.vue'\r\nimport dialogComponents from '@/views/BigScreen/js/dialog_components.js'\r\nimport dialogConfig from '@/views/BigScreen/js/DistrictReformDialogConfig.js'\r\nexport default {\r\n components: {pagenation, ...dialogComponents, EasyDialog},\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 downloading: false,\r\n textempty: ' ',\r\n demandRunwayOptions: [],\r\n loading: false,\r\n loadingColor: 'rgba(6, 46, 106, 0.4)',\r\n tableData: [],\r\n showEasy: false,\r\n currentTabComponent: '',\r\n dialogOption: {\r\n dialogTitle: '',\r\n },\r\n searchData: {\r\n PILOT_PROJECT_NAME_: '',\r\n 'i.UNIT_NAME_': '',\r\n PILOT_FIELD_: '',\r\n PILOT_RUNWAY_: '',\r\n START_TIME_: '',\r\n },\r\n tempTableOptions: null,\r\n params: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 10,\r\n showTotal: true,\r\n total: 0,\r\n },\r\n params: {},\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'PILOT_LEVEL_',\r\n relation: 'AND',\r\n value: 1,\r\n },\r\n ],\r\n },\r\n }\r\n },\r\n mounted() {\r\n // this.params.querys[0].value = this.tableOptions.type\r\n // this.params.pageBean.page = 1\r\n // this.params.pageBean.total = 0\r\n // this.params.pageBean.pageSize = 10\r\n // this.loadData()\r\n this.demandRunwayOptions = this.getDemandData('1')\r\n },\r\n watch: {\r\n 'tableOptions.type': {\r\n handler: function (newValue) {\r\n this.params.querys[0].value = newValue\r\n this.params.pageBean.page = 1\r\n this.params.pageBean.total = 0\r\n this.params.pageBean.pageSize = 10\r\n this.loadData()\r\n },\r\n immediate: true,\r\n },\r\n },\r\n methods: {\r\n download() {\r\n this.downloading = true\r\n this.$message.warning(\r\n '试点台账数据量较大,导出所需时间较长,请耐性等待......'\r\n )\r\n let searchDate = sessionStorage.getItem('searchDate')\r\n searchDate = JSON.parse(searchDate)\r\n this.params.params.year = searchDate.year\r\n this.params.params.quarter = searchDate.quarter\r\n apiList.exportLedgerDetail(this.params).then((res) => {\r\n this.downloading = false\r\n this.$message.success('试点台账数据导出成功')\r\n })\r\n },\r\n search(data, type) {\r\n this.params.pageBean.page = 1\r\n if (type == 'PILOT_FIELD_') {\r\n this.demandRunwayOptions = this.getDemandData(data)\r\n this.searchData.PILOT_RUNWAY_ = ''\r\n }\r\n let level = this.params.querys[0]\r\n this.params.querys = [level]\r\n let operation = ''\r\n for (let key in this.searchData) {\r\n if (key == 'PILOT_PROJECT_NAME_' || key == 'i.UNIT_NAME_') {\r\n operation = 'LIKE'\r\n } else if (key == 'PILOT_FIELD_' || key == 'PILOT_RUNWAY_') {\r\n operation = 'EQUAL'\r\n } else if (key == 'START_TIME_') {\r\n operation = 'BETWEEN'\r\n }\r\n this.params.querys.push({\r\n group: 'main',\r\n operation,\r\n parentGroup: '',\r\n property: key,\r\n relation: 'AND',\r\n value: this.searchData[key],\r\n })\r\n }\r\n this.loadData()\r\n },\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\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 this.params.params.year = searchDate.year\r\n this.params.params.quarter = searchDate.quarter\r\n apiList.getPilotLedgerDetail(this.params, (res) => {\r\n if (res && res.rows) {\r\n this.tableData = res.rows\r\n this.params.pageBean.page = res.page\r\n this.params.pageBean.total = res.total\r\n this.params.pageBean.pageSize = res.pageSize\r\n }\r\n this.loading = false\r\n })\r\n },\r\n pageChange(key) {\r\n this.params.pageBean.page = key\r\n this.loadData()\r\n },\r\n handleOpen(type, item, row) {\r\n console.log(type, item, row)\r\n this.currentTabComponent = dialogConfig.dialogOption[type]\r\n .componentName\r\n ? dialogConfig.dialogOption[type].componentName\r\n : type // 动态组件名称\r\n this.tempTableOptions = {\r\n name: item.unitName,\r\n code: item.unitCode,\r\n id: row.id,\r\n } //table的查询参数\r\n let data = {\r\n dialogTitle: item.unitName + '改革试点详情',\r\n ...dialogConfig.dialogOption[type].option,\r\n }\r\n this.dialogOption = data //弹窗配置参数\r\n this.showEasy = true\r\n },\r\n getDemandData(val) {\r\n let data = null\r\n let arr = utils.getDictItemsFromCache('ggbb_ssly')\r\n arr.forEach((item) => {\r\n if (item.value == val) {\r\n data = item.lowerDic['ggbb_sspd']\r\n }\r\n })\r\n return data\r\n },\r\n },\r\n}\r\n",null]}