From c76e56d9cc6f8f5e93aaf355b269ec8cac8c6b95 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 15 二月 2020 02:18:10 +0800 Subject: [PATCH] 2020-02-15 --- src/tabviews/commontable/index.jsx | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/tabviews/commontable/index.jsx b/src/tabviews/commontable/index.jsx index 067bbe5..ffc11cf 100644 --- a/src/tabviews/commontable/index.jsx +++ b/src/tabviews/commontable/index.jsx @@ -701,6 +701,14 @@ * @description 瑙﹀彂鎸夐挳寮圭獥锛堟爣绛鹃〉锛� */ triggerPopview = (btn, data) => { + const { setting } = this.state + + let _primaryId = '' + + if (data && data[0] && setting.primaryKey) { + _primaryId = data[0][setting.primaryKey] || '' + } + if (btn.OpenType === 'popview') { this.setState({ popAction: btn, @@ -718,6 +726,7 @@ param: { btn: btn, data: data, + primaryId: _primaryId, arr_field: this.state.arr_field } } @@ -742,6 +751,7 @@ tabParam: { btn: btn, data: data, + primaryId: _primaryId, arr_field: this.state.arr_field } }) -- Gitblit v1.8.0