diff --git a/src/api/model/em.js b/src/api/model/em.js
index 0f2e92f3..d2fc2250 100644
--- a/src/api/model/em.js
+++ b/src/api/model/em.js
@@ -2,10 +2,10 @@ import config from "@/config"
import http from "@/utils/request"
/*EM接口*/
export default {
- // 测点集
- mgroup: {
+ // 设备
+ equipment: {
list: {
- name: "测点集列表",
+ name: "设备列表",
req: async function(data){
return await http.get(
`${config.API_URL}/em/equipment/`,
@@ -14,7 +14,7 @@ export default {
}
},
item: {
- name: "获取测点集详情",
+ name: "获取设备详情",
req: async function(id){
return await http.get(
`${config.API_URL}/em/equipment/${id}/`
diff --git a/src/api/model/enm.js b/src/api/model/enm.js
index 38e41d2f..5395741b 100644
--- a/src/api/model/enm.js
+++ b/src/api/model/enm.js
@@ -2,74 +2,6 @@ import config from "@/config"
import http from "@/utils/request"
/*EM接口*/
export default {
- // 测点集
- mgroup: {
- list: {
- name: "测点集列表",
- req: async function(data){
- return await http.get(
- `${config.API_URL}/enm/mgroup/`,
- data
- );
- }
- },
- item: {
- name: "获取测点集详情",
- req: async function(id){
- return await http.get(
- `${config.API_URL}/enm/mgroup/${id}/`
- );
- }
- },
- update: {
- name: "更新",
- req: async function(id, data){
- return await http.put(
- `${config.API_URL}/enm/mgroup/${id}/`,
- data);
- }
- },
- create: {
- name: "创建",
- req: async function(data){
- return await http.post(
- `${config.API_URL}/enm/mgroup/`,
- data);
- }
- },
- delete: {
- name: "删除",
- req: async function(id){
- return await http.delete(
- `${config.API_URL}/enm/mgroup/${id}/`);
- }
- },
- deletes: {
- name: "批量删除",
- req: async function(data){
- return await http.post(
- `${config.API_URL}/enm/mgroup/deletes/`,
- data);
- }
- },
- cquery: {
- name: "复杂查询",
- req: async function(data){
- return await http.post(
- `${config.API_URL}/enm/mgroup/cquery/`,
- data);
- }
- },
- deleteHard: {
- name: "批量物理删除",
- req: async function(data){
- return await http.post(
- `${config.API_URL}/enm/mgroup/deletes_hard/`,
- data);
- }
- },
- },
-
// 测点
mpoint: {
mplog: {
@@ -146,71 +78,4 @@ export default {
}
},
},
- //班组
- team: {
- list: {
- name: "班组列表",
- req: async function(data){
- return await http.get(
- `${config.API_URL}/enm/team/`,
- data
- );
- }
- },
- item: {
- name: "获取详情",
- req: async function(id){
- return await http.get(
- `${config.API_URL}/enm/team/${id}/`
- );
- }
- },
- update: {
- name: "更新",
- req: async function(id, data){
- return await http.put(
- `${config.API_URL}/enm/team/${id}/`,
- data);
- }
- },
- create: {
- name: "创建",
- req: async function(data){
- return await http.post(
- `${config.API_URL}/enm/team/`,
- data);
- }
- },
- delete: {
- name: "删除",
- req: async function(id){
- return await http.delete(
- `${config.API_URL}/enm/team/${id}/`);
- }
- },
- deletes: {
- name: "批量删除",
- req: async function(data){
- return await http.post(
- `${config.API_URL}/enm/team/deletes/`,
- data);
- }
- },
- cquery: {
- name: "复杂查询",
- req: async function(data){
- return await http.post(
- `${config.API_URL}/enm/team/cquery/`,
- data);
- }
- },
- deleteHard: {
- name: "批量物理删除",
- req: async function(data){
- return await http.post(
- `${config.API_URL}/enm/team/deletes_hard/`,
- data);
- }
- },
- },
}
\ No newline at end of file
diff --git a/src/api/model/mtm.js b/src/api/model/mtm.js
new file mode 100644
index 00000000..1a10984c
--- /dev/null
+++ b/src/api/model/mtm.js
@@ -0,0 +1,283 @@
+import config from "@/config"
+import http from "@/utils/request"
+/*EM接口*/
+export default {
+ // 目标
+ goal: {
+ list: {
+ name: "目标列表",
+ req: async function(data){
+ return await http.get(
+ `${config.API_URL}/mtm/goal/`,
+ data
+ );
+ }
+ },
+ item: {
+ name: "获取目标详情",
+ req: async function(id){
+ return await http.get(
+ `${config.API_URL}/mtm/goal/${id}/`
+ );
+ }
+ },
+ create: {
+ name: "创建",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/goal/`,
+ data);
+ }
+ },
+ update: {
+ name: "更新",
+ req: async function(id, data){
+ return await http.put(
+ `${config.API_URL}/mtm/goal/${id}/`,
+ data);
+ }
+ },
+ delete: {
+ name: "删除",
+ req: async function(id){
+ return await http.delete(
+ `${config.API_URL}/mtm/goal/${id}/`);
+ }
+ },
+ deletes: {
+ name: "批量删除",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/goal/deletes/`,
+ data);
+ }
+ },
+ cquery: {
+ name: "复杂查询",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/goal/cquery/`,
+ data);
+ }
+ },
+ deleteHard: {
+ name: "批量物理删除",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/goal/deletes_hard/`,
+ data);
+ }
+ },
+ },
+ // 产品
+ material: {
+ list: {
+ name: "产品列表",
+ req: async function(data){
+ return await http.get(
+ `${config.API_URL}/mtm/material/`,
+ data
+ );
+ }
+ },
+ item: {
+ name: "获取产品详情",
+ req: async function(id){
+ return await http.get(
+ `${config.API_URL}/mtm/material/${id}/`
+ );
+ }
+ },
+ create: {
+ name: "创建",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/material/`,
+ data);
+ }
+ },
+ update: {
+ name: "更新",
+ req: async function(id, data){
+ return await http.put(
+ `${config.API_URL}/mtm/material/${id}/`,
+ data);
+ }
+ },
+ delete: {
+ name: "删除",
+ req: async function(id){
+ return await http.delete(
+ `${config.API_URL}/mtm/material/${id}/`);
+ }
+ },
+ deletes: {
+ name: "批量删除",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/material/deletes/`,
+ data);
+ }
+ },
+ cquery: {
+ name: "复杂查询",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/material/cquery/`,
+ data);
+ }
+ },
+ deleteHard: {
+ name: "批量物理删除",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/material/deletes_hard/`,
+ data);
+ }
+ },
+ },
+ // 测点集
+ mgroup: {
+ list: {
+ name: "测点集列表",
+ req: async function(data){
+ return await http.get(
+ `${config.API_URL}/mtm/mgroup/`,
+ data
+ );
+ }
+ },
+ item: {
+ name: "获取测点集详情",
+ req: async function(id){
+ return await http.get(
+ `${config.API_URL}/mtm/mgroup/${id}/`
+ );
+ }
+ },
+ create: {
+ name: "创建",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/mgroup/`,
+ data);
+ }
+ },
+ update: {
+ name: "更新",
+ req: async function(id, data){
+ return await http.put(
+ `${config.API_URL}/mtm/mgroup/${id}/`,
+ data);
+ }
+ },
+ delete: {
+ name: "删除",
+ req: async function(id){
+ return await http.delete(
+ `${config.API_URL}/mtm/mgroup/${id}/`);
+ }
+ },
+ deletes: {
+ name: "批量删除",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/mgroup/deletes/`,
+ data);
+ }
+ },
+ cquery: {
+ name: "复杂查询",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/mgroup/cquery/`,
+ data);
+ }
+ },
+ deleteHard: {
+ name: "批量物理删除",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/mgroup/deletes_hard/`,
+ data);
+ }
+ },
+ },
+ //班次
+ shift: {
+ name: "班次列表",
+ req: async function(data){
+ return await http.get(
+ `${config.API_URL}/mtm/team/`,
+ data
+ );
+ }
+ },
+ //班组
+ team: {
+ list: {
+ name: "班组列表",
+ req: async function(data){
+ return await http.get(
+ `${config.API_URL}/mtm/team/`,
+ data
+ );
+ }
+ },
+ item: {
+ name: "获取详情",
+ req: async function(id){
+ return await http.get(
+ `${config.API_URL}/mtm/team/${id}/`
+ );
+ }
+ },
+ create: {
+ name: "创建",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/team/`,
+ data);
+ }
+ },
+ update: {
+ name: "更新",
+ req: async function(id, data){
+ return await http.put(
+ `${config.API_URL}/mtm/team/${id}/`,
+ data);
+ }
+ },
+ delete: {
+ name: "删除",
+ req: async function(id){
+ return await http.delete(
+ `${config.API_URL}/mtm/team/${id}/`);
+ }
+ },
+ deletes: {
+ name: "批量删除",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/team/deletes/`,
+ data);
+ }
+ },
+ cquery: {
+ name: "复杂查询",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/team/cquery/`,
+ data);
+ }
+ },
+ deleteHard: {
+ name: "批量物理删除",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/mtm/team/deletes_hard/`,
+ data);
+ }
+ },
+ },
+}
\ No newline at end of file
diff --git a/src/api/model/qm.js b/src/api/model/qm.js
index f8f2c17e..1bbaaf67 100644
--- a/src/api/model/qm.js
+++ b/src/api/model/qm.js
@@ -2,6 +2,7 @@ import config from "@/config"
import http from "@/utils/request"
export default {
+ //质量分析报告
getQuastat: {
url: `${config.API_URL}/qm/quastat/`,
name: "质量报告分析",
@@ -9,6 +10,7 @@ export default {
return await http.get(this.url, data);
}
},
+ //班组记录添加质量分析
createQuastat: {
url: `${config.API_URL}/qm/quastat/`,
name: "质量报告分析",
@@ -16,6 +18,7 @@ export default {
return await http.post(this.url, data);
}
},
+ //质检项目
getTestItem: {
url: `${config.API_URL}/qm/testitem/`,
name: "质检项目",
diff --git a/src/config/route.js b/src/config/route.js
index ce094f5e..bdeeaad2 100644
--- a/src/config/route.js
+++ b/src/config/route.js
@@ -207,14 +207,14 @@ const routes = [
"component": "em/equipment"
},
{
- "name": "equipment2",
- "path": "/em/equipment2",
+ "name": "monitoring",
+ "path": "/em/monitoring",
"meta": {
"title": "计量设备",
"icon": "el-icon-grid",
"perms": ["equipment"]
},
- "component": "em/equipment2"
+ "component": "em/monitoring"
},
{
"name": "em",
@@ -811,6 +811,48 @@ const routes = [
]
},
+ {
+ "name": "ungrouped",
+ "path": "/ungrouped",
+ "meta": {
+ "title": "未分组",
+ "icon": "el-icon-grid",
+ "type": "menu",
+ "perms": ["bi"]
+ },
+ "children": [
+ {
+ "name": "mgruop",
+ "path": "/ungrouped/mgruop",
+ "meta": {
+ "title": "测点集",
+ "icon": "el-icon-grid",
+ "perms": ["dataset"]
+ },
+ "component": "ungrouped/mgroup"
+ },
+ {
+ "name": "mpoint",
+ "path": "/ungrouped/mpoint",
+ "meta": {
+ "title": "测点",
+ "icon": "el-icon-grid",
+ "perms": ["dataset"]
+ },
+ "component": "ungrouped/mpoint"
+ },
+ {
+ "name": "goalSetting",
+ "path": "/ungrouped/goalSetting",
+ "meta": {
+ "title": "月度年度目标值",
+ "icon": "el-icon-grid",
+ "perms": ["dataset"]
+ },
+ "component": "ungrouped/goalSetting"
+ },
+ ]
+ },
{
"name": "sys",
"path": "/sys",
@@ -843,6 +885,17 @@ const routes = [
},
"component": "sys/dept"
},
+ {
+ "path": "/sys/team",
+ "name": "team",
+ "meta": {
+ "title": "班组管理",
+ "icon": "el-icon-postcard",
+ "type": "menu",
+ // "perms": ["team"]
+ },
+ "component": "sys/team"
+ },
{
"path": "/sys/post",
"name": "post",
diff --git a/src/views/em/equipment.vue b/src/views/em/equipment.vue
index 5851a265..696f1dda 100644
--- a/src/views/em/equipment.vue
+++ b/src/views/em/equipment.vue
@@ -26,6 +26,7 @@
:apiObj="apiObj"
row-key="id"
stripe
+ :params="query"
>
@@ -120,8 +121,12 @@ export default {
save: false,
permission: false,
},
- apiObj: this.$API.rpm.rparty.list,
- query: {},
+ apiObj: this.$API.em.equipment.list,
+ query: {
+ page:1,
+ page_size:20,
+ type:10
+ },
selection: [],
state_: {
10: '完好',
diff --git a/src/views/em/equipment_form.vue b/src/views/em/equipment_form.vue
index 909d2011..9ce0b4d6 100644
--- a/src/views/em/equipment_form.vue
+++ b/src/views/em/equipment_form.vue
@@ -100,7 +100,7 @@
-
+
+
-
+
@@ -140,6 +148,24 @@
+
+
diff --git a/src/views/em/mpoint.vue b/src/views/em/mpoint.vue
index a409cbe3..29fb3a0f 100644
--- a/src/views/em/mpoint.vue
+++ b/src/views/em/mpoint.vue
@@ -44,20 +44,27 @@
link
type="primary"
size="small"
- @click="table_show(scope.row, scope.$index)"
+ @click="mplog(scope.row)"
+ >原始记录
+ 查看
编辑
删除
@@ -74,8 +81,16 @@
@success="handleSaveSuccess"
@closed="dialog.save = false"
>
+
+ 1111
+
-
+
+
+
\ No newline at end of file
diff --git a/src/views/rm_enm/handovereEnter.vue b/src/views/rm_enm/handovereEnter.vue
index e69de29b..7c8640b5 100644
--- a/src/views/rm_enm/handovereEnter.vue
+++ b/src/views/rm_enm/handovereEnter.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sys/team.vue b/src/views/sys/team.vue
new file mode 100644
index 00000000..c35a5ffa
--- /dev/null
+++ b/src/views/sys/team.vue
@@ -0,0 +1,196 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 保 存
+
+
+
+
+
diff --git a/src/views/ungrouped/goalSetting.vue b/src/views/ungrouped/goalSetting.vue
new file mode 100644
index 00000000..d5b64cd2
--- /dev/null
+++ b/src/views/ungrouped/goalSetting.vue
@@ -0,0 +1,359 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 保 存
+
+
+
+
+
diff --git a/src/views/ungrouped/mgroup.vue b/src/views/ungrouped/mgroup.vue
new file mode 100644
index 00000000..4ffbe3f7
--- /dev/null
+++ b/src/views/ungrouped/mgroup.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ cates_[scope.row.cate] }}
+
+
+
+
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 保 存
+
+
+
+
+
diff --git a/src/views/ungrouped/mpoint.vue b/src/views/ungrouped/mpoint.vue
new file mode 100644
index 00000000..c151b8a6
--- /dev/null
+++ b/src/views/ungrouped/mpoint.vue
@@ -0,0 +1,302 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ cates_[scope.row.cate] }}
+
+
+
+
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 保 存
+
+
+
+
+