Former-commit-id: 191c0d2dbeba4e54ba8bb03e3a716a90f5d1e5a0
TangShanKaiPing
wanggang 5 years ago
parent 66dc9ef1e7
commit e70cef9669

@ -70,11 +70,11 @@ namespace IoT.Shared
} }
db.SaveChanges(); db.SaveChanges();
db.Set<Category>().Add(new Category { Id = "productcatgoryid-00".ToGuid(), Number = "00", Name = "网关", Image = "/images/gateway.png" }); db.Set<Category>().Add(new Category { Id = "productcatgoryid-00".ToGuid(), Number = "00", Name = "网关", Image = "/images/gateway.svg" });
db.Set<Category>().Add(new Category { Id = "productcatgoryid-10".ToGuid(), Number = "10", Name = "安防", Image = "/images/safe.png" }); db.Set<Category>().Add(new Category { Id = "productcatgoryid-10".ToGuid(), Number = "10", Name = "安防", Image = "/images/safe.svg" });
db.Set<Category>().Add(new Category { Id = "productcatgoryid-20".ToGuid(), Number = "20", Name = "电器", Image = "/images/socket.png" }); db.Set<Category>().Add(new Category { Id = "productcatgoryid-20".ToGuid(), Number = "20", Name = "电器", Image = "/images/socket.svg" });
db.Set<Category>().Add(new Category { Id = "productcatgoryid-30".ToGuid(), Number = "30", Name = "照明", Image = "/images/light.png" }); db.Set<Category>().Add(new Category { Id = "productcatgoryid-30".ToGuid(), Number = "30", Name = "照明", Image = "/images/light.svg" });
db.Set<Category>().Add(new Category { Id = "productcatgoryid-40".ToGuid(), Number = "40", Name = "监测", Image = "/images/monitor.png" }); db.Set<Category>().Add(new Category { Id = "productcatgoryid-40".ToGuid(), Number = "40", Name = "监测", Image = "/images/monitor.svg" });
db.SaveChanges(); db.SaveChanges();
} }

@ -66,7 +66,7 @@
}, },
"AppSettings": { "AppSettings": {
"database": "mysql", "database": "mysql",
"cache": "memory", "cache": "redis",
"fileserver": "minio" "fileserver": "minio"
}, },
"minio": { "minio": {

@ -1,5 +1,5 @@
function urlContent(baseUrl,path) { function urlContent2(baseUrl,path) {
if (!path.startsWith("/dfs/")) { if (path.startsWith("/dfs/")) {
return baseUrl + path; return baseUrl + path;
} }
return path; return path;
@ -206,8 +206,8 @@ function InitEditor(K) {
if (isRequired) { if (isRequired) {
$('#' + id).parents('form').validate().element('#' + id); $('#' + id).parents('form').validate().element('#' + id);
} }
$(image_id).attr('src', urlContent(baseUrl,url)); $(image_id).attr('src', urlContent2(baseUrl,url));
$(image_id).parent('a').attr('href', urlContent(baseUrl, url)); $(image_id).parent('a').attr('href', urlContent2(baseUrl, url));
editor.hideDialog(); editor.hideDialog();
} }
}); });

@ -1,5 +1,5 @@
function urlContent(baseUrl,path) { function urlContent2(baseUrl,path) {
if (!path.startsWith("/dfs/")) { if (path.startsWith("/dfs/")) {
return baseUrl + path; return baseUrl + path;
} }
return path; return path;
@ -206,8 +206,8 @@ function InitEditor(K) {
if (isRequired) { if (isRequired) {
$('#' + id).parents('form').validate().element('#' + id); $('#' + id).parents('form').validate().element('#' + id);
} }
$(image_id).attr('src', urlContent(baseUrl,url)); $(image_id).attr('src', urlContent2(baseUrl,url));
$(image_id).parent('a').attr('href', urlContent(baseUrl, url)); $(image_id).parent('a').attr('href', urlContent2(baseUrl, url));
editor.hideDialog(); editor.hideDialog();
} }
}); });

@ -1,5 +1,5 @@
function urlContent(baseUrl,path) { function urlContent2(baseUrl,path) {
if (!path.startsWith("/dfs/")) { if (path.startsWith("/dfs/")) {
return baseUrl + path; return baseUrl + path;
} }
return path; return path;
@ -206,8 +206,8 @@ function InitEditor(K) {
if (isRequired) { if (isRequired) {
$('#' + id).parents('form').validate().element('#' + id); $('#' + id).parents('form').validate().element('#' + id);
} }
$(image_id).attr('src', urlContent(baseUrl,url)); $(image_id).attr('src', urlContent2(baseUrl,url));
$(image_id).parent('a').attr('href', urlContent(baseUrl, url)); $(image_id).parent('a').attr('href', urlContent2(baseUrl, url));
editor.hideDialog(); editor.hideDialog();
} }
}); });

@ -1,5 +1,5 @@
function urlContent(baseUrl,path) { function urlContent2(baseUrl,path) {
if (!path.startsWith("/dfs/")) { if (path.startsWith("/dfs/")) {
return baseUrl + path; return baseUrl + path;
} }
return path; return path;
@ -206,8 +206,8 @@ function InitEditor(K) {
if (isRequired) { if (isRequired) {
$('#' + id).parents('form').validate().element('#' + id); $('#' + id).parents('form').validate().element('#' + id);
} }
$(image_id).attr('src', urlContent(baseUrl,url)); $(image_id).attr('src', urlContent2(baseUrl,url));
$(image_id).parent('a').attr('href', urlContent(baseUrl, url)); $(image_id).parent('a').attr('href', urlContent2(baseUrl, url));
editor.hideDialog(); editor.hideDialog();
} }
}); });

Loading…
Cancel
Save