|
@@ -259,6 +259,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
rows: [...initRows],
|
|
|
+ selectIndex: -1,
|
|
|
checkedExc: false,
|
|
|
checkedCon: false,
|
|
|
focusOn: -1, //聚焦的行index
|
|
@@ -305,8 +306,10 @@ export default {
|
|
|
this.searchTagList();
|
|
|
},
|
|
|
focusOn(newVal) {
|
|
|
+ this.selectIndex = newVal
|
|
|
this.checkedExc = this.rows[newVal].exclusion === 1;
|
|
|
this.checkedCon = this.rows[newVal].exclusionCon === 1;
|
|
|
+ this.searchTagList()
|
|
|
},
|
|
|
/*type() {
|
|
|
this.initData();
|
|
@@ -376,7 +379,7 @@ export default {
|
|
|
searchTagList() {
|
|
|
let ids = []
|
|
|
this.rows.map((it, x) => {
|
|
|
- if (it.subQuestion) {
|
|
|
+ if (it.subQuestion&&this.selectIndex===x) {
|
|
|
ids=ids.concat(it.subQuestion.split(','))
|
|
|
}
|
|
|
});
|