{"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\\majorProjects-components\\applicationScenario.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\majorProjects-components\\applicationScenario.vue","mtime":1684754713713},{"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\";\nimport \"core-js/modules/es6.array.find-index\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 filePreview from '@/components/FilePreview/filePreview.vue';\nimport apiList from '@/api/bigScreen/majorView.js';\nvar portal = window.context.portal;\nimport pagenation from \"./pagenation.vue\";\nimport moment from 'moment';\nexport default {\n name: 'applicationScenario',\n components: {\n pagenation: pagenation,\n filePreview: filePreview\n },\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n reqLoading: false,\n loading: false,\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n tableData: [],\n prarms: {\n pageBean: {\n page: 1,\n pageSize: 10,\n total: 0,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'r.RESULT_FORM_',\n relation: 'AND',\n value: 3\n } // {\n // group: 'main',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'r.result_year_', // 字段名\n // relation: 'AND',\n // value: '',\n // },\n // {\n // group: 'main',\n // operation: 'LESS_EQUAL',\n // parentGroup: '',\n // property: 'r.result_quarter_', // 字段名\n // relation: 'AND',\n // value: '',\n // },\n ]\n },\n pageBean: {\n page: 1,\n pageSize: 10,\n total: 0,\n showTotal: true\n },\n prarmsFile: {\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 isShow: 1\n };\n },\n mounted: function mounted() {\n this.getResultList();\n },\n methods: {\n getResultList: function getResultList() {\n var _this = this;\n\n this.loading = true;\n var searchDate = JSON.parse(sessionStorage.getItem('searchDate'));\n var data = {\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 's.PLAN_YEAR_',\n // 字段名\n relation: 'AND',\n value: searchDate.year\n }, {\n group: 'main',\n operation: 'LESS_EQUAL',\n parentGroup: '',\n property: 's.PLAN_MONTH_',\n // 字段名\n relation: 'AND',\n value: searchDate.month\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 's.PLAN_type_',\n relation: 'AND',\n value: 7\n }]\n };\n data.pageBean = this.pageBean;\n apiList.getResultList(data, function (res) {\n if (res) {\n _this.tableData = res.rows.map(function (item) {\n item.createTime = moment(item.createTime).format('YYYY-MM-DD');\n return item;\n });\n _this.pageBean.total = res.total;\n }\n\n _this.loading = false;\n });\n },\n pageChange: function pageChange(key) {\n this.pageBean.page = key;\n this.getResultList();\n },\n handleDetail: function handleDetail(row, index) {\n var _this2 = this;\n\n this.isShow = 0;\n this.reqLoading = true;\n\n if (!row.expansion) {\n apiList.getResultD(row.id, function (res) {\n if (res) {\n // this.tableData[index] = res\n // this.tableData[index].createTime = moment(res.createTime).format(\n // 'YYYY-MM-DD'\n // )\n _this2.infoData = res;\n _this2.isShow = 1;\n _this2.reqLoading = false;\n }\n });\n }\n\n this.$nextTick(function () {\n var $table = _this2.$refs.myTable;\n\n _this2.tableData.map(function (item) {\n if (row.id != item.id) {\n $table.toggleRowExpansion(item, false);\n item.expansion = false;\n } else {\n item.expansion = !item.expansion;\n }\n });\n\n $table.toggleRowExpansion(row);\n });\n },\n expandChange: function expandChange(row, expandedRows) {\n console.log(row, expandedRows);\n if (row.fileList) return;\n this.getFiles(row);\n },\n getFiles: function getFiles(row) {\n this.prarmsFile.querys[0].value = row.id;\n apiList.getFiles(this.prarmsFile, function (data) {\n row.fileList = data.rows;\n });\n var index = this.tableData.findIndex(function (item) {\n return item.id == row.id;\n });\n this.tableData.splice(index, 1, row);\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 loadData: function loadData() {\n var _this3 = this;\n\n this.loading = true;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate); // this.prarms.querys[1].value = searchDate.year\n // this.prarms.querys[2].value = searchDate.quarter\n\n this.prarms.params = {\n year: searchDate.year,\n quarter: searchDate.quarter\n };\n apiList.getPilotResultDetail(this.prarms, function (res) {\n console.log(res);\n\n if (res && res.rows) {\n _this3.tableData = res.rows;\n _this3.prarms.pageBean.page = res.page;\n _this3.prarms.pageBean.pageSize = res.pageSize;\n _this3.prarms.pageBean.total = res.total;\n }\n\n _this3.loading = false;\n });\n } // getResultList() {\n // this.loading = true\n // // 1.制度成果\n // // 2.工作平台\n // // 3.应用场景\n // let data1 = {\n // pageBean: {\n // page: 1,\n // pageSize: -1,\n // showTotal: true\n // },\n // querys: [\n // {\n // group: 'main',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'type',\n // relation: 'AND',\n // value: 3\n // }\n // ]\n // }\n // apiList.getResultList(data1, res => {\n // if (res) {\n // this.tableData = res.records\n // }\n // this.loading = false\n // })\n // }\n\n }\n};",null]}