vue.js - 如何获取嵌入在el-table中的el-rate元素的所有值
问题描述
<el-table-column label="id" width="80">
<template slot-scope="scope">
<span style="margin-left: 10px">{{(currentPage-1) * pageSize +TableMovie.indexOf(scope.row) +1 }} </span>
</template>
</el-table-column>
<el-table-column label="name" width="120">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.movie }}</span>
</template>
</el-table-column>
<el-table-column label="Rate" width="120">
<template slot-scope="scope">
<el-rate
v-model="scope.row.evaValue"
@change="handleRate(scope.row.id,scope.row.evaValue)"
show-text>
</el-rate>
我想收集每部电影的费率。当用户点击提交按钮时,数据库将相应更新。我想知道如何收集费率,因为v-model
forel-rate
是一个值。
解决方案
推荐阅读
- c++ - A pthread with SCHED_RR and higher real time priority failed to preempt a kthread in kernel module with lower priority
- python - I'm trying to adapt the example of a cnn-lstm for a univariate time series from a tutorial blog to an airline passenger problem written with LSTM
- rust - 什么是正确的 Rust 内联汇编格式?
- c++ - error: invalid types ‘double[unsigned int]’ for array subscript
- python - ImportError: cannot import name 'ConfigSerializer' from partially initialized module 'api.serializers'
- javascript - React.js app works fine in development mode but has errors after building (production mode)
- ios - UIViewRepresentable Rows In List Disappearing in SwiftUI
- python - Python - 将生成器对象放入列表列表
- azure - azure logic app retry when job already running
- javascript - How to remove error from form fields after they have been filled out?