|
@@ -155,12 +155,12 @@
|
|
|
const arr = options.filter((it)=>{
|
|
|
return it.name;
|
|
|
});
|
|
|
- const arrLen = arr.length;
|
|
|
+ /*const arrLen = arr.length;
|
|
|
if(arrLen < 4) {
|
|
|
for (let i = 0; i < 4 - arrLen; i++) {
|
|
|
- arr.push(...utils.getInitRow(initRow,1))
|
|
|
+ arr.push(Object.assign({},initRow,{orderNo:arr.length}));
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
this.rows = arr;
|
|
|
const items = utils.simpleOptionData(this.rows);
|
|
|
this.$emit('pushValues',items);
|
|
@@ -195,7 +195,7 @@
|
|
|
},
|
|
|
methods:{
|
|
|
addRow(){
|
|
|
- this.rows.push(utils.getInitRow(initRow,1));
|
|
|
+ this.rows.push(Object.assign({},initRow,{orderNo:this.rows.length}));
|
|
|
},
|
|
|
selectRow(index){
|
|
|
this.focusOn = index;
|