From 2b31fa203f3435a582be51f45899d99164c9917a Mon Sep 17 00:00:00 2001
From: zhuguifei <312353457@qq.com>
Date: 星期四, 09 四月 2026 13:34:59 +0800
Subject: [PATCH] Merge branch 'master' of http://lanpucloud.cn:1111/r/SC/gfzl
---
ruoyi-plus-soybean/src/views/qm/judge-details/index.vue | 307 +++++++++++++++++++++++++-------------------------
1 files changed, 153 insertions(+), 154 deletions(-)
diff --git a/ruoyi-plus-soybean/src/views/qm/judge-details/index.vue b/ruoyi-plus-soybean/src/views/qm/judge-details/index.vue
index a7aa061..c0b25b8 100644
--- a/ruoyi-plus-soybean/src/views/qm/judge-details/index.vue
+++ b/ruoyi-plus-soybean/src/views/qm/judge-details/index.vue
@@ -15,7 +15,6 @@
name: 'JudgeDetailsList'
});
-
const appStore = useAppStore();
const { download } = useDownload();
const { hasAuth } = useAuth();
@@ -33,164 +32,164 @@
const { columns, columnChecks, data, getData, getDataByPage, loading, mobilePagination, scrollX } =
useNaivePaginatedTable({
- api: () => fetchGetJudgeDetailsList(searchParams.value),
- transform: response => defaultTransform(response),
- onPaginationParamsChange: params => {
- searchParams.value.pageNum = params.page;
- searchParams.value.pageSize = params.pageSize;
- },
- columns: () => [
- {
- type: 'selection',
- align: 'center',
- width: 48
+ api: () => fetchGetJudgeDetailsList(searchParams.value),
+ transform: response => defaultTransform(response),
+ onPaginationParamsChange: params => {
+ searchParams.value.pageNum = params.page;
+ searchParams.value.pageSize = params.pageSize;
},
- {
- key: 'index',
- title: $t('common.index'),
- align: 'center',
- width: 64,
- render: (_, index) => index + 1
- },
- {
- key: 'judgeId',
- title: '鍒ゅ畾涓绘爣璇�',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'itemCod',
- title: '鍒ゅ畾椤笽TEM',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'itemName',
- title: '鍒ゅ畾椤筃AME',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'value3',
- title: '鏍囧噯鍊�',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'value1',
- title: '鍒ゅ畾鍊�1',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'value2',
- title: '鍒ゅ畾鍊�2',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'location',
- title: '缂洪櫡浣嶇疆',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'cls',
- title: '鍒ゅ畾绾у埆 (A,B,C,D)',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'stdscore',
- title: '鍒嗗�兼爣鍑� (鎵e垎鏍囧噯锛屽緱鍒嗘爣鍑�),姣斿涓嶅悎鏍间竴娆℃墸澶氬皯鍒�',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'ismix',
- title: '鏍囪姝ら」鏄惁涓哄悎鎴愰」鐩紝姣斿澶栬锛屽疄闄呬笂鍏宠仈浜嗗緢澶氬瓙椤圭洰',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'rid',
- title: '鑻ユ瀛楁鏈塙UID鍊硷紝琛ㄦ槑瀹冨彲鑳戒负鍏朵粬椤圭洰鐨勫瓙椤癸紝姣斿鈥滅┖澶粹��,瀹冧负鐑熸敮澶栬椤圭洰鐨勫瓙椤�',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'category',
- title: '鑼冨洿-澶囩敤',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'decisionDes',
- title: '澶囨敞',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'updateUser',
- title: '淇敼浜�',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'operate',
- title: $t('common.operate'),
- align: 'center',
- width: 130,
- render: row => {
- const divider = () => {
- if (!hasAuth('qm:judgeDetails:edit') || !hasAuth('qm:judgeDetails:remove')) {
- return null;
- }
- return <NDivider vertical />;
- };
+ columns: () => [
+ {
+ type: 'selection',
+ align: 'center',
+ width: 48
+ },
+ {
+ key: 'index',
+ title: $t('common.index'),
+ align: 'center',
+ width: 64,
+ render: (_, index) => index + 1
+ },
+ {
+ key: 'judgeId',
+ title: '鍒ゅ畾涓绘爣璇�',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'itemCod',
+ title: '鍒ゅ畾椤笽TEM',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'itemName',
+ title: '鍒ゅ畾椤筃AME',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'value3',
+ title: '鏍囧噯鍊�',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'value1',
+ title: '鍒ゅ畾鍊�1',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'value2',
+ title: '鍒ゅ畾鍊�2',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'location',
+ title: '缂洪櫡浣嶇疆',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'cls',
+ title: '鍒ゅ畾绾у埆 (A,B,C,D)',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'stdscore',
+ title: '鍒嗗�兼爣鍑� (鎵e垎鏍囧噯锛屽緱鍒嗘爣鍑�),姣斿涓嶅悎鏍间竴娆℃墸澶氬皯鍒�',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'ismix',
+ title: '鏍囪姝ら」鏄惁涓哄悎鎴愰」鐩紝姣斿澶栬锛屽疄闄呬笂鍏宠仈浜嗗緢澶氬瓙椤圭洰',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'rid',
+ title: '鑻ユ瀛楁鏈塙UID鍊硷紝琛ㄦ槑瀹冨彲鑳戒负鍏朵粬椤圭洰鐨勫瓙椤癸紝姣斿鈥滅┖澶粹��,瀹冧负鐑熸敮澶栬椤圭洰鐨勫瓙椤�',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'category',
+ title: '鑼冨洿-澶囩敤',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'decisionDes',
+ title: '澶囨敞',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'updateUser',
+ title: '淇敼浜�',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'operate',
+ title: $t('common.operate'),
+ align: 'center',
+ width: 130,
+ render: row => {
+ const divider = () => {
+ if (!hasAuth('qm:judgeDetails:edit') || !hasAuth('qm:judgeDetails:remove')) {
+ return null;
+ }
+ return <NDivider vertical />;
+ };
- const editBtn = () => {
- if (!hasAuth('qm:judgeDetails:edit')) {
- return null;
- }
+ const editBtn = () => {
+ if (!hasAuth('qm:judgeDetails:edit')) {
+ return null;
+ }
+ return (
+ <ButtonIcon
+ text
+ type="primary"
+ icon="material-symbols:drive-file-rename-outline-outline"
+ tooltipContent={$t('common.edit')}
+ onClick={() => edit(row.id)}
+ />
+ );
+ };
+
+ const deleteBtn = () => {
+ if (!hasAuth('qm:judgeDetails:remove')) {
+ return null;
+ }
+ return (
+ <ButtonIcon
+ text
+ type="error"
+ icon="material-symbols:delete-outline"
+ tooltipContent={$t('common.delete')}
+ popconfirmContent={$t('common.confirmDelete')}
+ onPositiveClick={() => handleDelete(row.id)}
+ />
+ );
+ };
+
return (
- <ButtonIcon
- text
- type="primary"
- icon="material-symbols:drive-file-rename-outline-outline"
- tooltipContent={$t('common.edit')}
- onClick={() => edit(row.id)}
- />
+ <div class="flex-center gap-8px">
+ {editBtn()}
+ {divider()}
+ {deleteBtn()}
+ </div>
);
- };
-
- const deleteBtn = () => {
- if (!hasAuth('qm:judgeDetails:remove')) {
- return null;
- }
- return (
- <ButtonIcon
- text
- type="error"
- icon="material-symbols:delete-outline"
- tooltipContent={$t('common.delete')}
- popconfirmContent={$t('common.confirmDelete')}
- onPositiveClick={() => handleDelete(row.id)}
- />
- );
- };
-
- return (
- <div class="flex-center gap-8px">
- {editBtn()}
- {divider()}
- {deleteBtn()}
- </div>
- );
+ }
}
- }
- ]
-});
+ ]
+ });
const { drawerVisible, operateType, editingData, handleAdd, handleEdit, checkedRowKeys, onBatchDeleted, onDeleted } =
useTableOperate(data, 'id', getData);
--
Gitblit v1.9.3