From 40791d9ce84141e70ccb5a13bc110ce836d834a3 Mon Sep 17 00:00:00 2001 From: wangzimeng <3297159934@qq.com> Date: Tue, 12 Aug 2025 14:10:28 +0800 Subject: [PATCH] =?UTF-8?q?3=E3=80=81=E4=BF=AE=E6=94=B9=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF=E7=9A=84=E6=8C=89=E9=92=AE=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageB/team/index.vue | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/packageB/team/index.vue b/packageB/team/index.vue index 53b5e2f..c5372ec 100644 --- a/packageB/team/index.vue +++ b/packageB/team/index.vue @@ -38,7 +38,7 @@ + v-model="form.name" @confirm="checkFormValidity"/> @@ -48,7 +48,7 @@ + v-model="form.idnum" @confirm="checkFormValidity"/> @@ -58,7 +58,7 @@ + v-model="form.mobile" @confirm="checkFormValidity"/> @@ -79,7 +79,7 @@ - 确认 + 确认 确认 @@ -92,6 +92,7 @@ data() { return { privacyShow: false, + btnShow: false, show: false, form: { name: '', @@ -101,18 +102,36 @@ isAdd: 1, list: [] } + }, + watch() { + }, onLoad() { this.getList() }, methods: { + checkFormValidity() { + console.log('checkFormValidity?',this.form); + if(this.form.name.length > 0 && this.form.idnum.length > 0 && this.form.mobile.length > 0 ) { + console.log('true?'); + this.btnShow = true; + } + console.log('btnShow', this.btnShow); + }, edit(item) { this.isAdd = 0; this.form.name = item.name; this.form.idnum = item.idnum; this.form.ids = item.id; this.form.mobile = item.mobile; + this.form.open = item.open; this.show = true; + if(this.form.open == 0) { + this.privacyShow = true; + }else { + this.privacyShow = false; + } + this.checkFormValidity(); }, del(item) { var that = this;