<template>
|
<TableLayout>
|
<template v-slot:table-wrap>
|
<ul class="toolbar">
|
<li><el-button type="primary" icon="el-icon-plus" @click="$refs.newAsset.open('新建资产分类')">新建</el-button></li>
|
</ul>
|
<el-table row-key="id" :tree-props="{ children: 'childCategoryList' }" v-loading="isWorking.search"
|
:data="dataList" stripe>
|
<el-table-column prop="name" label="资产分类" min-width="100px"></el-table-column>
|
<el-table-column prop="sortnum" label="排序码" min-width="100px"></el-table-column>
|
<el-table-column label="操作" min-width="120" fixed="right">
|
<template slot-scope="{row}">
|
<el-button type="text" icon="el-icon-edit">编辑</el-button>
|
<el-button type="text" icon="el-icon-delete">删除</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
<pagination
|
@size-change="handleSizeChange"
|
@current-change="handlePageChange"
|
:pagination="tableData.pagination"
|
></pagination>
|
</template>
|
<newAsset ref="newAsset" />
|
</TableLayout>
|
</template>
|
|
<script>
|
import BaseTable from '@/components/base/BaseTable'
|
import TableLayout from '@/layouts/TableLayout'
|
import Pagination from '@/components/common/Pagination'
|
import newAsset from './components/newAsset'
|
export default {
|
name: 'assetManagement',
|
extends: BaseTable,
|
components: { TableLayout, Pagination, newAsset },
|
data() {
|
return {
|
dataList: []
|
}
|
},
|
created() {
|
this.config({
|
module: '车辆信息表',
|
api: '/business/category',
|
'field.id': 'id',
|
'field.main': 'id'
|
})
|
},
|
methods: {
|
|
}
|
}
|
</script>
|