Skip to content

Commit

Permalink
feat: dgiot_amis
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnwinterLiu committed Jul 21, 2022
1 parent 3f4df6a commit 8c91153
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 17 deletions.
29 changes: 26 additions & 3 deletions src/views/CloudTest/js/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export default {
},
data() {
return {
management: {
dialog: false,
data: {},
},
managementactiveName: '0',
dialog_device: false,
machinelist: {},
historyEvidenceid: '',
nowTime: window.datetime,
Expand Down Expand Up @@ -701,14 +707,31 @@ export default {
async handleManagement(row) {
this.$refs['lowcodeDesign'].withHeader = true
localStorage.setItem('parse_objectid', row.objectId)
localStorage.setItem('product_objectid', row.product.objectId)
const params = {
limit: 1,
where: { type: 'amis', key: row.objectId },
}
const { results } = await queryView(params)
console.log(results)
this.lowcodeId = results[0].objectId
this.$dgiotBus.$emit('lowcodePreview', results[0])
console.log('results', results)

if (_.isEmpty(results)) {
this.$baseMessage('暂未配置任务表单', 'info', 'dgiot-hey-message-error')
return false
} else {
this.management.dialog = true
this.management.data = results
}
// this.lowcodeId = results[0].objectId
// this.$dgiotBus.$emit('lowcodePreview', results[0])
},
handleCloseAmis() {
this.coordinate = {
lng: 116.404,
lat: 39.915,
}
this.dialog_device = false
this.management.dialog = false
},
/**
* @Author: h7ml
Expand Down
34 changes: 20 additions & 14 deletions src/views/CloudTest/task/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -335,20 +335,6 @@
@submit.native.prevent
>
<el-form-item>
<!-- <el-select-->
<!-- v-model="queryForm.name"-->
<!-- multiple-->
<!-- :placeholder="-->
<!-- $translateTitle('cloudTest.Please select review status')-->
<!-- "-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in options"-->
<!-- :key="item.value"-->
<!-- :label="item.label"-->
<!-- :value="item.value"-->
<!-- />-->
<!-- </el-select>-->
<el-input
v-model="queryForm.name"
:placeholder="
Expand Down Expand Up @@ -523,6 +509,26 @@
@paginationQuery="paginationQuery"
/>
<lowcode-design ref="lowcodeDesign" @objectId="lowcodeId" />
<!-- 配置任务-->
<el-dialog
append-to-body
:before-close="handleCloseAmis"
center
top="5vh"
:visible.sync="management.dialog"
width="80%"
>
<el-tabs v-model="managementactiveName">
<el-tab-pane
v-for="(item, index) in management.data"
:key="index + 'i'"
:label="item.title"
:name="index + ''"
>
<dgiot-amis :schema="item.data" :show-help="false" />
</el-tab-pane>
</el-tabs>
</el-dialog>
</div>
</template>

Expand Down

1 comment on commit 8c91153

@vercel
Copy link

@vercel vercel bot commented on 8c91153 Jul 21, 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-dgiot.vercel.app
dgiot-dashboard-git-master-dgiot.vercel.app
dgiot-dashboard.vercel.app

Please sign in to comment.