|
|
@@ -47,13 +47,21 @@
|
|
|
@blur="loadData(true)"
|
|
|
class="wd150 mr10">
|
|
|
</el-input>
|
|
|
- <el-input
|
|
|
+ <ext-d-select
|
|
|
v-model="state.formQuery.status"
|
|
|
- placeholder="状态:0-无效,1-有效"
|
|
|
+ placeholder="状态"
|
|
|
+ type="Investor.status"
|
|
|
clearable
|
|
|
- @blur="loadData(true)"
|
|
|
- class="wd150 mr10">
|
|
|
- </el-input>
|
|
|
+ @on-change="loadData(true)"
|
|
|
+ class="wd150 mr10"/>
|
|
|
+
|
|
|
+ <!-- <el-input
|
|
|
+ v-model="state.formQuery.status"
|
|
|
+ placeholder="状态:0-无效,1-有效"
|
|
|
+ clearable
|
|
|
+ @blur="loadData(true)"
|
|
|
+ class="wd150 mr10">
|
|
|
+ </el-input>-->
|
|
|
<el-input
|
|
|
v-model="state.formQuery.mobilePhone"
|
|
|
placeholder="电话号码"
|
|
|
@@ -67,6 +75,11 @@
|
|
|
<SvgIcon name="ele-Search"/>
|
|
|
查询
|
|
|
</el-button>
|
|
|
+
|
|
|
+ <el-button v-auth="'investor.add'" size="default" plain type="success" class="ml10" @click="onRowClick('add',null)">
|
|
|
+ <SvgIcon name="ele-FolderAdd"/>
|
|
|
+ 新增
|
|
|
+ </el-button>
|
|
|
</el-form>
|
|
|
|
|
|
<el-table
|
|
|
@@ -83,7 +96,6 @@
|
|
|
<template #empty>
|
|
|
<el-empty></el-empty>
|
|
|
</template>
|
|
|
- <el-table-column type="selection" align="center" width="55" fixed="left"/>
|
|
|
<el-table-column
|
|
|
v-for="field in state.tableData.columns"
|
|
|
:key="field.prop"
|
|
|
@@ -96,8 +108,20 @@
|
|
|
:show-overflow-tooltip="!field.fixed&&field.width>150"
|
|
|
>
|
|
|
<template #default="{row}">
|
|
|
- <template v-if="field.prop==='expand'">
|
|
|
- <p style="padding-left: 2em;" v-html="row[field.prop]"></p>
|
|
|
+ <template v-if="field.prop==='stationId'">
|
|
|
+ <div class="text-align-center">
|
|
|
+ {{ row.stationId }}
|
|
|
+ <hr>
|
|
|
+ {{ row.stationName }}
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <template v-else-if="field.prop==='status'">
|
|
|
+ <ext-d-label type="Investor.status" v-model="row.status"></ext-d-label>
|
|
|
+ </template>
|
|
|
+ <template v-else-if="field.prop==='action'">
|
|
|
+ <el-button v-auth="'investor.modify'" size="small" plain type="warning" @click="onRowClick('edit',row)">编辑</el-button>
|
|
|
+ <el-button v-auth="'investor.list'" size="small" plain type="primary" @click="onRowClick('view',row)">查看</el-button>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div>{{ row[field.prop] }}</div>
|
|
|
@@ -122,6 +146,8 @@ import {Msg} from "/@/utils/message";
|
|
|
import ExtPage from '/@/components/form/ExtPage.vue'
|
|
|
|
|
|
import mittBus from '/@/utils/mitt';
|
|
|
+import ExtDSelect from "/@/components/form/ExtDSelect.vue";
|
|
|
+import ExtDLabel from "/@/components/form/ExtDLabel.vue";
|
|
|
|
|
|
const InvestorInfoDialog = defineAsyncComponent(() => import("/@/views/admin/investor/dialog.vue"));
|
|
|
|
|
|
@@ -142,17 +168,16 @@ const state = reactive({
|
|
|
data: [] as Array<any>,
|
|
|
loading: false,
|
|
|
columns: [
|
|
|
- {type: 'selection', width: 60, align: 'center', fixed: 'left'},
|
|
|
- {label: '账户名', prop: 'accountName', resizable: true},
|
|
|
- {label: '客户姓名', prop: 'adminUserName', resizable: true},
|
|
|
- {label: '银行卡号', prop: 'bankCardNo', resizable: true},
|
|
|
- {label: '开户行名称', prop: 'bankName', resizable: true},
|
|
|
- {label: '创建时间', prop: 'createTime', sortable: 'custom', resizable: true, width: 150},
|
|
|
- {label: '备注', prop: 'remark', resizable: true},
|
|
|
- {label: '站点id', prop: 'stationId', resizable: true},
|
|
|
- {label: '状态:0-无效,1-有效', prop: 'status', sortable: 'custom', align: 'center'},
|
|
|
{label: '电话号码', prop: 'telephone', resizable: true},
|
|
|
- {label: '更新时间', prop: 'updateTime', sortable: 'custom', resizable: true, width: 150},
|
|
|
+ {label: '客户姓名', prop: 'adminUserName', resizable: true},
|
|
|
+ {label: '站点', prop: 'stationId', resizable: true},
|
|
|
+ {label: '账户名', prop: 'accountName', resizable: true},
|
|
|
+ {label: '银行卡号', prop: 'bankCardNo', resizable: true, width: 180},
|
|
|
+ {label: '开户行名称', prop: 'bankName', resizable: true, width: 180},
|
|
|
+ // {label: '备注', prop: 'remark', resizable: true},
|
|
|
+ {label: '状态', prop: 'status', sortable: 'custom', align: 'center'},
|
|
|
+ {label: '创建时间', prop: 'createTime', sortable: 'custom', resizable: true, width: 180},
|
|
|
+ {label: '更新时间', prop: 'updateTime', sortable: 'custom', resizable: true, width: 180},
|
|
|
{
|
|
|
label: '操作', prop: 'action', width: 180, align: 'center', fixed: 'right',
|
|
|
}
|