Browse Source

批量删除按钮

master
songguoqiang 1 year ago
parent
commit
265283cc35
  1. 4
      src/utils/disposition/defaultButtons.ts
  2. 4
      src/views/detection/records/records.data.ts
  3. 24
      src/views/detection/recordsDetails/recordsDetails.data.ts

4
src/utils/disposition/defaultButtons.ts

@ -10,8 +10,8 @@ export function defaultBatchDeletionBtn(option:any) {
label: '批量删除', label: '批量删除',
name: 'batch', name: 'batch',
hide: false, hide: false,
type: 'warning', type: 'danger',
icon: 'ep:upload', icon: 'ep:delete',
color: '', color: '',
hasPermi: '' hasPermi: ''
}) })

4
src/views/detection/records/records.data.ts

@ -31,7 +31,7 @@ export const Records = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
filterable:true, filterable:true,
optionsAlias: { optionsAlias: {
labelField: 'name', labelField: 'code',
valueField: 'code' valueField: 'code'
} }
} }
@ -48,7 +48,7 @@ export const Records = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
filterable:true, filterable:true,
optionsAlias: { optionsAlias: {
labelField: 'name', labelField: 'code',
valueField: 'code' valueField: 'code'
} }
} }

24
src/views/detection/recordsDetails/recordsDetails.data.ts

@ -46,18 +46,18 @@ export const RecordsDetails = useCrudSchemas(reactive<CrudSchema[]>([
field: 'contents', field: 'contents',
isSearch: true, isSearch: true,
isTable:true, isTable:true,
search: { // search: {
show: true, // show: true,
component: 'Select', // component: 'Select',
api: () => getlsit(), // api: () => getlsit(),
componentProps: { // componentProps: {
filterable:true, // filterable:true,
optionsAlias: { // optionsAlias: {
labelField: 'contents', // labelField: 'contents',
valueField: 'contents' // valueField: 'contents'
} // }
} // }
}, // },
}, },
{ {
label: '检测方法', label: '检测方法',

Loading…
Cancel
Save