推广人员和店铺人员页面

master
yinliujing 6 years ago
parent 63bc50e9be
commit 581eb5e646

@ -298,6 +298,8 @@
data = data.data; data = data.data;
if (data.code == "0000"){ if (data.code == "0000"){
that.$Message.success('添加成功!'); that.$Message.success('添加成功!');
that.handleAdd(that.formValidate);
that.listOfLogistics();
} }
}) })
}, },

@ -30,6 +30,7 @@
<i-col span="9" style="text-align: right;padding-right: 20px;"> <i-col span="9" style="text-align: right;padding-right: 20px;">
<Button type="primary" @click="downloadStoreCode" style="margin-right: 10px;">批量下载门店码</Button> <Button type="primary" @click="downloadStoreCode" style="margin-right: 10px;">批量下载门店码</Button>
<Button type="primary" @click="downloadStoreSellerCode" style="margin-right: 10px;">批量下载导购码</Button> <Button type="primary" @click="downloadStoreSellerCode" style="margin-right: 10px;">批量下载导购码</Button>
<Button type="primary" @click="open(index)" style="margin-right: 10px;">开通门店号</Button>
</i-col> </i-col>
</Row> </Row>
</i-col> </i-col>
@ -39,6 +40,9 @@
<template slot-scope="{ row, index }" slot="qrCodeAction"> <template slot-scope="{ row, index }" slot="qrCodeAction">
<img :src="require('../../../static/img/qrCode-init.png')" @click="show(row)" style="margin-left: 5px;margin-top: 5px;width:30px;height:30px;"/> <img :src="require('../../../static/img/qrCode-init.png')" @click="show(row)" style="margin-left: 5px;margin-top: 5px;width:30px;height:30px;"/>
</template> </template>
<router-link slot-scope="{ row, index }" slot="action" :to="{path:'/shop/increase/manager/staff',query:{storeId:row.id}}">
<Button ghost style="border:0px;color: #2074E2;"> 门店导购管理</Button>
</router-link>
</Table> </Table>
<!-- 预览二维码 --> <!-- 预览二维码 -->
@ -343,6 +347,7 @@
}else { }else {
that.$Message.success('添加成功!'); that.$Message.success('添加成功!');
that.listOfStore(); that.listOfStore();
this.handleAdd(this.formValidate);
} }
} }
}) })
@ -461,6 +466,22 @@
downLoadImportExcel(){ downLoadImportExcel(){
window.location.href = '/门店号批量开通模板.xlsx' window.location.href = '/门店号批量开通模板.xlsx'
}, },
handleAdd(value){
value.alias = '',
value.userId = '',
value.gender = '',
value. mobile = '',
value.email = '',
value. address = '',
value. departIds = '',
value. selectedPhoneRegion ='86',
value.duty= '',
value.position='',
value.interest= [],
value.desc= '',
value.checkbox= ['vail'],
value.storeId=''
},
updateSuccess (response) { updateSuccess (response) {
if (response.code === "0000") { if (response.code === "0000") {
let data = response.results; let data = response.results;

Loading…
Cancel
Save