优化table

This commit is contained in:
qq787203167
2022-01-24 18:01:16 +08:00
parent f488ab4948
commit 6ff342acc8
4 changed files with 249 additions and 46 deletions
+15 -1
View File
@@ -21,13 +21,19 @@
</template>
<script>
import { getAction } from '@/api/manage'
import eventBUs from '../../common/event.js'
export default {
name: 'index',
props: {
searchList: {
type: Array,
default: []
},
url: {
type: Object,
default: {}
}
},
data() {
@@ -36,7 +42,7 @@
}
},
mounted() {
this.getHeader()
},
methods: {
searchQuery() {
@@ -45,6 +51,14 @@
searchReset() {
this.queryParam = {}
eventBUs.$emit('searchQuery', this.queryParam)
},
getHeader() {
let params = {}
getAction(this.url.searchHeader, params).then((res) => {
if (res.success) {
}
})
}
}
}