拆分按钮点开后选择标准的列表页面将多选修改为单选

This commit is contained in:
zyd
2022-07-27 22:57:25 +08:00
parent e7cdc649d9
commit 1a1826c70c
+23 -5
View File
@@ -191,12 +191,14 @@
height="100%"
border
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
@selection-change="selectStandChange"
@selection-change="standSelectChangeByStandTab"
>
<el-table-column
type="selection"
width="55"
align="center">
<el-table-column label="" width="55">
<template slot-scope="scope">
<el-radio :label="scope.$index+1" v-model="radio" @change.native="standSelectChangeByStandTab(scope.row)">
&nbsp;
</el-radio>
</template>
</el-table-column>
<el-table-column
prop="sarType"
@@ -683,6 +685,7 @@ export default {
speedModal: false,
percent: 0,
ifUp: true,
radio: null,
standCommonlySearch: {},
dataLoading: false,
loading: false,
@@ -1136,6 +1139,20 @@ export default {
this.selectedSplitStandList.push(data[i])
}
},
standSelectChangeByStandTab (data) {
debugger
this.selectedSplitStandList = []
let checkId = data.standId+"_"+data.attId
for (let i = 0; i < this.addSpiltStandList.length; i++) {
let dataId = this.addSpiltStandList[i].standId+"_"+this.addSpiltStandList[i].attId
if (checkId === dataId) {
this.addSpiltStandList[i].checkBox = true
this.selectedSplitStandList.push(this.addSpiltStandList[i])
}
}
},
searchStandList () {
this.splitInfoPage = 1
this.getSarFileSplitInfoEOPage()
@@ -1197,6 +1214,7 @@ export default {
}
},
saveSplitInfo () {
debugger
if (this.selectedSplitStandList != null && this.selectedSplitStandList.length > 0) {
if (this.selectedSplitStandList.length > 1) {
this.$message.warning('当前仅支持一次拆分一条数据')