Commit 67a25ba9 authored by zhengke's avatar zhengke

修改

parent 0554b8f9
......@@ -10,7 +10,7 @@
row-key="name">
<template v-slot:top="props">
<q-space />
<div class="page-option">
<div class="page-option" v-if="authObj.isShowEdit">
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" @click="EditCustom(null)" label="新增客户" />
</div>
</template>
......@@ -36,7 +36,7 @@
</template>
<template v-slot:body-cell-optioned="props">
<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" v-if="authObj.isShowEdit" color="accent" style="font-weight:400" label="编辑"
@click="EditCustom(props.row)" />
<q-btn flat v-if="props.row.ApproveState==0||props.row.ApproveState==2" size="xs" icon="edit" color="accent"
style="font-weight:400" label="客户审批" @click="AuditCustomer(props.row,1)" />
......@@ -65,6 +65,10 @@
dataList: {
type: Array,
default: null
},
authObj: {
type: Object,
default: null
}
},
components: {
......
......@@ -40,7 +40,7 @@
<q-tab :ripple="false" :name="4" label="黑名单客户" />
</q-tabs>
</div>
<custom-form :dataList="dataList" :loading="loading" @success="getList"></custom-form>
<custom-form :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList"></custom-form>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</div>
......@@ -101,6 +101,10 @@
}
],
dataList: [],
//判断显示
authObj:{
isShowEdit:false
}
}
},
created() {},
......
......@@ -40,7 +40,7 @@
<q-tab :ripple="false" :name="4" label="黑名单客户" />
</q-tabs>
</div>
<custom-form :dataList="dataList" :loading="loading" @success="getList"></custom-form>
<custom-form :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList"></custom-form>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</div>
......@@ -101,6 +101,10 @@
}
],
dataList: [],
//判断显示
authObj:{
isShowEdit:true
}
}
},
created() {},
......
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