diff --git a/src/config/route.js b/src/config/route.js
index d0f822af..1016ad75 100644
--- a/src/config/route.js
+++ b/src/config/route.js
@@ -206,26 +206,6 @@ const routes = [
},
"component": "em/equipment"
},
- {
- "name": "monitoring",
- "path": "/em/monitoring",
- "meta": {
- "title": "计量设备",
- "icon": "el-icon-grid",
- "perms": ["equipment"]
- },
- "component": "em/monitoring"
- },
- {
- "name": "em",
- "path": "/em/mpoint",
- "meta": {
- "title": "测点管理",
- "icon": "el-icon-grid",
- "perms": ["mpoint"]
- },
- "component": "em/mpoint"
- },
]
},
{
@@ -821,6 +801,16 @@ const routes = [
"perms": ["bi"]
},
"children": [
+ {
+ "path": "/ungrouped/team",
+ "name": "team",
+ "meta": {
+ "title": "班组管理",
+ "icon": "el-icon-postcard",
+ "type": "menu",
+ },
+ "component": "sys/team"
+ },
{
"name": "mgruop",
"path": "/ungrouped/mgruop",
@@ -895,17 +885,6 @@ 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 696f1dda..4da26e47 100644
--- a/src/views/em/equipment.vue
+++ b/src/views/em/equipment.vue
@@ -41,8 +41,6 @@
-
-
@@ -63,36 +61,26 @@
{{ scope.row.parameter }}
- {{ scope.row.keeper_.username }}
+ {{ scope.row.keeper_name }}
{{ scope.row.place }}
-
-
- {{item.name}}
-
-
-
+
{{ scope.row.description }}
编辑
删除
@@ -160,12 +148,10 @@ export default {
},
//删除
async table_del(row) {
-
- this.$API.rpm.rparty.delete
+ this.$API.em.equipment.delete
.req(row.id)
.then((res) => {
this.$message.success("删除成功");
-
return res;
})
.catch((err) => {
diff --git a/src/views/em/equipment_form.vue b/src/views/em/equipment_form.vue
index 9ce0b4d6..851893d5 100644
--- a/src/views/em/equipment_form.vue
+++ b/src/views/em/equipment_form.vue
@@ -56,7 +56,7 @@
v-model="form.production_date"
type="date"
placeholder="选择日期"
- value-format="yyyy-MM-dd"
+ value-format="YYYY-MM-DD"
style="width:100%"
>
@@ -68,25 +68,24 @@
v-model="form.buy_date"
type="date"
placeholder="选择日期"
- value-format="yyyy-MM-dd"
+ value-format="YYYY-MM-DD"
style="width:100%"
>
-
-
+
+
-
-
+
@@ -94,37 +93,26 @@
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
+
{
- this.belong_dept_options = genTree(res);
- })
+ //加载树数据
+ async getGroup() {
+ let res = await this.$API.system.dept.list.req({ page: 0 });
+ this.group = genTree(res);
+ },
+ getReceptionist(data) {
+ this.form.keeper=data.id;
+ this.form.keeper_name=data.name
},
+
//显示
open(mode = "add") {
this.mode = mode;
@@ -232,9 +231,9 @@ export default {
try {
var res;
if (this.mode == "add") {
- res = await this.$API.rpm.rparty.create.req(this.form);
+ res = await this.$API.em.equipment.create.req(this.form);
} else if (this.mode == "edit") {
- res = await this.$API.rpm.rparty.update.req(
+ res = await this.$API.em.equipment.update.req(
this.form.id,
this.form
);
diff --git a/src/views/em/monitoring.vue b/src/views/em/monitoring.vue
deleted file mode 100644
index f4ae8270..00000000
--- a/src/views/em/monitoring.vue
+++ /dev/null
@@ -1,209 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.number }}
-
-
-
- {{mgmtype_[scope.row.mgmtype]}}
-
-
-
- {{ waytype_[scope.row.way] }}
-
-
- {{ scope.row.standard }}
-
-
- {{ scope.row.cycle }}
-
-
- {{ scope.row.check_date }}
-
-
-
-
- {{scope.row.next_check_date}}
-
-
-
-
-
- {{ scope.row.name }}
-
-
- {{ scope.row.model }}
-
-
-
- {{ scope.row.factory }}
-
-
- {{ usetype_[scope.row.way] }}
-
-
-
-
- {{ state_[scope.row.state] }}
-
-
- {{ state_[scope.row.state] }}
-
-
-
-
-
- {{scope.row.keeper_.username}}
-
-
-
- {{ scope.row.place }}
-
-
-
-
- {{ item.name }}
-
-
-
-
- {{ scope.row.description }}
-
-
-
-
- 编辑
-
-
- 删除
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/em/monitoring_form.vue b/src/views/em/monitoring_form.vue
deleted file mode 100644
index c333f6e8..00000000
--- a/src/views/em/monitoring_form.vue
+++ /dev/null
@@ -1,319 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
- 取消
-
-
-
-
-
-
-
-
diff --git a/src/views/ungrouped/mgroup.vue b/src/views/ungrouped/mgroup.vue
index 2d082e79..97edeb32 100644
--- a/src/views/ungrouped/mgroup.vue
+++ b/src/views/ungrouped/mgroup.vue
@@ -57,7 +57,18 @@
-
+
+
+
-
+
@@ -78,9 +78,9 @@
>
@@ -95,24 +95,28 @@
>
-
-
+
+ style="width: 100%;"
+ >
+
+
@@ -179,13 +183,14 @@
group: [],
mgroupOptions:[],
epOptions:[],
+ materials:[],
monitoredOptions:[],
}
},
mounted() {
- // this.getList();
+ this.getMaterial();
this.getGroup();//获取部门
this.getEquipment();//获取设备
this.getMonitored();//获取检测设备
@@ -204,21 +209,28 @@
//获取设备列表
getEquipment(){
this.$API.em.equipment.list.req({page:0,type:10}).then(res=>{
- this.epOptions = res.data;
+ this.epOptions = res;
})
},
//获取监测设备列表
getMonitored(){
this.$API.em.equipment.list.req({page:0,type:20}).then(res=>{
- this.monitoredOptions = res.data;
+ this.monitoredOptions = res;
})
},
//获取集合列表
getMgroup(){
- this.$API.mtm.material.list.req({page:0}).then(res=>{
- this.mgroupOptions = res.data;
+ this.$API.mtm.mgroup.list.req({page:0}).then(res=>{
+ this.mgroupOptions = res;
})
},
+ //获取产品列表
+ getMaterial(){
+ this.$API.mtm.material.list.req({page:0}).then(res=>{
+ this.materials = res;
+ })
+
+ },
//添加测点集
roleAdd(){
this.limitedVisible = true;