拆分按钮点开后选择标准的列表页面将多选修改为单选
This commit is contained in:
@@ -191,12 +191,14 @@
|
|||||||
height="100%"
|
height="100%"
|
||||||
border
|
border
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
@selection-change="selectStandChange"
|
@selection-change="standSelectChangeByStandTab"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column label="" width="55">
|
||||||
type="selection"
|
<template slot-scope="scope">
|
||||||
width="55"
|
<el-radio :label="scope.$index+1" v-model="radio" @change.native="standSelectChangeByStandTab(scope.row)">
|
||||||
align="center">
|
|
||||||
|
</el-radio>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="sarType"
|
prop="sarType"
|
||||||
@@ -683,6 +685,7 @@ export default {
|
|||||||
speedModal: false,
|
speedModal: false,
|
||||||
percent: 0,
|
percent: 0,
|
||||||
ifUp: true,
|
ifUp: true,
|
||||||
|
radio: null,
|
||||||
standCommonlySearch: {},
|
standCommonlySearch: {},
|
||||||
dataLoading: false,
|
dataLoading: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -1136,6 +1139,20 @@ export default {
|
|||||||
this.selectedSplitStandList.push(data[i])
|
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 () {
|
searchStandList () {
|
||||||
this.splitInfoPage = 1
|
this.splitInfoPage = 1
|
||||||
this.getSarFileSplitInfoEOPage()
|
this.getSarFileSplitInfoEOPage()
|
||||||
@@ -1197,6 +1214,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
saveSplitInfo () {
|
saveSplitInfo () {
|
||||||
|
debugger
|
||||||
if (this.selectedSplitStandList != null && this.selectedSplitStandList.length > 0) {
|
if (this.selectedSplitStandList != null && this.selectedSplitStandList.length > 0) {
|
||||||
if (this.selectedSplitStandList.length > 1) {
|
if (this.selectedSplitStandList.length > 1) {
|
||||||
this.$message.warning('当前仅支持一次拆分一条数据')
|
this.$message.warning('当前仅支持一次拆分一条数据')
|
||||||
|
|||||||
Reference in New Issue
Block a user