From b7dd258c0a7bcb61d26e2132b49676e124211689 Mon Sep 17 00:00:00 2001 From: Moriyukina2 Date: Tue, 1 Oct 2024 17:01:26 +0900 Subject: [PATCH] =?UTF-8?q?BUG678=20[=E6=97=A5=E6=99=82=E5=8A=A0=E6=B8=9B?= =?UTF-8?q?=E7=AE=97]=E3=83=95=E3=83=AD=E3=83=BC=E4=B8=8A=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=AE=E5=A4=89=E6=95=B0=E3=81=8C=E7=B5=90=E6=9E=9C?= =?UTF-8?q?=E5=A4=89=E6=95=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kintone-addins/src/actions/datetime-calc.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/kintone-addins/src/actions/datetime-calc.ts b/plugin/kintone-addins/src/actions/datetime-calc.ts index ae72a57..731b7e2 100644 --- a/plugin/kintone-addins/src/actions/datetime-calc.ts +++ b/plugin/kintone-addins/src/actions/datetime-calc.ts @@ -5,9 +5,9 @@ import { IAction, IActionResult, IActionNode, IActionProperty, IField ,IContext, * アクションの属性定義 */ interface IDateTimeCalcProps{ - verName:IVarName; + verNameGet:string; calcOption:string; - resultVerName:string; + verName:IVarName; year:string; month:string; date:string; @@ -28,9 +28,9 @@ export class DateTimeCalcAction implements IAction{ this.actionProps=[]; //プロパティ属性の初期化 this.props={ - verName:{name:''}, + verNameGet:'', calcOption:'', - resultVerName:'', + verName:{name:''}, year:"0", month:"0", date:"0", @@ -149,7 +149,7 @@ export class DateTimeCalcAction implements IAction{ }; //基準日となる変数の値取得 - const dateValue = getContextVarByPath (context.variables,this.props.verName.name); + const dateValue = getContextVarByPath (context.variables,this.props.verNameGet); //基準日となる変数の値が空の場合、処理を終了する if(!dateValue){ @@ -179,7 +179,7 @@ export class DateTimeCalcAction implements IAction{ calculatedDate = this.calcDate(dateValue,year,month,date,hour,minute,second); //計算結果を変数に代入する - context.variables[this.props.resultVerName] = calculatedDate; + context.variables[this.props.verName.name] = calculatedDate; } result= {