推广页面调整。

master
kevin jiang 6 years ago
parent ae72b39db0
commit d39f86c8e0

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

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

Loading…
Cancel
Save