|
@@ -1,33 +1,16 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <byTable
|
|
|
- ref="table"
|
|
|
- :source="sourceList.data"
|
|
|
- :pagination="sourceList.pagination"
|
|
|
- :config="config"
|
|
|
- :loading="loading"
|
|
|
- highlight-current-row
|
|
|
- :selectConfig="selectConfig"
|
|
|
- :table-events="{
|
|
|
+ <byTable ref="table" :source="sourceList.data" :pagination="sourceList.pagination" :config="config" :loading="loading" highlight-current-row
|
|
|
+ :selectConfig="selectConfig" :table-events="{
|
|
|
//element talbe事件都能传
|
|
|
select: select,
|
|
|
- }"
|
|
|
- :action-list="[]"
|
|
|
- @get-list="getList"
|
|
|
- >
|
|
|
+ }" :action-list="[]" @get-list="getList">
|
|
|
</byTable>
|
|
|
<div>
|
|
|
<div>已选择货品</div>
|
|
|
<div style="margin: 10px 0px">
|
|
|
- <el-tag
|
|
|
- style="margin-right: 10px"
|
|
|
- type="info"
|
|
|
- closable
|
|
|
- v-for="(good, index) in goodList"
|
|
|
- :key="good.id"
|
|
|
- @close="handleRemove(index)"
|
|
|
- >{{ good.name }}</el-tag
|
|
|
- >
|
|
|
+ <el-tag style="margin-right: 10px" type="info" closable v-for="(good, index) in goodList" :key="good.id"
|
|
|
+ @close="handleRemove(index)">{{ good.name }}</el-tag>
|
|
|
</div>
|
|
|
<div style="text-align: center">
|
|
|
<el-button @click="handleCancel" size="large">取消</el-button>
|