|
|
|
@ -53,6 +53,7 @@ const nodeKey = ref<string>(''); |
|
|
|
const currentProgress = ref<number>(1); |
|
|
|
const newLogAry = ref<any>("") |
|
|
|
const oldLogAry = ref<any>("") |
|
|
|
const newDataLen = ref<number>(0); |
|
|
|
//表单相关内容 |
|
|
|
const formState = reactive({ |
|
|
|
formData: { |
|
|
|
@ -116,6 +117,7 @@ const gainFormData = () =>{ |
|
|
|
newLogAry.value = data.data.newData |
|
|
|
oldLogAry.value = data.data.oldData |
|
|
|
logistrue.value = data.data.logistrue |
|
|
|
newDataLen.value = data.data.newDataLen |
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
@ -147,6 +149,15 @@ onMounted(()=>{ |
|
|
|
flowMap.value = JSON.parse(props.flowLogInfo.flowcont) |
|
|
|
gainFormData() |
|
|
|
}) |
|
|
|
const runstep = ref(null) |
|
|
|
//修改完毕 |
|
|
|
const submitEdit = (type: string,val?:any) => { |
|
|
|
// console("修改完毕----->",type,val) |
|
|
|
if(type == "success"){ |
|
|
|
runstep.value.gainRunFlowTask() |
|
|
|
drawerBeforeClose(); |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<template> |
|
|
|
<el-drawer v-model="isOpen" v-loading="loadingData" element-loading-my-text="Loading..." :title="versiontitle" :close-on-click-modal="false" :close-on-press-escape="false" :destroy-on-close="true" :size="props.drawerWith" class="drawerClass" :before-close="drawerBeforeClose"> |
|
|
|
@ -168,10 +179,10 @@ onMounted(()=>{ |
|
|
|
:close-app-submit="closeAppSubmit" |
|
|
|
/> |
|
|
|
|
|
|
|
<el-divider v-if="logistrue" content-position="left">修改记录{{logistrue}}}</el-divider> |
|
|
|
<el-divider v-if="logistrue" content-position="left">历史记录</el-divider> |
|
|
|
<el-timeline> |
|
|
|
<el-timeline-item v-if="newLogAry.length > 0" :timestamp="newLogAry.logTime" placement="top"> |
|
|
|
<el-card> |
|
|
|
<el-timeline-item v-if="newDataLen > 0" :timestamp="newLogAry.logTime" placement="top"> |
|
|
|
|
|
|
|
<el-descriptions |
|
|
|
direction="vertical" |
|
|
|
:column="4" |
|
|
|
@ -185,13 +196,14 @@ onMounted(()=>{ |
|
|
|
<el-descriptions-item v-if="Array.isArray(item)&&index!='logTime'" :label="index" span="4"> |
|
|
|
|
|
|
|
<el-descriptions |
|
|
|
|
|
|
|
v-for="(itemarys,indexarys) in item" |
|
|
|
:key="indexarys" |
|
|
|
direction="vertical" |
|
|
|
:column="4" |
|
|
|
size="24px" |
|
|
|
border |
|
|
|
> |
|
|
|
<el-descriptions-item v-for="(items,indexs) in item[0]" :key="indexs" :label="indexs"> |
|
|
|
<el-descriptions-item v-for="(items,indexs) in itemarys" :key="indexs" :label="indexs"> |
|
|
|
{{ items }} |
|
|
|
</el-descriptions-item> |
|
|
|
</el-descriptions> |
|
|
|
@ -201,11 +213,11 @@ onMounted(()=>{ |
|
|
|
</div> |
|
|
|
</el-descriptions> |
|
|
|
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
</el-timeline-item> |
|
|
|
|
|
|
|
<el-timeline-item v-for="itemss in oldLogAry" :key="itemss.id" :timestamp="itemss.logTime" placement="top"> |
|
|
|
<el-card> |
|
|
|
|
|
|
|
<el-descriptions |
|
|
|
direction="vertical" |
|
|
|
:column="4" |
|
|
|
@ -219,13 +231,14 @@ onMounted(()=>{ |
|
|
|
<el-descriptions-item v-if="Array.isArray(item)&&index!='logTime'" :label="index" span="4"> |
|
|
|
|
|
|
|
<el-descriptions |
|
|
|
|
|
|
|
v-for="(itemarys,indexarys) in item" |
|
|
|
:key="indexarys" |
|
|
|
direction="vertical" |
|
|
|
:column="4" |
|
|
|
size="24px" |
|
|
|
border |
|
|
|
> |
|
|
|
<el-descriptions-item v-for="(items,indexs) in item[0]" :key="indexs" :label="indexs"> |
|
|
|
<el-descriptions-item v-for="(items,indexs) in itemarys" :key="indexs" :label="indexs"> |
|
|
|
{{ items }} |
|
|
|
</el-descriptions-item> |
|
|
|
</el-descriptions> |
|
|
|
@ -234,7 +247,7 @@ onMounted(()=>{ |
|
|
|
|
|
|
|
</div> |
|
|
|
</el-descriptions> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
</el-timeline-item> |
|
|
|
|
|
|
|
</el-timeline> |
|
|
|
|