diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..7c2b752 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "singleQuote": true, + "trailingComma": "es5", + "printWidth": 100 +} \ No newline at end of file diff --git a/package.json b/package.json index e644920..d3346f7 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "eslint-plugin-vue": "~10.3.0", "jiti": "^2.4.2", "npm-run-all2": "^8.0.4", - "prettier": "3.6.2", + "prettier": "^3.7.3", "typescript": "~5.8.0", "vite": "^7.0.6", "vite-plugin-vue-devtools": "^8.0.0", diff --git a/src/api/project/run.ts b/src/api/project/run.ts index 74c8303..faadf9e 100644 --- a/src/api/project/run.ts +++ b/src/api/project/run.ts @@ -146,5 +146,5 @@ export const queryKeyResultAndTaskInfoApi = (params: any) => { * @returns */ export const listSimulationFlowNodeApi = (params: any) => { - return post(`${PREFIX}run/listFlowNodes`, params); + return post(`${PREFIX}run/listFlowNodes`, params); }; diff --git a/src/components/common/approvalProcess/index.vue b/src/components/common/approvalProcess/index.vue index d8caf05..8001191 100644 --- a/src/components/common/approvalProcess/index.vue +++ b/src/components/common/approvalProcess/index.vue @@ -9,7 +9,12 @@ >
-
+
@@ -17,16 +22,20 @@
- {{ NODE_STATUS[item.nodeStatus] }} - {{ NODE_STATUS[item.nodeStatus] }} - {{ NODE_STATUS[item.nodeStatus] }} + {{ + NODE_STATUS[item.nodeStatus] + }} + {{ + NODE_STATUS[item.nodeStatus] + }} + {{ + NODE_STATUS[item.nodeStatus] + }}
{{ item.nodeName }}:{{ item.nodeUserName }}
-
操作时间:{{ item.showTime }}
+
操作时间:{{ item.showTime }}
-
- 审核人添加了评论: -
+
审核人添加了评论:
{{ item.approveDesc }}
@@ -61,15 +70,18 @@ const props = withDefaults(defineProps(), { flowId: '', }); -watch(() => props.modelValue, (val: boolean) => { - visible.value = val; - if (val) { - getDetailDataFun(); - } else { - currentIndex.value = 0; - stepList.value = []; +watch( + () => props.modelValue, + (val: boolean) => { + visible.value = val; + if (val) { + getDetailDataFun(); + } else { + currentIndex.value = 0; + stepList.value = []; + } } -}); +); const emit = defineEmits(['update:modelValue']); diff --git a/src/components/common/dataFileTree/index.vue b/src/components/common/dataFileTree/index.vue index fcd7413..2a70746 100644 --- a/src/components/common/dataFileTree/index.vue +++ b/src/components/common/dataFileTree/index.vue @@ -29,7 +29,7 @@ - +
@@ -52,7 +52,7 @@