|
@@ -13,7 +13,7 @@
|
|
|
<search-1 :form="searchForm" :statusList="statusList" @onSubmit="search" @toReset="toClos"> </search-1>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="four">
|
|
|
- <data-table :fields="fields" :opera="opera" @query="search" :data="list" :total="total" @exam="toExam"> </data-table>
|
|
|
+ <data-table :fields="fields" :opera="opera" @query="search" :data="list" :total="total" @exam="toExam" @delete="toDelete"> </data-table>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -46,11 +46,14 @@ export default {
|
|
|
searchForm: {},
|
|
|
list: [],
|
|
|
total: 0,
|
|
|
- opera: [{ label: '审核', method: 'exam' }],
|
|
|
+ opera: [
|
|
|
+ { label: '审核', method: 'exam' },
|
|
|
+ // { label: '删除', method: 'delete', confirm: true, type: 'danger' },
|
|
|
+ ],
|
|
|
fields: [
|
|
|
{ label: '申请人姓名', model: 'customer.name' },
|
|
|
{ label: '提现金额', model: 'money' },
|
|
|
- { label: '银行卡号', model: 'card' },
|
|
|
+ { label: '银行卡号', model: 'card', showTip: false },
|
|
|
{ label: '银行卡所属', model: 'card_name' },
|
|
|
{ label: '所属银行', model: 'card_bank' },
|
|
|
{ label: '申请时间', model: 'apply_time' },
|
|
@@ -102,6 +105,14 @@ export default {
|
|
|
this.$set(this, 'fieldform', data);
|
|
|
this.dialog = { title: '信息管理', show: true, type: '1' };
|
|
|
},
|
|
|
+ // 删除
|
|
|
+ async toDelete({ data }) {
|
|
|
+ let res = await this.delete(data._id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({ type: `success`, message: `刪除信息成功` });
|
|
|
+ this.search();
|
|
|
+ }
|
|
|
+ },
|
|
|
// 保存
|
|
|
async onSubmit({ data }) {
|
|
|
data.exam_time = moment().format('YYYY-MM-DD HH:mm:ss');
|