This commit is contained in:
AN
2025-05-30 17:28:44 +08:00
3 changed files with 3 additions and 11 deletions

View File

@ -1,4 +1,3 @@
#set($scrollX = $columns.size() * 120 + 242)
<script setup lang="tsx"> <script setup lang="tsx">
import { NDivider } from 'naive-ui'; import { NDivider } from 'naive-ui';
import { jsonClone } from '@sa/utils'; import { jsonClone } from '@sa/utils';
@ -57,12 +56,6 @@ const {
align: 'center', align: 'center',
width: 48 width: 48
}, },
{
key: 'index',
title: $t('common.index'),
align: 'center',
width: 64
},
#foreach ($column in $columns) #foreach ($column in $columns)
#if($column.list) #if($column.list)
{ {
@ -208,7 +201,7 @@ function handleExport() {
size="small" size="small"
:indent="32" :indent="32"
:flex-height="!appStore.isMobile" :flex-height="!appStore.isMobile"
:scroll-x="$scrollX" :scroll-x="962"
:loading="loading" :loading="loading"
remote remote
:row-key="row => row.#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end" :row-key="row => row.#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end"

View File

@ -1,4 +1,3 @@
#set($scrollX = $columns.size() * 120 + 242)
<script setup lang="tsx"> <script setup lang="tsx">
import { NDivider } from 'naive-ui'; import { NDivider } from 'naive-ui';
import { fetchBatchDelete${BusinessName}, fetchGet${BusinessName}List } from '@/service/api/${moduleName}/${businessName}'; import { fetchBatchDelete${BusinessName}, fetchGet${BusinessName}List } from '@/service/api/${moduleName}/${businessName}';
@ -171,7 +170,7 @@ function handleExport() {
:data="data" :data="data"
size="small" size="small"
:flex-height="!appStore.isMobile" :flex-height="!appStore.isMobile"
:scroll-x="$scrollX" :scroll-x="962"
:loading="loading" :loading="loading"
remote remote
:row-key="row => row.#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end" :row-key="row => row.#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end"

View File

@ -135,7 +135,7 @@ const {
text text
type="primary" type="primary"
icon="material-symbols:database" icon="material-symbols:database"
tooltipContent="数据范权限" tooltipContent="数据范权限"
onClick={() => handleDataScope(row)} onClick={() => handleDataScope(row)}
/> />
); );