推广页面调整。

master
kevin jiang 6 years ago
parent ae72b39db0
commit d39f86c8e0

@ -52,10 +52,8 @@
</Modal>
<!-- 添加推广人员 -->
<Modal
v-model="isShowAdd"
:footer-hide="true"
>
<Modal v-model="isShowAdd"
:footer-hide="true">
<div slot="header">
<template v-if="flag === 1">
<span>添加推广人员</span>
@ -157,43 +155,35 @@
{
title: '序号',
key: 'id',
width: 100
},
{
title: '姓名',
key: 'name',
width: 100
},
{
title: '员工ID',
key: 'staffCode',
width: 100
},
{
title: '手机号码',
key: 'mobil',
width: 160
},
{
title: '店铺',
key: 'storeName',
width: 300
},
{
title: '角色',
key: 'role',
width: 100
},
{
title: '客户数',
key: 'customerNum',
width: 80
},
{
title: '推广码',
slot: 'qrCodeAction',
key: 'epWechatQrCode',
width: 120
},
{
title: '操作',
@ -394,6 +384,7 @@
this.flag = flag;
this.isShowAdd = true;
let role;
if (row.type === 1) {
role = "DZ-DIANZHANG";
} else {
@ -472,12 +463,20 @@
};
this.addSattf(request);
} else {
let newRole;
if (value.role === 'DZ-DIANZHANG') {
newRole = 1;
} else {
newRole = 4;
}
request = {
name: value.name,
storeId: this.selectedStore,
mobil: value.phone,
staffCode: value.staffCode,
roleId: value.role,
roleId: newRole,
userId: this.formValidate.userId,
id: this.formValidate.id
};

@ -206,47 +206,47 @@
{
title: '序号',
key: 'orderNum',
width: 60
className: 'table-width-80'
},
{
title: '店铺名称',
key: 'name',
width: 300
className: 'table-width-300'
},
{
title: '店铺编码',
key: 'code',
width: 90
className: 'table-width-90'
},
{
title: '门店企业号',
key: 'cpUserId',
width: 140
className: 'table-width-140'
},
{
title: '大区名',
key: 'regionName',
width: 100
className: 'table-width-100'
},
{
title: '零售公司',
key: 'companyName',
width: 200
className: 'table-width-200'
},
{
title: '员工数',
key: 'staffNum',
width: 80
className: 'table-width-80'
},
{
title: '客户数',
key: 'customerNum',
width: 80
className: 'table-width-80'
},
{
title: '推广码',
slot: 'qrCodeAction',
width: 80
className: 'table-width-80'
},
{
title: '操作',
@ -592,4 +592,29 @@
.modal-img{
width:200px;height:200px;
}
.table-width-80 {
width: 80px !important;
}
.table-width-90 {
width: 90px !important;
}
.ivu-table th.table-width-100 {
width: 100px !important;
}
.ivu-table th.table-width-140 {
width: 140px !important;
}
.ivu-table th.table-width-200 {
width: 200px !important;
}
.ivu-table th.table-width-300 {
width: 300px !important;
}
</style>

Loading…
Cancel
Save