<table class="table table-sm m-table table-bordered borderless">
       <thead class="thead-inverse" >
          <tr>
            <th>Sl</th>
            <th>Product Name</th>
            <th>Oepning Stock </th>
            <th>Current Stock</th>
         </tr>
      </thead>
      <tbody>
         <tr v-for="(details, index) in product_lists">
           <td scope="row">
             {{ index +1 }}
           </td>
           <td>
              {{details.product_name}}
           </td>
           <td>
              <span v-model="details.inventory_stocks_open_qty"></span>
          </td>
          <td>
                <input type="hidden" v-model="details.inventory_current_stocks_product_id" :value='details.id'   >
                <input type="number" v-model="details.inventory_stocks_current_qty" class="form-control form-control-sm m-input" placeholder="">
          </td>
       </tr>
   </tbody>
</table>

  • 我们如何将v-bind或:value放入由vue js填充的隐藏中

  • 我无法将Product id值放入:value = 'details.id'