页面树结构
转至元数据结尾
转至元数据起始

(本文档仅供参考)

问题说明

电子表格中的回写和其他按钮添加文字描述。

解决方案

V9.7及以下版本:

function main(spreadsheetReport) {
var writeback = spreadsheetReport.spreadsheetReportWriteBack;
writeback.elem_btnClearModified.value = " 清空数据修改记录";
writeback.elem_btnClearModified.style.width = "118px";
writeback.elem_btnSave.value = " 保存";
writeback.elem_btnSave.style.width = "48px";
writeback.elem_btnAppendRow.value = " 添加行"
writeback.elem_btnAppendRow.style.width = "60px";
writeback.elem_btnRemoveRow.value = " 删除行";
writeback.elem_btnRemoveRow.style.width = "60px";
spreadsheetReport.elem_btnMyFavorite.value = " 收藏";
spreadsheetReport.elem_btnMyFavorite.style.width = "60px";
spreadsheetReport.elem_btnExport.value = "导出";
spreadsheetReport.elem_btnExport.style.width = "50px";
spreadsheetReport.elem_btnRefresh.value = " 刷新";
spreadsheetReport.elem_btnRefresh.style.width = "60px";
spreadsheetReport.elem_btnPrint.value = " 打印";
spreadsheetReport.elem_btnPrint.style.width = "60px";
spreadsheetReport.elem_btnTimeConsuming.value = "耗时分析";
spreadsheetReport.elem_btnTimeConsuming.style.width = "90px";

}

V10.5版本

function main(spreadsheetReport) {
    var writeback = spreadsheetReport.spreadsheetReportWriteBack;
    writeback.elem_btnClearModified.innerText = " 清空数据修改记录";
    writeback.elem_btnClearModified.style.width = "140px";
    writeback.elem_btnSave.innerText = " 保存";
    writeback.elem_btnSave.style.width = "48px";
    writeback.elem_btnAppendRow.innerText = " 添加行"
    writeback.elem_btnAppendRow.style.width = "60px";
    writeback.elem_btnRemoveRow.innerText = " 删除行";
    writeback.elem_btnRemoveRow.style.width = "60px";
    if (writeback.elem_btnBatchImport) {
        writeback.elem_btnBatchImport.style.width = "80px";
        writeback.elem_btnBatchImport.innerText = " 批量导入";; //批量导入
    }
    if (spreadsheetReport.elem_btnExcelImport) {
        spreadsheetReport.elem_btnExcelImport.style.width = "80px";
        spreadsheetReport.elem_btnExcelImport.innerText = " Excel导入";
    }
    spreadsheetReport.elem_btnMyFavorite.innerText = " 收藏";
    spreadsheetReport.elem_btnMyFavorite.style.width = "60px";
    spreadsheetReport.elem_btnExport.innerText = "导出";
    spreadsheetReport.elem_btnExport.style.width = "50px";
    spreadsheetReport.elem_btnRefresh.innerText = " 刷新";
    spreadsheetReport.elem_btnRefresh.style.width = "60px";
    spreadsheetReport.elem_btnPrint.innerText = " 打印";
    spreadsheetReport.elem_btnPrint.style.width = "60px";
    spreadsheetReport.elem_btnTimeConsuming.innerText = " 耗时分析";
    spreadsheetReport.elem_btnTimeConsuming.style.width = "90px";

    setTimeout(function() {
        spreadsheetReport.elemImportConfig.innerText = "Excel数据导入";
        spreadsheetReport.elemImportConfig.style.width = "110px";
    }, 100);
}
  • 无标签

评论

  1. 刘晓婷 发表:

    excel数据导入按钮添加文字描述

    setTimeout(function() {
    spreadsheetReport.elemImportConfig.innerText = "excel导入";
    spreadsheetReport.elemImportConfig.style.width = "90px";
    spreadsheetReport.elem_btnExcelImport.style.fontSize = fontSize;
    }, 100);