6d4f0972 by xukangle

fix : 修改分类分级标准

1 parent e6df3a28
......@@ -24,7 +24,8 @@ const props = defineProps({
const emits = defineEmits(["expand"]);
const isExpanded = ref(true);
// const isExpanded = ref(true);
const isExpanded = ref(props.isExpand);
watch(
() => props.isExpand,
......@@ -46,14 +47,10 @@ const expandSwicthHandler = () => {
</script>
<template>
<ElCard
class="v-content-wrap"
shadow="never"
:body-style="{
padding: `0px`,
height: `${isExpanded ? contentHeight + 28 : 0}px`,
}"
>
<ElCard class="v-content-wrap" shadow="never" :body-style="{
padding: `0px`,
height: `${isExpanded ? contentHeight + 28 : 0}px`,
}">
<template v-if="title" #header>
<div class="card-title" @click="expandSwicthHandler">
<span v-if="expandSwicth" style="padding-right: 5px; cursor: pointer">
......
......@@ -673,7 +673,7 @@ const initGraph = () => {
},
getHGap: function getHGap() {
return 80;
}
},
}
});
graph.data(shapeTreeListData.value[0]);
......@@ -799,12 +799,16 @@ onMounted(() => {
// });
})
const isExpand = ref<boolean>(router.currentRoute.value.query.isExpand == 'true');
</script>
<template>
<div class="container_wrap" v-loading="fullscreenLoading">
<div class="content_main">
<ContentWrap id="id-baseInfo" title="基础信息" description="" style="margin-top: 8px;">
<ContentWrap id="id-baseInfo" title="基础信息" description="" style="margin-top: 8px;" :expandSwicth="true"
:isExpand="isExpand">
<Form ref="formRef" :itemList="classStandardFormItems" formId="main-model-edit" col="col3" />
</ContentWrap>
<ContentWrap id="id-classStandard" class="detail-content" title="分类标准" description=""
......@@ -852,6 +856,7 @@ onMounted(() => {
.content_main {
height: calc(100% - 44px);
padding: 10px 16px;
overflow: auto;
}
.bottom_tool_wrap {
......@@ -870,6 +875,7 @@ onMounted(() => {
.card-body-content {
height: 100%;
overflow: auto;
}
}
}
......@@ -885,11 +891,11 @@ onMounted(() => {
}
.shape-main {
height: calc(100% - 160px);
height: calc(100% - 44px);
}
.table_panel {
height: calc(100% - 160px) !important;
height: calc(100% - 44px) !important;
}
.node-details-popup {
......
......@@ -114,7 +114,7 @@ const tableInfo = ref({
multiple: true,
fields: [
{ label: "序号", type: 'index', width: 56, align: "center" },
{ label: "排序", field: 'orderNum', width: 56, align: "center" },
// { label: "排序", field: 'orderNum', width: 56, align: "center" },
{
label: "数据级别", field: "dataGrade", width: 120, getName: (scope) => {
let dataGrade = scope.row.dataGrade;
......@@ -231,7 +231,7 @@ const newCreateGradeFormItems = ref([{
visible: true,
},
{
label: '序号',
label: '序号',
type: 'input',
maxlength: 19,
placeholder: '请输入',
......@@ -417,6 +417,7 @@ const cancel = () => {
.content_main {
height: calc(100% - 44px);
padding: 10px 16px;
overflow: auto;
.table-top-btns {
margin-bottom: 12px;
......
......@@ -158,7 +158,8 @@ const handleClassDataClick = (item, des = '') => {
type: des === '' ? '配置' : des,
classStandardName: item.name,
refGradeGuid: item.refGradeGuid,
description: item.description
description: item.description,
isExpand: item.isExpand || false
}
});
}
......@@ -276,7 +277,8 @@ const newCreateClassStandardDialogInfo = ref({
name: item.name,
guid: item.guid,
refGradeGuid: item.refGradeGuid,
description: item.description
description: item.description,
isExpand: true
}
handleClassDataClick(params, '');
}
......@@ -559,7 +561,7 @@ const newCreateGrade = () => {
</el-icon>
</template>
<div class="levitation-ul">
<span class="levitation-li" @click="handleClassDataClick(item)">配置</span>
<span class="levitation-li" @click="handleClassDataClick(item)">编辑</span>
<!-- <span class="levitation-li" @click="handleClassDataEdit(item)">编辑</span> -->
<span class="levitation-li" @click="handleClassDataDel(item)">删除</span>
</div>
......@@ -592,7 +594,7 @@ const newCreateGrade = () => {
</el-icon>
</template>
<div class="levitation-ul">
<span class="levitation-li" @click="handleClassifyGradDataClick(item)">配置</span>
<span class="levitation-li" @click="handleClassifyGradDataClick(item)">编辑</span>
<!-- <span class="levitation-li" @click="handleClassifyGradDataEdit(item)">编辑</span> -->
<span class="levitation-li" @click="handleClassifyGradDataDel(item)">删除</span>
</div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!