运维
@@ -464,4 +465,4 @@
return window.location.protocol + "//" + window.location.hostname + ":" + port;
}
}
- }
\ No newline at end of file
+ }
diff --git a/projects/WebMVC/wwwroot/js/iot.js b/projects/WebMVC/wwwroot/js/iot.js
index 705d3bcf..67b274e2 100644
--- a/projects/WebMVC/wwwroot/js/iot.js
+++ b/projects/WebMVC/wwwroot/js/iot.js
@@ -114,7 +114,7 @@ function updateSelect(action, id, value) {
select.find("option[value!='']").remove();
select[0].dispatchEvent(new Event('change'));
if (value) {
- var url = config.baseUrl + '/IoTCenter/Admin/Ajax/' + action + '?parentId=' + value;
+ var url = config.baseUrl + '/IoTCenter/IoTCenter/Ajax/' + action + '?parentId=' + value;
$.getJSON(url, function (data) {
$.each(data, function (i, v) {
select.append('' + v.text + ' ');
diff --git a/projects/WebMVC/wwwroot/routes/admin/command/detail.html b/projects/WebMVC/wwwroot/routes/admin/command/detail.html
deleted file mode 100644
index f5789d80..00000000
--- a/projects/WebMVC/wwwroot/routes/admin/command/detail.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/routes/admin/command/index.html b/projects/WebMVC/wwwroot/routes/admin/command/index.html
deleted file mode 100644
index 88395f79..00000000
--- a/projects/WebMVC/wwwroot/routes/admin/command/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/routes/admin/record/index.html b/projects/WebMVC/wwwroot/routes/admin/record/index.html
deleted file mode 100644
index 23e7a3b5..00000000
--- a/projects/WebMVC/wwwroot/routes/admin/record/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/routes/admin/setting/detail.html b/projects/WebMVC/wwwroot/routes/admin/setting/detail.html
deleted file mode 100644
index 3d688645..00000000
--- a/projects/WebMVC/wwwroot/routes/admin/setting/detail.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/routes/admin/setting/index.html b/projects/WebMVC/wwwroot/routes/admin/setting/index.html
deleted file mode 100644
index d04d3916..00000000
--- a/projects/WebMVC/wwwroot/routes/admin/setting/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/routes/home.html b/projects/WebMVC/wwwroot/routes/home.html
index f200a615..3e08fede 100644
--- a/projects/WebMVC/wwwroot/routes/home.html
+++ b/projects/WebMVC/wwwroot/routes/home.html
@@ -8,7 +8,7 @@
{{item.name}}
{{item.count}}
-
+
@@ -72,4 +72,4 @@
unsubscribe();
}
}
-
\ No newline at end of file
+
diff --git a/projects/WebMVC/wwwroot/routes/iotcenter/command/detail.html b/projects/WebMVC/wwwroot/routes/iotcenter/command/detail.html
new file mode 100644
index 00000000..e7f221b0
--- /dev/null
+++ b/projects/WebMVC/wwwroot/routes/iotcenter/command/detail.html
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/projects/WebMVC/wwwroot/routes/admin/command/edit.html b/projects/WebMVC/wwwroot/routes/iotcenter/command/edit.html
similarity index 99%
rename from projects/WebMVC/wwwroot/routes/admin/command/edit.html
rename to projects/WebMVC/wwwroot/routes/iotcenter/command/edit.html
index fe3ec22b..6822265c 100644
--- a/projects/WebMVC/wwwroot/routes/admin/command/edit.html
+++ b/projects/WebMVC/wwwroot/routes/iotcenter/command/edit.html
@@ -172,7 +172,7 @@
data: function () {
return {
service: 'IoTCenter',
- area: "admin",
+ area: "iotcenter",
entity: 'Command',
model: 'Command',
mode: this.$route.query.mode,
diff --git a/projects/WebMVC/wwwroot/routes/iotcenter/command/index.html b/projects/WebMVC/wwwroot/routes/iotcenter/command/index.html
new file mode 100644
index 00000000..17c2a2ab
--- /dev/null
+++ b/projects/WebMVC/wwwroot/routes/iotcenter/command/index.html
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/projects/WebMVC/wwwroot/routes/iot/device.html b/projects/WebMVC/wwwroot/routes/iotcenter/device.html
similarity index 98%
rename from projects/WebMVC/wwwroot/routes/iot/device.html
rename to projects/WebMVC/wwwroot/routes/iotcenter/device.html
index b33f8ce2..b5d42df4 100644
--- a/projects/WebMVC/wwwroot/routes/iot/device.html
+++ b/projects/WebMVC/wwwroot/routes/iotcenter/device.html
@@ -8,7 +8,7 @@
首页
- {{device.product.name}}
+ {{device.product.name}}
{{device.displayName}}
@@ -175,4 +175,4 @@
this.unsubscribe();
}
}
-
\ No newline at end of file
+
diff --git a/projects/WebMVC/wwwroot/routes/admin/index.html b/projects/WebMVC/wwwroot/routes/iotcenter/index.html
similarity index 91%
rename from projects/WebMVC/wwwroot/routes/admin/index.html
rename to projects/WebMVC/wwwroot/routes/iotcenter/index.html
index 046bfc4a..fb24c250 100644
--- a/projects/WebMVC/wwwroot/routes/admin/index.html
+++ b/projects/WebMVC/wwwroot/routes/iotcenter/index.html
@@ -9,7 +9,7 @@
{{item.name}}
{{item.deviceCount}}
-
+
@@ -23,7 +23,7 @@
{{item.name}}
{{item.deviceCount}}
-
+
-
+
-
+
@@ -177,4 +177,4 @@
this.unsubscribe();
}
}
-
\ No newline at end of file
+
diff --git a/projects/WebMVC/wwwroot/routes/admin/record/detail.html b/projects/WebMVC/wwwroot/routes/iotcenter/record/detail.html
similarity index 74%
rename from projects/WebMVC/wwwroot/routes/admin/record/detail.html
rename to projects/WebMVC/wwwroot/routes/iotcenter/record/detail.html
index f086ceda..2ae037f2 100644
--- a/projects/WebMVC/wwwroot/routes/admin/record/detail.html
+++ b/projects/WebMVC/wwwroot/routes/iotcenter/record/detail.html
@@ -1,5 +1,5 @@
-
-
+
+
@@ -18,4 +18,4 @@
}
}
}
-
\ No newline at end of file
+
diff --git a/projects/WebMVC/wwwroot/routes/admin/record/edit.html b/projects/WebMVC/wwwroot/routes/iotcenter/record/edit.html
similarity index 100%
rename from projects/WebMVC/wwwroot/routes/admin/record/edit.html
rename to projects/WebMVC/wwwroot/routes/iotcenter/record/edit.html
diff --git a/projects/WebMVC/wwwroot/routes/iotcenter/record/index.html b/projects/WebMVC/wwwroot/routes/iotcenter/record/index.html
new file mode 100644
index 00000000..ac4e091e
--- /dev/null
+++ b/projects/WebMVC/wwwroot/routes/iotcenter/record/index.html
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/projects/WebMVC/wwwroot/routes/admin/system.html b/projects/WebMVC/wwwroot/routes/iotcenter/system.html
similarity index 100%
rename from projects/WebMVC/wwwroot/routes/admin/system.html
rename to projects/WebMVC/wwwroot/routes/iotcenter/system.html
diff --git a/projects/WebMVC/wwwroot/routes/settings/setting/detail.html b/projects/WebMVC/wwwroot/routes/settings/setting/detail.html
new file mode 100644
index 00000000..82813d6c
--- /dev/null
+++ b/projects/WebMVC/wwwroot/routes/settings/setting/detail.html
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/projects/WebMVC/wwwroot/routes/admin/setting/edit.html b/projects/WebMVC/wwwroot/routes/settings/setting/edit.html
similarity index 99%
rename from projects/WebMVC/wwwroot/routes/admin/setting/edit.html
rename to projects/WebMVC/wwwroot/routes/settings/setting/edit.html
index 8b0e8731..763ff166 100644
--- a/projects/WebMVC/wwwroot/routes/admin/setting/edit.html
+++ b/projects/WebMVC/wwwroot/routes/settings/setting/edit.html
@@ -76,7 +76,7 @@
data: function () {
return {
service: 'IoTCenter',
- area: "admin",
+ area: "iotcenter",
entity: 'Setting',
model: 'Setting',
mode: this.$route.query.mode,
diff --git a/projects/WebMVC/wwwroot/routes/settings/setting/index.html b/projects/WebMVC/wwwroot/routes/settings/setting/index.html
new file mode 100644
index 00000000..0b54d1b3
--- /dev/null
+++ b/projects/WebMVC/wwwroot/routes/settings/setting/index.html
@@ -0,0 +1,7 @@
+
+
+
+