修复bug,新增登记信息节流

This commit is contained in:
wpf 2023-09-03 00:46:40 +08:00
parent 7d2a2850a5
commit f8855e3ee0
2 changed files with 6 additions and 7 deletions

View File

@ -144,6 +144,7 @@
task_id: -1,
is_admin: false,
list: [],
showView: false,
current: 0,
tabLists: [{
name: '未更新',
@ -161,6 +162,10 @@
}
},
onLoad(options) {
//
if(!this.$store.state.app.userInfo.admin_id && this.$store.state.app.userInfo.is_captain){
this.showView = true;
}
// id
if (options.id) this.user_id = options.id;
else if (this.$store.state.app.userInfo.admin_id == 0) { //,id
@ -180,12 +185,6 @@
},
onShow() {
},
computed: {
//
showView() {
return !this.$store.state.app.userInfo.admin_id && this.$store.state.app.userInfo.is_captain;
}
},
onReachBottom() {
this.loadInformationList();

View File

@ -101,7 +101,7 @@
</u--form>
<!-- <button @click="addArchives" class="btn">完成登记</button> -->
</view>
<mybtn text="完成登记" @click="addArchives"></mybtn>
<mybtn text="完成登记" @click="$u.throttle(addArchives, 2000)"></mybtn>
</view>
</template>