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;