Commit 36e1cc61 authored by chenfenglei's avatar chenfenglei

扫码导出

parent 311fcf50
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<el-table <el-table
:data="userTable" :data="userTable"
@selection-change="handleSelectionChange123" @selection-change="handleSelectionChange123"
style="width: 100%"> style="width: 100%" fixed>
<el-table-column <el-table-column
type="selection" type="selection"
width="55"> width="55">
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="手机号"> label="手机号" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.mobile}} {{scope.row.mobile}}
</template> </template>
...@@ -148,13 +148,13 @@ ...@@ -148,13 +148,13 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="最后登录时间" sortable width="140" prop="last_login_at" > label="最后登录时间" sortable width="160" prop="last_login_at" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.last_login_at }} {{ scope.row.last_login_at }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="创建时间"> label="创建时间" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.created_at }} {{ scope.row.created_at }}
</template> </template>
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
{{ scope.row.weight}} {{ scope.row.weight}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="320"> <el-table-column label="操作" width="320" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="warning" size="mini" @click="editPrivilege(scope.row)">编辑</el-button> <el-button type="warning" size="mini" @click="editPrivilege(scope.row)">编辑</el-button>
<el-button type="primary" size="mini" @click="onGetUserDescList(scope.row)">备注</el-button> <el-button type="primary" size="mini" @click="onGetUserDescList(scope.row)">备注</el-button>
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<el-table <el-table
:data="tableData" :data="tableData"
@expand-change="changeRow" @expand-change="changeRow"
style="width: 100%"> style="width: 100%" fixed>
<el-table-column <el-table-column
prop="out_trade_no" prop="out_trade_no"
label="订单号" label="订单号"
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
<el-table-column <el-table-column
width="50" width="50"
label="操作" label="操作"
v-if="!$store.state.readonly" v-if="!$store.state.readonly" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
<el-form-item label="用户ID"> <el-form-item label="用户ID">
<el-input v-model="searchFrom.user_id" @change="getList"></el-input> <el-input v-model="searchFrom.user_id" @change="getList"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号">
<el-input v-model="searchFrom.mobile" @change="getList"></el-input>
</el-form-item>
<el-form-item label="商品名称"> <el-form-item label="商品名称">
<el-select v-model="searchFrom.goods_id" placeholder="请选择" @change="getList" clearable> <el-select v-model="searchFrom.goods_id" placeholder="请选择" @change="getList" clearable>
<el-option <el-option
...@@ -17,6 +20,7 @@ ...@@ -17,6 +20,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" plain @click="getList">搜索</el-button> <el-button type="primary" plain @click="getList">搜索</el-button>
<el-button type="primary" plain @click="exportTable">导出</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="head clear-both"> <div class="head clear-both">
...@@ -35,6 +39,8 @@ ...@@ -35,6 +39,8 @@
<el-table-column label="期数标题" prop="periods_name"> <el-table-column label="期数标题" prop="periods_name">
</el-table-column> </el-table-column>
<el-table-column label="商品名称" prop="goods_name"> <el-table-column label="商品名称" prop="goods_name">
</el-table-column>
<el-table-column label="手机号" prop="mobile">
</el-table-column> </el-table-column>
<el-table-column prop="created_at" label="创建时间" sortable> <el-table-column prop="created_at" label="创建时间" sortable>
</el-table-column> </el-table-column>
...@@ -74,7 +80,7 @@ export default { ...@@ -74,7 +80,7 @@ export default {
searchFrom:{ searchFrom:{
user_id:"", user_id:"",
goods_id:"", goods_id:"",
mobile:"",
}, },
goodList:[], goodList:[],
}; };
...@@ -115,6 +121,9 @@ export default { ...@@ -115,6 +121,9 @@ export default {
if(this.searchFrom.goods_id){ if(this.searchFrom.goods_id){
json.goods_id=this.searchFrom.goods_id json.goods_id=this.searchFrom.goods_id
} }
if(this.searchFrom.mobile){
json.mobile=this.searchFrom.mobile
}
getClassConfigApi(json).then(res => { getClassConfigApi(json).then(res => {
this.total = res.total; this.total = res.total;
this.configList=res.list; this.configList=res.list;
...@@ -150,6 +159,20 @@ export default { ...@@ -150,6 +159,20 @@ export default {
}); });
}); });
}) })
},
exportTable(){
let json = {};
if(this.searchFrom.user_id){
json.user_id=this.searchFrom.user_id
}
if(this.searchFrom.goods_id){
json.goods_id=this.searchFrom.goods_id
}
if(this.searchFrom.mobile){
json.mobile=this.searchFrom.mobile
}
console.log(json)
exportExcelApi('/api/admin/user/receive/course/log/export',json)
}, },
} }
}; };
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<el-button type="primary" plain @click="exportTable">导出</el-button> <el-button type="primary" plain @click="exportTable">导出</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table :data="tableData" @expand-change="changeRow" style="width: 100%"> <el-table :data="tableData" @expand-change="changeRow" style="width: 100%" fixed>
<el-table-column prop="out_trade_no" label="订单号"> <el-table-column prop="out_trade_no" label="订单号">
</el-table-column> </el-table-column>
<el-table-column label="购买人" className="f-c" width="150"> <el-table-column label="购买人" className="f-c" width="150">
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<el-table-column prop="desc" label="备注"> <el-table-column prop="desc" label="备注">
</el-table-column> </el-table-column>
<el-table-column width="50" label="操作" v-if="!$store.state.readonly"> <el-table-column width="50" label="操作" v-if="!$store.state.readonly" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover placement="top" width="400"> <el-popover placement="top" width="400">
<div style="text-align: center"> <div style="text-align: center">
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<el-table <el-table
@expand-change="changeRow" @expand-change="changeRow"
:data="periodList" :data="periodList"
style="width: 100%"> style="width: 100%" fixed>
<el-table-column type="expand"> <el-table-column type="expand">
<template slot-scope="scope"> <template slot-scope="scope">
<el-table <el-table
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
width="148" v-if="!$store.state.readonly"> width="148" v-if="!$store.state.readonly" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" plain type="primary" @click="onEdit(scope.row)"> <el-button size="mini" plain type="primary" @click="onEdit(scope.row)">
编辑 编辑
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</el-form> </el-form>
<el-table <el-table
:data="tableData" :data="tableData"
border border fixed
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="withdraw_no" prop="withdraw_no"
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作" fixed="right"
v-if="!$store.state.readonly" v-if="!$store.state.readonly"
> >
<template slot-scope="scope"> <template slot-scope="scope">
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</div> </div>
<el-table <el-table
:data="userList" :data="userList"
style="width: 100%"> style="width: 100%" fixed>
<el-table-column <el-table-column
prop="id" prop="id"
label="商品编号" width="80"> label="商品编号" width="80">
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
{{scope.row.desc | goodsDesc}} {{scope.row.desc | goodsDesc}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column fixed="right"
width="60" width="60"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
......
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
</el-form> </el-form>
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%" class="order_list"> style="width: 100%" class="order_list" fixed>
<el-table-column <el-table-column
prop="out_trade_no" prop="out_trade_no"
label="订单号" label="订单号"
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
<el-table-column <el-table-column
width="50" width="50"
label="操作" label="操作"
v-if="!$store.state.readonly" v-if="!$store.state.readonly" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
...@@ -601,7 +601,6 @@ import chooseGoodDialog from './chooseGoodDialog' ...@@ -601,7 +601,6 @@ import chooseGoodDialog from './chooseGoodDialog'
} }
this.detail = res; this.detail = res;
this.getOrderList(); this.getOrderList();
}) })
}, },
createInviteLink(val){ createInviteLink(val){
......
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