flx:修改表单key值分页不唯一 数据不刷新问题
This commit is contained in:
parent
7683c6a6c7
commit
46e121d36a
@ -11,7 +11,7 @@
|
|||||||
:show-animation="true"
|
:show-animation="true"
|
||||||
class="w-table-row"
|
class="w-table-row"
|
||||||
v-for="(row, i) in _value"
|
v-for="(row, i) in _value"
|
||||||
:key="`row_${i}`"
|
:key="`row_${i + 1 * pageInfo.pageNo}`"
|
||||||
>
|
>
|
||||||
<template v-slot:title>
|
<template v-slot:title>
|
||||||
<view class="w-table-row-tt">
|
<view class="w-table-row-tt">
|
||||||
@ -253,7 +253,11 @@ export default {
|
|||||||
content: "确定要删除当前表格行数据吗?",
|
content: "确定要删除当前表格行数据吗?",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
|
if (this.formProps.pageFlag) {
|
||||||
|
this._value.splice(i + (this.pageInfo.pageNo - 1) * this.pageInfo.pageSize, 1);
|
||||||
|
} else {
|
||||||
this._value.splice(i, 1);
|
this._value.splice(i, 1);
|
||||||
|
}
|
||||||
this._value = this._value;
|
this._value = this._value;
|
||||||
this.resize();
|
this.resize();
|
||||||
setTimeout(() => uni.$emit("showFp"), 500);
|
setTimeout(() => uni.$emit("showFp"), 500);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user