|
@ -21,8 +21,6 @@ const getObj = ref({ |
|
|
const total = ref(100); |
|
|
const total = ref(100); |
|
|
// 搜索对象时间 |
|
|
// 搜索对象时间 |
|
|
const getTime = ref([]); |
|
|
const getTime = ref([]); |
|
|
// 搜索活动列表 |
|
|
|
|
|
const activity = ref([]); |
|
|
|
|
|
// 所有信息 |
|
|
// 所有信息 |
|
|
const allData = ref([]); |
|
|
const allData = ref([]); |
|
|
// 搜索地区列表 |
|
|
// 搜索地区列表 |
|
@ -193,25 +191,6 @@ const handleClick = function (tab, event) { |
|
|
adminReject(); |
|
|
adminReject(); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
// 获取活动名称 |
|
|
|
|
|
const getActivity = async function () { |
|
|
|
|
|
try { |
|
|
|
|
|
// 发送POST请求 |
|
|
|
|
|
const result = await API.post( |
|
|
|
|
|
"http://192.168.8.93:10010/recharge/activity/select", |
|
|
|
|
|
{} |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// 将响应结果存储到响应式数据中 |
|
|
|
|
|
console.log("请求成功", result); |
|
|
|
|
|
// 存储表格数据 |
|
|
|
|
|
activity.value = result.data; |
|
|
|
|
|
console.log("activity", activity.value); |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log("请求失败", error); |
|
|
|
|
|
// 在这里可以处理错误逻辑,比如显示错误提示等 |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
// 获取地区 |
|
|
// 获取地区 |
|
|
const getArea = async function () { |
|
|
const getArea = async function () { |
|
|
try { |
|
|
try { |
|
@ -236,7 +215,6 @@ const getArea = async function () { |
|
|
// 挂载 |
|
|
// 挂载 |
|
|
onMounted(async function () { |
|
|
onMounted(async function () { |
|
|
await get(); |
|
|
await get(); |
|
|
getActivity(); |
|
|
|
|
|
await getArea(); |
|
|
await getArea(); |
|
|
}); |
|
|
}); |
|
|
//删除气泡 |
|
|
//删除气泡 |
|
@ -331,7 +309,6 @@ const checkNumber = function () { |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in consumeType" |
|
|
v-for="item in consumeType" |
|
|
:key="item.activityId" |
|
|
|
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value" |
|
|
:value="item.value" |
|
|
/> |
|
|
/> |
|
@ -522,7 +499,8 @@ const checkNumber = function () { |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- 分页 --> |
|
|
<!-- 分页 --> |
|
|
<div class="pagination"> |
|
|
|
|
|
|
|
|
<!-- 分页 --> |
|
|
|
|
|
<div class="pagination" style="margin-top: 20px"> |
|
|
<el-pagination |
|
|
<el-pagination |
|
|
background |
|
|
background |
|
|
:page-size="getObj.pageSize" |
|
|
:page-size="getObj.pageSize" |
|
@ -547,11 +525,11 @@ const checkNumber = function () { |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
<el-pagination |
|
|
<el-pagination |
|
|
background |
|
|
background |
|
|
layout="prev, pager, next, slot" |
|
|
|
|
|
|
|
|
layout="prev, pager, next,slot" |
|
|
:page-size="getObj.pageSize" |
|
|
:page-size="getObj.pageSize" |
|
|
:total="total" |
|
|
:total="total" |
|
|
:current-page="getObj.pageNum" |
|
|
:current-page="getObj.pageNum" |
|
|
@current-change="get()" |
|
|
|
|
|
|
|
|
@current-change="get" |
|
|
> |
|
|
> |
|
|
<div>跳至</div> |
|
|
<div>跳至</div> |
|
|
<el-input |
|
|
<el-input |
|
|