mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: execution
This commit is contained in:
parent
f01bf625ef
commit
0ee4b7fae2
|
|
@ -8,7 +8,7 @@
|
|||
align-center
|
||||
@click.stop
|
||||
>
|
||||
<ExecutionDetailContent :detail="detail" />
|
||||
<ExecutionDetailContent :detail="detail" :type="type" />
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
|
|
@ -16,6 +16,10 @@ import { ref, watch, onBeforeUnmount } from 'vue'
|
|||
import { cloneDeep } from 'lodash'
|
||||
import ExecutionDetailContent from './component/ExecutionDetailContent.vue'
|
||||
|
||||
const props = defineProps<{
|
||||
type?: string
|
||||
}>()
|
||||
|
||||
const dialogVisible = ref(false)
|
||||
const detail = ref<any[]>([])
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
<!-- 知识库引用 dialog -->
|
||||
<ParagraphSourceDialog ref="ParagraphSourceDialogRef" />
|
||||
<!-- 执行详情 dialog -->
|
||||
<ExecutionDetailDialog ref="ExecutionDetailDialogRef" />
|
||||
<ExecutionDetailDialog ref="ExecutionDetailDialogRef" :type="type" />
|
||||
</div>
|
||||
</template>
|
||||
<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()
|
||||
|
||||
|
|
|
|||
|
|
@ -291,17 +291,13 @@
|
|||
<ExecutionDetailContent
|
||||
v-if="rightPanelType === 'executionDetail'"
|
||||
:detail="executionDetail"
|
||||
:type="applicationDetail?.type"
|
||||
/>
|
||||
</div>
|
||||
</el-splitter-panel>
|
||||
</el-splitter>
|
||||
</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" />
|
||||
<ResetPassword
|
||||
|
|
|
|||
Loading…
Reference in New Issue