门店号管理修改bug

master
LegnaYet 6 years ago
parent df351228aa
commit 6778b96b6d

@ -1,7 +1,7 @@
<template> <template>
<div class="layout"> <div class="layout">
<Layout :style="{minHeight: '100vh'}"> <Layout :style="{minHeight: '100vh'}">
<Sider collapsible :collapsed-width="78" v-model="isCollapsed"> <Sider collapsible :collapsed-width="78" v-model="isCollapsed" hide-trigger="true" >
<div style="margin: 40px 0 20px 20px;font-weight: bold;font-size: 30px;color: #ffffff;"> <div style="margin: 40px 0 20px 20px;font-weight: bold;font-size: 30px;color: #ffffff;">
<Poptip placement="bottom-start" width="200" :offset="-8"> <Poptip placement="bottom-start" width="200" :offset="-8">

@ -109,6 +109,8 @@
that.$Message.info("账号不存在"); that.$Message.info("账号不存在");
}else if(code === '0003'){ }else if(code === '0003'){
that.$Message.info("密码错误"); that.$Message.info("密码错误");
}else if(code === '0006'){
that.$Message.info("该角色没有登录权限");
}else if(code === '1007'){ }else if(code === '1007'){
that.$Message.info("没有权限"); that.$Message.info("没有权限");
}else { }else {

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<Menu ref="menu" mode="horizontal" :active-name="selectedItemName" v-model="this.threeLevel[0].id"> <Menu v-show="false" ref="menu" mode="horizontal" :active-name="selectedItemName" v-model="this.threeLevel[0].id">
<MenuItem :name="cItem.id" :to="cItem.resource" v-for="cItem in threeLevel" <MenuItem :name="cItem.id" :to="cItem.resource" v-for="cItem in threeLevel"
:key="cItem.id"> :key="cItem.id">
{{cItem.name}} {{cItem.name}}

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<Row style="margin-top: 20px;width: 100%;background-color: #F7F8FA;"> <Row style="margin-top: -10px;width: 100%;background-color: #FFF;">
<i-col span="24" style="text-align: left;padding-left: 10px;"> <i-col span="24" style="text-align: left;padding-left: 10px;">
<Row class="row-style"> <Row class="row-style">
<i-col span="24" style="text-align: right;padding-right: 20px;"> <i-col span="24" style="text-align: right;padding-right: 20px;">
@ -10,8 +10,8 @@
</i-col> </i-col>
</Row> </Row>
<Table :columns="columns1" :data="data1" style="margin-top: 20px;"> <Table :columns="columns1" :data="data1" style="margin-top: 0px;">
<template slot-scope="row" slot="qrCodeAction"> <template slot-scope="{row}" 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>
<template slot-scope="{ row, index }" slot="state"> <template slot-scope="{ row, index }" slot="state">
@ -21,21 +21,24 @@
</i-switch> </i-switch>
</template> </template>
<template slot-scope="row" slot="action"> <template slot-scope="{row}" slot="action">
<Button ghost type="primary" size="small" style="margin-right: 5px" @click="open(2, row)">修改</Button> <Button ghost type="primary" size="small" style="margin-right: 5px;border: 0px;color:#2074E2" @click="open(2, row)">修改</Button>
<Button ghost type="error" size="small" @click="remove(row)"></Button> <Button ghost type="error" size="small" style="border: 0px" @click="remove(row)"></Button>
</template> </template>
</Table> </Table>
<!-- 预览二维码 --> <!-- 预览二维码 -->
<Modal <Modal
v-model="isShow" v-model="isShow"
:title="showStoreName"
:footer-hide="true" :footer-hide="true"
width="230" width="230"
class-name="vertical-center-modal" class-name="vertical-center-modal"
> >
<div slot="header">{{this.showStoreName}}</div> <div slot="header">
<p> </p>
</div>
<p>{{this.showStoreCode}}</p>
<p>{{this.showStoreName}}</p>
<img :src="qrCodeImage" style="width:200px;height:200px;"/> <img :src="qrCodeImage" style="width:200px;height:200px;"/>
<div style="text-align: center;"> <div style="text-align: center;">
<Button ghost type="primary" @click="download(rowData)"></Button> <Button ghost type="primary" @click="download(rowData)"></Button>
@ -101,7 +104,7 @@
</Modal> </Modal>
<Page :total="total" :current="pageNum" :page-size="pageSize" show-elevator show-total <Page :total="total" :current="pageNum" :page-size="pageSize" show-elevator show-total
placement="top" @on-change="handlePage" style="margin: 20px 50px 0 0;right:0px;position: absolute;"></Page> placement="top" @on-change="handlePage" style="margin: 20px 50px 0 0;right:0px;position: absolute;bottom: 50px"></Page>
</div> </div>
</template> </template>
@ -124,6 +127,7 @@
isShow: false, isShow: false,
isShowAdd: false, isShowAdd: false,
showStoreName: '', showStoreName: '',
showStoreCode: '',
qrCodeImage: '', qrCodeImage: '',
loading:true, loading:true,
spuLoading:false, spuLoading:false,
@ -163,7 +167,7 @@
{ {
title: '店铺', title: '店铺',
key: 'storeName', key: 'storeName',
width: 100 width: 500
}, },
{ {
title: '角色', title: '角色',
@ -224,15 +228,8 @@
mounted() { mounted() {
this.setMenuName("门店推广","推广管理","门店导购管理"); this.setMenuName("门店推广","推广管理","门店导购管理");
this.listOfLogistics(); this.listOfLogistics();
this.downRegionData();
this.downShopData();
this.downRoleData()
}, },
methods: { methods: {
changePage (page) {
this.pageNum = page;
this.listOfLogistics();
},
cancel: function(){ cancel: function(){
}, },
@ -355,7 +352,8 @@
// //
show: function (index) { show: function (index) {
this.isShow = true; this.isShow = true;
this.showStoreName = index.storeName; this.showStoreName ="姓名:"+index.name;
this.showStoreCode = "工号:"+ index.staffCode;
this.qrCodeImage = index.epWechatQrCode; this.qrCodeImage = index.epWechatQrCode;
this.rowData = index; this.rowData = index;
}, },

@ -59,7 +59,10 @@
width="230" width="230"
class-name="vertical-center-modal" class-name="vertical-center-modal"
@on-ok="ok"> @on-ok="ok">
<div slot="header">{{this.showStoreName}}</div> <div slot="header">
<p> </p>
</div>
<p>{{this.showStoreName}}</p>
<img :src="qrCodeImage" style="width:200px;height:200px;"/> <img :src="qrCodeImage" style="width:200px;height:200px;"/>
<div style="text-align: center;"> <div style="text-align: center;">
<Button ghost type="primary" @click="download(rowData)"></Button> <Button ghost type="primary" @click="download(rowData)"></Button>
@ -218,7 +221,8 @@
}, },
{ {
title: '店铺名称', title: '店铺名称',
key: 'name' key: 'name',
width: 500
}, },
{ {
title: '店铺编码', title: '店铺编码',
@ -474,7 +478,6 @@
return value; return value;
}, },
show: function (index) { show: function (index) {
debugger
this.isShow = true; this.isShow = true;
this.showStoreName = index.name; this.showStoreName = index.name;
this.qrCodeImage = index.qrCodeAction; this.qrCodeImage = index.qrCodeAction;

Loading…
Cancel
Save