|
@@ -39,9 +39,10 @@
|
|
<div class="horizontal-drag-line" @mousedown="onmousedown" />
|
|
<div class="horizontal-drag-line" @mousedown="onmousedown" />
|
|
</div>
|
|
</div>
|
|
<div class="hc-page-content-box hc-division-page">
|
|
<div class="hc-page-content-box hc-division-page">
|
|
- <div style="height: 50px" class="mb-2">
|
|
|
|
|
|
+ <div v-if="isTemplateType" style="height: 50px" class="mb-2">
|
|
<hc-card class="text-right">
|
|
<hc-card class="text-right">
|
|
<el-button
|
|
<el-button
|
|
|
|
+
|
|
hc-btn
|
|
hc-btn
|
|
type="warning"
|
|
type="warning"
|
|
@click="divisionClick"
|
|
@click="divisionClick"
|
|
@@ -87,7 +88,7 @@
|
|
</HcTable>
|
|
</HcTable>
|
|
</HcNewCard>
|
|
</HcNewCard>
|
|
</div>
|
|
</div>
|
|
- <div class="project-info">
|
|
|
|
|
|
+ <div class="project-info" :style="contentStyle">
|
|
<hc-new-card title="当前节点工程用表信息">
|
|
<hc-new-card title="当前节点工程用表信息">
|
|
<template #extra>
|
|
<template #extra>
|
|
<el-button
|
|
<el-button
|
|
@@ -99,6 +100,7 @@
|
|
<span>引用元素表</span>
|
|
<span>引用元素表</span>
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="isTemplateType"
|
|
hc-btn
|
|
hc-btn
|
|
color="#3EB1A5"
|
|
color="#3EB1A5"
|
|
class="text-white"
|
|
class="text-white"
|
|
@@ -582,7 +584,7 @@
|
|
<div class="left flex items-center">
|
|
<div class="left flex items-center">
|
|
<div class="mr-4">选中方式:</div>
|
|
<div class="mr-4">选中方式:</div>
|
|
<el-radio-group v-model="addTreeNodeType">
|
|
<el-radio-group v-model="addTreeNodeType">
|
|
- <!-- <el-radio value="3">当前及子节点</el-radio> -->
|
|
|
|
|
|
+ <el-radio value="3">当前及子节点</el-radio>
|
|
<el-radio class="ml-4" value="2">
|
|
<el-radio class="ml-4" value="2">
|
|
仅当前节点
|
|
仅当前节点
|
|
</el-radio>
|
|
</el-radio>
|
|
@@ -1097,7 +1099,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { nextTick, onActivated, onMounted, ref, watch } from 'vue'
|
|
|
|
|
|
+import { computed, nextTick, onActivated, onMounted, ref, watch } from 'vue'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
import HcUpload from './components/division/HcUpload.vue'
|
|
import HcUpload from './components/division/HcUpload.vue'
|
|
@@ -1142,7 +1144,7 @@ const isCollapse = ref(useAppState.getCollapse)
|
|
const contractInfo = ref(useAppState.getContractInfo)
|
|
const contractInfo = ref(useAppState.getContractInfo)
|
|
const { contractType } = contractInfo.value
|
|
const { contractType } = contractInfo.value
|
|
const classifyType = ref(contractType === 2 ? '2' : '1')
|
|
const classifyType = ref(contractType === 2 ? '2' : '1')
|
|
-
|
|
|
|
|
|
+const isTemplateType = ref(useAppState.contractInfo?.templateType === 2)
|
|
//监听
|
|
//监听
|
|
watch(
|
|
watch(
|
|
() => [useAppState.getCollapse],
|
|
() => [useAppState.getCollapse],
|
|
@@ -2812,6 +2814,10 @@ const saveNodeNmeClick = async () => {
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+// 添加计算属性
|
|
|
|
+const contentStyle = computed(() => ({
|
|
|
|
+ '--project-info-height': !isTemplateType.value ? 'calc(100% - 238px)' : 'calc(100% - 298px)',
|
|
|
|
+}))
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|