From 92783045ef0d2386b42a513b25d2f0b93dab24a3 Mon Sep 17 00:00:00 2001 From: chenjunyi <314298729@qq.com> Date: Fri, 19 Dec 2025 18:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- cdTMP/package.json | 2 +- .../ma-form/Customs/ChenDemandList.vue | 23 ++++-------- .../ma-form/containerItem/children-form.vue | 29 ++++++--------- .../ma-form/formItem/form-button.vue | 7 +--- .../ma-form/formItem/form-key-value.vue | 6 +--- .../ma-form/formItem/form-radio.vue | 17 ++------- cdTMP/src/hooks/workarea/currentCasePage.ts | 9 +++-- cdTMP/src/layout/project-layout.vue | 36 ++++++++++++++++++- cdTMP/src/views/project/case/index.vue | 14 ++++---- .../components/BatchDemandCreate/useColumn.ts | 2 +- .../components/CaseTable/ReplaceExetime.vue | 2 +- .../opeSets/components/CaseTable/index.vue | 2 +- 13 files changed, 77 insertions(+), 74 deletions(-) diff --git a/README.md b/README.md index 7ea7672..fe73e88 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # cdTestPlant3 -里面有3个项目,中间那个是正确的 +V0.0.1.0增加AI生成ce项功能 diff --git a/cdTMP/package.json b/cdTMP/package.json index 90be158..71ffd37 100644 --- a/cdTMP/package.json +++ b/cdTMP/package.json @@ -1,7 +1,7 @@ { "name": "testplant", "private": true, - "version": "0.0.6", + "version": "0.1.0", "type": "module", "scripts": { "dev": "vite", diff --git a/cdTMP/src/components/ma-form/Customs/ChenDemandList.vue b/cdTMP/src/components/ma-form/Customs/ChenDemandList.vue index 6d11bf0..194f247 100644 --- a/cdTMP/src/components/ma-form/Customs/ChenDemandList.vue +++ b/cdTMP/src/components/ma-form/Customs/ChenDemandList.vue @@ -8,9 +8,7 @@ - - 新增步骤+ - + 新增步骤+ @@ -28,16 +26,13 @@ - + + @@ -428,10 +438,34 @@ const { paoVisible, paoContainer, pao2Visible, pao2Container, ondrop, allowdrop, } .font-icon { font-size: 20px; - margin-bottom: -2px; + margin-bottom: -2.8px; } .font-icon:hover { color: #f53f3fed; transition: all 0.3s; } +// 有右键菜单节点显示图标 +.small-right-context-tip { + align-items: center; + background: linear-gradient(54.58deg, rgba(74, 228, 255, 0.12) -14.12%, rgba(66, 130, 255, 0.12) 47.61%, rgba(215, 104, 255, 0.12) 105.84%); + border: 1px solid #d5d7f9; + border-radius: 10px; + color: transparent; + display: inline-flex; + height: 10px; + justify-content: center; + margin-left: 2px; + padding: 0 2.5px; + position: absolute; + top: 7px; + i { + -webkit-text-fill-color: transparent !important; + zoom: 0.7; + background: linear-gradient(85.2deg, #0062ff -3.15%, #cb50ff 98.89%) !important; + background-clip: text !important; + -webkit-background-clip: text !important; + font-size: 10px; + font-style: normal; + } +} diff --git a/cdTMP/src/views/project/case/index.vue b/cdTMP/src/views/project/case/index.vue index 5b39561..bf662b1 100644 --- a/cdTMP/src/views/project/case/index.vue +++ b/cdTMP/src/views/project/case/index.vue @@ -17,11 +17,7 @@ - + @@ -33,10 +29,13 @@ import { useTreeDataStore } from "@/store" import ProblemChoose from "./components/ProblemChoose.vue" import { Message } from "@arco-design/web-vue" import getCaseInfoHook from "@/hooks/workarea/currentCasePage" +import { useUserStore } from "@/store" + const treeDataStore = useTreeDataStore() +const userStore = useUserStore() const route = useRoute() // hook-获取当前用例信息 -const { tempCaseInfo, caseIsNotPassedOrNotExe } = getCaseInfoHook() +const { tempCaseInfo, caseIsNotPassedOrNotExe, fetchCaseOneStatus } = getCaseInfoHook() // const router = useRouter() const roundNumber = route.query.key.split("-")[0] @@ -118,6 +117,8 @@ const crudOptions = ref({ }, // 请求后置处理-用于新增/删除更新树状的用例关联问题单状态 afterRequest(tableData) { + // 调用更新是否有未通过变量 + fetchCaseOneStatus() const caseQuery = { key: route.query.key } treeDataStore.updateCaseTreeData(caseQuery, route.query.id) // 新版本mime必须返回 @@ -384,6 +385,7 @@ const crudColumns = ref([ search: true, align: "center", formType: "select", + addDefaultValue: userStore.name, commonRules: [{ required: true, message: "测试人员必填" }], dict: { url: "system/user/list", diff --git a/cdTMP/src/views/project/components/BatchDemandCreate/useColumn.ts b/cdTMP/src/views/project/components/BatchDemandCreate/useColumn.ts index 5bebfc8..1b145b0 100644 --- a/cdTMP/src/views/project/components/BatchDemandCreate/useColumn.ts +++ b/cdTMP/src/views/project/components/BatchDemandCreate/useColumn.ts @@ -51,7 +51,7 @@ export default function () { dataIndex: "testMethod", align: "center", slotName: "testMethod", - width: 210 + width: 220 }, { title: "测试类型", diff --git a/cdTMP/src/views/project/opeSets/components/CaseTable/ReplaceExetime.vue b/cdTMP/src/views/project/opeSets/components/CaseTable/ReplaceExetime.vue index 49fc8ca..8b6e3ec 100644 --- a/cdTMP/src/views/project/opeSets/components/CaseTable/ReplaceExetime.vue +++ b/cdTMP/src/views/project/opeSets/components/CaseTable/ReplaceExetime.vue @@ -13,7 +13,7 @@
- + diff --git a/cdTMP/src/views/project/opeSets/components/CaseTable/index.vue b/cdTMP/src/views/project/opeSets/components/CaseTable/index.vue index 93e9d49..d2f99a6 100644 --- a/cdTMP/src/views/project/opeSets/components/CaseTable/index.vue +++ b/cdTMP/src/views/project/opeSets/components/CaseTable/index.vue @@ -246,7 +246,7 @@ const handlePerpleModal = () => { } // 10.批量修改时间 -const replaceExetimeModalRef = ref>() +const replaceExetimeModalRef = ref>() const handleExetimeModal = () => { replaceExetimeModalRef.value!.open(undefined) }