|
@@ -173,6 +173,7 @@
|
|
|
type="text"
|
|
|
size="small"
|
|
|
@click="handleRowSelect(scope.row)"
|
|
|
+ :disabled="!scope.row.htmlUrl"
|
|
|
>
|
|
|
选择
|
|
|
</el-button>
|
|
@@ -483,7 +484,7 @@ export default {
|
|
|
group:this.paramList[this.activeIndex].group,
|
|
|
clicked:false
|
|
|
}
|
|
|
- console.log( this.addObj,' this.addObj11111');
|
|
|
+
|
|
|
|
|
|
|
|
|
this.addDialogVisible = false;
|
|
@@ -505,23 +506,24 @@ export default {
|
|
|
// this.linkListData = JSON.parse(JSON.stringify(filteredArr));
|
|
|
const hasClicked = this.linkListData.some(item => item.clicked === true);
|
|
|
console.log(hasClicked,'hasClicked');
|
|
|
-
|
|
|
+ let obj=JSON.parse(JSON.stringify(this.addObj));
|
|
|
if (!hasClicked) {
|
|
|
// 如果不存在,则将 addObj 添加到数组中
|
|
|
- this.linkListData.push(this.addObj);
|
|
|
+ this.linkListData.push(obj);
|
|
|
}else{
|
|
|
console.log(this.addObj,'this.addObj222222');
|
|
|
|
|
|
const clickedItem = this.linkListData.find(item => item.clicked === true);
|
|
|
if (clickedItem) {
|
|
|
- clickedItem.group = this.addObj.group;
|
|
|
+ clickedItem.group = obj.group;
|
|
|
}
|
|
|
}
|
|
|
this.paramList[this.activeIndex].group = []
|
|
|
- this.linkListData .forEach(ele => {
|
|
|
+ this.linkListData .forEach(ele => {
|
|
|
ele.clicked = false;
|
|
|
|
|
|
- });
|
|
|
+ });
|
|
|
+ this.addObj.group=[]
|
|
|
|
|
|
|
|
|
},
|