Commit 2dfb2148 authored by dcy's avatar dcy

后台-客户档案-指定路线应该仅显示包含出口的始发地 bug修复

parent 99ed19a1
......@@ -6,7 +6,7 @@
<el-table-column
width="250px"
label="始发地">
<template v-slot="{ row, column, $index }">
<template v-slot="{ row, column, $index }">
<el-checkbox v-model="row.checked" @change="updateValue(true)">{{ warehouseList[$index].titleZh }}</el-checkbox>
</template>
</el-table-column>
......@@ -58,6 +58,7 @@ export default {
let bar = this.tableData.length > 0 ? this.tableData[index] : {
departureId: e.id,
objectiveIds: [],
tradeType:e.tradeType,
checked: false
}
const valueIndex = this.value.findIndex(v => v.departureId === e.id)
......@@ -73,7 +74,8 @@ export default {
foo.push(bar)
index++
})
this.tableData = foo
this.tableData = foo.filter(i => i.tradeType === '2');
},
/**
* 更新 value
......
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