From 6f80f02cb5ad19e1f8f570ab922663babcf35e10 Mon Sep 17 00:00:00 2001 From: Jimmy <584481786@qq.com> Date: Sat, 23 Oct 2021 14:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GalleryFiles/GalleryFilesAppService.cs | 3 ++- .../MineTec.ProManager.Web.Host/SQLUpdate/Update.xml | 11 +++++------ Pages/api/init.json | 12 ------------ 3 files changed, 7 insertions(+), 19 deletions(-) diff --git a/Code/src/MineTec.ProManager.Application/GalleryFiles/GalleryFilesAppService.cs b/Code/src/MineTec.ProManager.Application/GalleryFiles/GalleryFilesAppService.cs index 3b7f5bc..4ec81c2 100644 --- a/Code/src/MineTec.ProManager.Application/GalleryFiles/GalleryFilesAppService.cs +++ b/Code/src/MineTec.ProManager.Application/GalleryFiles/GalleryFilesAppService.cs @@ -188,7 +188,8 @@ namespace MineTec.ProManager.GalleryFiles string root = Dir.Parent.Parent.FullName;//获取当前站点路径 - string webRootPath = @"D:\FileStore\"; //保存文件路径 + string webRootPath = @"D:\FileStore\"; //保存文件路径--本地测试 + //string webRootPath = @"D:\ProMananger\WebApi\wwwroot"; //保存文件路径--服务器 string uploadPath = Path.Combine("uploads", DateTime.Now.ToString("yyyyMMdd"));//增加日期文件夹 string dirPath = Path.Combine(webRootPath, uploadPath); //创建路径 diff --git a/Code/src/MineTec.ProManager.Web.Host/SQLUpdate/Update.xml b/Code/src/MineTec.ProManager.Web.Host/SQLUpdate/Update.xml index 14fd82f..95c8cfb 100644 --- a/Code/src/MineTec.ProManager.Web.Host/SQLUpdate/Update.xml +++ b/Code/src/MineTec.ProManager.Web.Host/SQLUpdate/Update.xml @@ -325,13 +325,12 @@ ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] - ) ON [PRIMARY] - GO; + ) ON [PRIMARY]; - ALTER TABLE GalleryFiles ALTER COLUMN annex_id NVARCHAR(50); - ALTER TABLE GalleryFiles ALTER COLUMN card_id NVARCHAR(50); + ALTER TABLE GalleryFiles ADD annex_id NVARCHAR(50) NULL DEFAULT ''; + ALTER TABLE GalleryFiles ADD card_id NVARCHAR(50) NULL DEFAULT ''; - ALTER TABLE GalleryFiles ALTER COLUMN annex_url NVARCHAR(300); - ALTER TABLE GalleryFiles ALTER COLUMN card_url NVARCHAR(300); + ALTER TABLE GalleryFiles ADD annex_url NVARCHAR(300) NULL DEFAULT ''; + ALTER TABLE GalleryFiles ADD card_url NVARCHAR(300) NULL DEFAULT ''; \ No newline at end of file diff --git a/Pages/api/init.json b/Pages/api/init.json index 7ca53a5..5c2baf5 100644 --- a/Pages/api/init.json +++ b/Pages/api/init.json @@ -49,21 +49,9 @@ "child": [ { "title": "产品图号管理", - "href": "page/Graphic/GalleryInformation/GalleryInformationList.html", - "icon": "fa fa-file-text-o", - "target": "_self" - }, - { - "title": "测试", "href": "page/Graphic/PatternManager/PatternTreeList.html", "icon": "fa fa-file-text-o", "target": "_self" - }, - { - "title": "参考", - "href": "page/Graphic/GalleryInformation/GalleryInformationList.html", - "icon": "fa fa-file-text-o", - "target": "_self" } ] }