Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
zxn-adputin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lijin
zxn-adputin
Commits
ec541dd1
Commit
ec541dd1
authored
Sep 19, 2025
by
hzl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 处理缓存bug和添加count字段
parent
69cc1448
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
index.vue
src/views/resourceGroup/index.vue
+32
-2
No files found.
src/views/resourceGroup/index.vue
View file @
ec541dd1
...
...
@@ -43,6 +43,11 @@
<span
v-else
style=
"color: #999;"
>
暂无备注
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"count"
label=
"文件数量"
width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
type=
"info"
size=
"small"
>
{{
scope
.
row
.
count
||
0
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -118,7 +123,7 @@
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"
dialogVisible = false
"
>
取消
</el-button>
<el-button
@
click=
"
handleCancel
"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
:loading=
"submitLoading"
>
确定
</el-button>
</div>
</el-dialog>
...
...
@@ -492,14 +497,35 @@ export default {
this
.
dialogTitle
=
'新增资源组'
this
.
dialogVisible
=
true
// 重置表单验证
// 重置表单验证
和上传组件
this
.
$nextTick
(()
=>
{
if
(
this
.
$refs
.
form
)
{
this
.
$refs
.
form
.
resetFields
()
}
// 重置上传组件状态
if
(
this
.
$refs
.
uploadComponent
)
{
this
.
$refs
.
uploadComponent
.
reset
()
}
})
},
// 处理取消
handleCancel
()
{
// 重置上传组件状态
if
(
this
.
$refs
.
uploadComponent
)
{
this
.
$refs
.
uploadComponent
.
reset
()
}
// 清空表单数据
this
.
form
=
{
id
:
null
,
name
:
''
,
uploadedFiles
:
[],
remark
:
''
}
// 关闭对话框
this
.
dialogVisible
=
false
},
// 处理详情
handleDetail
(
row
)
{
this
.
currentResourceGroup
=
row
...
...
@@ -572,6 +598,10 @@ export default {
createResourceGroup
(
formData
).
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
this
.
$message
.
success
(
'创建成功'
)
// 重置上传组件状态
if
(
this
.
$refs
.
uploadComponent
)
{
this
.
$refs
.
uploadComponent
.
reset
()
}
this
.
dialogVisible
=
false
this
.
fetchData
()
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment