|
@@ -102,15 +102,16 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
let isCan=true
|
|
|
- this.setsignaTable.forEach((ele)=>{
|
|
|
- if(ele.colKey===this.htmlData1.keyname){
|
|
|
- isCan=false
|
|
|
- return
|
|
|
- }else{
|
|
|
- isCan=true
|
|
|
- }
|
|
|
- })
|
|
|
+ this.setsignaTable.forEach(element => {
|
|
|
+ if (isCan) {
|
|
|
+ // 如果满足条件,执行相应的操作,并将条件修改为 false
|
|
|
+ if (element.colKey===this.htmlData1.keyname) { // 这里 someConditionMet 是你的条件判断函数
|
|
|
+ isCan = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
if(isCan){
|
|
|
const {data: res} = await saveDdefual({
|
|
|
trIndex: this.htmlData1.tr,
|