触发率  删除序列 添加操作
  为
(相对坐标则添加'%',例如:45%)
的第 个控件
%(屏幕占比)
删除操作
操作器 {{ index + 1}} 检查和

...

methods: { checkSum() { let sum = 0; for (let ele of this.InterfaceList.operatorList) { sum += ele.triggerRate; } if (sum !== 1) { // 弹出提示或做相应处理 console.log('和不等于1'); } else { // 和等于1,继续后续操作 console.log('和等于1'); } },

div v-for=ele num in InterfaceListoperatorList key=num t-form-item label=序列 + num + 1 style=display flex; align-items center;margin-top 20px; t

原文地址: http://www.cveoy.top/t/topic/iXU8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录