提交 58ac1759 authored 作者: 龙菲's avatar 龙菲

调整首页的新建文档

上级 ac60ec94
...@@ -385,7 +385,6 @@ export default { ...@@ -385,7 +385,6 @@ export default {
}); });
}, },
/** /**
* 新建 office 文件(支持可通过模板) * 新建 office 文件(支持可通过模板)
* @description 调用新建 office 文件服务,并在弹窗确认回调事件中刷新文件列表 * @description 调用新建 office 文件服务,并在弹窗确认回调事件中刷新文件列表
...@@ -393,7 +392,6 @@ export default { ...@@ -393,7 +392,6 @@ export default {
*/ */
handleCreateFile(extendName) { handleCreateFile(extendName) {
let isShowTemplateRatio = this.fileType != this.TEMPLATE_MANAGE; //是否要展示模板选项,我的创作展示,模板管理不展示 let isShowTemplateRatio = this.fileType != this.TEMPLATE_MANAGE; //是否要展示模板选项,我的创作展示,模板管理不展示
console.log('isShowTemplateRatio',isShowTemplateRatio);
this.$openDialog this.$openDialog
.addFileByTemplate({ .addFileByTemplate({
extendName, extendName,
......
...@@ -160,6 +160,7 @@ export default { ...@@ -160,6 +160,7 @@ export default {
this.$openDialog this.$openDialog
.addFileByTemplate({ .addFileByTemplate({
extendName: "docx", extendName: "docx",
isShowTemplateRatio: true, //是否要显示选择模板
}) })
.then((res) => { .then((res) => {
// if (res === "confirm") { // if (res === "confirm") {
...@@ -170,7 +171,7 @@ export default { ...@@ -170,7 +171,7 @@ export default {
// 点击表格某一行 // 点击表格某一行
handleClickName(row) { handleClickName(row) {
console.log("row", row); console.log("row", row);
this.$file.handleFileNameClickNew(row) this.$file.handleFileNameClickNew(row);
}, },
handleToCreate() { handleToCreate() {
this.$router.push("/mine/myCreate"); this.$router.push("/mine/myCreate");
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
>复制笔记</el-link >复制笔记</el-link
> >
<el-dropdown> <el-dropdown>
<el-link type="primary" icon="el-icon-more">更多</el-link> <el-link type="primary" icon="el-icon-more"></el-link>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item <el-dropdown-item
@click.native="handleNoteOperation('view', item)" @click.native="handleNoteOperation('view', item)"
...@@ -323,7 +323,7 @@ export default { ...@@ -323,7 +323,7 @@ export default {
border-right: #e6ebf5 1px solid; border-right: #e6ebf5 1px solid;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
padding: 20px 20px 0px; padding: 20px 20px 0px 0;
position: relative; position: relative;
.total { .total {
...@@ -335,7 +335,7 @@ export default { ...@@ -335,7 +335,7 @@ export default {
} }
.list { .list {
font-size: 14px; font-size: 14px;
height: calc(100vh - 245px); height: calc(100vh - 270px);
overflow: auto; overflow: auto;
padding-bottom: 16px; padding-bottom: 16px;
.item { .item {
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
} }
.right { .right {
flex: 1; flex: 1;
padding: 20px 100px 16px 32px; padding: 20px 0 16px 32px;
// 单篇文章 // 单篇文章
.note-container { .note-container {
//文章基本信息 //文章基本信息
...@@ -445,5 +445,6 @@ export default { ...@@ -445,5 +445,6 @@ export default {
.page { .page {
display: flex; display: flex;
justify-content: center; justify-content: center;
height: 70px;
} }
</style> </style>
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
border-right: #e6ebf5 1px solid; border-right: #e6ebf5 1px solid;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
padding: 20px 20px 0px; padding: 20px 20px 0px 0;
position: relative; position: relative;
.total { .total {
...@@ -329,7 +329,7 @@ export default { ...@@ -329,7 +329,7 @@ export default {
} }
.list { .list {
font-size: 14px; font-size: 14px;
height: calc(100vh - 245px); height: calc(100vh - 270px);
overflow: auto; overflow: auto;
padding-bottom: 16px; padding-bottom: 16px;
.item { .item {
...@@ -356,7 +356,7 @@ export default { ...@@ -356,7 +356,7 @@ export default {
} }
.right { .right {
flex: 1; flex: 1;
padding: 20px 100px 16px 32px; padding: 20px 0 16px 32px;
// 单篇文章 // 单篇文章
.note-container { .note-container {
//文章基本信息 //文章基本信息
......
<template> <template>
<div class="container"> <div class="app-container">
<el-tabs v-model="activeName"> <el-tabs v-model="activeName" type="card">
<el-tab-pane name="byFile"> <el-tab-pane name="byFile">
<span slot="label"><i class="el-icon-document"></i> 按文件分类</span> <span slot="label"><i class="el-icon-document"></i> 按文件分类</span>
<NoteByFile ref="NoteByFile" /> <NoteByFile ref="NoteByFile" />
...@@ -37,14 +37,8 @@ export default { ...@@ -37,14 +37,8 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.container {
// padding: 10px 0;
}
::v-deep .el-tabs__header {
padding: 0 20px;
margin: 0 !important;
}
::v-deep .el-tab-pane { ::v-deep .el-tab-pane {
height: calc(100vh - 138px); height: calc(100vh - 180px);
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论