| | |
| | | ></refer-config-dialog> |
| | | |
| | | </div> |
| | | <div> |
| | | |
| | | <el-table v-if="this.crudArrayFlag" |
| | | ref="referAttrCrud" |
| | | v-loading="loading" |
| | | :data="ProData" |
| | | :height="this.tableHeight" |
| | | :header-cell-style="{background:'#FAFAFA',color:'#505050'}" |
| | | border |
| | | style="width: 100%" |
| | | @select="selectHandle" |
| | |
| | | @blur="saveRows(row)" |
| | | ></el-input> |
| | | <el-input-number v-if="editingRows === row && editShows== item.prop && item.edit == 'number'" |
| | | v-show="!AddCellFlag" |
| | | v-model="row[item.prop]" |
| | | :style="{width:(item.width-10)+'px'}" |
| | | controls-position="right" |
| | | size="small" @blur="saveRows"></el-input-number> |
| | | <el-select v-if="editingRows === row && editShows== item.prop && item.edit == 'select' " slot="prepend" |
| | | <el-select v-if="editingRows === row && editShows== item.prop && item.edit == 'select' " slot="prepend" :clearable="true" |
| | | v-model="row[item.prop]" allow-create default-first-option |
| | | filterable |
| | | filterable v-show="!AddCellFlag" |
| | | @blur="selectChangeHandler(item.editConfig,index)"> |
| | | <el-option |
| | | v-for="optionItem in item.data" |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | // 新函数用于执行batchAddSave方法 |
| | | const executeBatchAddSave = () => { |
| | | batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => { |
| | | this.$message.success('保存成功') |
| | | this.editOpenFlag = false; |
| | | this.$message.success('保存成功') |
| | | // 调用父组件修改按钮状态 |
| | | this.$emit('editCloseChildren') |
| | | this.AddCellFlag = true; |
| | |
| | | } else { |
| | | this.injectOption.classifyNumber = 0; |
| | | } |
| | | // console.log(this.ProData) |
| | | this.injectVisible = false; |
| | | }, |
| | | //分类注入清空 |
| | | injectHandleReset() { |
| | | 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.CurrentCell.classifyInvokeText = null; |
| | | this.CurrentCell.classifyInvokeAttr = ''; |
| | | this.CurrentCell.classifyInvokeAttrName = ''; |
| | | this.CurrentCell.classifyInvokeEditFlag = ''; |
| | | this.CurrentCell.classifyInvokeLevel = null; |
| | | // console.log(this.ProData) |
| | | this.injectVisible = false; |
| | | }, |
| | | // 分类注入取消 |