Vue element.ui custom table, how to automatically add multiple input in a row of data

vue element.ui custom table, the prices in multiple input in a row of data are automatically added to calculate the total price
as shown in the figure:

Code:
http://jsrun.net/IBhKp/embedd...

Mar.27,2022
There is something wrong with the design of

. The result of the total price should be the calculated value, not a separate field.
either remove the field of the total price and change it to a calculation attribute, or
listen for changes in the data of other input boxes, and manually modify the value of the total price


// html
<input v-model="scope.row.time" type="text" class="plan-input" style="width: 50px"> = {{calculateTotal(scope.row)}}

// js
methods: {
    //
    delete_offer:function(index){
        vm.offer.splice(index,1)
    },
    calculateTotal: function (row) {
        row.total_price = row.price * row.number * row.time
      return row.total_price
    }
}

suggestion : a single component to achieve the added function

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea9591-1f4b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea9591-1f4b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?