|
@@ -181,9 +181,7 @@
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
- <span style="color:#999;" v-if="hasChecked(record)">已添加</span>
|
|
|
<a-button
|
|
|
- v-else
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-primary"
|
|
@@ -412,9 +410,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- hasChecked (item) {
|
|
|
- return this.checkedList.includes(item.productSn)
|
|
|
- },
|
|
|
// 查询
|
|
|
searchForm () {
|
|
|
if (this.hasVaild) {
|
|
@@ -474,9 +469,7 @@ export default {
|
|
|
},
|
|
|
// 双击列表
|
|
|
handleClickRow (record) {
|
|
|
- if (!this.hasChecked(record)) {
|
|
|
- this.$emit('add', record)
|
|
|
- }
|
|
|
+ this.$emit('add', record)
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm (flag) {
|