修改配置.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import qs from 'query-string';
|
import qs from 'query-string';
|
||||||
import { DataGrid, Pagination } from '@/types/global';
|
import { DataGrid, Pagination } from '@/types/global';
|
||||||
|
import { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${table.comment}创建请求
|
* ${table.comment}创建请求
|
||||||
@@ -48,7 +49,7 @@ export interface ${vue.featureEntity}QueryRequest extends Pagination {
|
|||||||
/**
|
/**
|
||||||
* ${table.comment}查询响应
|
* ${table.comment}查询响应
|
||||||
*/
|
*/
|
||||||
export interface ${vue.featureEntity}QueryResponse {
|
export interface ${vue.featureEntity}QueryResponse extends TableData {
|
||||||
#foreach($field in ${table.fields})
|
#foreach($field in ${table.fields})
|
||||||
#if("$field.propertyType" == "String")
|
#if("$field.propertyType" == "String")
|
||||||
${field.propertyName}?: string;
|
${field.propertyName}?: string;
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
import {} from '../types/const';
|
import {} from '../types/const';
|
||||||
import { toOptions } from '@/utils/enum';
|
import { toOptions } from '@/utils/enum';
|
||||||
|
|
||||||
const tableRenderData = ref<${vue.featureEntity}QueryResponse[]>();
|
const tableRenderData = ref<${vue.featureEntity}QueryResponse[]>([]);
|
||||||
const { loading, setLoading } = useLoading();
|
const { loading, setLoading } = useLoading();
|
||||||
const emits = defineEmits(['openAdd', 'openUpdate']);
|
const emits = defineEmits(['openAdd', 'openUpdate']);
|
||||||
|
|
||||||
|
|||||||
@@ -56,10 +56,6 @@
|
|||||||
@page-change="(page) => fetchTableData(page, pagination.pageSize)"
|
@page-change="(page) => fetchTableData(page, pagination.pageSize)"
|
||||||
@page-size-change="(size) => fetchTableData(pagination.current, size)"
|
@page-size-change="(size) => fetchTableData(pagination.current, size)"
|
||||||
:bordered="false">
|
:bordered="false">
|
||||||
<!-- 名称 -->
|
|
||||||
<template #name="{ record }">
|
|
||||||
<span class="span-blue">{{ record.name }}</span>
|
|
||||||
</template>
|
|
||||||
<!-- 编码 -->
|
<!-- 编码 -->
|
||||||
<template #code="{ record }">
|
<template #code="{ record }">
|
||||||
<a-tag>{{ record.code }}</a-tag>
|
<a-tag>{{ record.code }}</a-tag>
|
||||||
|
|||||||
@@ -70,10 +70,6 @@
|
|||||||
@page-change="(page) => fetchTableData(page, pagination.pageSize)"
|
@page-change="(page) => fetchTableData(page, pagination.pageSize)"
|
||||||
@page-size-change="(size) => fetchTableData(pagination.current, size)"
|
@page-size-change="(size) => fetchTableData(pagination.current, size)"
|
||||||
:bordered="false">
|
:bordered="false">
|
||||||
<!-- 用户名 -->
|
|
||||||
<template #username="{ record }">
|
|
||||||
<span class="span-blue">{{ record.username }}</span>
|
|
||||||
</template>
|
|
||||||
<!-- 状态 -->
|
<!-- 状态 -->
|
||||||
<template #status="{ record }">
|
<template #status="{ record }">
|
||||||
<a-tag :color="getEnumValue(record.status, UserStatusEnum,'color')">
|
<a-tag :color="getEnumValue(record.status, UserStatusEnum,'color')">
|
||||||
|
|||||||
Reference in New Issue
Block a user