项目初始化

This commit is contained in:
lyd
2022-11-15 17:40:06 +08:00
parent 3324a042f4
commit 4605e62f1d
41 changed files with 4444 additions and 2010 deletions

View File

@@ -48,8 +48,12 @@
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="device_code" label="设备编码" />
<el-table-column prop="device_name" label="设备名称" min-width="200" show-overflow-tooltip />
<el-table-column prop="device_model" label="设备型号" min-width="200" show-overflow-tooltip />
<el-table-column prop="device_name" label="设备名称" min-width="100" show-overflow-tooltip />
<el-table-column prop="device_model" label="设备型号" min-width="100" show-overflow-tooltip >
<template slot-scope="scope">
{{ dict.label.pdm_device_type[scope.row.device_model] }}
</template>
</el-table-column>
<el-table-column prop="productivity" label="设备产能" />
<el-table-column label="是否启用" align="center" prop="is_used">
<template slot-scope="scope">
@@ -89,6 +93,7 @@ const defaultForm = { device_id: null, device_code: null, device_name: null, dev
export default {
name: 'Device',
components: { pagination, crudOperation, rrOperation, udOperation },
dicts: ['pdm_device_type'],
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '生产设备', url: 'api/device', idField: 'device_id', sort: 'device_id,desc',