Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
795a420f
提交
795a420f
authored
11月 02, 2023
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
保留博物馆的批量操作
上级
a07d7ad2
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
36 行增加
和
10 行删除
+36
-10
index.vue
src/views/museum/index.vue
+36
-10
没有找到文件。
src/views/museum/index.vue
浏览文件 @
795a420f
...
@@ -2,16 +2,31 @@
...
@@ -2,16 +2,31 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<div
class=
"top-bar"
>
<div
class=
"top-bar"
>
<SearchBar
:config=
"searchConfig"
@
search=
"search"
@
reset=
"reset"
/>
<SearchBar
:config=
"searchConfig"
@
search=
"search"
@
reset=
"reset"
/>
</div>
<div
class=
"tools"
>
<PermissionButton
<PermissionButton
perms=
"sys:dept:add"
perms=
"sys:dept:add"
size=
"mini"
size=
"mini"
type=
"primary"
type=
"primary"
@
click
.
native=
"handleOperation('add')"
@
click
.
native=
"handleOperation('add')"
button
button
style=
"margin-right: 16px"
>
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
添加
</PermissionButton
添加
</PermissionButton
>
>
<!--
<PermissionButton
perms=
"sys:dept:deleted"
size=
"mini"
type=
"danger"
plain
@
click
.
native=
"handleOperation('multiDelete')"
button
:disabled=
"multiDisabled"
>
<i
class=
"el-icon-delete"
></i>
批量删除
</PermissionButton
>
-->
</div>
</div>
<el-table
<el-table
...
@@ -23,9 +38,12 @@
...
@@ -23,9 +38,12 @@
stripe
stripe
default-expand-all
default-expand-all
v-loading="loading"
v-loading="loading"
@selection-change="handleSelectionChange"
>
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"index"
width=
"50"
label=
"序号"
align=
"center"
>
<el-table-column
type=
"index"
width=
"50"
label=
"序号"
align=
"center"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
align=
"center"
align=
"center"
prop=
"name"
prop=
"name"
...
@@ -63,16 +81,6 @@
...
@@ -63,16 +81,6 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"latitude"
label=
"纬度"
>
<el-table-column
align=
"center"
prop=
"latitude"
label=
"纬度"
>
</el-table-column>
</el-table-column>
<!-- <el-table-column
align="center"
prop="intro"
label="简介"
show-overflow-tooltip
>
<template slot-scope="scope">
<span v-html="scope.row.intro"></span>
</template>
</el-table-column> -->
<el-table-column
align=
"center"
label=
"操作"
>
<el-table-column
align=
"center"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<PermissionButton
<PermissionButton
...
@@ -161,6 +169,7 @@ export default {
...
@@ -161,6 +169,7 @@ export default {
tableData
:
[],
tableData
:
[],
imgList
:
[],
imgList
:
[],
imgViewerVisible
:
false
,
imgViewerVisible
:
false
,
multipleSelection
:
[],
};
};
},
},
computed
:
{
computed
:
{
...
@@ -173,6 +182,9 @@ export default {
...
@@ -173,6 +182,9 @@ export default {
}
}
};
};
},
},
multiDisabled
()
{
return
this
.
multipleSelection
.
length
===
0
;
},
},
},
created
()
{
created
()
{
this
.
loadData
(
true
);
this
.
loadData
(
true
);
...
@@ -279,8 +291,17 @@ export default {
...
@@ -279,8 +291,17 @@ export default {
this
.
loadData
(
true
);
this
.
loadData
(
true
);
}
}
break
;
break
;
case
"multiDelete"
:
this
.
multiDelete
();
break
;
}
}
},
},
multiDelete
()
{
const
ids
=
this
.
multipleSelection
.
map
((
item
)
=>
{
return
item
.
id
;
});
const
request
=
deleteMuseum
;
},
async
handleChangeStatus
(
row
)
{
async
handleChangeStatus
(
row
)
{
const
callback
=
this
.
loadData
;
const
callback
=
this
.
loadData
;
this
.
$bizCommon
.
changeStatus
(
row
,
editMuseum
,
callback
);
this
.
$bizCommon
.
changeStatus
(
row
,
editMuseum
,
callback
);
...
@@ -350,6 +371,11 @@ export default {
...
@@ -350,6 +371,11 @@ export default {
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.tools
{
display
:
flex
;
justify-content
:
space-between
;
margin-bottom
:
20px
;
}
.pagination
{
.pagination
{
margin
:
16px
;
margin
:
16px
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论