problem description
how can I pass the value to the background as needed, and then display the value of the background processing in the corresponding place of the foreground?
the idea here should be like this: after I enter the data, click on it and pass all the data to the background for processing, and then return all the processing results in the background. I need to use the subscript to obtain the corresponding data one by one, and then display it in the corresponding foreground location
my idea is to add a ref, but I pass a value to js to display this, what does that mean?
related codes
/ / Please paste the code text below (do not replace the code with pictures)
<tr ref="tableInfo" v-for="(item,index) in items" :id="index">
<td><i-input v-model="item.STOCKCODE" size="small" placeholder=""/></td>
<td><i-input v-model="item.QUANTITY" size="small" placeholder=""/></td>
<td><i-input v-model="item.PRICE" size="small" placeholder=""/></td>
<td><i-input v-model="item.BUSINESS" size="small" placeholder=""/></td>
<td class="green_bg4" v-if="hide">A</td>
<td class="green_bg4" v-if="hide">1</td>
<td class="green_bg4" v-if="hide">1</td>
<td class="green_bg4" v-if="hide">9</td>
<td class="green_bg4" v-if="hide">5</td>
<td class="green_bg4" v-if="hide">5555</td>
</tr>
spreadsheet:function(){
this.hide=true;
var h=this.$refs.tableInfo; //
ajax.post({
req:{
service:"",
}
})
}