Commit 2e89d142 authored by 黄奎's avatar 黄奎

页面修改

parent ab0f4c14
......@@ -17,8 +17,18 @@
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input clearable standout="bg-primary text-white" v-model="msg.BankName" label="输入关键字查找" maxlength="20" />
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.CustomerName"
label="客户名称" maxlength="20" />
</div>
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ContactNumber"
label="联系电话" maxlength="20" />
</div>
<div class="col-3">
<q-select @input="resetSearch" clearable filled v-model="msg.ApproveState" :options="ApproveStateList"
emit-value map-options label="审核状态" />
</div>
</div>
</div>
<div class="page-content">
......@@ -43,11 +53,10 @@
<q-td :props="props" style="width:200px;">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditCustom(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="客户审批"
@click="AuditCustomer(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="删除"
@click="RemoveCustomer(props.row)" />
<q-btn flat size="xs" v-if="props.row.ApproveState==0||props.row.ApproveState==2" icon="edit" color="accent"
style="font-weight:400" label="客户审批" @click="AuditCustomer(props.row)" />
<q-btn flat size="xs" v-if="props.row.ApproveState==0" icon="edit" color="accent" style="font-weight:400"
label="删除" @click="RemoveCustomer(props.row)" />
</q-td>
</template>
</q-table>
......@@ -80,7 +89,10 @@
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
BankName: ''
CustomerName: '', //客户名称
ContactNumber: "", //联系电话
ApproveState: "", //审核状态
CustomerState: "", //账号状态
},
loading: false,
isShowCustomForm: false,
......@@ -105,6 +117,18 @@
field: 'Account',
align: 'left'
},
{
name: 'CustomerStateStr',
label: '账号状态',
field: 'CustomerStateStr',
align: 'left'
},
{
name: 'ApproveStateStr',
label: '审核状态',
field: 'ApproveStateStr',
align: 'left'
},
{
name: 'CreateByName',
label: '创建人',
......@@ -123,6 +147,32 @@
field: 'QuestionId'
}
],
//审核状态列表
ApproveStateList: [{
label: "通过",
value: "1",
},
{
label: "拒绝",
value: "2",
},
],
//账号状态
accountStateList: [{
label: "正常",
value: "1",
},
{
label: "禁用",
value: "2",
}, {
label: "删除",
value: "3",
}, {
label: "未激活",
value: "4",
}
],
dataList: [],
}
},
......@@ -131,6 +181,11 @@
this.getList();
},
methods: {
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getList();
},
//翻页
changePage(val) {
this.msg.pageIndex = 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