This commit is contained in:
2026-04-03 15:18:32 +08:00
parent c849d45596
commit a3b3d42136
25 changed files with 3 additions and 99 deletions

View File

@@ -234,7 +234,6 @@ const stopDragFun = () => {
const isFold = ref(false);
const clickLeftFun = (event: Event) => {
console.log('clickLeftFun');
event.stopPropagation(); // 阻止事件冒泡
isFold.value = !isFold.value;
if (isFold.value) {

View File

@@ -220,12 +220,6 @@ const epProjectSelectFun = (row: any) => {
...item,
};
});
// tableFormRef.value.setFormDataFun({
// ...tableFormRef.value.getFormDataFun(),
// nodeCode: row.projectNum,
// nodeName: row.projectName,
// projectId: row.id,
// });
}
};
const loadFun = async () => {

View File

@@ -87,9 +87,6 @@ watch(
(newVal) => {
if (newVal) {
localDetail.value = newVal;
console.log(localDetail.value, 'localDetail.value');
nextTick(() => {
tableFormRef.value?.setFormDataFun({
...localDetail.value,

View File

@@ -265,11 +265,6 @@ const deleteWorkApiFun = async (row: any) => {
ElMessage.error(res.message);
}
};
// const nextPageFun = () => {
// if (hasSameValue()) return;
// emits('update:currentProjectBaseInfo', { ...tableFormRef.value.getFormDataFun(), nodeType: NODE_TYPE.PROJECT });
// emits('nextPageFun', 'basePage');
// };
</script>
<style lang="scss" scoped>
.table-box {

View File

@@ -39,12 +39,6 @@ const emits = defineEmits(['update:showDialog']);
const closeFun = () => {
emits('update:showDialog', false);
};
// const nextPageFun = () => {
// if (hasSameValue()) return;
// emits('update:currentProjectBaseInfo', { ...tableFormRef.value.getFormDataFun(), nodeType: NODE_TYPE.PROJECT });
// emits('nextPageFun', 'basePage');
// };
</script>
<style lang="scss" scoped>
.table-box {

View File

@@ -133,18 +133,6 @@ const changeFun = async (val: any) => {
});
}
}
// }
// if (val.type === 'form') {
// if (val.val.key === 'demandType') {
// const formData = demandRef.value.tableFormRef.getFormDataFun();
// const simTypeList: any = commonStore.getDictData(val.val.data.demandType);
// demandRef.value.tableFormRef.setOptionsFun('simType', simTypeList.A);
// // const formData = tableFormRef.value.getFormDataFun();
// // tableFormRef.value.setFormDataFun({ ...formData, simType: '' });
// demandRef.value.editFormInfo = { ...formData, simType: '' };
// setHideKeys(val.val.val);
// }
// }
};
// const setHideKeys = (key: string) => {
// if (key === 'DEMAND_TYPE1') {

View File

@@ -82,7 +82,6 @@ export const exportToImage = async (
quality: number = 1.0
) => {
if (!element) return;
console.log(element);
const originalStyle = element.style.cssText;
// element.style.width = width + 'px';

View File

@@ -101,8 +101,6 @@ const modelAttribute = ref<any>([
// 预览文件
const reviewFun = (column: any) => {
console.log(column, 'column');
console.log(tableData.value, 'tableData.value');
const file = fileList.value.find((item: any) => {
return item.originalName === tableData.value[0][column.key];
});

View File

@@ -139,8 +139,6 @@ const createFlow = async (params: any) => {
// const memberList = projectForm.memberList.map((item: any) => {
// return JSON.parse(item);
// });
// const projectForm = tableFormRef.value.getFormDataFun();
// const tagKeyMap = getTagKeyMap();
const res: any = await addFlowTemplateDraftApi(params);
if (res && res.code === 200) {
@@ -181,12 +179,6 @@ const closeFun = () => {
emits('update:showDialog', false);
};
// const nextPageFun = () => {
// if (hasSameValue()) return;
// emits('update:currentProjectBaseInfo', { ...tableFormRef.value.getFormDataFun(), nodeType: NODE_TYPE.PROJECT });
// emits('nextPageFun', 'basePage');
// };
const oldFormData = ref<any>({});
const editRowInfo = ref({});

View File

@@ -185,8 +185,6 @@ const createFlow = async (params: any) => {
// const memberList = projectForm.memberList.map((item: any) => {
// return JSON.parse(item);
// });
// const projectForm = tableFormRef.value.getFormDataFun();
// const tagKeyMap = getTagKeyMap();
const res: any = await createReportTemplateApi(params);
if (res && res.code === 200) {
ElMessage.success('创建流程成功!');
@@ -246,12 +244,6 @@ const closeFun = () => {
emits('update:showDialog', false);
};
// const nextPageFun = () => {
// if (hasSameValue()) return;
// emits('update:currentProjectBaseInfo', { ...tableFormRef.value.getFormDataFun(), nodeType: NODE_TYPE.PROJECT });
// emits('nextPageFun', 'basePage');
// };
const oldFormData = ref<any>({});
const editRowInfo = ref<any>({});

View File

@@ -47,12 +47,6 @@ const closeFun = () => {
};
const submitFun = async () => {
// const valid = await tableFormRef.value.validateFun();
// if (valid) {
// const fromData = tableFormRef.value.getFormDataFun();
// emit('submit', fromData);
// }
const fromData: any = pageConfigRef.value.drawingList || [];
let result: any = false;

View File

@@ -164,9 +164,6 @@ watch(
// onMounted(() => {
// if (props.currentAppInfo) {
// currentRow.value = cloneDeep(props.currentAppInfo);
// console.log(currentRow.value, 'currentRow.value');
// console.log(tableFormRef, 'tableFormRef.value');
// nextTick(() => {
// if (currentRow.value?.id) {
// if (tableFormRef?.value) {

View File

@@ -117,7 +117,6 @@ const submmitFun = async () => {
const valid = await tableFormRef.value.validateFun();
if (valid) {
console.log(formData.value);
if (isEditDialog.value) {
for (let i = 0; i < tableData.value.length; i++) {
if (tableData.value[i].id === formData.value.id) {

View File

@@ -115,7 +115,6 @@ const resetFun = () => {
tableData.value = getBaseTable();
emit('update:modelValue', false);
emit('updateConfig', JSON.stringify(getBaseTable()));
console.log('恢复默认', JSON.stringify(getBaseTable()));
};
const rowDragendFun = () => {

View File

@@ -120,7 +120,6 @@ const queryWorkspaceList = async () => {
nodeType: 'workspace',
};
getChildrenNodeListApi(params).then((res) => {
// console.log('res', formatWorkspaceList(res.data));
workspaceOptions.value = formatWorkspaceList(res.data);
});
};

View File

@@ -127,7 +127,6 @@ const downloadFun = async (command: string | number | object, id: string) => {
}
} else if (command === 'excel') {
// 导出excel的逻辑
console.log('导出excel', id);
}
};

View File

@@ -464,8 +464,6 @@ const changeCurrentFlowNodeFun = (info: any) => {
localStorage.setItem('REFRESH_FLOW_NODE_ID', data.nodeId);
console.log(info, 'infoinfoinfoinfo');
flowNode.value = node;
flowNodeData.value = data;
flowNodeData.value.copyNodeStatus = data?.nodeStatus;

View File

@@ -256,8 +256,6 @@ const asyncFileFun = async () => {
asyncFiles.value = [];
getAsyncFileListFun(treeData.value, asyncFiles.value);
console.log(asyncFiles.value, 'asyncFiles.value');
if (asyncFiles.value.length) {
const list: any = [];
let types = asyncFiles.value.map((item: any) => {

View File

@@ -198,7 +198,6 @@ const fileLogConnectFun = () => {
// 新增监控notice
// SEE.value.addEventListener('notice', (e: any) => {
// console.log(e);
// });
SEE.value.addEventListener('message', (e: any) => {

View File

@@ -10,7 +10,7 @@
>
<template #leftOptions>
<el-button @click="addOrEditParam('add', {})">新增</el-button>
<el-button @click="saveParamFun" type="primary" >保存</el-button>
<el-button @click="saveParamFun" type="primary">保存</el-button>
<el-button type="primary" @click="referenceParamFun">参数引用</el-button>
<el-button type="primary" @click="paramToLibFun">参数入库</el-button>
</template>
@@ -141,11 +141,6 @@ const updateParamInfoFun = (data: any) => {
}
tableData.value = tableData.value.concat(list);
console.log(tableData.value, 'tableData.value');
console.log(list, 'list');
console.log(data, 'data');
parameterReferenceVisible.value = false;
};

View File

@@ -515,9 +515,6 @@ const systemApproveQueryApproveFlowTempalteFun = async () => {
isDisabledApproval.value = false;
}
}
console.log(props.currentTaskInfo, 'currentTaskInfo');
// .filter((item: any) => {
// return item.templateName.includes('交付物');
// });

View File

@@ -105,12 +105,6 @@ const showTaskDetailFun = (row: any) => {
showTaskDetailDialog.value = true;
currentTaskInfo.value = row;
};
// const nextPageFun = () => {
// if (hasSameValue()) return;
// emits('update:currentProjectBaseInfo', { ...tableFormRef.value.getFormDataFun(), nodeType: NODE_TYPE.PROJECT });
// emits('nextPageFun', 'basePage');
// };
</script>
<style lang="scss" scoped>
.table-box {

View File

@@ -226,10 +226,7 @@ const showTaskDetailFun = (row: any) => {
// const editFormInfo = ref({});
const changeFun = async () => {
// const formData = tableFormRef.value.getFormDataFun();
// editFormInfo.value = formData;
};
const changeFun = async () => {};
// const setFormData = (row: any) => {
// if (tableFormRef.value) {

View File

@@ -357,7 +357,6 @@ const closeSendFun = () => {
};
const changeFun = (val: any) => {
console.log('val', val);
if (val.key === 'discipline') {
sendForm.scenario = '';
if (formDemandAndNotFiniteElement.value && simulationType.value === '工业设计') {
@@ -480,7 +479,6 @@ const formDemandAndNotFiniteElement = computed(() => {
});
const sendTaskConfirmFun = async () => {
// console.log('tableFormRef.value.', tableFormRef.value.getFormDataFun());
if (await tableFormRef.value.validateFun()) {
// if (insertTaskMode.value === 'lib') {
// if (sendForm.chooseTaskList.value.length === 0) {
@@ -707,8 +705,7 @@ const sendTaskFun = async (row: any) => {
const formLoad = () => {
sendTaskFun(props.taskInfo);
};
const changeInsertIndex = (val: any, node: any) => {
console.log('', val, node);
const changeInsertIndex = (val: any) => {
workspaceName.value = val.nodeName;
getLoadcaseList();
};

View File

@@ -467,7 +467,6 @@ const finishTip = ref(false);
const confirmFun = async () => {
if (await tableFormRef.value.validateFun()) {
loadingInterface.value = true;
// const fromData: any = tableFormRef.value.getFormDataFun();
// if (editFormInfo.value.planTime) {
// editFormInfo.value.beginTime = editFormInfo.value.planTime[0];
// editFormInfo.value.endTime = editFormInfo.value.planTime[1];
@@ -711,8 +710,6 @@ const changeSimulationType = (val: string) => {
};
const changeFun = async (val: any) => {
// const formData = tableFormRef.value.getFormDataFun();
// editFormInfo.value = { ...formData };
if (val.key === 'projectId') {
let nodeType = '';
let nextKey = '';
@@ -812,9 +809,6 @@ const changeFun = async (val: any) => {
// formData.workspaceName = '';
// formData.extras = setWorkSpaceValue(formData.extras, '', '');
}
// const formData = tableFormRef.value.getFormDataFun();
// tableFormRef.value.setFormDataFun({ ...formData, phaseId: '' });
// editFormInfo.value = { ...formData };
}
if (val.key === 'phaseId') {