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

页面修改

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