update 修复bug 995 节点基本信息布局、字段修改
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
<el-icon class="icon-style" v-if="data.type != 3" :size="18"><Folder /></el-icon>
|
||||
<el-icon class="icon-style" v-else :size="18"><Document /></el-icon>
|
||||
<div class="name" :title="data.name">{{ data.name }}</div>
|
||||
<div class="options">
|
||||
<!-- 审批中的节点 不允许修改删除 -->
|
||||
<div class="options" v-if="!data.shenpi">
|
||||
<div class="edit" @click="openEditFun(data)">
|
||||
<el-icon>
|
||||
<EditPen />
|
||||
@@ -43,7 +44,7 @@
|
||||
ref="paramTableRef"
|
||||
tableName="PARAMETER_LIST"
|
||||
hidePagination
|
||||
:actionList="actionList"
|
||||
:actionList="currentNode.shenpi ? [] : actionList"
|
||||
>
|
||||
<template #leftOptions>
|
||||
<div class="options">
|
||||
@@ -69,9 +70,14 @@
|
||||
新增参数对象
|
||||
</el-button>
|
||||
<template v-if="currentNode?.type === 3">
|
||||
<el-button type="primary" @click="openParamFun">新增参数</el-button>
|
||||
<el-button v-if="!currentNode.shenpi" type="primary" @click="openParamFun"
|
||||
>新增参数</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="objFormatFun(newParamTableData) !== objFormatFun(paramTableData)"
|
||||
v-if="
|
||||
objFormatFun(newParamTableData) !== objFormatFun(paramTableData) &&
|
||||
!currentNode.shenpi
|
||||
"
|
||||
type="primary"
|
||||
@click="updateParamFun"
|
||||
>
|
||||
@@ -101,10 +107,22 @@
|
||||
>
|
||||
<div class="info-content">
|
||||
<el-descriptions class="info-content-descriptions" :column="1" label-width="100px" border>
|
||||
<el-descriptions-item label="所属库">
|
||||
<el-descriptions-item label="名称">
|
||||
{{
|
||||
currentNode.type === 1
|
||||
? paramObjInfo?.parameterLibraryName
|
||||
: currentNode.type === 2
|
||||
? paramObjInfo?.parameterLibraryCategoryName
|
||||
: currentNode.name
|
||||
}}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="currentNode.type !== 1" label="所属库">
|
||||
{{ paramObjInfo?.parameterLibraryName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="paramObjInfo?.parameterLibraryCategoryName" label="所属分类">
|
||||
<el-descriptions-item
|
||||
v-if="paramObjInfo?.parameterLibraryCategoryName && currentNode.type !== 2"
|
||||
label="所属分类"
|
||||
>
|
||||
{{ paramObjInfo?.parameterLibraryCategoryName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item
|
||||
@@ -269,7 +287,7 @@ const getSimulationParameterTreeDAtaFun = async (data?: any) => {
|
||||
|
||||
const paramObjInfo = ref<any>({});
|
||||
|
||||
// 当前节点更改
|
||||
// 当前节点 更改
|
||||
const currentChangeFun = async (data: any) => {
|
||||
currentNodeKey.value = data.nodeKey;
|
||||
currentNode.value = data;
|
||||
@@ -279,7 +297,10 @@ const currentChangeFun = async (data: any) => {
|
||||
ObjectId: data.id,
|
||||
});
|
||||
if (res && res.code === 200) {
|
||||
paramObjInfo.value = res.data || {};
|
||||
paramObjInfo.value = res.data || {
|
||||
parameterLibraryName: data.libName,
|
||||
parameterLibraryCategoryName: data.typeName,
|
||||
};
|
||||
paramTableRef.value.setDataFun(paramObjInfo.value.parameterJsonValue || []);
|
||||
paramTableData.value = paramObjInfo.value.parameterJsonValue || [];
|
||||
newParamTableData.value = cloneDeep(paramTableData.value);
|
||||
|
||||
Reference in New Issue
Block a user