Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
203 views
in Technique[技术] by (71.8m points)

vue表单如何设计

3DC31F7A-CE36-4B9E-81BC-90A00DDB9A4D.png
各位大佬,我有一个表单,其中一个表单原来是这样显示的。勾选了复选框后输入对应的份数,所有后端就应该获取两个数据,一个是复选框对应的值,以及复选框对应的文本框数据,但是这样获取太麻烦了,后端数据库也不怎么设计对应数据,有没有大神给一个好的办法。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

用一个字段表示值,值为大于零的整数时则勾选,并显示该数字。即不勾选则为0,勾选后输入数字(可默认某数)则为该数字


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...