Browse Source

框架表格搜索时页面卡死问题修改

master
lijun 2 months ago
parent
commit
430adcb88d
  1. 8
      src/components/AnjiPlus/anji-crud/anji-crud.vue

8
src/components/AnjiPlus/anji-crud/anji-crud.vue

@ -288,7 +288,6 @@
>{{ handlegetLable(scope.row, item.label) }}</el-button
>
</template>
</div>
<div v-else>
<el-button
@ -604,8 +603,11 @@ export default {
let params = this.urlEncodeObject(this.queryParams, "order,sort");
const { data, code } = await this.option.buttons.query.api(params);
if (code != "200") return;
this.records = data.records;
this.total = data.total;
this.records = [];
this.$nextTick(()=> {
this.records = data.records;
this.total = data.total;
})
},
//
handleResetForm() {

Loading…
Cancel
Save