更换新组件
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
|
||||
<el-table-column slot="options" label="操作" fixed="right" align="center" width="300">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="text" @click="showProcess(row.workflowConfig)">查看进度</el-button>
|
||||
<el-button type="text" @click="showProcess(row)">查看进度</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ai-table>
|
||||
</template>
|
||||
</ai-list>
|
||||
<ai-dialog :visible.sync="dialog" title="查看进度" @closed="process=null" customFooter>
|
||||
<ai-workflow v-model="process" readonly/>
|
||||
<ai-flow v-model="process.nowNodeId" readonly :config="process.workflowConfig"/>
|
||||
<template #footer>
|
||||
<el-button @click="dialog=false">关闭</el-button>
|
||||
</template>
|
||||
@@ -29,11 +29,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiWorkflow from "./AiWorkflow";
|
||||
|
||||
export default {
|
||||
name: "workflowLogs",
|
||||
components: {AiWorkflow},
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
@@ -50,7 +47,7 @@ export default {
|
||||
{prop: "createUserName", label: "创建者"},
|
||||
],
|
||||
dialog: false,
|
||||
process: null
|
||||
process: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -67,8 +64,8 @@ export default {
|
||||
back() {
|
||||
this.$router.push({})
|
||||
},
|
||||
showProcess(process) {
|
||||
this.process = JSON.parse(process)
|
||||
showProcess(row) {
|
||||
this.process = {...row, workflowConfig: JSON.parse(row?.workflowConfig)}
|
||||
this.dialog = true
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user