From f46584b97726459b9299cbc04b9a8b99f11261de Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期五, 26 七月 2024 15:14:42 +0800
Subject: [PATCH] 模型管理页面开发
---
src/views/dmx/knowledgeLib/index.vue | 74 +++++++++++++++++++++++++++++++++++-
1 files changed, 71 insertions(+), 3 deletions(-)
diff --git a/src/views/dmx/knowledgeLib/index.vue b/src/views/dmx/knowledgeLib/index.vue
index 0ec488f..4465869 100644
--- a/src/views/dmx/knowledgeLib/index.vue
+++ b/src/views/dmx/knowledgeLib/index.vue
@@ -146,8 +146,13 @@
@page-change="onPageChange"
:scroll="{ y: 580 }"
>
- <template #contentType="{ record }">
-
+ <template #name="{ record }">
+<!-- <icon-file style="color: #0960bd;margin-right: 4px;" />-->
+ <icon-file style="margin-right: 4px;" />
+<!-- <span style="color: #0960bd;cursor: pointer" @click="fileClick">-->
+<!-- {{record.name}}-->
+<!-- </span>-->
+ {{record.name}}
</template>
<template #staue="{ record }">
<a-switch :model-value="record.staue"/>
@@ -224,6 +229,42 @@
</div>
</a-tab-pane>
</a-tabs>
+ <div v-if="detailsShow" class="details">
+ <div class="details-header">
+ <div style="display: flex;align-items: center">
+ <span><icon-arrow-left size="20px" style="cursor: pointer;color: #0960bd;margin: 10px" @click="goBackClick" /></span>
+ <icon-file style="color: #0960bd;margin-right: 4px;" />
+ <span style="">123.docx</span>
+ </div>
+ <div style="display: flex; align-items: center;">
+ <a-radio-group v-model="position" type="button" style="margin-right: 10px">
+ <a-radio value="top">鍏ㄦ枃</a-radio>
+ <a-radio value="right">鐪佺暐</a-radio>
+ </a-radio-group>
+ <a-popover position="bottom">
+ <a-button type="outline" class="button" style="margin-right: 10px">鎵归噺 <icon-down style="margin-left: 4px" /></a-button>
+ <template #content>
+ <p>Here is the text content</p>
+ <p>Here is the text content</p>
+ </template>
+ </a-popover>
+ <a-button type="outline" class="button" style="margin-right: 10px">
+ <template #icon>
+ <icon-search />
+ </template>
+ </a-button>
+ <a-popover position="bottom">
+ <a-button type="outline" class="button" style="margin-right: 10px"><icon-sort /></a-button>
+ <template #content>
+ <p>Here is the text content</p>
+ <p>Here is the text content</p>
+ </template>
+ </a-popover>
+ <addDetails></addDetails>
+ </div>
+ </div>
+ <a-divider style="margin-top: 10px" />
+ </div>
</div>
</div>
</div>
@@ -245,6 +286,7 @@
import config from '@/views/dmx/knowledgeLib/config.vue'
import test from '@/views/dmx/knowledgeLib/test.vue'
import tool from '@/views/dmx/knowledgeLib/tool.vue'
+ import addDetails from '@/views/dmx/knowledgeLib/addDetails.vue'
import { deleteAccount } from "@/api/account";
type SizeProps = 'mini' | 'small' | 'medium' | 'large';
type Column = TableColumnData & { checked?: true };
@@ -268,6 +310,7 @@
const size = ref<SizeProps>('medium');
let visible = ref(false)
+ let detailsShow = ref(false)
let selectedTab = ref(0)
let tabs = reactive(['娉曞緥鐭ヨ瘑搴�', '鏀垮姟鐭ヨ瘑搴�', '鍖诲鐭ヨ瘑搴�', '鍏朵粬鐭ヨ瘑搴�'])
@@ -304,11 +347,11 @@
{
title: t('鍚嶇О'),
dataIndex: 'name',
+ slotName: 'name',
},
{
title: t('鍒嗗揩鏁�'),
dataIndex: 'contentType',
- slotName: 'contentType',
},
{
title: t('涓婁紶鏃堕棿'),
@@ -465,6 +508,16 @@
}
};
+ const fileClick = ()=>{
+ detailsShow.value = true
+
+ }
+
+ const goBackClick = ()=>{
+ detailsShow.value = false
+
+ }
+
const deleteItem = async (row)=>{
console.log(row);
// let data = await deleteAccount({id: row.number})
@@ -549,6 +602,7 @@
}
}
.rt-container{
+ position: relative;
//background: #626aea;
margin-left: 20px;
width: calc(100% - 200px);
@@ -556,6 +610,20 @@
.rt-container-main{
height: 76vh;
}
+ .details{
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: #ffffff;
+ .details-header{
+ display: flex;
+ justify-content: space-between;
+ margin-top: 10px;
+ padding-right: 20px;
+ }
+ }
}
}
}
--
Gitblit v1.8.0