From 0d8796181722cd39c6bdfc684630f959db09d769 Mon Sep 17 00:00:00 2001 From: ks3356143 <314298729@qq.com> Date: Thu, 14 Mar 2024 19:52:26 +0800 Subject: [PATCH] 321 --- .../src/views/project/case/components/ProblemChoose.vue | 9 +++++++-- cdTMP/src/views/project/case/index.vue | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/cdTMP/src/views/project/case/components/ProblemChoose.vue b/cdTMP/src/views/project/case/components/ProblemChoose.vue index 03883a5..8d8e65a 100644 --- a/cdTMP/src/views/project/case/components/ProblemChoose.vue +++ b/cdTMP/src/views/project/case/components/ProblemChoose.vue @@ -19,6 +19,10 @@ + + @@ -31,7 +35,7 @@ import { Message } from "@arco-design/web-vue" import { useRoute, useRouter } from "vue-router" const route = useRoute() // 定义emits -const emits = defineEmits(["deleted"]) +const emits = defineEmits(["deleted", "relatedOrunrelated"]) // ~~~定义关联的switch-值改变处理~~~ 该函数返回false或返回Promise[reject]则停止切换 /// 定义个switch的加载loading属性 @@ -56,6 +60,7 @@ const handleRelatedChange = async (record) => { loading.value = false } loading.value = false + emits("relatedOrunrelated") Message.success(res.message) } @@ -83,10 +88,10 @@ const crudOptions = ref({ key: route.query.key }, showTools: false, // 不显示工具栏 - tablePagination: false, operationColumn: true, operationColumnAlign: "center", // 操作列居中 isDbClickEdit: false, // 双击不编辑当前列 + bordered: { cell: true }, formOption: { width: 1000, layout: [ diff --git a/cdTMP/src/views/project/case/index.vue b/cdTMP/src/views/project/case/index.vue index c179693..bf01a17 100644 --- a/cdTMP/src/views/project/case/index.vue +++ b/cdTMP/src/views/project/case/index.vue @@ -17,7 +17,11 @@ - +