|
@@ -3,13 +3,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="main">
|
|
|
<el-col :span="24" class="one">
|
|
|
- <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search" @view="toView">
|
|
|
- <template #options="{ item }">
|
|
|
- <template v-if="item.prop === 'coupons_id'">
|
|
|
- <el-option v-for="(i, index) in couponsList" :key="`coupons-${index}`" :label="i.name" :value="i.id"></el-option>
|
|
|
- </template>
|
|
|
- </template>
|
|
|
- </data-table>
|
|
|
+ <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search" @view="toView"> </data-table>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -39,7 +33,6 @@ export default {
|
|
|
{
|
|
|
label: '创新券类型',
|
|
|
prop: 'coupons_id',
|
|
|
- filter: 'select',
|
|
|
format: (i) => {
|
|
|
const r = this.couponsList.find((f) => f.id === i);
|
|
|
if (r) return r.name;
|