|
@@ -1,19 +1,19 @@
|
|
|
<template>
|
|
|
- <a-card class="backCard">
|
|
|
- <div class="pad12">
|
|
|
+ <a-card class="back-card">
|
|
|
+ <div class="pad-12">
|
|
|
<a-table
|
|
|
- size="small"
|
|
|
+ :columns="loginManagentColumns"
|
|
|
+ :dataSource="loginManagentData"
|
|
|
+ :loading="loading"
|
|
|
:pagination="pagination"
|
|
|
:rowKey="
|
|
|
(record, index) => {
|
|
|
return index;
|
|
|
}"
|
|
|
+ :scroll="{ x: 1520 }"
|
|
|
bordered
|
|
|
- :columns="loginManagentColumns"
|
|
|
- :dataSource="loginManagentData"
|
|
|
+ size="small"
|
|
|
@change="handleOuterTableChange"
|
|
|
- :loading="loading"
|
|
|
- :scroll="{ x: 1520 }"
|
|
|
>
|
|
|
<template slot="sortNumber" slot-scope="text, row, index"
|
|
|
>{{ (pagination.pageNo - 1) * pagination.pageSize + 1 + index }}
|
|
@@ -123,10 +123,14 @@ export default {
|
|
|
this.$api.systemInitDvpLogManage(data).then(res => {
|
|
|
if (!res.flag) {
|
|
|
this.$notification.error({ message: res.message });
|
|
|
+ } else {
|
|
|
+ _this.loginManagentData = res.data.data || [];
|
|
|
+ _this.pagination.total = res.data.total !== null && res.data.total !== undefined ? res.data.total : 0;
|
|
|
+ _this.each(_this.loginManagentData);
|
|
|
}
|
|
|
- _this.loginManagentData = res.data.data || [];
|
|
|
- _this.pagination.total = res.data.data.total || 0;
|
|
|
- _this.each(_this.loginManagentData);
|
|
|
+ })
|
|
|
+ .catch(error => {
|
|
|
+ console.error("Error occurred: " + error);
|
|
|
})
|
|
|
.finally(() => {
|
|
|
_this.loading = false;
|
|
@@ -174,11 +178,11 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-.backCard {
|
|
|
+.back-card {
|
|
|
border: hidden;
|
|
|
border-radius: 0px;
|
|
|
}
|
|
|
-.pad12 {
|
|
|
+.pad-12 {
|
|
|
padding: 12px 0;
|
|
|
}
|
|
|
</style>
|