{"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\\infoManagement\\flashFloods.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\flashFloods.vue","mtime":1684458239231},{"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":["import \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport FormDialog from \"./components/falshForm-dialog.vue\";\nimport flashFloods from '@/api/flashFloods.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n components: {\n FormDialog: FormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n params: {\n name: null,\n buildType: null,\n householder: null\n },\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {},\n querys: []\n },\n showFormDia: false,\n tableData: [],\n total: 0,\n pId: null,\n multipleSelection: [],\n // 复选框\n basAdNames: [],\n //行政区\n fileList: []\n };\n },\n created: function created() {\n this.buildTypes = dictUtils.getDictItemsFromCache('shzhfz-zfjzlx');\n this.buildStructures = dictUtils.getDictItemsFromCache('shzhfz-zfjgxs');\n this.getDateList();\n this.getbasAdNames();\n },\n methods: {\n onhouChange: function onhouChange(val) {\n if (val) {\n this.params.addvcd = val.pop().toString();\n console.log(this.params.addvcd);\n } else {\n this.params.addvcd = null;\n }\n },\n getbasAdNames: function getbasAdNames() {\n var _this = this;\n\n flashFloods.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n },\n getDateList: function getDateList() {\n var _this2 = this;\n\n this.loading = true;\n this.tableData = [];\n flashFloods.ListGet(this.queryParam, function (res) {\n if (res.state) {\n _this2.total = res.value.total;\n _this2.tableData = res.value.rows;\n\n _this2.tableData.forEach(function (e) {\n _this2.buildTypes.forEach(function (b) {\n if (e.buildType == b.value) {\n e.buildTypeName = b.name;\n }\n });\n\n _this2.buildStructures.forEach(function (s) {\n if (e.buildStructure == s.value) {\n e.buildStructureName = s.name;\n }\n });\n });\n\n _this2.loading = false;\n }\n });\n },\n onClickSearch: function onClickSearch() {\n this.queryParam.querys = [{\n group: \"main\",\n operation: \"LIKE\",\n parentGroup: \"\",\n property: \"p.name_\",\n relation: \"AND\",\n value: this.params.name\n }, {\n group: \"main\",\n operation: \"LIKE\",\n parentGroup: \"\",\n property: \"p.build_type_\",\n relation: \"AND\",\n value: this.params.buildType\n }, {\n group: \"main\",\n operation: \"LIKE\",\n parentGroup: \"\",\n property: \"p.householder_\",\n relation: \"AND\",\n value: this.params.householder\n }];\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n },\n resetQuery: function resetQuery() {\n this.params = [];\n this.queryParam.querys = [];\n this.getDateList();\n },\n //导入\n handleChange: function handleChange(file, fileList) {\n if (fileList.length > 1) {\n fileList.splice(0, 1);\n }\n\n if (file.raw.name.split('.')[1] != 'xlsx') {\n this.$apiMessage.warning('请上传xlsx格式文件!');\n fileList.splice(0);\n } else {\n this.upLoadFile(file.raw);\n }\n },\n //自定义上传方法(覆盖默认上传行为)\n upLoadFile: function upLoadFile(file) {\n var _this3 = this;\n\n var formData = new FormData();\n formData.append('file', file);\n formData.append('paperId', this.queryParam.params.paperId);\n flashFloods.upload(formData, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '导入成功',\n duration: 2000\n });\n\n _this3.queryParam.pageBean.page = 1;\n\n _this3.getDateList();\n } else {\n _this3.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this3.getDateList();\n }\n });\n },\n openFormDiao: function openFormDiao() {\n this.title = '新增';\n this.showFormDia = true;\n },\n handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.pId = row.id;\n this.showFormDia = true;\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n },\n // // 批量删除\n deleteSelect: function deleteSelect() {\n var _this4 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n flashFloods.remove(_this4.multipleSelection, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n }); // this.multipleSelection = [];\n\n\n _this4.$refs.multipleSelection.clearSelection();\n\n _this4.queryParam.pageBean.page = 1;\n\n _this4.getDateList();\n }\n }).catch(function (res) {\n _this4.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this4.getDateList();\n });\n }).catch(function () {});\n },\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 // 指定一个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 }\n};",null]}