From 4059e7270254ffaca751a2ede2e79412bff13e87 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 3 Jan 2024 17:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=94=E8=B5=9B=E6=9D=83=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/comp/Comp.data.ts | 5 + .../src/views/comp/CompList.vue | 16 +- .../src/views/comp/components/CompFormqz.vue | 159 ++++++++++++++++++ .../src/views/comp/components/CompModalqz.vue | 86 ++++++++++ 4 files changed, 265 insertions(+), 1 deletion(-) create mode 100644 jeecgboot-vue3-master/src/views/comp/components/CompFormqz.vue create mode 100644 jeecgboot-vue3-master/src/views/comp/components/CompModalqz.vue diff --git a/jeecgboot-vue3-master/src/views/comp/Comp.data.ts b/jeecgboot-vue3-master/src/views/comp/Comp.data.ts index 4eb0b032..4d4ed48e 100644 --- a/jeecgboot-vue3-master/src/views/comp/Comp.data.ts +++ b/jeecgboot-vue3-master/src/views/comp/Comp.data.ts @@ -52,6 +52,11 @@ export const columns: BasicColumn[] = [ align: 'center', dataIndex: 'compOrder', }, + { + title: '比赛权重', + align: 'center', + dataIndex: 'compweight', + }, { title: '负责部门', align: 'center', diff --git a/jeecgboot-vue3-master/src/views/comp/CompList.vue b/jeecgboot-vue3-master/src/views/comp/CompList.vue index cad003ce..9a25328b 100644 --- a/jeecgboot-vue3-master/src/views/comp/CompList.vue +++ b/jeecgboot-vue3-master/src/views/comp/CompList.vue @@ -84,6 +84,7 @@ + @@ -95,6 +96,7 @@ import { listSTU, deleteOne, batchDelete, getImportUrl, getExportUrl, getCompType } from './Comp.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import CompModal from './components/CompModal.vue'; + import CompModalqz from './components/CompModalqz.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JPopup from '/@/components/Form/src/jeecg/components/JPopup.vue'; import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue'; @@ -104,6 +106,7 @@ const queryParam = reactive({}); const toggleSearchStatus = ref(false); const registerModal = ref(); + const registerModalqz = ref(); //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ tableProps: { @@ -157,11 +160,18 @@ * 编辑事件 */ function handleEdit(record: Recordable) { - console.log(123,record) registerModal.value.disableSubmit = false; registerModal.value.edit(record); } + /** + * 修改权重事件 + */ + function handleEditqz(record: Recordable) { + registerModalqz.value.disableSubmit = false; + registerModalqz.value.edit(record); + } + /** * 详情 */ @@ -200,6 +210,10 @@ label: '编辑', onClick: handleEdit.bind(null, record), }, + { + label: '修改权重', + onClick: handleEditqz.bind(null, record), + }, { label: '删除', popConfirm: { diff --git a/jeecgboot-vue3-master/src/views/comp/components/CompFormqz.vue b/jeecgboot-vue3-master/src/views/comp/components/CompFormqz.vue new file mode 100644 index 00000000..edd0aad4 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/comp/components/CompFormqz.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/comp/components/CompModalqz.vue b/jeecgboot-vue3-master/src/views/comp/components/CompModalqz.vue new file mode 100644 index 00000000..cdf1d741 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/comp/components/CompModalqz.vue @@ -0,0 +1,86 @@ + + + + +