修复bug,新增登记信息节流
This commit is contained in:
parent
7d2a2850a5
commit
f8855e3ee0
@ -144,6 +144,7 @@
|
|||||||
task_id: -1,
|
task_id: -1,
|
||||||
is_admin: false,
|
is_admin: false,
|
||||||
list: [],
|
list: [],
|
||||||
|
showView: false,
|
||||||
current: 0,
|
current: 0,
|
||||||
tabLists: [{
|
tabLists: [{
|
||||||
name: '未更新',
|
name: '未更新',
|
||||||
@ -161,6 +162,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
// 是否显示查看和更新按钮
|
||||||
|
if(!this.$store.state.app.userInfo.admin_id && this.$store.state.app.userInfo.is_captain){
|
||||||
|
this.showView = true;
|
||||||
|
}
|
||||||
// 判断是否包含小队长id
|
// 判断是否包含小队长id
|
||||||
if (options.id) this.user_id = options.id;
|
if (options.id) this.user_id = options.id;
|
||||||
else if (this.$store.state.app.userInfo.admin_id == 0) { //如果用户是小队长,将带上自己的id
|
else if (this.$store.state.app.userInfo.admin_id == 0) { //如果用户是小队长,将带上自己的id
|
||||||
@ -180,12 +185,6 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
// 是否显示查看和更新按钮
|
|
||||||
showView() {
|
|
||||||
return !this.$store.state.app.userInfo.admin_id && this.$store.state.app.userInfo.is_captain;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.loadInformationList();
|
this.loadInformationList();
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
</u--form>
|
</u--form>
|
||||||
<!-- <button @click="addArchives" class="btn">完成登记</button> -->
|
<!-- <button @click="addArchives" class="btn">完成登记</button> -->
|
||||||
</view>
|
</view>
|
||||||
<mybtn text="完成登记" @click="addArchives"></mybtn>
|
<mybtn text="完成登记" @click="$u.throttle(addArchives, 2000)"></mybtn>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user