|
|
@ -225,7 +225,7 @@ export const tableConfig = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
headerActions: [ |
|
|
|
{ |
|
|
|
label: '编辑', |
|
|
|
name: 'groupEdit', |
|
|
|
name: 'GroupEdit', |
|
|
|
type: 'primary', |
|
|
|
dynamicDisabled: () => !defaultParams.value?.id, |
|
|
|
handle: (a, b) => { |
|
|
@ -234,7 +234,7 @@ export const tableConfig = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批量删除', |
|
|
|
name: 'groupBatDelete', |
|
|
|
name: 'GroupDelete', |
|
|
|
type: 'primary', |
|
|
|
dynamicDisabled: (data: any) => { |
|
|
|
return data.list.length === 0; |
|
|
@ -247,7 +247,7 @@ export const tableConfig = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批量导出', |
|
|
|
name: 'groupExports', |
|
|
|
name: 'GroupPointExports', |
|
|
|
type: 'primary', |
|
|
|
dynamicDisabled: (data: any) => { |
|
|
|
return data.list.length === 0; |
|
|
@ -259,7 +259,7 @@ export const tableConfig = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批量导入', |
|
|
|
name: 'groupImport', |
|
|
|
name: 'GroupPointImport', |
|
|
|
type: 'primary', |
|
|
|
extra: { |
|
|
|
// api: props.postImportApi, // 导入接口名
|
|
|
@ -277,7 +277,7 @@ export const tableConfig = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
|
|
|
|
{ |
|
|
|
label: '模板下载', |
|
|
|
name: 'groupTemDownload', |
|
|
|
name: 'GroupTempDownload', |
|
|
|
type: 'primary', |
|
|
|
handle: () => { |
|
|
|
// http.get('/asset/file/whiteListUser.xlsx');
|
|
|
@ -291,7 +291,7 @@ export const tableConfig = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
actions: [ |
|
|
|
{ |
|
|
|
label: '删除', |
|
|
|
name: 'groupDelete', |
|
|
|
name: 'GroupDelete', |
|
|
|
dynamicParams: { linkIds: 'linkId[]' }, |
|
|
|
confirm: true, |
|
|
|
isClearCheck: true, |
|
|
@ -346,7 +346,7 @@ export const tableConfigCal = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
headerActions: [ |
|
|
|
{ |
|
|
|
label: '编辑', |
|
|
|
name: 'groupEdit', |
|
|
|
name: 'GroupPointEdit', |
|
|
|
type: 'primary', |
|
|
|
handle: (a, b) => { |
|
|
|
el.value.toggle(); |
|
|
@ -354,7 +354,7 @@ export const tableConfigCal = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批量删除', |
|
|
|
name: 'groupTemDownload', |
|
|
|
name: 'GroupPointDelete', |
|
|
|
type: 'primary', |
|
|
|
dynamicDisabled: (data: any) => { |
|
|
|
return data.list.length === 0; |
|
|
@ -367,7 +367,7 @@ export const tableConfigCal = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批量导出', |
|
|
|
name: 'groupExports', |
|
|
|
name: 'GroupPointExports', |
|
|
|
type: 'primary', |
|
|
|
dynamicDisabled: (data: any) => { |
|
|
|
return data.list.length === 0; |
|
|
@ -379,7 +379,7 @@ export const tableConfigCal = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批量导入', |
|
|
|
name: 'groupImport', |
|
|
|
name: 'GroupPointImport', |
|
|
|
type: 'primary', |
|
|
|
extra: { |
|
|
|
// api: props.postImportApi, // 导入接口名
|
|
|
@ -397,7 +397,7 @@ export const tableConfigCal = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
|
|
|
|
{ |
|
|
|
label: '模板下载', |
|
|
|
name: 'groupTemDownload', |
|
|
|
name: 'GroupTempDownload', |
|
|
|
type: 'primary', |
|
|
|
handle: () => { |
|
|
|
// http.get('/asset/file/whiteListUser.xlsx');
|
|
|
@ -407,7 +407,7 @@ export const tableConfigCal = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
|
|
|
|
{ |
|
|
|
label: '批量分组', |
|
|
|
name: 'groupBatGroup', |
|
|
|
name: 'GroupBatchGroup', |
|
|
|
type: 'primary', |
|
|
|
dynamicDisabled: (data: any) => { |
|
|
|
return data.list.length === 0; |
|
|
@ -421,7 +421,7 @@ export const tableConfigCal = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '公式编辑', |
|
|
|
name: 'groupFormulaEdit', |
|
|
|
name: 'GroupFormulaEdit', |
|
|
|
type: 'primary', |
|
|
|
handle: () => { |
|
|
|
elFormula.value.toggle(); |
|
|
@ -435,7 +435,7 @@ export const tableConfigCal = (el, elGroup, elFormula, defaultParams) => { |
|
|
|
actions: [ |
|
|
|
{ |
|
|
|
label: '删除', |
|
|
|
name: 'groupDelete', |
|
|
|
name: 'GroupPointDelete', |
|
|
|
dynamicParams: { ids: 'id[]' }, |
|
|
|
confirm: true, |
|
|
|
isReload: true, |
|
|
|