{"remainingRequest":"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\\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 {\n\tTableMixin\n} 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\tcomponents: {\n\t\tFormDialog,\n\t},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\tloading: false,\n\t\t\tparams: {\n\t\t\t\tname: null,\n\t\t\t\tbuildType: null,\n\t\t\t\thouseholder: null\n\t\t\t},\n\t\t\tqueryParam: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpageSize: 20,\n\t\t\t\t\tpage: 1,\n\t\t\t\t},\n\t\t\t\tparams: {},\n\t\t\t\tquerys: []\n\t\t\t},\n\t\t\tshowFormDia: false,\n\t\t\ttableData: [],\n\t\t\ttotal: 0,\n\t\t\tpId: null,\n\t\t\tmultipleSelection: [], // 复选框\n\t\t\tbasAdNames: [], //行政区\n\t\t\tfileList: [],\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.buildTypes = dictUtils.getDictItemsFromCache('shzhfz-zfjzlx')\n\t\tthis.buildStructures = dictUtils.getDictItemsFromCache('shzhfz-zfjgxs')\n\t\tthis.getDateList()\n\t\tthis.getbasAdNames()\n\t},\n\tmethods: {\n\t\tonhouChange(val) {\n\t\t\tif (val) {\n\t\t\t\tthis.params.addvcd = val.pop().toString()\n\t\t\t\tconsole.log(this.params.addvcd);\n\n\t\t\t} else {\n\t\t\t\tthis.params.addvcd = null;\n\t\t\t}\n\t\t},\n\t\tgetbasAdNames() {\n\t\t\tflashFloods.getbasAdName({}, res => {\n\t\t\t\tthis.basAdNames = res.value\n\t\t\t})\n\t\t},\n\t\tgetDateList() {\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tflashFloods.ListGet(this.queryParam, res => {\n\t\t\t\tif (res.state) {\n\t\t\t\t\tthis.total = res.value.total\n\t\t\t\t\tthis.tableData = res.value.rows\n\t\t\t\t\tthis.tableData.forEach(e=>{\n\t\t\t\t\t\tthis.buildTypes.forEach(b=>{\n\t\t\t\t\t\t\tif(e.buildType==b.value){\n\t\t\t\t\t\t\t\te.buildTypeName=b.name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.buildStructures.forEach(s=>{\n\t\t\t\t\t\t\tif(e.buildStructure==s.value){\n\t\t\t\t\t\t\t\te.buildStructureName=s.name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t\n\t\t\t\t\tthis.loading = false\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tonClickSearch() {\n\t\t\tthis.queryParam.querys = [{\n\t\t\t\t\tgroup: \"main\",\n\t\t\t\t\toperation: \"LIKE\",\n\t\t\t\t\tparentGroup: \"\",\n\t\t\t\t\tproperty: \"p.name_\",\n\t\t\t\t\trelation: \"AND\",\n\t\t\t\t\tvalue: this.params.name\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: \"main\",\n\t\t\t\t\toperation: \"LIKE\",\n\t\t\t\t\tparentGroup: \"\",\n\t\t\t\t\tproperty: \"p.build_type_\",\n\t\t\t\t\trelation: \"AND\",\n\t\t\t\t\tvalue: this.params.buildType\n\t\t\t\t}, {\n\t\t\t\t\tgroup: \"main\",\n\t\t\t\t\toperation: \"LIKE\",\n\t\t\t\t\tparentGroup: \"\",\n\t\t\t\t\tproperty: \"p.householder_\",\n\t\t\t\t\trelation: \"AND\",\n\t\t\t\t\tvalue: this.params.householder\n\t\t\t\t}\n\t\t\t]\n\t\t\tthis.queryParam.pageBean.page = 1\n\t\t\tthis.getDateList()\n\t\t},\n\t\tresetQuery() {\n\t\t\tthis.params = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tthis.getDateList()\n\t\t},\n\t\t//导入\n\t\thandleChange(file, fileList) {\n\t\t if (fileList.length > 1) {\n\t\t fileList.splice(0, 1)\n\t\t }\n\t\t if (file.raw.name.split('.')[1] != 'xlsx') {\n\t\t this.$apiMessage.warning('请上传xlsx格式文件!')\n\t\t fileList.splice(0)\n\t\t } else {\n\t\t this.upLoadFile(file.raw)\n\t\t }\n\t\t},\n\t\t//自定义上传方法(覆盖默认上传行为)\n\t\tupLoadFile(file) {\n\t\t let formData = new FormData()\n\t\t formData.append('file', file)\n\t\t formData.append('paperId', this.queryParam.params.paperId)\n\t\t flashFloods.upload(formData,(res)=>{\n\t\t\t if (res.state) {\n\t\t\t \tthis.$notify({\n\t\t\t \t\ttype: 'success',\n\t\t\t \t\tmessage: '导入成功',\n\t\t\t \t\tduration: 2000,\n\t\t\t \t})\n\t\t\t \tthis.queryParam.pageBean.page = 1\n\t\t\t \tthis.getDateList()\n\t\t\t }else{\n\t\t\t\t this.$notify({\n\t\t\t\t \ttype: 'error',\n\t\t\t\t \tmessage: res.message,\n\t\t\t\t \tduration: 2000,\n\t\t\t\t \toffset: 80,\n\t\t\t\t })\n\t\t\t\t this.getDateList()\n\t\t\t }\n\t\t })\n\t\t},\n\t\topenFormDiao() {\n\t\t\tthis.title = '新增'\n\t\t\tthis.showFormDia = true;\n\t\t},\n\t\thandleUpdate(row) {\n\t\t\tthis.title = '修改'\n\t\t\tthis.pId = row.id\n\t\t\tthis.showFormDia = true\n\t\t},\n\t\tcloseFormDiao() {\n\t\t\tthis.showFormDia = false\n\t\t\tthis.getDateList()\n\t\t},\n\t\t// // 批量删除\n\t\tdeleteSelect() {\n\t\t\tthis.$confirm('确定删除选中数据?', '提示', {\n\t\t\t\t\tconfirmButtonText: '确 定',\n\t\t\t\t\tcancelButtonText: '取 消',\n\t\t\t\t\ttype: 'warning',\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\tflashFloods\n\t\t\t\t\t .remove(this.multipleSelection, (res) => {\n\t\t\t\t\t if (res.state) {\n\t\t\t\t\t this.$notify({\n\t\t\t\t\t type: 'success',\n\t\t\t\t\t message: '删除成功',\n\t\t\t\t\t duration: 2000,\n\t\t\t\t\t // offset: 80\n\t\t\t\t\t })\n\t\t\t\t\t // this.multipleSelection = [];\n\t\t\t\t\t this.$refs.multipleSelection.clearSelection()\n\t\t\t\t\t this.queryParam.pageBean.page = 1\n\t\t\t\t\t this.getDateList()\n\t\t\t\t\t }\n\t\t\t\t\t })\n\t\t\t\t\t .catch((res) => {\n\t\t\t\t\t this.$notify({\n\t\t\t\t\t type: 'error',\n\t\t\t\t\t message: res.message,\n\t\t\t\t\t duration: 2000,\n\t\t\t\t\t offset: 80,\n\t\t\t\t\t })\n\t\t\t\t\t this.getDateList()\n\t\t\t\t\t })\n\t\t\t\t})\n\t\t\t\t.catch(() => {})\n\t\t},\n\t\thandleSizeChange(val) {\n\t\t\tthis.queryParam.pageBean.pageSize = val;\n\t\t\tthis.getDateList()\n\t\t},\n\t\thandleCurrentChange(val) {\n\t\t\tthis.queryParam.pageBean.page = val;\n\t\t\tthis.getDateList()\n\t\t},\n\t\t// 指定一个key标识这一行的数据\n\t\tgetRowKey(row) {\n\t\t\treturn row.id\n\t\t},\n\t\thandleSelectionChange(val) {\n\t\t\tthis.multipleSelection = val.map((item) => {\n\t\t\t\treturn item.id\n\t\t\t})\n\t\t},\n\t}\n}\n",null]}