diff --git a/projects/WebMVC/wwwroot/js/common.js b/projects/WebMVC/wwwroot/js/common.js
index 6c3936aa..4f8f7b95 100644
--- a/projects/WebMVC/wwwroot/js/common.js
+++ b/projects/WebMVC/wwwroot/js/common.js
@@ -165,4 +165,41 @@ function selectNode(e) {
else {
parent.prop("indeterminate", true);
}
-}
\ No newline at end of file
+}
+//delete select
+$(function () {
+ $(document).on('change', 'th :checkbox',function () {
+ if ($(this).is(':checked')) {
+ $(this).parents('table').find(':checkbox').not(':checked').prop("checked", true);
+ }
+ else {
+ $(this).parents('table').find(':checkbox').filter(':checked').prop("checked", false);
+ }
+ });
+ $(document).on('change','td :checkbox',function () {
+ var parent = $(this).parents('table').find('th :checkbox');
+ var children = $(this).parents('table').find('td :checkbox');
+ if ($(this).is(':checked')) {
+ if (parent.not(':checked')) {
+ if (children.not(':checked').length === 0) {
+ parent.prop("indeterminate", false);
+ parent.prop("checked", true);
+ }
+ else {
+ parent.prop("indeterminate", true);
+ }
+ }
+ }
+ else {
+ if (parent.is(':checked')) {
+ if (children.filter(':checked').length === 0) {
+ parent.prop("indeterminate", false);
+ parent.prop("checked", false);
+ }
+ else {
+ parent.prop("indeterminate", true);
+ }
+ }
+ }
+ });
+});
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/js/state.js b/projects/WebMVC/wwwroot/js/state.js
index 9303d2be..cd74825c 100644
--- a/projects/WebMVC/wwwroot/js/state.js
+++ b/projects/WebMVC/wwwroot/js/state.js
@@ -4,7 +4,8 @@ const store = new Vuex.Store({
token: {
accessToken: localStorage.getItem("accessToken"),
refreshToken: localStorage.getItem("refreshToken")
- }
+ },
+ permissions:[]
},
mutations: {
setState(state,data) {
diff --git a/projects/WebMVC/wwwroot/pages/admin/list.html b/projects/WebMVC/wwwroot/pages/admin/list.html
index a35dfb4d..0a26162c 100644
--- a/projects/WebMVC/wwwroot/pages/admin/list.html
+++ b/projects/WebMVC/wwwroot/pages/admin/list.html
@@ -2,16 +2,59 @@
{{schema.title}}
-
-
- {{item.title}} |
-
-
- {{item[key]}} |
-
-
+
-