update:prettier

This commit is contained in:
2025-12-02 09:38:12 +08:00
parent 532b5b784c
commit 54d2b4afc0
6 changed files with 49 additions and 29 deletions

5
.prettierrc Normal file
View File

@@ -0,0 +1,5 @@
{
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100
}

View File

@@ -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",

View File

@@ -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);
};

View File

@@ -9,7 +9,12 @@
>
<div class="content">
<div class="step-list">
<div v-for="(item, index) in stepList" :key="index" class="step-item" :class="{ active: index <= currentIndex }">
<div
v-for="(item, index) in stepList"
:key="index"
class="step-item"
:class="{ active: index <= currentIndex }"
>
<div class="left">
<div class="pic">
<el-icon :size="18"><CircleCheck class="icon" /></el-icon>
@@ -17,16 +22,20 @@
</div>
<div class="right">
<div class="item">
<el-tag v-if="item.nodeStatus === 2" type="success">{{ NODE_STATUS[item.nodeStatus] }}</el-tag>
<el-tag v-if="item.nodeStatus === 1" type="warning">{{ NODE_STATUS[item.nodeStatus] }}</el-tag>
<el-tag v-if="item.nodeStatus === 0" type="info">{{ NODE_STATUS[item.nodeStatus] }}</el-tag>
<el-tag v-if="item.nodeStatus === 2" type="success">{{
NODE_STATUS[item.nodeStatus]
}}</el-tag>
<el-tag v-if="item.nodeStatus === 1" type="warning">{{
NODE_STATUS[item.nodeStatus]
}}</el-tag>
<el-tag v-if="item.nodeStatus === 0" type="info">{{
NODE_STATUS[item.nodeStatus]
}}</el-tag>
</div>
<div class="item">{{ item.nodeName }}{{ item.nodeUserName }}</div>
<div v-if=" item.showTime" class="item">操作时间{{ item.showTime }}</div>
<div v-if="item.showTime" class="item">操作时间{{ item.showTime }}</div>
<div v-if="item.approveDesc" class="des">
<div class="tip">
审核人添加了评论
</div>
<div class="tip">审核人添加了评论</div>
<div class="text">
{{ item.approveDesc }}
</div>
@@ -61,15 +70,18 @@ const props = withDefaults(defineProps<Props>(), {
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']);

View File

@@ -29,7 +29,7 @@
<el-icon :size="18">
<MessageBox v-if="data.relatedResourceUuidOwnType === NODE_TYPE.PROJECT" />
<Share v-else-if="data.relatedResourceUuidOwnType === NODE_TYPE.PHASE" />
<Document v-else-if="data.relatedResourceUuidOwnType === NODE_TYPE.TASK"/>
<Document v-else-if="data.relatedResourceUuidOwnType === NODE_TYPE.TASK" />
<Folder v-else />
</el-icon>
</div>
@@ -52,7 +52,7 @@
<div class="top-content">
<div class="menu">
<el-breadcrumb separator="/">
<el-breadcrumb-item v-for="(item) in navList" :key="item.id" @click="openDirFun(item.id)">
<el-breadcrumb-item v-for="item in navList" :key="item.id" @click="openDirFun(item.id)">
{{ item.originalName }}
</el-breadcrumb-item>
</el-breadcrumb>
@@ -94,12 +94,15 @@ const visible = ref(true);
const isToggleShow = ref(true);
const searchData = ref<any>('');
watch(() => props.templateId, () => {
reloadFun();
});
watch(
() => props.templateId,
() => {
reloadFun();
}
);
// 加载节点
const loadMoreFun = async(node: any, resolve: any) => {
const loadMoreFun = async (node: any, resolve: any) => {
const listData: any = await getDataFun(node.data);
if (node.level >= 1) {
listData.forEach((item: any) => {
@@ -112,7 +115,7 @@ const loadMoreFun = async(node: any, resolve: any) => {
};
// 获取节点数据
const getDataFun = async(data: any) => {
const getDataFun = async (data: any) => {
if (props.api) {
const params = {
dimensionTemplateId: props.templateId,

View File

@@ -3221,10 +3221,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"
prettier@3.6.2:
version "3.6.2"
resolved "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz"
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
prettier@^3.7.3:
version "3.7.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.7.3.tgz#99a8891f6c990cfa54bcff2a0d276e6f845e59ab"
integrity sha512-QgODejq9K3OzoBbuyobZlUhznP5SKwPqp+6Q6xw6o8gnhr4O85L2U915iM2IDcfF2NPXVaM9zlo9tdwipnYwzg==
pretty-ms@^9.2.0:
version "9.2.0"