Commit 820790b2 authored by 罗超's avatar 罗超

·

parent 281b06ee
This diff is collapsed.
<template> <template>
<div class="page-body myActiveOrder"> <div class="page-body myActiveOrder">
<div class="row col" style="margin-bottom: 10px"> <div class="row col" style="margin-bottom: 10px">
<div class="row col "> <div class="row col">
<q-btn color="accent" size="sm" class="q-mr-md " label="返回" @click="goBack" /> <q-btn
<div v-if="activeName" style="line-height:25px"> color="accent"
活动名称:{{activeName}} size="sm"
class="q-mr-md"
label="返回"
@click="goBack"
/>
<div v-if="activeName" style="line-height: 25px">
活动名称:{{ activeName }}
</div> </div>
</div> </div>
<q-btn color="accent" style="float:right" v-if="from==1" size="sm" label="参与者名单" @click="gourl" /> <q-btn
color="accent"
style="float: right"
v-if="from == 1"
size="sm"
label="参与者名单"
@click="gourl"
/>
</div> </div>
<div class="page-content"> <div class="page-content">
<OrderItem :dataList="data.List" ref="orderL" :authObj="authObj" :modityOrderType="2" :cancelList="CancelList" <OrderItem
:formActiveMan="true" @agree="agreeApply" @refuse="jujueMsg" @success="refreshClassOrder"></OrderItem> :dataList="data.List"
<div class="row" style="justify-content: flex-end;padding: 5px 20px"> ref="orderL"
<q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end" :authObj="authObj"
color="primary" :input="true"> :modityOrderType="2"
:cancelList="CancelList"
:formActiveMan="true"
@agree="agreeApply"
@refuse="jujueMsg"
@success="refreshClassOrder"
isActivity
></OrderItem>
<div class="row" style="justify-content: flex-end; padding: 5px 20px">
<q-pagination
v-model="msg.pageIndex"
:max="pageCount"
@input="changePage"
class="full-width justify-end"
color="primary"
:input="true"
>
</q-pagination> </q-pagination>
</div> </div>
</div> </div>
<!-- 拒绝报名 --> <!-- 拒绝报名 -->
<el-dialog title="拒绝报名" :visible.sync="showJujue" width="600px"> <el-dialog title="拒绝报名" :visible.sync="showJujue" width="600px">
<div class="activityFlex"> <div class="activityFlex">
<el-input type="textarea" rows="4" v-model="bdMsg.RejectRemark"></el-input> <el-input
type="textarea"
rows="4"
v-model="bdMsg.RejectRemark"
></el-input>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<!-- <el-button type="primary" size="small" @click="sureJujue">确定</el-button> --> <!-- <el-button type="primary" size="small" @click="sureJujue">确定</el-button> -->
<q-btn text-color="accent" size="sm" class="q-mr-md" label="取消" @click="showJujue=false" /> <q-btn
<q-btn color="accent" size="sm" class="q-mr-md" label="确定" @click="sureJujue" /> text-color="accent"
size="sm"
class="q-mr-md"
label="取消"
@click="showJujue = false"
/>
<q-btn
color="accent"
size="sm"
class="q-mr-md"
label="确定"
@click="sureJujue"
/>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { import { quertClassOrderList } from "../../api/sale/sale";
quertClassOrderList
} from '../../api/sale/sale';
import OrderItem from '../../components/sale/activeOrder-item.vue' import OrderItem from "../../components/sale/activeOrder-item.vue";
export default { export default {
meta: { meta: {
title: "活动报名列表" title: "活动报名列表",
}, },
components: { components: {
OrderItem OrderItem,
}, },
data() { data() {
return { return {
...@@ -52,7 +94,7 @@ ...@@ -52,7 +94,7 @@
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
ActivityId: 0 ActivityId: 0,
}, },
pageCount: 0, pageCount: 0,
//正常订单 //正常订单
...@@ -72,21 +114,21 @@ ...@@ -72,21 +114,21 @@
bdMsg: { bdMsg: {
Id: 0, //报名id Id: 0, //报名id
ApplyForCancelStatus: 1, //申请取消审核状态 1同意 2拒绝 ApplyForCancelStatus: 1, //申请取消审核状态 1同意 2拒绝
RejectRemark: '' RejectRemark: "",
}, },
showJujue: false, showJujue: false,
from: 0, //来源页面,1===活动=>活动管理=>活动列表 from: 0, //来源页面,1===活动=>活动管理=>活动列表
} };
}, },
created() { created() {
if (this.$route.query.Id) { if (this.$route.query.Id) {
this.msg.ActivityId = this.$route.query.Id this.msg.ActivityId = this.$route.query.Id;
} }
if (this.$route.query.name) { if (this.$route.query.name) {
this.activeName = this.$route.query.name this.activeName = this.$route.query.name;
} }
if (this.$route.query.from) { if (this.$route.query.from) {
this.from = this.$route.query.from this.from = this.$route.query.from;
} }
this.getList(); this.getList();
}, },
...@@ -94,38 +136,46 @@ ...@@ -94,38 +136,46 @@
//获取订单列表 //获取订单列表
getList() { getList() {
this.loading = true; this.loading = true;
this.apipostDS("/api/Education/GetConsultOrderStatisticsPage", this.msg, (res) => { this.apipostDS(
this.loading = false "/api/Education/GetConsultOrderStatisticsPage",
this.msg,
(res) => {
this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.data = res.data.data.pageData; this.data = res.data.data.pageData;
this.pageCount = res.data.data.pageCount; this.pageCount = res.data.data.pageCount;
} }
}) }
);
}, },
//刷新页面 //刷新页面
refreshClassOrder() { refreshClassOrder() {
this.getList(); this.getList();
}, },
goBack() { goBack() {
this.$router.go(-1) this.$router.go(-1);
}, },
//翻页 //翻页
changePage(val) { changePage(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList() this.getList();
}, },
//同意 //同意
agreeApply(item) { agreeApply(item) {
this.bdMsg.Id = item.Id; this.bdMsg.Id = item.Id;
this.bdMsg.ApplyForCancelStatus = 1; this.bdMsg.ApplyForCancelStatus = 1;
this.apipostDS("/api/Education/SetCommerceConsultApplyCancel", this.bdMsg, res => { this.apipostDS(
"/api/Education/SetCommerceConsultApplyCancel",
this.bdMsg,
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success("操作成功") this.Success("操作成功");
this.getList() this.getList();
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}) }
);
}, },
jujueMsg(item) { jujueMsg(item) {
this.bdMsg.Id = item.Id; this.bdMsg.Id = item.Id;
...@@ -134,19 +184,23 @@ ...@@ -134,19 +184,23 @@
// 拒绝 // 拒绝
sureJujue() { sureJujue() {
if (!this.bdMsg.RejectRemark) { if (!this.bdMsg.RejectRemark) {
this.Error("请输入拒绝原因") this.Error("请输入拒绝原因");
return return;
} }
this.bdMsg.ApplyForCancelStatus = 2; this.bdMsg.ApplyForCancelStatus = 2;
this.apipostDS("/api/Education/SetCommerceConsultApplyCancel", this.bdMsg, res => { this.apipostDS(
"/api/Education/SetCommerceConsultApplyCancel",
this.bdMsg,
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.showJujue = false; this.showJujue = false;
this.Success("操作成功") this.Success("操作成功");
this.getList() this.getList();
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}) }
);
}, },
gourl() { gourl() {
this.$router.push({ this.$router.push({
...@@ -154,38 +208,36 @@ ...@@ -154,38 +208,36 @@
query: { query: {
Id: this.msg.ActivityId, Id: this.msg.ActivityId,
name: this.activeName, name: this.activeName,
from: this.from from: this.from,
}
})
}, },
} });
} },
},
};
</script> </script>
<style> <style>
.myActiveOrder .table-body { .myActiveOrder .table-body {
height: calc(100vh - 220px); height: calc(100vh - 220px);
} }
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
.myActiveOrder .table-body::-webkit-scrollbar { .myActiveOrder .table-body::-webkit-scrollbar {
width: 5px; width: 5px;
height: 5px; height: 5px;
background-color: #F5F5F5; background-color: #f5f5f5;
} }
/*定义滚动条轨道 内阴影+圆角*/ /*定义滚动条轨道 内阴影+圆角*/
.myActiveOrder .table-body::-webkit-scrollbar-track { .myActiveOrder .table-body::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px; border-radius: 10px;
background-color: #F5F5F5; background-color: #f5f5f5;
} }
/*定义滑块 内阴影+圆角*/ /*定义滑块 内阴影+圆角*/
.myActiveOrder .table-body::-webkit-scrollbar-thumb { .myActiveOrder .table-body::-webkit-scrollbar-thumb {
border-radius: 5px; border-radius: 5px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3); -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: #555; background-color: #555;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment