init
This commit is contained in:
25
src/個別配慮/main.js
Normal file
25
src/個別配慮/main.js
Normal file
@@ -0,0 +1,25 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
const APP_ENV = env["個別配慮"];
|
||||
|
||||
kintone.events.on("app.record.index.show", (event) => {
|
||||
const headerSpace = getHeaderSpace('single-label-line');
|
||||
|
||||
const elements = createBtnGroupArea('extract-action-area', '帳票出力', handleButtonClick, {
|
||||
btnElId: 'extract-btn',
|
||||
yearElId: 'extract-year',
|
||||
monthElId: 'extract-month',
|
||||
})
|
||||
|
||||
if (!elements) {
|
||||
return;
|
||||
}
|
||||
|
||||
headerSpace.appendChild(elements['extract-action-area']);
|
||||
});
|
||||
|
||||
function handleButtonClick(e, { year, month }) {
|
||||
const fileName = getExcelName(APP_ENV, year + month);
|
||||
console.log(fileName);
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user