提交 3eaeda26 authored 作者: zs's avatar zs

edit

上级 cbaf24fb
...@@ -505,10 +505,9 @@ export default { ...@@ -505,10 +505,9 @@ export default {
`${params.recordName}(${params.inspectionCode})`, `${params.recordName}(${params.inspectionCode})`,
"巡检模块" "巡检模块"
); );
this.$logApi.addlog(logContent)
const log_list = this.$store.state.log_list; const log_list = this.$store.state.log_list;
logContent.inspectionType = params.inspectionType; logContent.inspectionType = params.inspectionType;
this.$logApi.addlog(logContent)
log_list.push(logContent); log_list.push(logContent);
this.$store.commit("SET_LOG_LIST", log_list); this.$store.commit("SET_LOG_LIST", log_list);
addLog(log_list).then((res) => { addLog(log_list).then((res) => {
......
...@@ -534,7 +534,6 @@ export default { ...@@ -534,7 +534,6 @@ export default {
console.log("签字获取数据", params); console.log("签字获取数据", params);
all_data[index] = params; all_data[index] = params;
const logContent = getLogContent(LOG_TYPE_ENUM.sign, "签字", "机房巡检"); const logContent = getLogContent(LOG_TYPE_ENUM.sign, "签字", "机房巡检");
this.$logApi.addlog(logContent)
// 更新巡检list // 更新巡检list
console.log("all_data存储", all_data); console.log("all_data存储", all_data);
console.log("all_data一个", all_data[index]); console.log("all_data一个", all_data[index]);
...@@ -549,6 +548,7 @@ export default { ...@@ -549,6 +548,7 @@ export default {
const log_list = this.$store.state.log_list; const log_list = this.$store.state.log_list;
logContent.inspectionType = params.inspectionType; logContent.inspectionType = params.inspectionType;
log_list.push(logContent); log_list.push(logContent);
this.$logApi.addlog(logContent)
this.$store.commit("SET_LOG_LIST", log_list); this.$store.commit("SET_LOG_LIST", log_list);
addLog(log_list).then((res) => { addLog(log_list).then((res) => {
console.log("日志文件写入成功"); console.log("日志文件写入成功");
......
...@@ -422,10 +422,9 @@ ...@@ -422,10 +422,9 @@
`${params.recordName}(${params.inspectionCode})`, `${params.recordName}(${params.inspectionCode})`,
"巡检模块" "巡检模块"
); );
this.$logApi.addlog(logContent)
const log_list = this.$store.state.log_list; const log_list = this.$store.state.log_list;
logContent.inspectionType = params.inspectionType; logContent.inspectionType = params.inspectionType;
this.$logApi.addlog(logContent)
log_list.push(logContent); log_list.push(logContent);
this.$store.commit("SET_LOG_LIST", log_list); this.$store.commit("SET_LOG_LIST", log_list);
addLog(log_list).then((res) => { addLog(log_list).then((res) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论