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