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