diff --git a/src/views/enm_rm/logDetail.vue b/src/views/enm_rm/logDetail.vue
index 070ee9f7..04bffc8d 100644
--- a/src/views/enm_rm/logDetail.vue
+++ b/src/views/enm_rm/logDetail.vue
@@ -134,10 +134,20 @@
highlightCurrentRow
>
-
+
+
+
+ {{ scope.row.mpoint_nickname }}
+
+
+ {{ scope.row.mpoint_name }}
+
+
@@ -173,38 +183,56 @@
-
+
-
-
-
-
+
+
+
+
+
+
+
+ 保存
+
+
-
+
@@ -717,15 +745,11 @@ export default {
visible: false,
hideDelete: true,
isSaveing: false,
- mpFormVal: false,
activeName: "first",
stlogTitle: "新增异常",
clickItem: {},
sflogItem: {},
form: {},
- mpForm: {
- val: null,
- },
thirdForm: {
num: "",
},
@@ -770,6 +794,7 @@ export default {
apiObj: null,
apiObjStlog: null,
heightTable: null,
+ updateKey: false,
};
},
mounted() {
@@ -781,10 +806,7 @@ export default {
this.apiObjStlog = this.$API.wpm.stlog.list;
let form = this.$TOOL.data.get("sflogItem");
this.form = JSON.parse(form);
- if (this.form.mgroup_name == "石灰石破碎") {
- this.getMpoint();
- this.getMpointStat();
- }
+ this.getMpoint();
this.getTeam();
this.getStlog();
let height = document.getElementById("elMain").clientHeight;
@@ -820,7 +842,14 @@ export default {
form.enabled = 1;
form.mgroup = that.mgroupId;
that.$API.enm.mpoint.list.req(form).then((res) => {
- that.mpointOptions = res;
+ if (res.length > 0) {
+ that.mpointOptions = [];
+ res.forEach((item) => {
+ item.mpFormVal = "";
+ that.mpointOptions.push(item);
+ });
+ that.getMpointStat();
+ }
});
},
getMpointStat() {
@@ -830,22 +859,22 @@ export default {
form.has_create_by = 1;
form.mgroup = that.mgroupId;
that.$API.enm.mpoint.stat.req(form).then((res) => {
- console.log("res", res);
that.mpointStat = res.results;
-
- // this.$refs.mpointStatTable.queryData(form);
res.results.forEach((item) => {
let month_s =
item.month_s > 9 ? item.month_s : "0" + item.month_s;
let day_s = item.day_s > 9 ? item.day_s : "0" + item.day_s;
let work_date = item.year_s + "-" + month_s + "-" + day_s;
- // debugger;
- // console.log("work_date", work_date);
- // console.log("that.form.work_date", that.form.work_date);
- if (work_date == that.form.work_date) {
- that.mpForm.val = item.val;
- this.mpFormVal = true;
- }
+ that.mpointOptions.forEach((item2) => {
+ if (item2.name == item.mpoint_name) {
+ item2.mpFormValAble = true;
+ item2.mpFormVal = item.val;
+ }
+ });
+ console.log(that.mpointOptions);
+ that.updateKey = !that.updateKey;
+ // that.$set(that.mpointOptions,"that.mpointOptions","新的值");
+ that.$forceUpdate();
});
});
},
@@ -857,10 +886,9 @@ export default {
that.$API.enm.mpoint.statDelete
.req(row.id)
.then((res) => {
- that.$message.success("删除成功");
- that.mpFormVal = false;
that.getMpointStat();
that.$refs.mpointStatTable.refresh();
+ that.$message.success("删除成功");
})
.catch((err) => {
this.$message.success(err);
@@ -1067,20 +1095,21 @@ export default {
this.visible = true;
this.sflogExpVisiable = false;
},
- submit5() {
+ //测点录入提交
+ submit5(item) {
let that = this;
that.isSaveing = true;
let obj = {};
- obj.val = that.mpForm.val;
+ obj.val = item.mpFormVal;
obj.sflog = that.form.id;
obj.mgroup = that.mgroupId;
- obj.mpoint = that.mpointOptions[0].id;
+ obj.mpoint = item.id;
that.$API.enm.mpoint.statCreate
.req(obj)
.then((res) => {
that.isSaveing = false;
- that.$message.success("操作成功");
- that.mpFormVal = true;
+ that.$message.success("保存成功");
+ that.getMpointStat();
that.$refs.mpointStatTable.refresh();
})
.catch((res) => {
diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue
index 875d8ea0..394c5631 100644
--- a/src/views/wpm_gx/handover.vue
+++ b/src/views/wpm_gx/handover.vue
@@ -74,6 +74,14 @@
+
+
+ 交送
+ 接收
+
+
@@ -216,7 +228,7 @@ export default {
that.$API.mtm.mgroup.list
.req({ page: 0, search: that.mgroupName })
.then((res) => {
- if(res.length != 1){
+ if (res.length != 1) {
that.$message.error("获取工段错误");
return;
}
@@ -281,7 +293,7 @@ export default {
//删除
async table_del(row) {
var id = row.id;
- var res = await this.$API.mtm.mgroup.delete.req(id);
+ var res = await this.$API.wpm.handover.delete.req(id);
if (res.err_msg) {
this.$message.error(res.err_msg);
} else {
diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue
index 6c132b3b..6d38e655 100644
--- a/src/views/wpm_gx/inm.vue
+++ b/src/views/wpm_gx/inm.vue
@@ -42,17 +42,16 @@
-
-
+ -->
@@ -152,7 +150,7 @@ export default {
that.$API.mtm.mgroup.list
.req({ page: 0, search: that.mgroupName })
.then((res) => {
- if(res.length != 1){
+ if (res.length != 1) {
that.$message.error("获取工段错误");
return;
}