fix: execution
This commit is contained in:
parent
f01bf625ef
commit
0ee4b7fae2
@ -8,7 +8,7 @@
|
|||||||
align-center
|
align-center
|
||||||
@click.stop
|
@click.stop
|
||||||
>
|
>
|
||||||
<ExecutionDetailContent :detail="detail" />
|
<ExecutionDetailContent :detail="detail" :type="type" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@ -16,6 +16,10 @@ import { ref, watch, onBeforeUnmount } from 'vue'
|
|||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
import ExecutionDetailContent from './component/ExecutionDetailContent.vue'
|
import ExecutionDetailContent from './component/ExecutionDetailContent.vue'
|
||||||
|
|
||||||
|
const props = defineProps<{
|
||||||
|
type?: string
|
||||||
|
}>()
|
||||||
|
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
const detail = ref<any[]>([])
|
const detail = ref<any[]>([])
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
<!-- 知识库引用 dialog -->
|
<!-- 知识库引用 dialog -->
|
||||||
<ParagraphSourceDialog ref="ParagraphSourceDialogRef" />
|
<ParagraphSourceDialog ref="ParagraphSourceDialogRef" />
|
||||||
<!-- 执行详情 dialog -->
|
<!-- 执行详情 dialog -->
|
||||||
<ExecutionDetailDialog ref="ExecutionDetailDialogRef" />
|
<ExecutionDetailDialog ref="ExecutionDetailDialogRef" :type="type" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -354,30 +354,6 @@ const localLoading = computed({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const showUserInput = ref(true)
|
|
||||||
const form_data = ref<any>({})
|
|
||||||
const api_form_data = ref<any>({})
|
|
||||||
|
|
||||||
const toggleUserInput = () => {
|
|
||||||
showUserInput.value = !showUserInput.value
|
|
||||||
if (showUserInput.value) {
|
|
||||||
// 保存当前数据作为初始数据(用于可能的恢复)
|
|
||||||
initialFormData.value = JSON.parse(JSON.stringify(form_data.value))
|
|
||||||
initialApiFormData.value = JSON.parse(JSON.stringify(api_form_data.value))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function UserFormConfirm() {
|
|
||||||
showUserInput.value = false
|
|
||||||
}
|
|
||||||
|
|
||||||
function UserFormCancel() {
|
|
||||||
// 恢复初始数据
|
|
||||||
form_data.value = JSON.parse(JSON.stringify(initialFormData.value))
|
|
||||||
api_form_data.value = JSON.parse(JSON.stringify(initialApiFormData.value))
|
|
||||||
userFormRef.value?.render(form_data.value)
|
|
||||||
showUserInput.value = false
|
|
||||||
}
|
|
||||||
|
|
||||||
const upload = ref()
|
const upload = ref()
|
||||||
|
|
||||||
|
|||||||
@ -291,17 +291,13 @@
|
|||||||
<ExecutionDetailContent
|
<ExecutionDetailContent
|
||||||
v-if="rightPanelType === 'executionDetail'"
|
v-if="rightPanelType === 'executionDetail'"
|
||||||
:detail="executionDetail"
|
:detail="executionDetail"
|
||||||
|
:type="applicationDetail?.type"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-splitter-panel>
|
</el-splitter-panel>
|
||||||
</el-splitter>
|
</el-splitter>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse">
|
|
||||||
<el-button @click="isCollapse = !isCollapse">
|
|
||||||
<el-icon> <component :is="isCollapse ? 'Fold' : 'Expand'" /></el-icon>
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<EditTitleDialog ref="EditTitleDialogRef" @refresh="refreshFieldTitle" />
|
<EditTitleDialog ref="EditTitleDialogRef" @refresh="refreshFieldTitle" />
|
||||||
<ResetPassword
|
<ResetPassword
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user