update 设备信息新增编辑
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<section class="attr-form-section" v-if="dataForm.id">
|
||||
<h3>
|
||||
{{ $t('ws.eqbind') }}
|
||||
<el-button type="text" v-if="!showAttrForm" @click="addEq">{{ $t('add') }}</el-button>
|
||||
<!-- <el-button type="text" v-if="!showAttrForm" @click="addEq">{{ $t('add') }}</el-button> -->
|
||||
</h3>
|
||||
<div class="table" v-if="!showAttrForm">
|
||||
<base-table :page="page" :size="limit" :data="eqList" :table-head-configs="tableProps" :max-height="calcMaxHeight(8)" @operate-event="handleOperations" @refreshDataList="getDataList" />
|
||||
@@ -68,8 +68,8 @@
|
||||
import i18n from '@/i18n'
|
||||
import BaseTable from '@/components/base-table'
|
||||
import SmallTitle from '@/components/small-title'
|
||||
import { pick } from 'lodash/object'
|
||||
import TableOperateComponent from '@/components/base-table/components/operationComponent'
|
||||
// import { pick } from 'lodash/object'
|
||||
// import TableOperateComponent from '@/components/base-table/components/operationComponent'
|
||||
import AttrForm from './workshopSectionDialogAttrForm.vue'
|
||||
import { calcMaxHeight } from '@/utils'
|
||||
const tableProps = [
|
||||
@@ -79,14 +79,14 @@ const tableProps = [
|
||||
},
|
||||
{ name: i18n.t('eq.name'), prop: 'equipmentName' },
|
||||
{ name: i18n.t('dept.sort'), prop: 'sort' },
|
||||
{
|
||||
name: i18n.t('handle'),
|
||||
prop: 'operations',
|
||||
fixed: 'right',
|
||||
width: 180,
|
||||
subcomponent: TableOperateComponent,
|
||||
options: ['edit', 'delete']
|
||||
}
|
||||
// {
|
||||
// name: i18n.t('handle'),
|
||||
// prop: 'operations',
|
||||
// fixed: 'right',
|
||||
// width: 180,
|
||||
// subcomponent: TableOperateComponent,
|
||||
// options: ['edit', 'delete']
|
||||
// }
|
||||
]
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user