This commit is contained in:
sjl
2024-11-11 11:09:20 +08:00
parent 50bebf451d
commit 3526432052
11 changed files with 351 additions and 64 deletions

View File

@@ -9,8 +9,8 @@
<!-- 表格 header 按钮 -->
<template #tableHeader='scope'>
<el-button type='primary' :icon='CirclePlus' @click="openDialog('add')">新增</el-button>
<el-button type='primary' :icon='Upload' plain @click='downloadFile()'>批量导出</el-button>
<el-button type='primary' :icon='Download' plain @click='importFile()'>批量导入</el-button>
<el-button type='primary' :icon='Upload' plain @click='downloadFile()'>导出</el-button>
<el-button type='primary' :icon='Download' plain @click='importFile()'>导入</el-button>
<el-button type='danger' :icon='Delete' plain :disabled='!scope.isSelected'
@click='batchDelete(scope.selectedListIds)'>
批量删除
@@ -63,7 +63,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
{
prop: 'name',
label: '名称',
search: { el: 'input' },
search: { el: 'input',order:2,offset:0.1},
minWidth: 200,
},
{
@@ -90,9 +90,9 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
},
{
prop: 'manufacturer',
label: '制作厂商',
label: '生产厂商',
enum: dictStore.getDictData('High_Cate'),
search: { el: 'select', props: { filterable: true } },
search: { el: 'select', props: { filterable: true }},
fieldNames: { label: 'name', value: 'code' },
minWidth: 200,
},
@@ -101,7 +101,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
label: '生产日期',
minWidth: 200,
search: {
span: 2,
order:1,
render: () => {
return (
<div class='flx-flex-start'>