From 4b34fa82937a6506d40d2dd42d163a73692abe72 Mon Sep 17 00:00:00 2001
From: bai <1643359946@qq.com>
Date: Sun, 16 Apr 2023 14:17:50 +0800
Subject: [PATCH] =?UTF-8?q?2023=E5=B9=B44=E6=9C=8816=E6=97=A5=20=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../jeecg/JVxeTable/src/hooks/useMethods.ts | 19 +
.../jeecg/OnLine/hooks/usePopBiz.ts | 6 +-
src/views/kc/ktgl/KcKechengbiao.data.ts | 2 +-
src/views/kc/ktgl/KcKechengbiaoList.vue | 547 +++++++++++++++---
src/views/kc/ktgl/KcKetangbiaoList.vue | 9 +-
.../kc/ktgl/components/KcKechengbiaoForm.vue | 64 +-
.../kc/ktgl/components/KcKetangbiaoForm.vue | 142 +++--
7 files changed, 642 insertions(+), 147 deletions(-)
diff --git a/src/components/jeecg/JVxeTable/src/hooks/useMethods.ts b/src/components/jeecg/JVxeTable/src/hooks/useMethods.ts
index 4d042e0..c3b39e3 100644
--- a/src/components/jeecg/JVxeTable/src/hooks/useMethods.ts
+++ b/src/components/jeecg/JVxeTable/src/hooks/useMethods.ts
@@ -49,6 +49,9 @@ export function useMethods(props: JVxeTableProps, { emit }, data: JVxeDataProps,
isDisabledRow,
recalcDisableRows,
rowResort,
+ toggleCheckboxRow,
+ clearCheckboxRow,
+ setCheckboxRow,
};
// 多级联动
@@ -157,6 +160,22 @@ export function useMethods(props: JVxeTableProps, { emit }, data: JVxeDataProps,
}
}
+ // 后补的,变更选择
+ function toggleCheckboxRow(row){
+ let xTable = getXTable();
+ return xTable.toggleCheckboxRow(row);
+ }
+
+ function clearCheckboxRow(){
+ let xTable = getXTable();
+ return xTable.clearCheckboxRow();
+ }
+
+ function setCheckboxRow(row,isCheck){
+ let xTable = getXTable();
+ return xTable.setCheckboxRow(row,isCheck);
+ }
+
// 单元格被激活编辑时会触发该事件
function handleEditActived({ column }) {
// 执行增强
diff --git a/src/components/jeecg/OnLine/hooks/usePopBiz.ts b/src/components/jeecg/OnLine/hooks/usePopBiz.ts
index e5fda66..a45da2a 100644
--- a/src/components/jeecg/OnLine/hooks/usePopBiz.ts
+++ b/src/components/jeecg/OnLine/hooks/usePopBiz.ts
@@ -532,6 +532,10 @@ export function usePopBiz(props, tableRef?) {
if (arg == 1) {
pagination.current = 1;
}
+ if(!unref(cgRpConfigId)){//最初始没有这个ID,查询会报404,添加这个避免报错
+ console.log(`未找到cgRpConfigId!`);
+ return;
+ }
let params = getQueryParams(); //查询条件
console.log('params', params);
loading.value = true;
@@ -560,7 +564,7 @@ export function usePopBiz(props, tableRef?) {
}
dataSource.value = data.records;
//update-begin-author:taoyan date:2023-2-11 for:issues/356 在线报表分页有问题
- tableRef.value && tableRef.value.setPagination({
+ tableRef?.value && tableRef.value.setPagination({
total: Number(data.total)
})
//update-end-author:taoyan date:2023-2-11 for:issues/356 在线报表分页有问题
diff --git a/src/views/kc/ktgl/KcKechengbiao.data.ts b/src/views/kc/ktgl/KcKechengbiao.data.ts
index 69b57e3..e6a2c03 100644
--- a/src/views/kc/ktgl/KcKechengbiao.data.ts
+++ b/src/views/kc/ktgl/KcKechengbiao.data.ts
@@ -12,7 +12,7 @@ export const columns: BasicColumn[] = [
// ifShow: false,
},
{
- title: '课程编号',
+ title: '课程号',
align: "center",
width: '300px',
dataIndex: 'kcbh'
diff --git a/src/views/kc/ktgl/KcKechengbiaoList.vue b/src/views/kc/ktgl/KcKechengbiaoList.vue
index 53726e3..fd3364c 100644
--- a/src/views/kc/ktgl/KcKechengbiaoList.vue
+++ b/src/views/kc/ktgl/KcKechengbiaoList.vue
@@ -5,37 +5,38 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -52,13 +53,43 @@
-
-
-
-
- 新增
+
+
+
+ 新增
+ 修改
+ 删除
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无文件
- 下载
-
-
+
+
+
-
+