|
@@ -33,7 +33,7 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="24" class="third-row">
|
|
<el-col :span="24" class="third-row">
|
|
|
- <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" highlight-current-row>
|
|
|
|
|
|
|
+ <!-- <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" highlight-current-row>
|
|
|
<el-table-column label="订单号" width="280" align="center">
|
|
<el-table-column label="订单号" width="280" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.order }}</template>
|
|
<template slot-scope="scope">{{ scope.row.order }}</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -48,6 +48,22 @@
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ </el-table> -->
|
|
|
|
|
+ <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" highlight-current-row>
|
|
|
|
|
+ <el-table-column label="订单号" align="center">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.order }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="id" label="学号"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="stuName" label="姓名"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="class" label="班级"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="money" label="金额(元)"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="time" label="时间" widshow-overflow-tooltip></el-table-column>
|
|
|
|
|
+ <el-table-column label="状态" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag :type="scope.row.state === '支付失败' ? 'danger' : 'success'" disable-transitions>{{scope.row.state}}
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<div style="margin-top: 20px" class="table-footer">
|
|
<div style="margin-top: 20px" class="table-footer">
|
|
|
<div class="pages">
|
|
<div class="pages">
|
|
@@ -61,7 +77,7 @@
|
|
|
<el-col :span="24" class="forth-row">
|
|
<el-col :span="24" class="forth-row">
|
|
|
<!-- 编辑对话框 -->
|
|
<!-- 编辑对话框 -->
|
|
|
<el-dialog v-if="selectM" title="请选择月份" :visible.sync="editdialogFormVisible" width="400px" top="0vh"
|
|
<el-dialog v-if="selectM" title="请选择月份" :visible.sync="editdialogFormVisible" width="400px" top="0vh"
|
|
|
- class="my-dialog">
|
|
|
|
|
|
|
+ class="my-dialog" :before-close="handleClose">
|
|
|
<div id="month">
|
|
<div id="month">
|
|
|
<el-date-picker v-model="monthValue" type="month" placeholder="选择月" value-format="yyyy-MM"
|
|
<el-date-picker v-model="monthValue" type="month" placeholder="选择月" value-format="yyyy-MM"
|
|
|
@change="handleSelectMonth">
|
|
@change="handleSelectMonth">
|
|
@@ -73,7 +89,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog v-if="!selectM" title="请选择日期" :visible.sync="editdialogFormVisible" width="400px" top="0vh"
|
|
<el-dialog v-if="!selectM" title="请选择日期" :visible.sync="editdialogFormVisible" width="400px" top="0vh"
|
|
|
- class="my-dialog">
|
|
|
|
|
|
|
+ class="my-dialog" :before-close="handleClose">
|
|
|
<div id="month">
|
|
<div id="month">
|
|
|
<el-date-picker v-model="dayValue" type="date" placeholder="选择日期" value-format="yyyy-MM-dd"
|
|
<el-date-picker v-model="dayValue" type="date" placeholder="选择日期" value-format="yyyy-MM-dd"
|
|
|
@change="handleSelectDay">
|
|
@change="handleSelectDay">
|
|
@@ -142,10 +158,12 @@
|
|
|
this.editdialogFormVisible = true
|
|
this.editdialogFormVisible = true
|
|
|
this.selectM = true
|
|
this.selectM = true
|
|
|
this.flag = 2
|
|
this.flag = 2
|
|
|
|
|
+ // this.$message.success("请选择月份")
|
|
|
} else if (val == 'day') {
|
|
} else if (val == 'day') {
|
|
|
this.editdialogFormVisible = true
|
|
this.editdialogFormVisible = true
|
|
|
this.selectM = false
|
|
this.selectM = false
|
|
|
this.flag = 3
|
|
this.flag = 3
|
|
|
|
|
+ // this.$message.success("请选择日期")
|
|
|
} else {
|
|
} else {
|
|
|
this.tableData = []
|
|
this.tableData = []
|
|
|
this.all_money = 0
|
|
this.all_money = 0
|
|
@@ -174,6 +192,7 @@
|
|
|
this.tableData = []
|
|
this.tableData = []
|
|
|
this.all_money = 0
|
|
this.all_money = 0
|
|
|
this.getTableData(this.$Api.orderList, this.flag, 1, '', this.monthValue)
|
|
this.getTableData(this.$Api.orderList, this.flag, 1, '', this.monthValue)
|
|
|
|
|
+ this.$message.success("选择成功")
|
|
|
},
|
|
},
|
|
|
//确定选择日期
|
|
//确定选择日期
|
|
|
selectDay() {
|
|
selectDay() {
|
|
@@ -183,11 +202,19 @@
|
|
|
this.tableData = []
|
|
this.tableData = []
|
|
|
this.all_money = 0
|
|
this.all_money = 0
|
|
|
this.getTableData(this.$Api.orderList, this.flag, 1, '', this.dayValue)
|
|
this.getTableData(this.$Api.orderList, this.flag, 1, '', this.dayValue)
|
|
|
|
|
+ this.$message.success("选择成功")
|
|
|
},
|
|
},
|
|
|
//退出选择
|
|
//退出选择
|
|
|
selectLogout() {
|
|
selectLogout() {
|
|
|
this.editdialogFormVisible = false
|
|
this.editdialogFormVisible = false
|
|
|
this.formInline.value = '请重新选择'
|
|
this.formInline.value = '请重新选择'
|
|
|
|
|
+ this.$message.warning("请重新选择")
|
|
|
|
|
+ },
|
|
|
|
|
+ //关闭对话框
|
|
|
|
|
+ handleClose(){
|
|
|
|
|
+ this.editdialogFormVisible = false
|
|
|
|
|
+ this.formInline.value = '请重新选择'
|
|
|
|
|
+ this.$message.warning("请重新选择")
|
|
|
},
|
|
},
|
|
|
//根据关键字查找订单
|
|
//根据关键字查找订单
|
|
|
onSubmit() {
|
|
onSubmit() {
|