From d2043ba857c7130d54fd5ca7f6c5baf00d50d7e3 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 31 Jan 2023 14:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B010?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/nk/User.php | 2 +- app/admin/view/nk/user/index.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/admin/controller/nk/User.php b/app/admin/controller/nk/User.php index f0f38ea..89eb960 100644 --- a/app/admin/controller/nk/User.php +++ b/app/admin/controller/nk/User.php @@ -395,7 +395,7 @@ class User extends BaseController ->where('user_id', $params['id'])->find(); //家庭信息 if ($find == null || $find['householder_id'] == 0) { - $family = []; + $family['list'] = []; } else { if ($find['householder_id'] == $find['user_id']) { $family['name'] = '本人'; diff --git a/app/admin/view/nk/user/index.html b/app/admin/view/nk/user/index.html index 815ca17..af1e0f0 100644 --- a/app/admin/view/nk/user/index.html +++ b/app/admin/view/nk/user/index.html @@ -97,7 +97,9 @@
{/if} @@ -236,11 +238,11 @@ el: '#demo2', prop: { name: 'name', - value: 'code', + value: 'id', }, data: [], radio: true, - initValue: ["{$row.village_code}"], + initValue: ["{$row.village_id}"], disabled: group_access == 2 ? true : false, }) var demo3 = xmSelect.render({