Commit 2282b0af authored by zhengke's avatar zhengke
parents fcc8dee0 56953d01
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
</q-tabs> </q-tabs>
<div> <div>
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" @click="EditCustom(null)" label="新增客户" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" @click="EditCustom(null)" label="新增客户" />
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" @click="EditRight(null)" label="右侧" />
</div> </div>
</div> </div>
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
...@@ -42,16 +41,17 @@ ...@@ -42,16 +41,17 @@
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<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="编辑" @click="EditCustom(props.row)" /> <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="AuditCustomer(props.row)" /> @click="EditCustom(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="客户审批"
@click="AuditCustomer(props.row)" />
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
<perCustomer-form v-if="isShowCustomForm" :customerObj="customerObj" @close="closeCustomForm" <perCustomer-form v-if="isShowCustomForm" :customerObj="customerObj" @close="closeCustomForm"
@success="refreshQuestion"> @success="refreshQuestion">
</perCustomer-form> </perCustomer-form>
<customRight-form v-if="isShowRightForm" @close="closeRightForm"></customRight-form> <customRight-form v-if="isShowRightForm" :customerObj="customerObj" @close="closeCustomForm"></customRight-form>
</div> </div>
</div> </div>
</template> </template>
...@@ -137,10 +137,11 @@ ...@@ -137,10 +137,11 @@
//关闭弹窗 //关闭弹窗
closeCustomForm() { closeCustomForm() {
this.isShowCustomForm = false; this.isShowCustomForm = false;
this.isShowRightForm = false;
}, },
//新增或者修改 //新增或者修改
EditCustom(obj) { EditCustom(obj) {
console.log("Edit",obj)
if (obj) { if (obj) {
this.customerObj = obj this.customerObj = obj
} else { } else {
...@@ -149,20 +150,17 @@ ...@@ -149,20 +150,17 @@
this.isShowCustomForm = true this.isShowCustomForm = true
}, },
//客户审核 //客户审核
AuditCustomer(obj) AuditCustomer(obj) {
{ if (obj) {
this.customerObj = obj
} else {
this.customerObj = null
}
this.isShowRightForm = true
}, },
refreshQuestion() { refreshQuestion() {
this.getList() this.getList()
}, },
EditRight(obj) {
this.isShowRightForm = true;
},
//关闭弹窗
closeRightForm() {
this.isShowRightForm = false;
},
//获取分页数据 //获取分页数据
getList() { getList() {
GetCustomerPage(this.msg).then(res => { GetCustomerPage(this.msg).then(res => {
......
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