update:prettier
This commit is contained in:
5
.prettierrc
Normal file
5
.prettierrc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"printWidth": 100
|
||||||
|
}
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
"eslint-plugin-vue": "~10.3.0",
|
"eslint-plugin-vue": "~10.3.0",
|
||||||
"jiti": "^2.4.2",
|
"jiti": "^2.4.2",
|
||||||
"npm-run-all2": "^8.0.4",
|
"npm-run-all2": "^8.0.4",
|
||||||
"prettier": "3.6.2",
|
"prettier": "^3.7.3",
|
||||||
"typescript": "~5.8.0",
|
"typescript": "~5.8.0",
|
||||||
"vite": "^7.0.6",
|
"vite": "^7.0.6",
|
||||||
"vite-plugin-vue-devtools": "^8.0.0",
|
"vite-plugin-vue-devtools": "^8.0.0",
|
||||||
|
|||||||
@@ -146,5 +146,5 @@ export const queryKeyResultAndTaskInfoApi = (params: any) => {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export const listSimulationFlowNodeApi = (params: any) => {
|
export const listSimulationFlowNodeApi = (params: any) => {
|
||||||
return post(`${PREFIX}run/listFlowNodes`, params);
|
return post(`${PREFIX}run/listFlowNodes`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,7 +9,12 @@
|
|||||||
>
|
>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="step-list">
|
<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="left">
|
||||||
<div class="pic">
|
<div class="pic">
|
||||||
<el-icon :size="18"><CircleCheck class="icon" /></el-icon>
|
<el-icon :size="18"><CircleCheck class="icon" /></el-icon>
|
||||||
@@ -17,16 +22,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<el-tag v-if="item.nodeStatus === 2" type="success">{{ NODE_STATUS[item.nodeStatus] }}</el-tag>
|
<el-tag v-if="item.nodeStatus === 2" type="success">{{
|
||||||
<el-tag v-if="item.nodeStatus === 1" type="warning">{{ NODE_STATUS[item.nodeStatus] }}</el-tag>
|
NODE_STATUS[item.nodeStatus]
|
||||||
<el-tag v-if="item.nodeStatus === 0" type="info">{{ NODE_STATUS[item.nodeStatus] }}</el-tag>
|
}}</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>
|
||||||
<div class="item">{{ item.nodeName }}:{{ item.nodeUserName }}</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 v-if="item.approveDesc" class="des">
|
||||||
<div class="tip">
|
<div class="tip">审核人添加了评论:</div>
|
||||||
审核人添加了评论:
|
|
||||||
</div>
|
|
||||||
<div class="text">
|
<div class="text">
|
||||||
{{ item.approveDesc }}
|
{{ item.approveDesc }}
|
||||||
</div>
|
</div>
|
||||||
@@ -61,15 +70,18 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
flowId: '',
|
flowId: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(() => props.modelValue, (val: boolean) => {
|
watch(
|
||||||
visible.value = val;
|
() => props.modelValue,
|
||||||
if (val) {
|
(val: boolean) => {
|
||||||
getDetailDataFun();
|
visible.value = val;
|
||||||
} else {
|
if (val) {
|
||||||
currentIndex.value = 0;
|
getDetailDataFun();
|
||||||
stepList.value = [];
|
} else {
|
||||||
|
currentIndex.value = 0;
|
||||||
|
stepList.value = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
);
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue']);
|
const emit = defineEmits(['update:modelValue']);
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<el-icon :size="18">
|
<el-icon :size="18">
|
||||||
<MessageBox v-if="data.relatedResourceUuidOwnType === NODE_TYPE.PROJECT" />
|
<MessageBox v-if="data.relatedResourceUuidOwnType === NODE_TYPE.PROJECT" />
|
||||||
<Share v-else-if="data.relatedResourceUuidOwnType === NODE_TYPE.PHASE" />
|
<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 />
|
<Folder v-else />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</div>
|
</div>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<div class="top-content">
|
<div class="top-content">
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<el-breadcrumb separator="/">
|
<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 }}
|
{{ item.originalName }}
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
@@ -94,12 +94,15 @@ const visible = ref(true);
|
|||||||
const isToggleShow = ref(true);
|
const isToggleShow = ref(true);
|
||||||
const searchData = ref<any>('');
|
const searchData = ref<any>('');
|
||||||
|
|
||||||
watch(() => props.templateId, () => {
|
watch(
|
||||||
reloadFun();
|
() => props.templateId,
|
||||||
});
|
() => {
|
||||||
|
reloadFun();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// 加载节点
|
// 加载节点
|
||||||
const loadMoreFun = async(node: any, resolve: any) => {
|
const loadMoreFun = async (node: any, resolve: any) => {
|
||||||
const listData: any = await getDataFun(node.data);
|
const listData: any = await getDataFun(node.data);
|
||||||
if (node.level >= 1) {
|
if (node.level >= 1) {
|
||||||
listData.forEach((item: any) => {
|
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) {
|
if (props.api) {
|
||||||
const params = {
|
const params = {
|
||||||
dimensionTemplateId: props.templateId,
|
dimensionTemplateId: props.templateId,
|
||||||
|
|||||||
@@ -3221,10 +3221,10 @@ prettier-linter-helpers@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
fast-diff "^1.1.2"
|
fast-diff "^1.1.2"
|
||||||
|
|
||||||
prettier@3.6.2:
|
prettier@^3.7.3:
|
||||||
version "3.6.2"
|
version "3.7.3"
|
||||||
resolved "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.7.3.tgz#99a8891f6c990cfa54bcff2a0d276e6f845e59ab"
|
||||||
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
|
integrity sha512-QgODejq9K3OzoBbuyobZlUhznP5SKwPqp+6Q6xw6o8gnhr4O85L2U915iM2IDcfF2NPXVaM9zlo9tdwipnYwzg==
|
||||||
|
|
||||||
pretty-ms@^9.2.0:
|
pretty-ms@^9.2.0:
|
||||||
version "9.2.0"
|
version "9.2.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user