From ec972fac8eaf1100953c5ebea8842aabbeb2c0c6 Mon Sep 17 00:00:00 2001 From: chenjunyi <314298729@qq.com> Date: Tue, 23 Dec 2025 10:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B1=87=E6=80=BB=E9=A1=B5-?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=8D=95=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cdTMP/package-lock.json | 12 +- cdTMP/package.json | 2 +- cdTMP/src/api/project/case.js | 2 +- cdTMP/src/api/project/designDemand.js | 11 + .../views/project/dut/hooks/useCrudOptions.ts | 10 +- cdTMP/src/views/project/dut/index.vue | 23 ++ .../views/project/opeSets/ProTable/index.vue | 6 +- .../components/CaseTable/ReplaceExetime.vue | 54 ++- .../opeSets/components/CaseTable/index.vue | 23 +- .../opeSets/components/DemandTable/index.vue | 18 +- .../opeSets/components/DesignTable/index.vue | 26 +- .../opeSets/components/DesignTable/types.ts | 5 + .../opeSets/components/ProblemTable/form.vue | 71 ++++ .../ProblemTable/formHooks/useFormColumns.tsx | 347 ++++++++++++++++++ .../ProblemTable/hooks/useColumns.ts | 57 +++ .../ProblemTable/hooks/useProblemGrade.ts | 35 ++ .../ProblemTable/hooks/useProblemStatu.tsx | 39 ++ .../opeSets/components/ProblemTable/index.vue | 166 +++++++++ cdTMP/src/views/project/opeSets/index.vue | 3 + .../project/testDemand/hooks/useColumn.tsx | 8 +- 20 files changed, 849 insertions(+), 69 deletions(-) create mode 100644 cdTMP/src/views/project/opeSets/components/ProblemTable/form.vue create mode 100644 cdTMP/src/views/project/opeSets/components/ProblemTable/formHooks/useFormColumns.tsx create mode 100644 cdTMP/src/views/project/opeSets/components/ProblemTable/hooks/useColumns.ts create mode 100644 cdTMP/src/views/project/opeSets/components/ProblemTable/hooks/useProblemGrade.ts create mode 100644 cdTMP/src/views/project/opeSets/components/ProblemTable/hooks/useProblemStatu.tsx create mode 100644 cdTMP/src/views/project/opeSets/components/ProblemTable/index.vue diff --git a/cdTMP/package-lock.json b/cdTMP/package-lock.json index 3544a67..84667b5 100644 --- a/cdTMP/package-lock.json +++ b/cdTMP/package-lock.json @@ -1,12 +1,12 @@ { "name": "testplant", - "version": "0.0.6", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "testplant", - "version": "0.0.6", + "version": "0.1.0", "dependencies": { "@arco-design/color": "^0.4.0", "@arco-design/web-vue": "^2.57.0", @@ -32,7 +32,7 @@ "vue": "^3.5.26", "vue-clipboard3": "^2.0.0", "vue-color-kit": "^1.0.6", - "vue-data-ui": "^3.9.6", + "vue-data-ui": "^3.9.12", "vue-router": "^4.6.4", "vuedraggable": "^2.24.3" }, @@ -5469,9 +5469,9 @@ } }, "node_modules/vue-data-ui": { - "version": "3.9.6", - "resolved": "https://registry.npmmirror.com/vue-data-ui/-/vue-data-ui-3.9.6.tgz", - "integrity": "sha512-XpIqONAc6xYAWvjiR8snVTIjETbZUdxw2gV2vrHnwA71yXMS3Mso2MO+aE9mNhsUI7LThzOPtjylA+vniKANzQ==", + "version": "3.9.12", + "resolved": "https://registry.npmmirror.com/vue-data-ui/-/vue-data-ui-3.9.12.tgz", + "integrity": "sha512-0gNNA9DJw9q9/o4KrK+tesZHHtUxMB6x1JhiGhILU6VS3J/kb+pXC/BQaOqmjK512xzDyE05SGCR5UkHTSNPpQ==", "license": "MIT", "peerDependencies": { "jspdf": "^3.0.1", diff --git a/cdTMP/package.json b/cdTMP/package.json index 71ffd37..be72d11 100644 --- a/cdTMP/package.json +++ b/cdTMP/package.json @@ -35,7 +35,7 @@ "vue": "^3.5.26", "vue-clipboard3": "^2.0.0", "vue-color-kit": "^1.0.6", - "vue-data-ui": "^3.9.6", + "vue-data-ui": "^3.9.12", "vue-router": "^4.6.4", "vuedraggable": "^2.24.3" }, diff --git a/cdTMP/src/api/project/case.js b/cdTMP/src/api/project/case.js index ffe76ff..0188453 100644 --- a/cdTMP/src/api/project/case.js +++ b/cdTMP/src/api/project/case.js @@ -136,7 +136,7 @@ export default { * 批量替换事件 * @returns */ - exetimeReplace(data = { selectRows: [], exetime: "" }) { + exetimeReplace(data = { selectRows: [], exetime: [] }) { return request({ url: "/project/case/timeReplace/", method: "post", diff --git a/cdTMP/src/api/project/designDemand.js b/cdTMP/src/api/project/designDemand.js index fc99b63..187c48b 100644 --- a/cdTMP/src/api/project/designDemand.js +++ b/cdTMP/src/api/project/designDemand.js @@ -120,5 +120,16 @@ export default { method: "get", params }) + }, + /** + * 复制到当前dut下面,CRUD中操作列 + * @returns + */ + copy_current(params = {}) { + return request({ + url: "/project/copy_current", + method: "get", + params + }) } } diff --git a/cdTMP/src/views/project/dut/hooks/useCrudOptions.ts b/cdTMP/src/views/project/dut/hooks/useCrudOptions.ts index 77dad91..ec20223 100644 --- a/cdTMP/src/views/project/dut/hooks/useCrudOptions.ts +++ b/cdTMP/src/views/project/dut/hooks/useCrudOptions.ts @@ -36,15 +36,15 @@ export default function (crudRef: Ref>) { crudRef.value.crudFormRef.actionTitle = `${route.query.ident} > ${(td[round_key] as any).title} > ${(td[round_key] as any).children[dut_key].title} >设计需求[${record.name}]-` return true }, - afterAdd: (res) => { + afterAdd: (res: any) => { let id = projectId.value treeDataStore.updateDesignDemandTreeData(res.data, id) }, - afterEdit: (res) => { + afterEdit: (res: any) => { let id = projectId.value treeDataStore.updateDesignDemandTreeData(res.data, id) }, - afterDelete: (res, record) => { + afterDelete: (_: any, record: any) => { let id = projectId.value if (!record) { record = { key: route.query.key + "-X" } @@ -62,12 +62,12 @@ export default function (crudRef: Ref>) { rowSelection: { showCheckedAll: true }, searchColNumber: 4, tablePagination: false, - operationColumnWidth: 250, + operationColumnWidth: 300, operationColumn: true, operationColumnAlign: "center", formOption: { width: 1200 - }, + } }) return crudOptions } diff --git a/cdTMP/src/views/project/dut/index.vue b/cdTMP/src/views/project/dut/index.vue index 709a439..1fb028c 100644 --- a/cdTMP/src/views/project/dut/index.vue +++ b/cdTMP/src/views/project/dut/index.vue @@ -31,6 +31,10 @@ + + @@ -59,6 +63,7 @@ diff --git a/cdTMP/src/views/project/opeSets/components/CaseTable/ReplaceExetime.vue b/cdTMP/src/views/project/opeSets/components/CaseTable/ReplaceExetime.vue index 8b6e3ec..4f2cffa 100644 --- a/cdTMP/src/views/project/opeSets/components/CaseTable/ReplaceExetime.vue +++ b/cdTMP/src/views/project/opeSets/components/CaseTable/ReplaceExetime.vue @@ -1,20 +1,12 @@