From dd721bd436bb100f1780270e9074b954eeff5d73 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Wed, 27 Mar 2024 16:35:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 9bae19d..08a9cf7 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -90,12 +90,12 @@ function close() {
探索更多功能
- + @@ -105,6 +105,8 @@ function close() { background-repeat: no-repeat; background-size: cover; height: 56.25rem; + position: absolute; + width: 100%; .f-c-c { display: flex; From e29b248508e164b0d4da596ad0dde42e45ef0ec2 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Wed, 27 Mar 2024 16:50:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E6=AF=8F=E6=AC=A1=E9=80=80?= =?UTF-8?q?=E5=87=BA=E5=90=8E=E5=86=8D=E6=AC=A1=E7=99=BB=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E6=AF=8F=E6=AC=A1=E9=BB=98=E8=AE=A4=E8=B7=B3=E8=BD=AC=E8=87=B3?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=80=E9=94=AE=E6=9F=A5=E9=87=8D=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AF=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E8=87=B3=E9=80=80=E5=87=BA=E5=89=8D=E7=9A=84=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Header/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index 6fac42a..a6f42c2 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -105,7 +105,7 @@ export default defineComponent({ .replace({ name: 'Login', query: { - redirect: route.fullPath, + // redirect: route.fullPath, }, }) .finally(() => location.reload()) From 41cba3c591cd7099f46fbea056db946b562922a3 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Wed, 27 Mar 2024 17:09:29 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E4=BB=BB=E5=8A=A1=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E5=BC=B9=E7=AA=97=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/final/comp/CustomTabelModal.vue | 7 ++- src/views/task/modal/CustomFieldModal.vue | 65 +++++++++++++++++++---- 2 files changed, 61 insertions(+), 11 deletions(-) diff --git a/src/views/final/comp/CustomTabelModal.vue b/src/views/final/comp/CustomTabelModal.vue index a52c9f9..bd752d9 100644 --- a/src/views/final/comp/CustomTabelModal.vue +++ b/src/views/final/comp/CustomTabelModal.vue @@ -590,6 +590,9 @@ const indeterminate = computed(() => { --n-padding-top: 0px; --n-padding-bottom: 12px; } +.left-wrap { + border: 1px solid #cbd3de; +} ::v-deep(.n-card > .n-card-header .n-card-header__main) { font-weight: lighter !important; font-size: 14px; @@ -601,8 +604,8 @@ const indeterminate = computed(() => { ::v-deep(.n-button--info-type) { background: #507afd !important; } -.left-wrap { - border: 1px solid #cbd3de; +::v-deep(.n-button--default-type){ + border: 1px solid #cad2dd !important; } // ::v-deep(.n-card__content){ // padding: 20px 24px 0 24px !important; diff --git a/src/views/task/modal/CustomFieldModal.vue b/src/views/task/modal/CustomFieldModal.vue index da71cb7..5a06d03 100644 --- a/src/views/task/modal/CustomFieldModal.vue +++ b/src/views/task/modal/CustomFieldModal.vue @@ -128,15 +128,23 @@ const selectIds = ref([]); function onCheckAllChange(value) { const ids: string[] = []; - for (const item of offList.value) { if (!item.fix) { item.checked = value; ids.push(item.id); } } - selectIds.value = value ? ids : []; + console.log(offList.value,'offList') + if (value) { + offList.value.map((v) => { + if (!v.checked) { + onList.value.push(v); + } + }); + } else { + onList.value = []; + } } function onCheckChange(checked: any, item: any) { @@ -277,6 +285,16 @@ onMounted(async () => { console.log(offList.value, "offList.value"); console.log(useList, "useList"); }); + +const indeterminate = computed(() => { + let baseNum = 0; + offList.value.map((v) => { + if (v.fix) { + baseNum += 1; + } + }); + return onList.value.length > 0 && offList.value.length - baseNum > onList.value.length; +});
-
+
@@ -347,7 +366,7 @@ onMounted(async () => { :bordered="false" >
@@ -377,11 +396,11 @@ onMounted(async () => { :class="{ fix: item.fix }" class="cursor-move draggable-item" > - + {{ item.name }} {