diff --git a/src/views/storages/floodmaterialfile.vue b/src/views/storages/floodmaterialfile.vue index 59909c6..cb2e914 100644 --- a/src/views/storages/floodmaterialfile.vue +++ b/src/views/storages/floodmaterialfile.vue @@ -13,9 +13,9 @@ --> {{ item.cangkumingcheng }} - - - {{ item.value }} + + + {{ item.value }} 查询 select.pageSize = e" - @pageIndexChange="pageChange" :table-item="table"> - - - - - {{scope.row.quyu_detail.value?scope.row.quyu_detail.value:''}} - - - - - - + @pageIndexChange="pageChange" :table-item="table"> + + + + + {{scope.row.quyu_detail.value?scope.row.quyu_detail.value:''}} + + + + + + @@ -75,9 +75,9 @@ import { Message } from 'element-ui' - import imports from "@/views/component/imports.vue" - import { - getparameteritem + import imports from "@/views/component/imports.vue" + import { + getparameteritem } from "@/api/system/dictionary.js" export default { components: { @@ -90,10 +90,10 @@ select: { pageSize: 10, pageIndex: 1, - keyword: "", - guanliancangku:'', + keyword: "", + guanliancangku:'', area:'' - }, + }, areaList:[], customForm: { tableName: "flood_materials" @@ -118,14 +118,14 @@ { label: "仓库名称", width: 220, - prop: 'flood_storages_details.cangkumingcheng', + prop: 'cangkumingcheng', align: 'left', - }, - // { - // label: "所在区域", - // width: 120, - // prop: 'suozaiquyu', - // align: 'center', + }, + // { + // label: "所在区域", + // width: 120, + // prop: 'suozaiquyu', + // align: 'center', // }, { label: "物资代码", @@ -232,7 +232,7 @@ ] } }, - mounted() { + mounted() { this.getArea() this.getCangku() this.getindex() @@ -244,18 +244,18 @@ }) console.log("importForm", this.importForm) }, - methods: { - getArea(){ - getparameteritem("area").then(res=>{ - this.areaList = res.detail - }) - }, - clearArea(e){ - if(e){ - this.select.area = e - }else{ - this.select.area = '' - } + methods: { + getArea(){ + getparameteritem("area").then(res=>{ + this.areaList = res.detail + }) + }, + clearArea(e){ + if(e){ + this.select.area = e + }else{ + this.select.area = '' + } }, async getCangku() { let res = await index({ @@ -266,9 +266,9 @@ this.cangkuList = res.data }, async getindex(page) { - this.loading = true - if(page=='page'){ - this.select.pageIndex = 1 + this.loading = true + if(page=='page'){ + this.select.pageIndex = 1 } const res = await index({ page_size: this.select.pageSize, @@ -282,10 +282,10 @@ "key": "guanliancangku", "op": "eq", "value": this.select.guanliancangku?this.select.guanliancangku:'' - },{ - key:'quyu_id', - op:'eq', - value:this.select.area?this.select.area:'' + },{ + key:'quyu_id', + op:'eq', + value:this.select.area?this.select.area:'' }], }) this.list = res.data @@ -299,7 +299,7 @@ }, editorMater(id, type) { this.$refs['addMater'].id = id - this.$refs['addMater'].type = type + this.$refs['addMater'].type = type this.$refs['addMater'].setCkList(this.cangkuList) this.$refs['addMater'].isShow = true }, @@ -334,4 +334,4 @@ /deep/ .el-timeline-item { list-style: none; } - +