From edcb4b5bc6da3c76b4177089be7450e1be82e471 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 29 Jul 2020 10:56:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E4=BE=BF=E4=BA=8E=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=EF=BC=8C=E6=9C=8D=E5=8A=A1=E7=AB=AF=E7=9A=84?= =?UTF-8?q?ViewModel=E7=9A=84boolean=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=8F=AF?= =?UTF-8?q?=E7=A9=BAboolean=E7=B1=BB=E5=9E=8B=EF=BC=8C=E6=97=A7=E7=89=88?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=97=A0=E6=B3=95=E6=8E=A5=E6=94=B6null?= =?UTF-8?q?=E5=80=BC=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=96=B0=E5=BB=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=87=BA=E9=94=99=E3=80=82=E5=B7=B2=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E5=B0=86=E7=BC=96=E8=BE=91=E8=A1=A8=E5=8D=95=E7=9A=84=E9=BB=98?= =?UTF-8?q?=E8=AE=A4checkbox=E5=80=BC=E4=BF=AE=E6=94=B9=E4=B8=BAfalse?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=AF=A5=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 60bd8dd1c25ffb9ba7025f196de890cfa7ba7f2b Former-commit-id: db3bfea9fcd7b3c17055000c31913ac0a0a781bf --- projects/Version.cs | 2 +- projects/WebMVC/wwwroot/components/shared/edit/boolean.html | 5 +++++ projects/WebMVC/wwwroot/components/shared/list.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/projects/Version.cs b/projects/Version.cs index d63ba8e1..82e2b157 100644 --- a/projects/Version.cs +++ b/projects/Version.cs @@ -1,4 +1,4 @@ using System.Reflection; [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyInformationalVersion("1.0.0.729d2")] \ No newline at end of file +[assembly: AssemblyInformationalVersion("1.0.0.729d3")] \ No newline at end of file diff --git a/projects/WebMVC/wwwroot/components/shared/edit/boolean.html b/projects/WebMVC/wwwroot/components/shared/edit/boolean.html index 492d5d5f..efeb2c2f 100644 --- a/projects/WebMVC/wwwroot/components/shared/edit/boolean.html +++ b/projects/WebMVC/wwwroot/components/shared/edit/boolean.html @@ -24,6 +24,11 @@ this.$emit('update:value', val); this.$emit('change', this.name); } + }, + mounted: function () { + if (this.mode !== 'query' && this.nullable && this.value === null) { + this.$emit('update:value', false); + } } }; \ No newline at end of file diff --git a/projects/WebMVC/wwwroot/components/shared/list.html b/projects/WebMVC/wwwroot/components/shared/list.html index 9233cd48..9c2140de 100644 --- a/projects/WebMVC/wwwroot/components/shared/list.html +++ b/projects/WebMVC/wwwroot/components/shared/list.html @@ -184,7 +184,7 @@ deleteAll: function () { var vm = this; var url = this.baseUrl + this.path + 'DeleteApi'; - var list = $(this.$refs.list).find('tbody input:checked'); + var list = $(this.$refs.list).find('tbody input:checked[name]'); if (!list.length) { Swal.fire('没有选中任何记录!'); } else {