Commit 31a6f5af by Jings

add: 增加区经关联视图

parent 11ec5683
...@@ -12,15 +12,15 @@ ...@@ -12,15 +12,15 @@
</div> </div>
<div class="m-t-20"> <div class="m-t-20">
<el-table class="select-table" ref="multipleTable" height="500" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }"> <el-table class="select-table" ref="multipleTable" height="500" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }">
<el-table-column label="导购code" show-overflow-tooltip> <el-table-column label="导购code" show-overflow-tooltip v-if="!isType">
<template slot-scope="scope">{{ scope.row.clerkCode || '--' }}</template> <template slot-scope="scope">{{ scope.row.clerkCode || '--' }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="导购姓名" show-overflow-tooltip> <el-table-column prop="" :label="isType ? '督导姓名' : '导购姓名'" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.clerkName || '--' }} {{ scope.row.clerkName || '--' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="导购手机号" show-overflow-tooltip> <el-table-column prop="" :label="isType ? '督导手机号' : '导购手机号'" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.clerkPhoneNumber || '--' }} {{ scope.row.clerkPhoneNumber || '--' }}
</template> </template>
...@@ -35,11 +35,16 @@ ...@@ -35,11 +35,16 @@
{{ scope.row.brandName || '--' }} {{ scope.row.brandName || '--' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="关联门店"> <el-table-column prop="" label="关联门店" v-if="!isType">
<template slot-scope="scope"> <template slot-scope="scope">
<p>{{ scope.row.storeName || '--' }}<el-tag type="danger" v-if="scope.row.mainStoreFlag">主门店</el-tag></p> <p>{{ scope.row.storeName || '--' }}<el-tag type="danger" v-if="scope.row.mainStoreFlag">主门店</el-tag></p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="关联门店" v-else>
<template slot-scope="scope">
{{ scope.row.manageStoreCount ? `${scope.row.manageStoreCount}家` : '--' }}
</template>
</el-table-column>
<el-table-column prop="" label="关联时间" show-overflow-tooltip> <el-table-column prop="" label="关联时间" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="color-606266 line-18">{{ scope.row.createTime | timeStampToYmd }}</div> <div class="color-606266 line-18">{{ scope.row.createTime | timeStampToYmd }}</div>
...@@ -87,7 +92,8 @@ export default { ...@@ -87,7 +92,8 @@ export default {
pageSize: 20, pageSize: 20,
total: 0, total: 0,
tableData: [], tableData: [],
addShow: false addShow: false,
isType: 0
}; };
}, },
computed: {}, computed: {},
...@@ -226,6 +232,9 @@ export default { ...@@ -226,6 +232,9 @@ export default {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
that.tableData = resData.result || []; that.tableData = resData.result || [];
if (that.tableData.length) {
this.isType = that.tableData[0].manageFlag;
}
return false; return false;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
......
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