|
@@ -7,7 +7,7 @@
|
|
size='small'
|
|
size='small'
|
|
@change='getList'
|
|
@change='getList'
|
|
prefix-icon='el-icon-search'
|
|
prefix-icon='el-icon-search'
|
|
- v-model='keyword'
|
|
|
|
|
|
+ v-model='welldes'
|
|
clearable
|
|
clearable
|
|
style='width:192px;margin-right:12px'
|
|
style='width:192px;margin-right:12px'
|
|
></el-input>
|
|
></el-input>
|
|
@@ -16,7 +16,7 @@
|
|
size='small'
|
|
size='small'
|
|
@change='getList'
|
|
@change='getList'
|
|
prefix-icon='el-icon-search'
|
|
prefix-icon='el-icon-search'
|
|
- v-model='keyword'
|
|
|
|
|
|
+ v-model='shopsnum'
|
|
clearable
|
|
clearable
|
|
style='width:192px;margin-right:12px'
|
|
style='width:192px;margin-right:12px'
|
|
></el-input>
|
|
></el-input>
|
|
@@ -36,65 +36,51 @@
|
|
<template slot-scope='{row}'>{{row.shopsnum || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.shopsnum || '--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <div class='foot'>
|
|
|
|
- <el-pagination
|
|
|
|
- background
|
|
|
|
- layout='prev, pager, next'
|
|
|
|
- :total='total'
|
|
|
|
- :page-size='size'
|
|
|
|
- @prev-click='pageChanged'
|
|
|
|
- @next-click='pageChanged'
|
|
|
|
- @current-change='pageChanged'
|
|
|
|
- ></el-pagination>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class='foot'></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import Select from '@/components/Select/Select.vue'
|
|
import Select from '@/components/Select/Select.vue'
|
|
import EqDetail from './eqDetaileDialog'
|
|
import EqDetail from './eqDetaileDialog'
|
|
-import { queryEquipmentList } from '@/api/equipmentList.js'
|
|
|
|
|
|
+import { queryShops } from '@/api/equipmentList.js'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: { Select, EqDetail },
|
|
components: { Select, EqDetail },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- dataSelect2: [
|
|
|
|
- { id: 'test1', name: '选择项' },
|
|
|
|
- { id: 'test2', name: '单平米' },
|
|
|
|
- { id: 'test3', name: '下级分项' },
|
|
|
|
- { id: 'test4', name: '滑动平均滑动平均' }
|
|
|
|
- ],
|
|
|
|
tableData: [],
|
|
tableData: [],
|
|
- total: 0,
|
|
|
|
- currentPage: 1,
|
|
|
|
- size: 10,
|
|
|
|
floor: '',
|
|
floor: '',
|
|
innerVisible: false, //详情弹框
|
|
innerVisible: false, //详情弹框
|
|
- keyword: ''
|
|
|
|
|
|
+ shopsnum: '',
|
|
|
|
+ welldes: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(['floorSelect'])
|
|
...mapGetters(['floorSelect'])
|
|
},
|
|
},
|
|
- props: ['major'],
|
|
|
|
|
|
+
|
|
methods: {
|
|
methods: {
|
|
pageChanged(page) {
|
|
pageChanged(page) {
|
|
this.currentPage = page
|
|
this.currentPage = page
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
- let postParams = {
|
|
|
|
- // tab_code: this.param
|
|
|
|
|
|
+ let getParams = {}
|
|
|
|
+ if (this.floor) {
|
|
|
|
+ getParams.floor = this.floorSelect
|
|
|
|
+ }
|
|
|
|
+ getParams.keyword = ''
|
|
|
|
+ if (this.welldes) {
|
|
|
|
+ getParams.keyword += `${this.welldes}:welldes;`
|
|
|
|
+ }
|
|
|
|
+ if (this.shopsnum) {
|
|
|
|
+ getParams.keyword += `${this.shopsnum}:shopsnum;`
|
|
}
|
|
}
|
|
- let data = {
|
|
|
|
- page: this.currentPage,
|
|
|
|
- size: this.size,
|
|
|
|
- plazaId: this.$store.state.plazaId,
|
|
|
|
- major: this.major,
|
|
|
|
- keyword: this.keyword
|
|
|
|
|
|
+ if (getParams.keyword == '') {
|
|
|
|
+ delete getParams.keyword
|
|
}
|
|
}
|
|
- queryEquipmentList({ data, postParams }).then(res => {
|
|
|
|
|
|
+ queryShops({ getParams }).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
this.total = res.data.count
|
|
this.total = res.data.count
|
|
@@ -103,7 +89,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
- // this.getList()
|
|
|
|
|
|
+ this.getList()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|