Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
testMenu
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡芬
testMenu
Commits
a0b1b312
提交
a0b1b312
authored
4月 19, 2023
作者:
caicai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
字数限制
上级
2649389d
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
4 行删除
+16
-4
index.vue
src/renderer/components/DragBox/index.vue
+16
-4
没有找到文件。
src/renderer/components/DragBox/index.vue
浏览文件 @
a0b1b312
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</div>
</div>
<img
@
click=
"delCate(cItem,cIndex)"
src=
"~@/assets/close.png"
alt=
""
class=
"dragbox_cate_del"
>
<img
@
click=
"delCate(cItem,cIndex)"
src=
"~@/assets/close.png"
alt=
""
class=
"dragbox_cate_del"
>
</div>
</div>
<el-input
v-else
v-model=
"editName"
placeholder=
""
@
blur=
"closeEdit(cIndex)"
class=
"dragbox_cate_input"
></el-input>
<el-input
v-else
v-model=
"editName"
placeholder=
""
minlength=
"1"
maxlength=
"6"
@
blur=
"closeEdit(cIndex)"
class=
"dragbox_cate_input"
></el-input>
<div
v-if=
"cItem.softList"
class=
"dragbox_cate_list"
>
<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>
<cateItem
v-for=
"(sItem, sIndex) in cItem.softList"
:key=
"sIndex"
:detail=
"sItem"
:src=
"sItem.icon"
:name=
"sItem.name"
></cateItem>
</div>
</div>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
destroy-on-close
destroy-on-close
center
>
center
>
<div
style=
"padding-bottom:12px;fontsize:16px"
>
请输入分类名称
</div>
<div
style=
"padding-bottom:12px;fontsize:16px"
>
请输入分类名称
</div>
<el-input
v-model=
"cateName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"cateName"
placeholder=
"请输入"
minlength=
"1"
maxlength=
"6"
></el-input>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancelAdd"
>
取 消
</el-button>
<el-button
@
click=
"cancelAdd"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"sureAdd"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"sureAdd"
>
确 定
</el-button>
...
@@ -163,7 +163,13 @@ export default {
...
@@ -163,7 +163,13 @@ export default {
closeEdit
(
index
)
{
closeEdit
(
index
)
{
let
oldName
=
this
.
cateList
[
index
].
name
;
let
oldName
=
this
.
cateList
[
index
].
name
;
let
editName
=
this
.
editName
.
trim
();
let
editName
=
this
.
editName
.
trim
();
if
(
editName
==
''
)
editName
=
"未命名"
;
if
(
editName
==
''
||
editName
.
length
<
1
||
editName
.
length
>
6
)
{
this
.
$message
.
warning
(
"分类名字1到6个字"
);
this
.
editName
=
""
;
this
.
editIndex
=
-
1
;
return
;
}
// if(editName == '') editName = "未命名";
if
(
oldName
!=
editName
)
{
if
(
oldName
!=
editName
)
{
this
.
$emit
(
"changeName"
,
{
index
,
name
:
editName
,
detail
:
this
.
cateList
[
index
]}
);
this
.
$emit
(
"changeName"
,
{
index
,
name
:
editName
,
detail
:
this
.
cateList
[
index
]}
);
}
}
...
@@ -196,8 +202,14 @@ export default {
...
@@ -196,8 +202,14 @@ export default {
},
},
sureAdd
()
{
sureAdd
()
{
let
name
=
this
.
cateName
;
let
name
=
this
.
cateName
;
if
(
name
==
''
||
name
.
trim
()
==
''
)
name
=
"未命名"
;
if
(
name
==
''
||
name
.
trim
()
==
''
||
name
.
length
<
1
||
name
.
length
>
6
)
{
this
.
$message
.
warning
(
"分类名字1到6个字"
);
this
.
cateName
=
""
;
return
;
}
// if(name == '' || name.trim() == '') name = "未命名";
this
.
$emit
(
"addCategory"
,
name
);
this
.
$emit
(
"addCategory"
,
name
);
this
.
cateName
=
""
;
},
},
addCate
()
{
addCate
()
{
// 添加分类
// 添加分类
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论