Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
testMenu
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡芬
testMenu
Commits
99be6521
提交
99be6521
authored
4月 14, 2023
作者:
caicai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
aa4a66cc
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
57 行增加
和
43 行删除
+57
-43
item.vue
src/renderer/components/Appbox/item.vue
+6
-6
box.vue
src/renderer/components/DragBox/box.vue
+8
-4
index.vue
src/renderer/components/DragBox/index.vue
+30
-28
item.vue
src/renderer/components/DragBox/item.vue
+6
-2
index.vue
src/renderer/components/SchoolBox/index.vue
+2
-1
item.vue
src/renderer/components/SchoolBox/item.vue
+3
-0
Home.vue
src/renderer/views/Home.vue
+2
-2
没有找到文件。
src/renderer/components/Appbox/item.vue
浏览文件 @
99be6521
...
@@ -42,20 +42,20 @@ export default {
...
@@ -42,20 +42,20 @@ export default {
.item_wrap {
.item_wrap {
cursor: pointer;
cursor: pointer;
flex-shrink: 0;
flex-shrink: 0;
margin-right: 15px;
//
margin-right: 15px;
//
margin-right: 8px;
margin-right: 8px;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
justify-content: flex-start;
justify-content: flex-start;
padding-top: 10px;
padding-top: 10px;
//
padding-bottom: 10px;
padding-bottom: 10px;
box-sizing: border-box;
box-sizing: border-box;
// max-width: 110px;
// max-width: 110px;
width: 110px;
//
width: 110px;
height: 110px;
//
height: 110px;
border-radius: 12px 12px 12px 12px;
border-radius: 12px 12px 12px 12px;
//
width: calc(33.3% - 6px);
width: calc(33.3% - 6px);
&:nth-child(3n) {
&:nth-child(3n) {
margin-right: 0;
margin-right: 0;
}
}
...
...
src/renderer/components/DragBox/box.vue
浏览文件 @
99be6521
...
@@ -20,22 +20,25 @@ export default {
...
@@ -20,22 +20,25 @@ export default {
float: left;
float: left;
// width: 460px;
// width: 460px;
// width: 43%;
// width: 43%;
width: 49%;
// width: 49%;
box-sizing: border-box;
width: 100%;
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
margin-top: 24px;
margin-top: 24px;
padding: 30px 15px 18px;
padding: 30px 15px 18px;
background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.5) 100%);
background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.5) 100%);
box-shadow: 0px 4px 4px 0px rgba(10,78,141,0.1);
box-shadow: 0px 4px 4px 0px rgba(10,78,141,0.1);
border-radius: 20px 20px 20px 20px;
border-radius: 20px;
margin: 24px 12px 0;
// margin: 24px 12px 0;
margin-top: 24px;
&.noList {
&.noList {
padding-bottom: 30px;
padding-bottom: 30px;
}
}
&:nth-child(2n+1) {
&:nth-child(2n+1) {
// margin-left: 30px;
// margin-left: 30px;
// width: 346px;
// width: 346px;
width: 37%;
//
width: 37%;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/renderer/components/DragBox/index.vue
浏览文件 @
99be6521
...
@@ -4,35 +4,35 @@
...
@@ -4,35 +4,35 @@
<img
@
click=
"addCate"
src=
"~@/assets/addCategory.png"
alt=
""
class=
"dragbox_head_img"
><span
@
click=
"addCate"
class=
"dragbox_head_txt"
>
添加分类
</span>
<img
@
click=
"addCate"
src=
"~@/assets/addCategory.png"
alt=
""
class=
"dragbox_head_img"
><span
@
click=
"addCate"
class=
"dragbox_head_txt"
>
添加分类
</span>
</div>
</div>
<cateBox
v-for=
"(cItem, cIndex) in cateList"
:key=
"cIndex"
:nolist=
"(!cItem.softList || cItem.softList.length == 0)"
>
<cateBox
v-for=
"(cItem, cIndex) in cateList"
:key=
"cIndex"
:nolist=
"(!cItem.softList || cItem.softList.length == 0)"
>
<div
class=
"dragbox_cate"
:data-id=
"cItem.id"
data-type=
"cate_container"
>
<div
class=
"dragbox_cate"
:data-id=
"cItem.id"
data-type=
"cate_container"
>
<!-- @dblclick="modifyName(cItem.name,cIndex)" -->
<!-- @dblclick="modifyName(cItem.name,cIndex)" -->
<div
v-if=
"editIndex != cIndex"
class=
"dragbox_cate_name"
>
{{
cItem
.
name
}}
<div
v-if=
"editIndex != cIndex"
class=
"dragbox_cate_name"
>
{{
cItem
.
name
}}
<img
@
click=
"modifyName(cItem.name,cIndex)"
<img
@
click=
"modifyName(cItem.name,cIndex)"
src=
"~@/assets/edit_icon.png"
alt=
""
class=
"dragbox_cate_edit"
>
src=
"~@/assets/edit_icon.png"
alt=
""
class=
"dragbox_cate_edit"
>
</div>
<el-input
v-else
v-model=
"editName"
placeholder=
""
@
blur=
"closeEdit(cIndex)"
class=
"dragbox_cate_input"
></el-input>
<div
v-if=
"cItem.softList"
class=
"dragbox_cate_list"
>
<cateItem
v-for=
"(sItem, sIndex) in cItem.softList"
:key=
"sIndex"
:detail=
"sItem"
:src=
"sItem.icon"
:name=
"sItem.name"
></cateItem>
</div>
</div>
</div>
</cateBox>
<el-input
v-else
v-model=
"editName"
placeholder=
""
@
blur=
"closeEdit(cIndex)"
class=
"dragbox_cate_input"
></el-input>
<el-dialog
<div
v-if=
"cItem.softList"
class=
"dragbox_cate_list"
>
title=
"添加分类"
<cateItem
v-for=
"(sItem, sIndex) in cItem.softList"
:key=
"sIndex"
:detail=
"sItem"
:src=
"sItem.icon"
:name=
"sItem.name"
></cateItem>
:visible
.
sync=
"centerDialogVisible"
</div>
width=
"30%"
</div>
destroy-on-close
</cateBox>
center
>
<el-dialog
<div
style=
"padding-bottom:12px;fontsize:16px"
>
请输入分类名称
</div>
title=
"添加分类"
<el-input
v-model=
"cateName"
placeholder=
"请输入"
></el-input>
:visible
.
sync=
"centerDialogVisible"
<span
slot=
"footer"
class=
"dialog-footer"
>
width=
"30%"
<el-button
@
click=
"cancelAdd"
>
取 消
</el-button>
destroy-on-close
<el-button
type=
"primary"
@
click=
"sureAdd"
>
确 定
</el-button>
center
>
</span>
<div
style=
"padding-bottom:12px;fontsize:16px"
>
请输入分类名称
</div>
</el-dialog>
<el-input
v-model=
"cateName"
placeholder=
"请输入"
></el-input>
<right-menu
@
closeMenu=
"closeMenu"
@
select=
"selectMenu"
<span
slot=
"footer"
class=
"dialog-footer"
>
:cates=
"[
{'name':'从当前分类移出'}]" :showText="false"
<el-button
@
click=
"cancelAdd"
>
取 消
</el-button>
:visible="showMenu" :left="menuPosition.left" :top="menuPosition.top">
<el-button
type=
"primary"
@
click=
"sureAdd"
>
确 定
</el-button>
</right-menu>
</span>
</el-dialog>
<right-menu
@
closeMenu=
"closeMenu"
@
select=
"selectMenu"
:cates=
"[
{'name':'从当前分类移出'}]" :showText="false"
:visible="showMenu" :left="menuPosition.left" :top="menuPosition.top">
</right-menu>
</div>
</div>
</
template
>
</
template
>
...
@@ -204,6 +204,7 @@ export default {
...
@@ -204,6 +204,7 @@ export default {
}
}
}
}
.dragbox_cate {
.dragbox_cate {
width: 100%;
.dragbox_cate_name {
.dragbox_cate_name {
display: flex;
display: flex;
align-items: center;
align-items: center;
...
@@ -231,6 +232,7 @@ export default {
...
@@ -231,6 +232,7 @@ export default {
border: 1px solid #C6D3EA;
border: 1px solid #C6D3EA;
}
}
.dragbox_cate_list {
.dragbox_cate_list {
width: 100%;
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
}
}
...
...
src/renderer/components/DragBox/item.vue
浏览文件 @
99be6521
...
@@ -45,12 +45,16 @@ export default {
...
@@ -45,12 +45,16 @@ export default {
justify-content: flex-start;
justify-content: flex-start;
padding-top: 10px;
padding-top: 10px;
box-sizing: border-box;
box-sizing: border-box;
width: 110px;
// width: 110px;
height: 110px;
// height: 110px;
width: calc(33.3% - 4px);
border-radius: 12px 12px 12px 12px;
border-radius: 12px 12px 12px 12px;
&:hover {
&:hover {
background: rgba(57, 157, 249, 0.1);
background: rgba(57, 157, 249, 0.1);
}
}
&:nth-child(3n) {
margin-right: 0;
}
}
}
.item_img {
.item_img {
padding: 4px;
padding: 4px;
...
...
src/renderer/components/SchoolBox/index.vue
浏览文件 @
99be6521
...
@@ -165,7 +165,8 @@ export default {
...
@@ -165,7 +165,8 @@ export default {
}
}
.resource_item {
.resource_item {
margin-top: 25px;
margin-top: 25px;
margin-left: 90px;
// margin-left: 90px;
margin-left: 10px;
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
}
}
...
...
src/renderer/components/SchoolBox/item.vue
浏览文件 @
99be6521
...
@@ -33,6 +33,9 @@ export default {
...
@@ -33,6 +33,9 @@ export default {
align-items: center;
align-items: center;
cursor: pointer;
cursor: pointer;
min-height: 40px;
min-height: 40px;
min-width: max-content;
margin-bottom: 15px;
margin-right: 20px;
.school_item_img {
.school_item_img {
width: 40px;
width: 40px;
height: 40px;
height: 40px;
...
...
src/renderer/views/Home.vue
浏览文件 @
99be6521
...
@@ -78,8 +78,8 @@ export default {
...
@@ -78,8 +78,8 @@ export default {
this
.
ipcRenderer
.
send
(
"window-new"
,
{
this
.
ipcRenderer
.
send
(
"window-new"
,
{
title
:
"管理页面"
,
title
:
"管理页面"
,
route
:
"/manage"
,
route
:
"/manage"
,
width
:
1200
,
//
width: 1200,
//
width: 600,
width
:
600
,
height
:
700
,
height
:
700
,
backgroundColor
:
"#DBE4F6"
,
backgroundColor
:
"#DBE4F6"
,
resizable
:
false
,
resizable
:
false
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论