diff --git a/src/views/enm_rm/logDetail.vue b/src/views/enm_rm/logDetail.vue
index 42206497..1f2e128a 100644
--- a/src/views/enm_rm/logDetail.vue
+++ b/src/views/enm_rm/logDetail.vue
@@ -325,6 +325,10 @@
label="发生时间"
prop="start_time"
>
+
-
+
{{
scope.row.sflog_.shift_name
}}
+
+
+ {{
+ scope.row.sflog_.start_time
+ }}
+
+
+
+
+ {{
+ scope.row.sflog_.end_time
+ }}
+
+
{{
@@ -550,11 +568,19 @@
保存
+ 保存
取消
@@ -715,7 +741,7 @@ export default {
getStlog() {
let obj = {};
obj.page = 0;
- obj.sflog = this.form.id;
+ obj.mgroup = this.mgroupId;
this.$API.wpm.stlog.list.req(obj).then((res) => {
this.stlogList = res;
});
@@ -735,18 +761,22 @@ export default {
this.stlogForm.handler = this.$TOOL.data.get("USER_INFO").id;
this.stlogForm.mgroup = this.mgroupId;
this.stlogTitle = "新增异常";
+ this.sflogExpVisiable = false;
this.visible = true;
},
//异常编辑
editStlog(row) {
this.stlogTitle = "编辑异常";
this.stlogForm = row;
+ this.stlogForm.current_sflog = row.sflog;
+ this.sflogExpVisiable = false;
this.visible = true;
},
handleStlog() {
this.stlogTitle = "异常处理";
this.stlogForm = row;
this.visible = true;
+ this.sflogExpVisiable = true;
},
//新增异常提交
submit4() {
@@ -767,6 +797,8 @@ export default {
that.isSaveing = false;
});
} else if (that.stlogTitle == "编辑异常") {
+ console.log("that.stlogForm", that.stlogForm);
+ console.log("that.stlogForm.id", that.stlogForm.id);
that.$API.wpm.stlog.update
.req(that.stlogForm.id, that.stlogForm)
.then((res) => {
@@ -794,6 +826,7 @@ export default {
that.getSflogexp(that.clickItem.id);
})
.catch((res) => {
+ this.sflogExpVisiable = false;
that.isSaveing = false;
});
},
@@ -818,7 +851,6 @@ export default {
console.log(row);
this.clickItem = row;
this.getSflogexp(row.id);
- this.sflogExpVisiable = true;
},
getSflogexp(id) {
let obj = {};