如何将输入值控制为无功形式的整数

时间:2019-04-19 09:52:43

标签: input angular-reactive-forms

.

我将输入步长设置为1,但是它仍然支持输入小数,我想显示的是:当您从中打开它并在此输入框中输入值时,它禁止用户输入小数,只有整数有效

1 个答案:

答案 0 :(得分:0)

尝试一下

select case when [REDACTED] END as Dept, Type, max([2019W01]) as [2019W01], max([2019W02]) as [2019W02], max([2019W03]) as [2019W03], max([2019W04]) as [2019W04]
from ( select 
   ltrim(rtrim(Plant)) as Plant
  ,cast(ltrim(rtrim(WeekNo)) as varchar) as WeekNo
  ,substring(cast(ltrim(rtrim(WeekNo)) as [REDACTED]
from [REDACTED] ) as a
unpivot 
(Value for Type in (A,B,C)) as sq
pivot (
  min(Value)
  for WeekNo in ([2019W01], [2019W02], [2019W03], [2019W04])
  ) as Pvt
group by Dept, Type