| | |
| | | align="center" |
| | | > |
| | | <template slot-scope="{ row }"> |
| | | <el-input v-if="editingRows === row && editShows== item.prop && item.prop != 'codeDateFormat' && (item.edit == 'text' ||item.edit == 'refer' )" |
| | | <el-input v-if="editingRows === row && editShows== item.prop && item.prop != 'codeDateFormat' && (item.edit == 'text' ||item.edit == 'refer' ) && this.AddCellFlag" |
| | | ref="inputRef" |
| | | v-model="row[item.prop]" |
| | | autofocus @blur="saveRows"></el-input> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | // 保存单元格状态 |
| | | AddCellFlag:false, |
| | | //全屏编辑高度状态 |
| | | editStyleFlag: false, |
| | | loading: false, |
| | |
| | | addsHandler(event) { |
| | | this.$refs.referAttrCrud.sort("orderNum"); |
| | | var ischeck = true; |
| | | console.log(this.ProData) |
| | | console.log('ProData',this.ProData) |
| | | this.ProData.forEach((item, index) => { |
| | | if ((item.requireFlag && item.requireFlag.toString() == 'true') && (item.readOnlyFlag && item.readOnlyFlag.toString() == 'true')) { |
| | | this.$message.warning(item.name + "(" + item.id + ")必输的属性不能是只读"); |
| | |
| | | } |
| | | } else if (column.property == 'componentRule') { |
| | | if (this.CurrentCell) { |
| | | this.CurrentCell.componentRule = this.componentRuleText; |
| | | // this.CurrentCell.componentRule = this.componentRuleText; |
| | | } |
| | | this.isShowformulaEdit = true; |
| | | } else if (column.property == 'enumString') { |
| | |
| | | }, |
| | | //分类注入清空 |
| | | injectHandleReset() { |
| | | // this.injectOption.classifyInvokeAttrName = "分类名称"; |
| | | // this.injectOption.classifyInvokeAttr = "name"; |
| | | // this.injectOption.classifyInvokeLevel = "min"; |
| | | // this.injectOption.classifyInvokeEditFlag = "true"; |
| | | // this.injectOption.classifyNumber = "0"; |
| | | this.$set(this.CurrentCell, 'classifyInvokeText', '') |
| | | this.$set(this.CurrentCell, 'classifyInvokeAttr:', '') |
| | | this.$set(this.CurrentCell, 'classitwInvokeAttrName', '') |
| | | this.$set(this.CurrentCell, 'classifyInvokeEditFlag', 'false') |
| | | this.$set(this.CurrentCell, 'classifyInvokeLevel', 'none') |
| | | this.injectVisible = false; |
| | | }, |
| | | // 分类注入取消 |
| | |
| | | updataFormlaContent(val) { |
| | | if (this.CurrentCell) { |
| | | this.$set(this.CurrentCell, 'componentRule', val.replace(/"/g, '')) |
| | | this.componentRuleText= this.CurrentCell.componentRule |
| | | } else { |
| | | this.$set(this.attrRow, 'componentRule', val.replace(/"/g, '')) |
| | | } |