|
@@ -23,10 +23,10 @@ const chartList = ref([])
|
|
|
const sheetActions = computed(() => {
|
|
|
const list = [
|
|
|
// { label: globalProperties.$t('shared_table.refresh'), types:'flushed', src: getStaticImg('table/flushed.png'), isAuth: etaTablePermission.etaTable_customize_balance_refresh},
|
|
|
- { label: globalProperties.$t('shared_table.download'), types:'download', src: getStaticImg('table/download.png'), isAuth:etaTablePermission.etaTable_customize_balance_download},
|
|
|
- { label: globalProperties.$t('shared_table.delete'), types:'delete', src: getStaticImg('table/delete.png'), isAuth: etaTablePermission.etaTable_customize_balance_del},
|
|
|
+ { label: globalProperties.$t('shared_table.download'), types:'download', src: getStaticImg('table/download.png'), isAuth: queryData.value.HaveOperaAuth && etaTablePermission.etaTable_customize_balance_download},
|
|
|
+ { label: globalProperties.$t('shared_table.delete'), types:'delete', src: getStaticImg('table/delete.png'), isAuth: queryData.value.Button && queryData.value.Button.DeleteButton && etaTablePermission.etaTable_customize_balance_del},
|
|
|
]
|
|
|
- if (chartList.value && chartList.value.length > 0) list.unshift({ label: globalProperties.$t('shared_table.chart'), types:'chart', src: getStaticImg('table/chart.png'), isAuth: etaTablePermission.etaTable_customize_balance_edit })
|
|
|
+ if (chartList.value && chartList.value.length > 0) list.unshift({ label: globalProperties.$t('shared_table.chart'), types:'chart', src: getStaticImg('table/chart.png'), isAuth: true })
|
|
|
return list
|
|
|
})
|
|
|
const customFieldName = {
|
|
@@ -249,17 +249,21 @@ function getChildTable(ParentId = route.query.id){
|
|
|
|
|
|
// 平衡表选择器
|
|
|
const onConfirm = ({ selectedOptions }) => {
|
|
|
+ const firstItemId = selectedOptions[0].ExcelInfoId
|
|
|
showPicker.value = false;
|
|
|
fieldValue.value = selectedOptions[0].ExcelName;
|
|
|
- getExcelDetail( 'load', selectedOptions[0].ExcelInfoId)
|
|
|
+ getExcelDetail( 'load',firstItemId)
|
|
|
+ getChartList(firstItemId);
|
|
|
};
|
|
|
|
|
|
// 版本选择器
|
|
|
const onConfirmVersion = ({ selectedOptions }) => {
|
|
|
+ const firstItemId = selectedOptions[0].ExcelInfoId
|
|
|
showVersionPicker.value = false;
|
|
|
fieldValueVersion.value = selectedOptions[0].VersionName;
|
|
|
// getExcelDetail( 'load', selectedOptions[0].ExcelInfoId)
|
|
|
- getChildTable(selectedOptions[0].ExcelInfoId);
|
|
|
+ getChildTable(firstItemId);
|
|
|
+ getChartList(firstItemId);
|
|
|
};
|
|
|
|
|
|
// 关联图表页
|