devicesmgt/sgzb-ui/src/views/scrapManage/Inventory/index.vue

52 lines
1.3 KiB
Vue
Raw Normal View History

2024-04-17 13:20:11 +08:00
<template>
2024-04-18 17:58:05 +08:00
<div class="app-container">
<!-- 盘点报废 -->
2024-04-24 08:46:24 +08:00
<TableModel :config="config" :handleWidth="`240px`">
<template slot="export">
<el-row :gutter="10" class="mb8">
<el-button
plain
size="mini"
2024-09-20 14:24:39 +08:00
type="success"
icon="el-icon-download"
2024-04-24 08:46:24 +08:00
>导出数据</el-button
>
</el-row>
</template>
<!-- 列表操作栏 -->
<template slot="handle" slot-scope="data">
<el-button
size="mini"
type="text"
:key="btn.id"
2024-09-20 14:24:39 +08:00
v-for="btn in config.handleBtn"
2024-04-24 08:46:24 +08:00
@click="handleBtn(data, btn.id)"
>
{{ btn.btn_title }}
</el-button>
</template>
</TableModel>
2024-04-17 13:20:11 +08:00
</div>
</template>
<script>
2024-09-20 14:24:39 +08:00
import { config } from './config'
import TableModel from '@/components/TableModel'
export default {
name: 'Inventory',
components: {
TableModel,
},
data() {
return {
config,
}
},
methods: {
handleBtn() {},
},
}
2024-04-17 13:20:11 +08:00
</script>
<style></style>