fix:bug修复
This commit is contained in:
@@ -79,7 +79,7 @@ const emits = defineEmits(['update']);
|
||||
const visible = ref(false);
|
||||
const fileList = ref<any>([]);
|
||||
const rowInfo = ref<any>({});
|
||||
const uploalLocal = ref('local');
|
||||
const uploalLocal = ref('online');
|
||||
const uploadRef = ref();
|
||||
|
||||
const selectOnlineFileFun = () => {
|
||||
|
||||
@@ -609,7 +609,8 @@ const createRunFun = async (data: any) => {
|
||||
// info.id = new Date().getTime();
|
||||
ElMessage.success('创建成功');
|
||||
if (flag != 'createRun') {
|
||||
taskTreeRef.value.insertAfter(runInfo, rightClickNode.value);
|
||||
// taskTreeRef.value.insertAfter(runInfo, rightClickNode.value);
|
||||
taskTreeRef.value.append(runInfo, rightClickNode.value);
|
||||
} else {
|
||||
taskTreeRef.value.append(runInfo, rightClickNode.value);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="handleCloseFun">取消</el-button>
|
||||
<el-button type="primary" @click="createSuccessFun">确认</el-button>
|
||||
<el-button type="primary" @click="createSuccessFun" :disabled="disabled">确认</el-button>
|
||||
</span>
|
||||
</template>
|
||||
<!-- </el-drawer> -->
|
||||
@@ -138,6 +138,7 @@ const handleCloseFun = () => {
|
||||
emits('close');
|
||||
};
|
||||
|
||||
const disabled = ref(false);
|
||||
// 确认事件
|
||||
const createSuccessFun = () => {
|
||||
if (!runInfoFormData.templateName) {
|
||||
@@ -147,6 +148,8 @@ const createSuccessFun = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
ElMessage.success('算例对应文件夹创建中!');
|
||||
disabled.value = true;
|
||||
if (operateType.value != 'editRun') {
|
||||
emits('comfirm', {
|
||||
info: runInfoFormData,
|
||||
@@ -310,6 +313,8 @@ watch(
|
||||
// 获取任务下所有的算例信息
|
||||
|
||||
onMounted(async () => {
|
||||
disabled.value = false;
|
||||
|
||||
// runInfoFormData.templateName = props.divInfo.flowTemplate;
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
</el-form>
|
||||
<div class="button-box">
|
||||
<el-button
|
||||
type="parmary"
|
||||
type="primary"
|
||||
v-if="flowNodeParamData.nodeTypeValue === '1'"
|
||||
@click="justStartLocalAppFun"
|
||||
>启动</el-button
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
fileId: fileId,
|
||||
// uuid:nodeInfo.uuid
|
||||
}"
|
||||
:row-config="{
|
||||
height: '34',
|
||||
}"
|
||||
:show-checkbox="true"
|
||||
:action-list="actionList"
|
||||
:full-height="true"
|
||||
|
||||
@@ -146,10 +146,10 @@ const versionStatus = [
|
||||
color: TasksStatusColor.RUNNING,
|
||||
},
|
||||
{
|
||||
name: '已取消',
|
||||
name: '已完成',
|
||||
value: 2,
|
||||
class: TasksStatusClass.CANCELING,
|
||||
color: TasksStatusColor.CANCELING,
|
||||
class: TasksStatusClass.FINISHED,
|
||||
color: TasksStatusColor.FINISHED,
|
||||
},
|
||||
{
|
||||
name: '异常',
|
||||
@@ -157,12 +157,12 @@ const versionStatus = [
|
||||
class: TasksStatusClass.FAILED,
|
||||
color: TasksStatusColor.FAILED,
|
||||
},
|
||||
{
|
||||
name: '已完成',
|
||||
value: 4,
|
||||
class: TasksStatusClass.FINISHED,
|
||||
color: TasksStatusColor.FINISHED,
|
||||
},
|
||||
// {
|
||||
// name: '已完成',
|
||||
// value: 4,
|
||||
// class: TasksStatusClass.FINISHED,
|
||||
// color: TasksStatusColor.FINISHED,
|
||||
// },
|
||||
];
|
||||
|
||||
const skipRun = (info: any) => {
|
||||
|
||||
Reference in New Issue
Block a user