调整代码
This commit is contained in:
1 parent
b2df7f1fb6
commit
12bbc3dade
3 files changed
+41
-40
No files matched your search
@@ -1,7 +1,6 @@
|
||||
<!-- taskHistory.html >>>>>>>>>>>>> -->
|
||||
<script type="text/html" id="task-history">
|
||||
<div>
|
||||
<!-- <div>111---{{taskId}}</div> -->
|
||||
<div class="history-box">
|
||||
<div class="node-box d-flex mb-2" v-for="(nodeItem, nodeIndex) in workflowHistory" :key="nodeIndex">
|
||||
<div class="node-box-stepper">
|
||||
@@ -59,53 +58,25 @@
|
||||
vueComponent: 'task-history',
|
||||
vuetify: new Vuetify(),
|
||||
props: {
|
||||
taskId: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
taskConfigId: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
workflowConfig: {
|
||||
type: Object,
|
||||
workflowHistory: {
|
||||
type: Array,
|
||||
default: ()=>{
|
||||
return {}
|
||||
return []
|
||||
},
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isTableLoading: false,
|
||||
workflowHistory: [],
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
taskId: {
|
||||
handler(val, oldVal) {
|
||||
if (!val) return;
|
||||
this.getTableData();
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// ---------- 获取列表 >>>>>>>>>> --------
|
||||
async getTableData() {
|
||||
this.isTableLoading = true;
|
||||
const resultData = (await window.jianghuAxios({
|
||||
data: {
|
||||
appData: {
|
||||
pageId: 'todo',
|
||||
actionId: 'getTaskWorkflow',
|
||||
actionData: {taskId: this.taskId},
|
||||
}
|
||||
}
|
||||
})).data.appData.resultData
|
||||
this.workflowHistory = resultData
|
||||
this.isTableLoading = false;
|
||||
},
|
||||
// ---------- <<<<<<<<<< 获取列表 --------
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user