|
@@ -9,7 +9,7 @@
|
|
|
>
|
|
|
<a-card :bordered="false">
|
|
|
<a-row :gutter="8">
|
|
|
-<!-- <a-col :span="5">
|
|
|
+ <!-- <a-col :span="5">
|
|
|
<a-tree
|
|
|
@expand="onExpand"
|
|
|
:expandedKeys="expandedKeys"
|
|
@@ -118,6 +118,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { STable, Ellipsis } from '@/components'
|
|
|
+import { stringify } from 'qs'
|
|
|
import Detail from './Detail'
|
|
|
import { getSpareStorePage, fetchSpareStore } from '@/api/store/sparestore'
|
|
|
import { fetchSpareTypeTree } from '@/api/sqarepartmanage/sparetype'
|
|
@@ -226,10 +227,14 @@ export default {
|
|
|
sortName: 'update_time'
|
|
|
}
|
|
|
}
|
|
|
- return getSpareStorePage(Object.assign(parameter, this.queryParam))
|
|
|
- .then(res => {
|
|
|
+ return getSpareStorePage(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
+ if (res.data.rows === null) {
|
|
|
+ const data = { total: 0, rows: [], pageNum: 1, pageSize: 10, pages: 1 }
|
|
|
+ return data
|
|
|
+ } else {
|
|
|
return res.data
|
|
|
- })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
selectedRowKeys: [],
|
|
|
selectedRows: [],
|
|
@@ -320,6 +325,7 @@ export default {
|
|
|
this.visible = true
|
|
|
this.modalTitle = '选择信息'
|
|
|
this.queryParam = queryParam
|
|
|
+ console.log(queryParam)
|
|
|
this.record = record
|
|
|
if (this.isCreated) {
|
|
|
this.$refs.table.clearSelected()
|