|
@@ -23,16 +23,13 @@
|
|
<a-form-item label="时间跨度" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
<a-form-item label="时间跨度" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
<a-select v-model="queryParam.searchType" style="width: 120px">
|
|
<a-select v-model="queryParam.searchType" style="width: 120px">
|
|
<a-select-option value="1">
|
|
<a-select-option value="1">
|
|
- 10分钟
|
|
|
|
|
|
+ 1小时
|
|
</a-select-option>
|
|
</a-select-option>
|
|
<a-select-option value="2">
|
|
<a-select-option value="2">
|
|
- 20分钟
|
|
|
|
|
|
+ 2小时
|
|
</a-select-option>
|
|
</a-select-option>
|
|
<a-select-option value="3">
|
|
<a-select-option value="3">
|
|
- 30分钟
|
|
|
|
- </a-select-option>
|
|
|
|
- <a-select-option value="4">
|
|
|
|
- 60分钟
|
|
|
|
|
|
+ 3小时
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -55,7 +52,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { Chart } from '@antv/g2'
|
|
import { Chart } from '@antv/g2'
|
|
-import { queryRemoteOpcLog } from '@/api/remote/opc-log'
|
|
|
|
|
|
+import { queryRemoteOpcLogHisory } from '@/api/remote/opc-log'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
@@ -109,7 +106,7 @@ export default {
|
|
this.$message.error('请选择时间跨度')
|
|
this.$message.error('请选择时间跨度')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- queryRemoteOpcLog(this.queryParam)
|
|
|
|
|
|
+ queryRemoteOpcLogHisory(this.queryParam)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.data == null || res.data.length === 0) {
|
|
if (res.data == null || res.data.length === 0) {
|
|
this.$message.error('无数据')
|
|
this.$message.error('无数据')
|