diff --git a/src/api/model/em.js b/src/api/model/em.js
index efc8ff5a..5233d627 100644
--- a/src/api/model/em.js
+++ b/src/api/model/em.js
@@ -146,4 +146,55 @@ export default {
}
},
},
+ //设备分类
+ ecate: {
+ list: {
+ name: "列表",
+ req: async function(data){
+ return await http.get(
+ `${config.API_URL}/em/ecate/`,
+ data
+ );
+ }
+ },
+ item: {
+ name: "获取详情",
+ req: async function(id){
+ return await http.get(
+ `${config.API_URL}/em/ecate/${id}/`
+ );
+ }
+ },
+ update: {
+ name: "更新",
+ req: async function(id, data){
+ return await http.put(
+ `${config.API_URL}/em/ecate/${id}/`,
+ data);
+ }
+ },
+ create: {
+ name: "创建",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/em/ecate/`,
+ data);
+ }
+ },
+ delete: {
+ name: "删除",
+ req: async function(id){
+ return await http.delete(
+ `${config.API_URL}/em/ecate/${id}/`);
+ }
+ },
+ cquery: {
+ name: "复杂查询",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/em/ecate/cquery/`,
+ data);
+ }
+ },
+ },
}
\ No newline at end of file
diff --git a/src/config/route.js b/src/config/route.js
index 3ac387bf..19e6b31c 100644
--- a/src/config/route.js
+++ b/src/config/route.js
@@ -1815,6 +1815,16 @@ const routes = [
"perms": ["em"]
},
"children": [
+ {
+ "name": "ecate",
+ "path": "/em/ecate",
+ "meta": {
+ "title": "设备分类",
+ "icon": "el-icon-cellphone",
+ "perms": ["ecate"]
+ },
+ "component": "em/ecate"
+ },
{
"name": "equipment",
"path": "/em/equipment",
@@ -1831,9 +1841,9 @@ const routes = [
"meta": {
"title": "计量设备",
"icon": "el-icon-cellphone",
- "perms": ["equipmentc"]
+ "perms": ["equipmentjl"]
},
- "component": "em/equipmentc"
+ "component": "em/equipmentjl"
},
{
"name": "equipmentz",
@@ -1841,9 +1851,9 @@ const routes = [
"meta": {
"title": "治理设备",
"icon": "el-icon-cellphone",
- "perms": ["equipmentz"]
+ "perms": ["equipmentzl"]
},
- "component": "em/equipmentz"
+ "component": "em/equipmentzl"
},
{
"name": "equipmentj",
@@ -1851,9 +1861,19 @@ const routes = [
"meta": {
"title": "监控设备",
"icon": "el-icon-cellphone",
- "perms": ["equipmentj"]
+ "perms": ["equipmentjk"]
},
- "component": "em/equipmentj"
+ "component": "em/equipmentjk"
+ },
+ {
+ "name": "equipmentj",
+ "path": "/em/equipmentjc",
+ "meta": {
+ "title": "监测设备",
+ "icon": "el-icon-cellphone",
+ "perms": ["equipmentjc"]
+ },
+ "component": "em/equipmentjc"
},
{
"name": "xjRecord",
@@ -1861,7 +1881,7 @@ const routes = [
"meta": {
"title": "巡检记录",
"icon": "el-icon-cellphone",
- "perms": ["equipment"]
+ "perms": ["einspect"]
},
"component": "em/xjRecord"
},
@@ -2191,7 +2211,7 @@ const routes = [
"path": "/bigScreenEnp",
"name": "bigScreenEnp",
"meta": {
- "title": "数据大屏Enp",
+ "title": "环保大屏",
"icon": "el-icon-platform",
"perms": ["bigScreenEnp"],
"fullpage": true,
diff --git a/src/views/em/ecate.vue b/src/views/em/ecate.vue
new file mode 100644
index 00000000..d617a18f
--- /dev/null
+++ b/src/views/em/ecate.vue
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ typeOptions_[scope.row.type] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/em/equipmentz.vue b/src/views/em/equipmentjc.vue
similarity index 100%
rename from src/views/em/equipmentz.vue
rename to src/views/em/equipmentjc.vue
diff --git a/src/views/em/equipmentc.vue b/src/views/em/equipmentjk.vue
similarity index 100%
rename from src/views/em/equipmentc.vue
rename to src/views/em/equipmentjk.vue
diff --git a/src/views/em/equipmentj.vue b/src/views/em/equipmentjl.vue
similarity index 100%
rename from src/views/em/equipmentj.vue
rename to src/views/em/equipmentjl.vue
diff --git a/src/views/em/equipmentzl.vue b/src/views/em/equipmentzl.vue
new file mode 100644
index 00000000..c49a0a3f
--- /dev/null
+++ b/src/views/em/equipmentzl.vue
@@ -0,0 +1,325 @@
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+
+
+ {{ scope.row.belong_dept_name }}
+
+
+ {{ scope.row.mgroup_name }}
+
+
+ {{ scope.row.keeper_name }}
+
+
+ {{ scope.row.place }}
+
+
+ {{ scope.row.description }}
+
+
+
+
+ 巡检
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+ 新增
+ 导出
+
+
+
+
+
+
+
+
+
+ {{ results_[scope.row.result] }}
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ results_[scope.row.result] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
\ No newline at end of file