diff --git a/api/system/userlog.js b/api/system/userlog.js
new file mode 100644
index 0000000..6613865
--- /dev/null
+++ b/api/system/userlog.js
@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function getlist(data) {
+ return request({
+ url: '/iotlog/userlog/list',
+ method: 'get',
+ data: data
+ })
+}
\ No newline at end of file
diff --git a/components/custom-index-adc/custom-index-adc.vue b/components/custom-index-adc/custom-index-adc.vue
index 8dd4e22..de9b7c4 100644
--- a/components/custom-index-adc/custom-index-adc.vue
+++ b/components/custom-index-adc/custom-index-adc.vue
@@ -171,23 +171,23 @@
value: data?.date,
unit: null
});
- if (data?.latestOperation && data?.latestOperation.length) {
- this.items.push({
- title: "最近操作",
- value: data.latestOperation[0].operContent,
- unit: data.latestOperation[0].operResult ? '【成功】' : '【失败】',
- });
- this.items.push({
- title: "最近操作人",
- value: data.latestOperation[0].userName,
- unit: null,
- });
- this.items.push({
- title: "最近操作时间",
- value: timestampFormat(data.latestOperation[0].time),
- unit: null,
- });
- }
+ // if (data?.latestOperation && data?.latestOperation.length) {
+ // this.items.push({
+ // title: "最近操作",
+ // value: data.latestOperation[0].operContent,
+ // unit: data.latestOperation[0].operResult ? '【成功】' : '【失败】',
+ // });
+ // this.items.push({
+ // title: "最近操作人",
+ // value: data.latestOperation[0].userName,
+ // unit: null,
+ // });
+ // this.items.push({
+ // title: "最近操作时间",
+ // value: timestampFormat(data.latestOperation[0].time),
+ // unit: null,
+ // });
+ // }
}
this.open = true;
},
diff --git a/pages/index-map.vue b/pages/index-map.vue
index 76ca206..a721bdd 100644
--- a/pages/index-map.vue
+++ b/pages/index-map.vue
@@ -357,19 +357,19 @@
更多
-
+
- {{dc.dataObj[pop.item.dataKey].latestOperation[0].operContent}}
+ {{item.operContent}}
- {{dc.dataObj[pop.item.dataKey].latestOperation[0].operResult ? '【成功】' : '【失败】'}}
+ {{item.operResult ? '【成功】' : '【失败】'}}
- 操作人:{{dc.dataObj[pop.item.dataKey].latestOperation[0].userName}}
- {{formatData(dc.dataObj[pop.item.dataKey].latestOperation[0].time)}}
+ 操作人:{{item.userName}}
+ {{formatData(item.time)}}
diff --git a/pages/work/operation-log/index.vue b/pages/work/operation-log/index.vue
index c62fd68..8f29150 100644
--- a/pages/work/operation-log/index.vue
+++ b/pages/work/operation-log/index.vue
@@ -1,9 +1,161 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 出水口:
+ {{ item.woName}}
+
+
+
+
+
+
+
+
+
+ 设备名称:
+ {{ item.operSubject}}
+
+
+ 执行内容:
+ {{ item.operContent}}
+
+
+ 操作人员:
+ {{ item.operUser}}
+
+
+ 操作时间:
+ {{ item.occurTime}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file