| | |
| | | //属性分组提交 |
| | | attrHandle() { |
| | | console.log(this.attrSelectList) |
| | | // this.$set(this.attrRow, 'attributeGroup', this.attrModel) |
| | | // this.attrSelectList.attributeGroup=this.attrModel |
| | | this.attrSelectList.forEach(item=>{ |
| | | item.attributeGroup=this.attrModel |
| | | }) |
| | | if(this.CurrentCell){ |
| | | this.$set(this.CurrentCell, 'attributeGroup', this.attrModel) |
| | | }else { |
| | | this.$set(this.attrSelectList[0], 'attributeGroup', this.attrModel) |
| | | } |
| | | this.attrModel = ""; |
| | | this.attrVisible = false; |
| | | }, |
| | |
| | | addsHandler() { |
| | | batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => { |
| | | this.$message.success('保存成功') |
| | | this.editOpenFlag=false |
| | | }).catch(()=>{ |
| | | this.$message.warning('保存失败,请查看控制台输出!') |
| | | }) |
| | | }, |
| | | |
| | |
| | | }else if(column.property == 'verifyRule'){ |
| | | this.RulesForm.expressionTextt=this.CurrentCell.verifyRule; |
| | | this.rulesVisible=true; |
| | | console.log(this.CurrentCell.verifyRule) |
| | | console.log(this.RulesForm.expressionText) |
| | | }else if(column.property == 'attributeGroup'){ |
| | | this.attrVisible = true; |
| | | } |
| | | } |
| | | }, |
| | |
| | | sortChange(val) { |
| | | console.log(val) |
| | | }, |
| | | //开启编辑 |
| | | editOpen(){ |
| | | this.editOpenFlag=true; |
| | | console.log('不等于',this.checkStatus) |
| | | console.log('等于',this.editOpenFlag) |
| | | console.log('等于',this.crudLCStatus) |
| | | } |
| | | } |
| | | } |