优化table
This commit is contained in:
@@ -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) {
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user