Commit eac1e2ee by zhangxw

bug修改

1 parent dfd6ec10
......@@ -18,7 +18,7 @@
border
@select="handleChange"
@select-all="handleAll">
<el-table-column type="selection" width="55" align="center" />
<el-table-column type="selection" :selectable="selectable" width="55" align="center" />
<el-table-column label="序号"
align="center"
type="index"
......@@ -89,6 +89,10 @@ export default {
performanceMerchantSearchForm: {
type: Object,
default: () => { }
},
copySelectedData: {
type: Object,
default: () => {}
}
},
......@@ -97,6 +101,14 @@ export default {
},
methods: {
selectable(row) {
if (row.merchantId == this.copySelectedData?.merchantId) {
return false
} else {
return true
}
},
getSelectingList() {
let params = deepClone(this.performanceMerchantSearchForm)
this.performanceMerchantApi({
......@@ -133,7 +145,7 @@ export default {
var isExit = this.selectedData.findIndex(
(subItem) => subItem.merchantId === item.merchantId
)
if (selection.length && isExit === -1) {
if (selection.length && isExit === -1 && item.merchantId != this.copySelectedData?.merchantId) {
this.selectedData.push(item)
} else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1)
......
......@@ -80,6 +80,7 @@
:copy-performance-visible="copyPerformanceVisible"
:performance-merchant-api="getListApi"
:performance-merchant-search-form="performanceMerchantSearchForm"
:copy-selected-data="copySelectedData"
@handleConfirm="handleConfirm"
@handleCancel="handleCancel">
<el-row slot>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!