Skip to content

Commit

Permalink
feat(equipmentCloud): parse_objectid关联productid
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnwinterLiu committed Sep 9, 2022
1 parent 8c50f4c commit 1a33b89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/views/CloudFunction/lowcode/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
>
{{ setRowState(selectRow, row) }}
</el-button>
<el-button type="text" @click="handleLowCode(row.objectId)">
<el-button type="text" @click="handleLowCode(row)">
{{ $translateTitle('application.preview') }}
</el-button>
<el-button type="text" @click="handleEdit(row)">
Expand Down Expand Up @@ -609,6 +609,7 @@
this.$refs['edit'].showEdit(this.queryForm)
},
async handleEdit(row) {
localStorage.setItem('parse_objectid', row.key)
const loading = this.$baseLoading(1)
const { data = {} } = await getView(row.objectId)
if (['amis_view', 'amis', 'topo'].includes(row.type) == -1) {
Expand Down Expand Up @@ -648,10 +649,11 @@
}
)
},
async handleLowCode(lowcodeId) {
async handleLowCode(row) {
localStorage.setItem('parse_objectid', row.key)
const loading = this.$baseColorfullLoading(1)
loading.close()
this.$dgiotBus.$emit('lowcodePreview', await getView(lowcodeId))
this.$dgiotBus.$emit('lowcodePreview', await getView(row.objectId))
},
async saveLowCode(lowcodeId, payload) {
const loading = this.$baseColorfullLoading(1)
Expand Down

1 comment on commit 1a33b89

@vercel
Copy link

@vercel vercel bot commented on 1a33b89 Sep 9, 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.vercel.app
dgiot-dashboard-dgiot.vercel.app
dgiot-dashboard-git-master-dgiot.vercel.app

Please sign in to comment.