Commit 67a25ba9 authored by zhengke's avatar zhengke

修改

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