|
|
|
@ -1,32 +1,21 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<Drawer width="46" title="图片集合" :closable="false" v-model="drawer">
|
|
|
|
<Drawer width="46" title="图片集合" :closable="false" v-model="drawer">
|
|
|
|
<Button
|
|
|
|
<Button @click="
|
|
|
|
@click="
|
|
|
|
|
|
|
|
$refs['addImg'].setForm(
|
|
|
|
$refs['addImg'].setForm(
|
|
|
|
['map_point_id', 'activity_list_id'],
|
|
|
|
['map_point_id', 'activity_list_id'],
|
|
|
|
[select.filter[0].value, 7]
|
|
|
|
[select.filter[0].value, 7]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
$refs['addImg'].setType('add'),
|
|
|
|
$refs['addImg'].setType('add'),
|
|
|
|
$refs['addImg'].show()
|
|
|
|
$refs['addImg'].show()
|
|
|
|
"
|
|
|
|
">新增</Button>
|
|
|
|
>新增</Button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xy-table
|
|
|
|
<xy-table style="margin-top: 20px" :total="total" :list="list" :table-item="talbe" :is-page="false"
|
|
|
|
style="margin-top: 20px"
|
|
|
|
@pageSizeChange="pageSizeChange" @pageIndexChange="pageChange" @delete="row => destroy({
|
|
|
|
:total="total"
|
|
|
|
|
|
|
|
:list="list"
|
|
|
|
|
|
|
|
:table-item="talbe"
|
|
|
|
|
|
|
|
:is-page="false"
|
|
|
|
|
|
|
|
@pageSizeChange="pageSizeChange"
|
|
|
|
|
|
|
|
@pageIndexChange="pageChange"
|
|
|
|
|
|
|
|
@delete="row => destroy({
|
|
|
|
|
|
|
|
table_name: 'map_point_images',
|
|
|
|
table_name: 'map_point_images',
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
activity_list_id: 7
|
|
|
|
activity_list_id: 7
|
|
|
|
}).then(_ => getList())"
|
|
|
|
}).then(_ => getList())" @editor="
|
|
|
|
@editor="
|
|
|
|
|
|
|
|
(row) => {
|
|
|
|
(row) => {
|
|
|
|
$refs['addImg'].setForm(
|
|
|
|
$refs['addImg'].setForm(
|
|
|
|
['map_point_id', 'activity_list_id'],
|
|
|
|
['map_point_id', 'activity_list_id'],
|
|
|
|
@ -36,8 +25,7 @@
|
|
|
|
$refs['addImg'].setType('editor');
|
|
|
|
$refs['addImg'].setType('editor');
|
|
|
|
$refs['addImg'].show();
|
|
|
|
$refs['addImg'].show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"
|
|
|
|
">
|
|
|
|
>
|
|
|
|
|
|
|
|
</xy-table>
|
|
|
|
</xy-table>
|
|
|
|
</Drawer>
|
|
|
|
</Drawer>
|
|
|
|
|
|
|
|
|
|
|
|
@ -46,10 +34,13 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { index, destroy } from "@/api/index";
|
|
|
|
import {
|
|
|
|
|
|
|
|
index,
|
|
|
|
|
|
|
|
destroy
|
|
|
|
|
|
|
|
} from "@/api/index";
|
|
|
|
|
|
|
|
|
|
|
|
import addImg from "./addImg.vue";
|
|
|
|
import addImg from "./addImg.vue";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
addImg,
|
|
|
|
addImg,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -61,23 +52,34 @@ export default {
|
|
|
|
page_size: 999,
|
|
|
|
page_size: 999,
|
|
|
|
activity_list_id: 7,
|
|
|
|
activity_list_id: 7,
|
|
|
|
table_name: "map_point_images",
|
|
|
|
table_name: "map_point_images",
|
|
|
|
filter: [
|
|
|
|
with_relations:["image"],
|
|
|
|
{
|
|
|
|
filter: [{
|
|
|
|
key: "map_point_id",
|
|
|
|
key: "map_point_id",
|
|
|
|
value: 7,
|
|
|
|
value: 7,
|
|
|
|
op: "eq",
|
|
|
|
op: "eq",
|
|
|
|
},
|
|
|
|
}, ],
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
talbe: [
|
|
|
|
talbe: [{
|
|
|
|
{
|
|
|
|
|
|
|
|
prop: "name",
|
|
|
|
prop: "name",
|
|
|
|
label: "标题",
|
|
|
|
label: "标题",
|
|
|
|
minWidth: 220,
|
|
|
|
minWidth: 220,
|
|
|
|
align: "left",
|
|
|
|
align: "left",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
prop: "img",
|
|
|
|
|
|
|
|
label: "图片",
|
|
|
|
|
|
|
|
minWidth: 130,
|
|
|
|
|
|
|
|
align: "center",
|
|
|
|
|
|
|
|
customFn: (row) => {
|
|
|
|
|
|
|
|
return ( <div><img src={row.image?.url} style = 'width:120px;' /> </div>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
prop: "created_at",
|
|
|
|
prop: "created_at",
|
|
|
|
label: "创建信息",
|
|
|
|
label: "创建信息",
|
|
|
|
@ -134,7 +136,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"></style>
|
|
|
|
<style scoped lang="scss"></style>
|
|
|
|
|