From 33304af3d383abe791dd01383fae678cbae96d08 Mon Sep 17 00:00:00 2001
From: falcon <9504402@qq.com>
Date: Tue, 3 Nov 2020 11:09:18 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90=E4=B8=BB?=
=?UTF-8?q?=E9=A1=B5ajax=E6=9E=B6=E6=9E=84=EF=BC=8C=E5=AE=9E=E7=8E=B0fajax?=
=?UTF-8?q?=E6=A0=87=E7=AD=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/Web/HomeController.cs | 4 +
.../Extensions/FalconHtmlTagHelpers.cs | 72 +
.../Views/Home/Building.cshtml | 5 +
.../Views/Shared/_Layout.cshtml | 31 +-
src/StaffManagement/Views/_ViewImports.cshtml | 1 +
.../jquery.unobtrusive-ajax.js | 205 +
.../jquery.unobtrusive-ajax.min.js | 16 +
src/StaffManagement/wwwroot/lib/vue/vue.js | 11972 ++++++++++++++++
.../wwwroot/lib/vue/vue.min.js | 6 +
9 files changed, 12308 insertions(+), 4 deletions(-)
create mode 100644 src/StaffManagement/Extensions/FalconHtmlTagHelpers.cs
create mode 100644 src/StaffManagement/Views/Home/Building.cshtml
create mode 100644 src/StaffManagement/wwwroot/lib/jquery.unobtrusive-ajax/jquery.unobtrusive-ajax.js
create mode 100644 src/StaffManagement/wwwroot/lib/jquery.unobtrusive-ajax/jquery.unobtrusive-ajax.min.js
create mode 100644 src/StaffManagement/wwwroot/lib/vue/vue.js
create mode 100644 src/StaffManagement/wwwroot/lib/vue/vue.min.js
diff --git a/src/StaffManagement/Controllers/Web/HomeController.cs b/src/StaffManagement/Controllers/Web/HomeController.cs
index 6521f31..ea81e96 100644
--- a/src/StaffManagement/Controllers/Web/HomeController.cs
+++ b/src/StaffManagement/Controllers/Web/HomeController.cs
@@ -22,6 +22,10 @@ namespace StaffManagement.Controllers.Web
return View();
}
+ public IActionResult Building() {
+ return PartialView();
+ }
+
[ResponseCache(Duration = 0,Location = ResponseCacheLocation.None,NoStore = true)]
public IActionResult Error() {
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
diff --git a/src/StaffManagement/Extensions/FalconHtmlTagHelpers.cs b/src/StaffManagement/Extensions/FalconHtmlTagHelpers.cs
new file mode 100644
index 0000000..cf8c142
--- /dev/null
+++ b/src/StaffManagement/Extensions/FalconHtmlTagHelpers.cs
@@ -0,0 +1,72 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Falcon.Extend;
+using Microsoft.AspNetCore.Razor.TagHelpers;
+
+namespace StaffManagement.Extensions
+{
+ ///