From 61ab26cb5984a3a83025a29b7b979a885b3fa192 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Wed, 23 Apr 2025 16:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9F=A9=E9=98=B5=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/workflow/dialog/matrix.vue | 12 +- src/components/workflow/dialog/matrixIng.vue | 243 ++++++++++++++++++ .../workflow/drwer/approverDrawer.vue | 11 +- 3 files changed, 261 insertions(+), 5 deletions(-) create mode 100644 src/components/workflow/dialog/matrixIng.vue diff --git a/src/components/workflow/dialog/matrix.vue b/src/components/workflow/dialog/matrix.vue index 1d068e7..037b931 100644 --- a/src/components/workflow/dialog/matrix.vue +++ b/src/components/workflow/dialog/matrix.vue @@ -93,7 +93,11 @@ function searchMatrixList() { }) .finally(() => { loading.value = false; - gainMatrixNeed(farstId.value); + if (props.data.matrixid != 0) { + gainMatrixNeed(props.data.matrixid); + } else { + gainMatrixNeed(farstId.value); + } }); } const factorList = ref(); @@ -123,6 +127,8 @@ const gainMatrixNeed = (val: any) => { const pickmatirval = (val: matrixCont) => { matrixIsClick.matrixid = val.id * 1; matrixIsClick.matrixName = val.name; + matrixIsClick.list = []; + // emits("change", matrixIsClick); gainMatrixNeed(val.id * 1); }; //选择矩阵值 @@ -142,6 +148,7 @@ const pickval = (val: martixFieldStruct) => { outcomeName: val.name, }); } + // emits("change", matrixIsClick); }; //选择条件 const pickSelect = (val: any) => { @@ -151,6 +158,7 @@ const pickSelect = (val: any) => { matrixIsClick.factorName = item.name; } }); + // emits("change", matrixIsClick); }; // watch(matrixIsClick, (val: any) => { // console.log("值改变---->", val); @@ -186,7 +194,7 @@ const judgeIsTrue = (val: number) => {