|
@@ -1,53 +1,20 @@
|
|
|
<template>
|
|
|
- <van-nav-bar
|
|
|
- fixed
|
|
|
- title="私设聚会点"
|
|
|
- left-text=""
|
|
|
- right-text="上报"
|
|
|
- left-arrow
|
|
|
- @click-left="onClickLeft"
|
|
|
- @click-right="onClickRight"
|
|
|
- :style="{ 'background-color': selectColor }"
|
|
|
- >
|
|
|
+ <van-nav-bar fixed title="私设聚会点" left-text="" right-text="上报" left-arrow @click-left="onClickLeft"
|
|
|
+ @click-right="onClickRight" :style="{ 'background-color': selectColor }">
|
|
|
<template #right>
|
|
|
<van-icon name="plus" size="18" />
|
|
|
</template>
|
|
|
</van-nav-bar>
|
|
|
<div class="main">
|
|
|
- <van-search
|
|
|
- v-model="searchVal"
|
|
|
- readonly
|
|
|
- clearable
|
|
|
- show-action
|
|
|
- shape="round"
|
|
|
- placeholder="请选择地点"
|
|
|
- label="地点"
|
|
|
- input-align="center"
|
|
|
- @cancel="onCancel"
|
|
|
- @click-input="showArea = true"
|
|
|
- /><van-popup v-model:show="showArea" round position="bottom">
|
|
|
- <van-cascader
|
|
|
- v-model="cascaderValue"
|
|
|
- title="请选择所在地区"
|
|
|
- :options="options"
|
|
|
- @close="showArea = false"
|
|
|
- @finish="onFinish"
|
|
|
- :field-names="fieldNames"
|
|
|
- />
|
|
|
+ <van-search v-model="searchVal" readonly clearable show-action shape="round" placeholder="请选择地点" label="地点"
|
|
|
+ input-align="center" @cancel="onCancel" @click-input="showArea = true" /><van-popup v-model:show="showArea" round
|
|
|
+ position="bottom">
|
|
|
+ <van-cascader v-model="cascaderValue" title="请选择所在地区" :options="options" @close="showArea = false"
|
|
|
+ @finish="onFinish" :field-names="fieldNames" />
|
|
|
</van-popup>
|
|
|
- <van-tabs
|
|
|
- v-show="!searchShow"
|
|
|
- v-model:active="active"
|
|
|
- title-inactive-color="#bdbdbd"
|
|
|
- title-active-color="#36a7f3"
|
|
|
- >
|
|
|
+ <van-tabs v-show="!searchShow" v-model:active="active" title-inactive-color="#bdbdbd" title-active-color="#36a7f3">
|
|
|
<van-tab title="未审核" name="0">
|
|
|
- <van-list
|
|
|
- v-model:loading="loading"
|
|
|
- :finished="finished"
|
|
|
- finished-text="没有更多了"
|
|
|
- @load="onLoad"
|
|
|
- >
|
|
|
+ <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
|
|
|
<van-swipe-cell v-for="item in list" :key="item">
|
|
|
<div class="list_item" @click="goInfo(item.id)">
|
|
|
<div class="item-left">
|
|
@@ -58,12 +25,8 @@
|
|
|
</div>
|
|
|
<van-cell>
|
|
|
<template #title>
|
|
|
- <van-text-ellipsis
|
|
|
- rows="2"
|
|
|
- :content="`${
|
|
|
- item.relatedPersons.name + item.frequency
|
|
|
- }次私设聚会活动`"
|
|
|
- />
|
|
|
+ <van-text-ellipsis rows="2" :content="`${item.relatedPersons.name + item.frequency
|
|
|
+ }次私设聚会活动`" />
|
|
|
</template>
|
|
|
<template #label>
|
|
|
{{ item.placeSelectName }}
|
|
@@ -71,47 +34,26 @@
|
|
|
</van-cell>
|
|
|
</div>
|
|
|
<template #right>
|
|
|
- <van-button
|
|
|
- square
|
|
|
- type="danger"
|
|
|
- text="删除"
|
|
|
- class="button"
|
|
|
- @click="deleteItem(item.id)"
|
|
|
- />
|
|
|
- <van-button
|
|
|
- square
|
|
|
- type="primary"
|
|
|
- text="修改"
|
|
|
- class="button"
|
|
|
- @click="updateItem(item)"
|
|
|
- />
|
|
|
+ <van-button square type="danger" text="删除" class="button" @click="deleteItem(item.id)" />
|
|
|
+ <van-button square type="primary" text="修改" class="button" @click="updateItem(item)" />
|
|
|
</template>
|
|
|
</van-swipe-cell>
|
|
|
</van-list>
|
|
|
</van-tab>
|
|
|
<van-tab title="已审核" name="1">
|
|
|
- <van-list
|
|
|
- v-model:loading="loading1"
|
|
|
- :finished="finished1"
|
|
|
- finished-text="没有更多了"
|
|
|
- @load="onLoad1"
|
|
|
- >
|
|
|
+ <van-list v-model:loading="loading1" :finished="finished1" finished-text="没有更多了" @load="onLoad1">
|
|
|
<van-swipe-cell v-for="item in readList" :key="item">
|
|
|
<div class="list_item" @click="goInfo(item.id)">
|
|
|
<div class="item-left">
|
|
|
<p v-show="item.partyTime != ''" style="color: #c4c4c4">
|
|
|
{{ item.partyTime }}
|
|
|
</p>
|
|
|
- <p style="color: red">待审核</p>
|
|
|
+ <p style="color: gray">已审核</p>
|
|
|
</div>
|
|
|
<van-cell>
|
|
|
<template #title>
|
|
|
- <van-text-ellipsis
|
|
|
- rows="2"
|
|
|
- :content="`${
|
|
|
- item.relatedPersons.name + item.frequency
|
|
|
- }次私设聚会活动`"
|
|
|
- />
|
|
|
+ <van-text-ellipsis rows="2" :content="`${item.relatedPersons.name + item.frequency
|
|
|
+ }次私设聚会活动`" />
|
|
|
</template>
|
|
|
<template #label>
|
|
|
{{ item.placeSelectName }}
|
|
@@ -123,13 +65,7 @@
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
<!-- 搜索结果 -->
|
|
|
- <van-list
|
|
|
- v-show="searchShow"
|
|
|
- v-model:loading="loading"
|
|
|
- :finished="finished"
|
|
|
- finished-text="没有更多了"
|
|
|
- @load="onLoad"
|
|
|
- >
|
|
|
+ <van-list v-show="searchShow" v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
|
|
|
<van-swipe-cell v-for="item in searchList" :key="item">
|
|
|
<div class="list_item" @click="goInfo(item.id)">
|
|
|
<div class="item-left">
|
|
@@ -143,12 +79,8 @@
|
|
|
</div>
|
|
|
<van-cell>
|
|
|
<template #title>
|
|
|
- <van-text-ellipsis
|
|
|
- rows="2"
|
|
|
- :content="`${
|
|
|
- item.relatedPersons.name + item.frequency
|
|
|
- }次私设聚会活动`"
|
|
|
- />
|
|
|
+ <van-text-ellipsis rows="2" :content="`${item.relatedPersons.name + item.frequency
|
|
|
+ }次私设聚会活动`" />
|
|
|
</template>
|
|
|
<template #label>
|
|
|
{{ item.placeSelectName }}
|
|
@@ -160,7 +92,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
- <script>
|
|
|
+<script>
|
|
|
import { ref } from "vue";
|
|
|
import PrivatePartyPointService from "@/api/privateparty/PrivatePartyPointService";
|
|
|
import { useRouter } from "vue-router";
|
|
@@ -342,5 +274,4 @@ export default {
|
|
|
};
|
|
|
</script >
|
|
|
|
|
|
-<style scope>
|
|
|
-</style>
|
|
|
+<style scope></style>
|