|
@@ -3,34 +3,17 @@
|
|
|
<BasicTable @register="registerTable" :scroll="{ x: 'max-content' }" />
|
|
<BasicTable @register="registerTable" :scroll="{ x: 'max-content' }" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
-<script lang="ts">
|
|
|
|
|
- import { defineComponent } from 'vue';
|
|
|
|
|
|
|
+<script setup lang="ts">
|
|
|
import { BasicTable, useTable } from '/@/components/Table';
|
|
import { BasicTable, useTable } from '/@/components/Table';
|
|
|
- import { getAccessStatisticsColumns } from './access.data';
|
|
|
|
|
|
|
+ import { accessStatisticsColumns } from './access.data';
|
|
|
import { getGoafAccessCount } from '../basicInfo.api';
|
|
import { getGoafAccessCount } from '../basicInfo.api';
|
|
|
|
|
|
|
|
- export default defineComponent({
|
|
|
|
|
- components: { BasicTable },
|
|
|
|
|
- setup() {
|
|
|
|
|
- const [registerTable] = useTable({
|
|
|
|
|
- api: getGoafAccessCount,
|
|
|
|
|
- columns: getAccessStatisticsColumns(),
|
|
|
|
|
- pagination: true,
|
|
|
|
|
- showIndexColumn: true,
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- return {
|
|
|
|
|
- registerTable,
|
|
|
|
|
- };
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ const [registerTable] = useTable({
|
|
|
|
|
+ api: getGoafAccessCount,
|
|
|
|
|
+ columns: accessStatisticsColumns,
|
|
|
|
|
+ pagination: true,
|
|
|
|
|
+ showIndexColumn: true,
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
- /* 合计行样式优化 */
|
|
|
|
|
- .bg-gray-50 {
|
|
|
|
|
- background-color: #f9fafb;
|
|
|
|
|
- }
|
|
|
|
|
- .font-medium {
|
|
|
|
|
- font-weight: 500;
|
|
|
|
|
- }
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|