{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\components\\dialog\\projectDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\dialog\\projectDialog.vue","mtime":1706175428928},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.to-string\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 basicData from '@/api/basicData.js';\nexport default {\n data: function data() {\n return {\n dialogVisible: false,\n searchForm: {\n projectYear: '',\n ROAD_SEGMENT_ID_: ''\n },\n loading: false,\n tableData: [],\n multipleSelection: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n params: {},\n subscribeData: [],\n budgetIds: [],\n typeList: []\n };\n },\n created: function created() {},\n mounted: function mounted() {\n var date = new Date();\n this.searchForm['projectYear'] = date.getFullYear().toString();\n },\n methods: {\n open: function open(row, budgetIds) {\n console.log(row, 'row');\n this.dialogVisible = true;\n this.params = row;\n if (this.params.roadSegmentId) {\n this.searchForm['ROAD_SEGMENT_ID_'] = this.params.roadSegmentId;\n }\n this.getData();\n if (budgetIds) {\n this.budgetIds = budgetIds;\n }\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.dialogVisible = false;\n this.searchForm['ROAD_SEGMENT_ID_'] = '';\n },\n findinfo: function findinfo() {\n this.getData();\n },\n handleReset: function handleReset() {\n var date = new Date();\n this.searchForm['projectYear'] = date.getFullYear().toString();\n this.searchForm['ROAD_SEGMENT_ID_'] = this.params.roadSegmentId;\n this.searchForm['projectName'] = '';\n this.getData();\n },\n changeYear: function changeYear(val) {\n console.log(val, 'val');\n this.searchForm['projectYear'] = val;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n console.log(val, 'val');\n this.multipleSelection = val.map(function (item) {\n return item;\n });\n },\n getQuerysParams: function getQuerysParams() {\n var searchForm = this.searchForm,\n queryParam = this.queryParam;\n var _queryParam$pageBean = queryParam.pageBean,\n page = _queryParam$pageBean.page,\n pageSize = _queryParam$pageBean.pageSize;\n var querys = [];\n for (var i in searchForm) {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: searchForm[i]\n });\n }\n return {\n pageBean: {\n page: page,\n pageSize: pageSize,\n showTotal: true\n },\n querys: querys\n };\n },\n getData: function getData() {\n var _this = this;\n this.loading = true;\n this.queryParam = this.getQuerysParams();\n this.tableData = [];\n this.$http.post('${yhxt}/bizEngineeringProject/v1/getJson', this.queryParam).then(function (res) {\n console.log(res, 'resssss');\n _this.loading = false;\n _this.queryParam.pageBean.total = res.data.total;\n _this.queryParam.pageBean.page = res.data.page;\n _this.queryParam.pageBean.pageSize = res.data.pageSize;\n _this.tableData = res.data.rows;\n _this.$nextTick(function () {\n _this.tableData.forEach(function (item, index) {\n if (_this.params.projectId == item.id) {\n _this.$refs.multipleSelection.toggleRowSelection(_this.$refs.multipleSelection.data[index], true);\n }\n });\n });\n });\n },\n selectChange: function selectChange(selection, row) {\n if (selection.length > 1) {\n var del_row = selection.shift();\n this.$refs.multipleSelection.toggleRowSelection(del_row, false);\n }\n },\n // // 点击行触发,选中或不选中复选框\n handleRowClick: function handleRowClick(row, column, event) {\n this.$refs.multipleSelection.toggleRowSelection(row);\n this.selectChange(this.multipleSelection);\n },\n selectAll: function selectAll(selection) {\n if (selection.length > 1) {\n selection.length = 1;\n }\n },\n save: function save() {\n this.dialogVisible = false;\n this.$emit('common', this.multipleSelection);\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getData();\n },\n getRowKeys: function getRowKeys(row) {\n return row.id;\n }\n }\n};",null]}