|
|
<template>
|
|
|
<layout-body>
|
|
|
<layout-filter>
|
|
|
<filter-item :label="filterOptions.handleActions.label">
|
|
|
<Select v-model.trim="filters.handleActions">
|
|
|
<Option v-for="option in filterOptions.handleActions.options"
|
|
|
<filter-item :label="filters.subject.label">
|
|
|
<Input v-model.trim="filters.subject.model"
|
|
|
:placeholder="filters.subject.holder"></Input>
|
|
|
</filter-item>
|
|
|
<filter-item :label="filters.emergency.label">
|
|
|
<Select v-model.trim="filters.emergency.model">
|
|
|
<Option v-for="option in filters.emergency.options"
|
|
|
:value="option.value"
|
|
|
:key="option.value">{{option.label}}</Option>
|
|
|
</Select>
|
|
|
</filter-item>
|
|
|
<filter-item :label="filterOptions.handleStatus.label">
|
|
|
<Select v-model.trim="filters.handleStatus">
|
|
|
<Option v-for="option in filterOptions.handleStatus.options"
|
|
|
<filter-item :label="filters.brand.label">
|
|
|
<select-brand v-model="filters.brand.model"></select-brand>
|
|
|
</filter-item>
|
|
|
<filter-item :label="filters.status.label">
|
|
|
<Select v-model.trim="filters.status.model">
|
|
|
<Option v-for="option in filters.status.options"
|
|
|
:value="option.value"
|
|
|
:key="option.value">{{option.label}}</Option>
|
|
|
</Select>
|
...
|
...
|
@@ -22,54 +29,37 @@ |
|
|
</layout-filter>
|
|
|
|
|
|
<layout-list>
|
|
|
<Table border :columns="table.cols" :data="table.data"></Table>
|
|
|
<Page :total="pager.total" :current="pager.current"
|
|
|
<Table border :columns="tableColumns" :data="tableDataList"></Table>
|
|
|
<Page :total="page.total" :current="page.current"
|
|
|
@on-change="pageChange" :page-size="20" show-total></Page>
|
|
|
</layout-list>
|
|
|
</layout-body>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {filterFields, table} from './store';
|
|
|
import diffData from './store';
|
|
|
import {SelectBrand} from 'components/select';
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
self: this,
|
|
|
filters: {
|
|
|
handleActions: '',
|
|
|
handleStatus: ''
|
|
|
},
|
|
|
filterOptions: filterFields,
|
|
|
table: {
|
|
|
cols: table.cols,
|
|
|
data: []
|
|
|
},
|
|
|
pager: {
|
|
|
total: 0,
|
|
|
current: 1
|
|
|
}
|
|
|
};
|
|
|
return diffData.apply(this);
|
|
|
},
|
|
|
created() {
|
|
|
},
|
|
|
methods: {
|
|
|
clearFilter() {
|
|
|
this.filters.handleActions = '';
|
|
|
this.filters.handleStatus = '';
|
|
|
},
|
|
|
filterSearch() {
|
|
|
|
|
|
},
|
|
|
pageChange() {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
SelectBrand
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
.btn-row-space {
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
</style> |
...
|
...
|
|