Commit cec05c44 authored by pengyunqian's avatar pengyunqian

feat:管理列表页面

parent 361f90dd
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-input v-model="activity.activityName"></el-input> <el-input v-model="activity.activityName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="活动状态"> <el-form-item label="活动状态">
<el-select v-model="value"> <el-select v-model="activity.online_status">
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
...@@ -20,17 +20,17 @@ ...@@ -20,17 +20,17 @@
</el-form-item> </el-form-item>
<el-button type="primary">发布拼单</el-button> <el-button type="primary">发布拼单</el-button>
<!-- 列表 --> <!-- 列表 -->
<el-table :data="data" border style="width: 100%"> <el-table :data="manageList" border style="width: 100%">
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="activiteId"
label="活动ID" label="活动ID"
width="width" width="width"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="activiteHead"
label="活动标题" label="活动标题"
@header-click="handleHeadline" @header-click="handleHeadline"
width="width" width="width"
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="activiteStatus"
label="活动状态" label="活动状态"
width="width" width="width"
> >
...@@ -56,59 +56,78 @@ ...@@ -56,59 +56,78 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="orderNumber"
label="订单数量" label="订单数量"
width="width" width="width"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="soldGoods"
label="已售商品数量" label="已售商品数量"
width="width" width="width"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="pay"
label="支付金额" label="支付金额"
width="width" width="width"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="discounts"
label="优惠金额" label="优惠金额"
width="width" width="width"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="refund"
label="已退款金额" label="已退款金额"
width="width" width="width"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="prop" prop="realized"
label="实际收入" label="实际收入"
width="width" width="width"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column align="center" prop="prop" label="操作" width="250">
align="center" <template #default="scope">
prop="prop" <el-button
label="操作" type="primary"
width="width" size="small"
> @click="handleModify(scope.row)"
>修改</el-button>
<el-popconfirm title="确定要结束本次拼单吗?">
<template #reference>
<el-button
type="primary"
size="small"
@click="handleEnd(scope.row)"
>结束</el-button>
</template>
</el-popconfirm>
<el-popconfirm title="确定要开启本次拼单吗?">
<template #reference>
<el-button
type="primary"
size="small"
@click="handleStart(scope.row)"
>开始</el-button>
</template>
</el-popconfirm>
<el-button
type="primary"
size="small"
@click="handleLook(scope.row)"
>查看订单</el-button>
</template>
</el-table-column> </el-table-column>
<template>
<el-button type="primary">修改</el-button>
<el-button type="primary">结束</el-button>
<el-button type="primary">开始</el-button>
<el-button type="primary">查看订单</el-button>
</template>
</el-table> </el-table>
</el-form> </el-form>
</el-card> </el-card>
...@@ -121,21 +140,40 @@ export default { ...@@ -121,21 +140,40 @@ export default {
return { return {
activity: { activity: {
activityName: "", activityName: "",
online_status: [],
}, },
manageList: [
{
activiteId: "413315",
activiteHead: "生活圈7月29午饭",
activiteStatus: "进行中",
orderNumber: "345",
soldGoods: "",
pay: "",
discounts: "",
refund: "",
realized: "4000",
},
],
options: [ options: [
{ value: '选项1',label: "未开始",}, { value: "0", label: "未开始" },
{ value: '选项2',label: "进行中" }, { value: "1", label: "进行中" },
{ value: '选项3',label: "已结束" }, { value: "2", label: "已结束" },
], ],
value:'',
}; };
}, },
methods: { methods: {
// 点击活动标题 // 点击活动标题
handleHeadline() { handleHeadline() {},
// 修改
} handleModify() {},
} // 结束
handleEnd() {},
// 开始
handleStart() {},
// 查看详情
handleLook() {},
},
}; };
</script> </script>
<style lang="less" src="./index.less" scope></style> <style lang="less" src="./index.less" scope></style>
\ No newline at end of file
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