|  | @@ -378,7 +378,20 @@ export default {
 | 
	
		
			
				|  |  |              index: 3,
 | 
	
		
			
				|  |  |              width: 140,
 | 
	
		
			
				|  |  |              overHidden: true,
 | 
	
		
			
				|  |  | -            cell: true
 | 
	
		
			
				|  |  | +            cell: true,
 | 
	
		
			
				|  |  | +                // change:(res)=>{
 | 
	
		
			
				|  |  | +                //     let i = 0
 | 
	
		
			
				|  |  | +                //     for(let item of this.data) {
 | 
	
		
			
				|  |  | +                //         if(item.version === '0') {
 | 
	
		
			
				|  |  | +                //             if (i == 1) {
 | 
	
		
			
				|  |  | +                //                 this.$message.warning("主图不能重复选择");
 | 
	
		
			
				|  |  | +                //                 this.$set(this.data[res.index],'version','')
 | 
	
		
			
				|  |  | +                //                 return
 | 
	
		
			
				|  |  | +                //             }
 | 
	
		
			
				|  |  | +                //             i++
 | 
	
		
			
				|  |  | +                //         }
 | 
	
		
			
				|  |  | +                //     }
 | 
	
		
			
				|  |  | +                // }
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              label: "备注",
 | 
	
	
		
			
				|  | @@ -560,12 +573,23 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //修改触发
 | 
	
		
			
				|  |  |      rowCell(row, index) {
 | 
	
		
			
				|  |  | +        let i = 0
 | 
	
		
			
				|  |  | +        for(let item of this.data) {
 | 
	
		
			
				|  |  | +            if(item.version === '0') {
 | 
	
		
			
				|  |  | +                if (i == 1) {
 | 
	
		
			
				|  |  | +                    console.log('提示')
 | 
	
		
			
				|  |  | +                    return
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                i++
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |        if (row.$cellEdit == true) {
 | 
	
		
			
				|  |  |          this.$set(row, "$cellEdit", false);
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  |          this.$set(row, "$cellEdit", true);
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      // this.$refs.crud.rowCell(row, index)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      this.$refs.crud.rowCell(row, index)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      rowDel(row, index) {
 | 
	
		
			
				|  |  |        this.$confirm("确定将选择数据删除?", {
 |