|
@@ -4,7 +4,7 @@
|
|
<hc-new-switch :datas="tabTab" :keys="tabKey" :round="false" size="default" @change="tabChange" />
|
|
<hc-new-switch :datas="tabTab" :keys="tabKey" :round="false" size="default" @change="tabChange" />
|
|
</template>
|
|
</template>
|
|
<template #extra>
|
|
<template #extra>
|
|
- <el-button hc-btn type="primary">
|
|
|
|
|
|
+ <el-button hc-btn type="primary" @click="isTableInfoShow = true">
|
|
<HcIcon name="add" />
|
|
<HcIcon name="add" />
|
|
<span>新增</span>
|
|
<span>新增</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -30,11 +30,19 @@
|
|
</hc-card-item>
|
|
</hc-card-item>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <!-- 节点树的新增和编辑 -->
|
|
|
|
+ <treeInfoModal v-model="isTreeInfoShow" />
|
|
|
|
+
|
|
|
|
+ <!-- 表格的新增和编辑 -->
|
|
|
|
+ <tableInfoModal v-model="isTableInfoShow" />
|
|
</hc-card>
|
|
</hc-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import { nextTick, onMounted, ref } from 'vue'
|
|
import { nextTick, onMounted, ref } from 'vue'
|
|
|
|
+import treeInfoModal from './components/treeInfoModal.vue'
|
|
|
|
+import tableInfoModal from './components/tableInfoModal.vue'
|
|
|
|
|
|
defineOptions({
|
|
defineOptions({
|
|
name: 'AlterCollectionScan',
|
|
name: 'AlterCollectionScan',
|
|
@@ -105,8 +113,14 @@ const treeMenus = [
|
|
|
|
|
|
const treeMenuTap = ({ key, node, data }) => {
|
|
const treeMenuTap = ({ key, node, data }) => {
|
|
console.log(key, node, data)
|
|
console.log(key, node, data)
|
|
|
|
+ if (key === 'add' || key === 'edit') {
|
|
|
|
+ isTreeInfoShow.value = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const isTreeInfoShow = ref(false)
|
|
|
|
+const isTableInfoShow = ref(false)
|
|
|
|
+
|
|
//搜索表单
|
|
//搜索表单
|
|
const searchForm = ref({ current: 1, size: 10, total: 0 })
|
|
const searchForm = ref({ current: 1, size: 10, total: 0 })
|
|
|
|
|