{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\capacity.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\capacity.vue","mtime":1684458239465},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-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//\nimport req from '@/request.js';\nimport capacity from '@/api/reservoirManagement/resFrom.js';\nimport FormDialog from \"./capacity-dialog.vue\";\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'capacity',\n mixins: [TableMixin],\n components: {\n FormDialog: FormDialog\n },\n props: {\n wId: {\n type: String,\n default: ''\n },\n rscd: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n queryParam: {\n pageBean: {\n pageSize: 10,\n page: 1\n },\n params: {\n rscd: this.rscd\n }\n },\n total: 0,\n loading: false,\n tableData: [],\n //表格数据\n multipleSelection: [],\n // 复选框\n title: null,\n showFormDia: false,\n plId: null\n };\n },\n created: function created() {\n this.getDateList();\n },\n methods: {\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getDateList();\n },\n //查询\n getDateList: function getDateList() {\n var _this = this;\n\n this.loading = true;\n this.tableData = [];\n capacity.ListGetConcapacity(this.queryParam, function (res) {\n if (res.state) {\n _this.total = res.value.total;\n _this.tableData = res.value.rows;\n _this.loading = false;\n }\n });\n },\n //新增\n openFormDiao: function openFormDiao() {\n this.title = '新增';\n this.showFormDia = true;\n },\n //修改\n handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.plId = row.id;\n this.showFormDia = true;\n },\n // // 批量删除\n deleteSelect: function deleteSelect() {\n var _this2 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n capacity.removeConcapacity(_this2.multipleSelection, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n }); // this.multipleSelection = [];\n\n\n _this2.$refs.multipleSelection.clearSelection();\n\n _this2.queryParam.pageBean.page = 1;\n\n _this2.getDateList();\n }\n }).catch(function (res) {\n _this2.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this2.getDateList();\n });\n }).catch(function () {});\n },\n // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n }\n }\n};",null]}