Skip to content

Commit

Permalink
feat: 修改任务id
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnwinterLiu committed Aug 23, 2022
1 parent 1b7230e commit a9f0e10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/views/CloudFunction/engine/channel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@onChange="onChange"
/>
</el-drawer>
<dgiot-input ref="uploadFinish" @fileInfo="fileInfo" />
<dgiot-input ref="uploadFinish" accept=".csv" @fileInfo="fileInfo" />
<div class="firsttable">
<el-form
class="demo-form-inline"
Expand Down
17 changes: 9 additions & 8 deletions src/views/CloudTest/js/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,12 @@ export default {
const { data = [] } = JSON.parse(Base64.decode(mqttMsg.payloadString))
this.renderCard(data)
// 刷新存储数据
getDevice(params.objectId).then((res) => {
this.historyEvidence = res.profile.historicaldata
this.drawxnqxPath = res.profile.drawxnqxPath
})
if (params.profile.istcp) {
getDevice(params.objectId).then((res) => {
this.historyEvidence = res.profile.historicaldata
this.drawxnqxPath = res.profile.drawxnqxPath
})
}
if (data) {
this.collectiontable(data)
// this.renderCard(data)
Expand Down Expand Up @@ -446,8 +448,7 @@ export default {
this.historyEvidence = []
try {
const params = {
order: '-createdAt',
skip: 0,
limit: 1,
where: {
'original.taskid': taskid,
'original.type': 'avgs',
Expand Down Expand Up @@ -871,7 +872,7 @@ export default {
const pubTopic = `$dg/thing/${row.parentId.objectId}/properties/get/request_id=opc_items` // 读取opc属性topic
const message = {
cmd: 'opc_items',
groupid: row.parentId.objectId, //'设备ID',
groupid: row.objectId, //'任务ID',
opcserver:
basedata.dgiot_testing_opcserver ?? 'Kepware.KEPServerEX.V6',
items: items, //要读取到属性列表
Expand Down Expand Up @@ -917,7 +918,7 @@ export default {
const message = {
cmd: 'opc_report', // 采集条数
duration: Number(basedata.dgiot_sampling_parametric_frequency) ?? 5, //条数
groupid: params.parentId.objectId,
groupid: params.objectId,
}
console.groupCollapsed(
`%c 发送采集消息`,
Expand Down

1 comment on commit a9f0e10

@vercel
Copy link

@vercel vercel bot commented on a9f0e10 Aug 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dgiot-dashboard – ./

dgiot-dashboard-git-master-dgiot.vercel.app
dgiot-dashboard.vercel.app
dgiot-dashboard-dgiot.vercel.app

Please sign in to comment.