Commit 8b01906c by cwq0219

选择门店-组件;首页bug

1 parent 6b7970b4
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
:selectable="selectable" :selectable="selectable"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
v-if="!noTableField.includes('yqMerchantName')"
prop="yqMerchantName" prop="yqMerchantName"
label="园区店名称" label="园区店名称"
align="center" align="center"
...@@ -56,6 +57,7 @@ ...@@ -56,6 +57,7 @@
height="464px" height="464px"
> >
<el-table-column <el-table-column
v-if="!noTableField.includes('yqMerchantName')"
prop="yqMerchantName" prop="yqMerchantName"
label="园区店名称" label="园区店名称"
align="center" align="center"
...@@ -114,6 +116,11 @@ export default { ...@@ -114,6 +116,11 @@ export default {
storeSearchForm: { storeSearchForm: {
type: Object, type: Object,
default: () => { } default: () => { }
},
// 去掉表格中某些字段
noTableField: {
type: Array,
default: () => []
} }
}, },
...@@ -163,8 +170,7 @@ export default { ...@@ -163,8 +170,7 @@ export default {
}) })
}, },
handleDelete(row) { handleDelete(row) {
var isExit = this.selectedData.findIndex(subItem => subItem.merchantId === row.merchantId) this.selectedData = this.selectedData.filter(item => item.merchantId !== row.merchantId)
this.selectedData.splice(isExit, 1)
this.$refs.seletingTable.toggleRowSelection(row) this.$refs.seletingTable.toggleRowSelection(row)
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
......
...@@ -533,6 +533,7 @@ export default { ...@@ -533,6 +533,7 @@ export default {
this.orderProductChart.clear() this.orderProductChart.clear()
orderProductOption.series = seriesArr orderProductOption.series = seriesArr
orderProductOption.xAxis.data = ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
const dateArr = Object.keys(res).sort((a, b) => new Date(a) - new Date(b)) const dateArr = Object.keys(res).sort((a, b) => new Date(a) - new Date(b))
orderProductOption.xAxis.data.forEach((item, index) => { orderProductOption.xAxis.data.forEach((item, index) => {
orderProductOption.xAxis.data[index] = item + '\n' + dateArr[index].slice(5) orderProductOption.xAxis.data[index] = item + '\n' + dateArr[index].slice(5)
......
const orderProductOption = { const orderProductOption = {
color: ['rgba(9,71,198,1)', 'rgba(9,71,198,0.8)','rgba(9,71,198,0.6)',], color: ['rgba(9,71,198,1)', 'rgba(9,71,198,0.8)', 'rgba(9,71,198,0.6)'],
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: { axisPointer: {
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
:storeApi="storeApi" :storeApi="storeApi"
:storeSearchForm="storeSearchForm" :storeSearchForm="storeSearchForm"
:storeSelected="storeSelected" :storeSelected="storeSelected"
:noTableField="noTableField"
@handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreConfirm="handleRelateStoreConfirm"
@handleRelateStoreClose="handleRelateStoreClose" @handleRelateStoreClose="handleRelateStoreClose"
> >
...@@ -81,7 +82,7 @@ ...@@ -81,7 +82,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> --> </el-col> -->
<!-- <el-col class="service-search"> --> <el-col>
<el-form-item label="选择渠道:"> <el-form-item label="选择渠道:">
<el-select v-model="storeSearchForm.channelType"> <el-select v-model="storeSearchForm.channelType">
<el-option <el-option
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- </el-col> --> </el-col>
<!-- <el-col :span="8"> --> <!-- <el-col :span="8"> -->
<el-input <el-input
v-model="storeSearchForm.merchantIdName" v-model="storeSearchForm.merchantIdName"
...@@ -217,6 +218,7 @@ export default { ...@@ -217,6 +218,7 @@ export default {
relateStoreVisible: false, relateStoreVisible: false,
storeApi: serviceGetMerchantList, storeApi: serviceGetMerchantList,
storeSelected: [], storeSelected: [],
noTableField: ['yqMerchantName'],
baseData: { baseData: {
channelType: [] channelType: []
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!