| | |
| | | </el-button-group> |
| | | <el-button-group> |
| | | <!-- 保存--> |
| | | <el-button v-if="(!checkStatus|| crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-check" plain size="small" |
| | | <el-button v-if="(!checkStatus|| crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-check" plain |
| | | size="small" |
| | | type="success" @click.prevent="addsHandler">保存 |
| | | </el-button> |
| | | <!-- 预览排序--> |
| | |
| | | </el-button-group> |
| | | <!-- 是否开启编辑 --> |
| | | <el-button-group> |
| | | <el-button v-if="(!checkStatus|| crudLCStatus=='Editing') && !editOpenFlag && attrEditVisible == false && attrFlagChiledren==false" icon="el-icon-view" plain |
| | | <el-button |
| | | v-if="(!checkStatus|| crudLCStatus=='Editing') && !editOpenFlag && attrEditVisible == false && attrFlagChiledren==false" |
| | | icon="el-icon-view" plain |
| | | size="small" |
| | | @click="editOpen">开启编辑 |
| | | </el-button> |
| | | <el-select v-if="(!checkStatus || crudLCStatus=='Editing') && editOpenFlag" v-model="selectvalue" placeholder="请选择" |
| | | <el-select v-if="(!checkStatus || crudLCStatus=='Editing') && editOpenFlag" v-model="selectvalue" |
| | | placeholder="请选择" |
| | | size="small"> |
| | | <el-option |
| | | v-for="item in selectoptions" |
| | |
| | | align="center" |
| | | > |
| | | <template slot-scope="{ row }"> |
| | | <el-input v-if="editingRows === row && editShows== item.prop && item.prop != 'codeDateFormat' && (item.edit == 'text' ||item.edit == 'refer' )" |
| | | :ref="'input' + row.oid" |
| | | <el-input |
| | | v-if="editingRows === row && editShows== item.prop && item.prop != 'codeDateFormat' && (item.edit == 'text' ||item.edit == 'refer' )" |
| | | v-show="!AddCellFlag" |
| | | :ref="'input' + row.oid" |
| | | v-model="row[item.prop]" |
| | | @blur="saveRows(row)" |
| | | ></el-input> |
| | | <el-input-number v-if="editingRows === row && editShows== item.prop && item.edit == 'number'" v-model="row[item.prop]" |
| | | <el-input-number v-if="editingRows === row && editShows== item.prop && item.edit == 'number'" |
| | | 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" v-model="row[item.prop]" allow-create default-first-option |
| | | <el-select v-if="editingRows === row && editShows== item.prop && item.edit == 'select' " slot="prepend" |
| | | v-model="row[item.prop]" allow-create default-first-option |
| | | filterable |
| | | @blur="selectChangeHandler(item.editConfig,index)"> |
| | | <el-option |
| | |
| | | } |
| | | } |
| | | }, |
| | | // editingRows:{ |
| | | // handler(newval,oldval){ |
| | | // if(newval){ |
| | | // const inputElement = document.querySelector(`#inputRef${newval.oid}`); |
| | | // if (inputElement) { |
| | | // inputElement.focus(); |
| | | // }; |
| | | // } |
| | | // } |
| | | // }, |
| | | ProData: { |
| | | handler(newval, oldval) { |
| | | if (newval) { |
| | |
| | | }, |
| | | //分类注入保存 |
| | | injectAddHandle() { |
| | | const { classifyInvokeAttr, classifyInvokeAttrName, classifyInvokeLevel, classifyInvokeEditFlag, classifyNumber } = this.injectOption; |
| | | const { |
| | | classifyInvokeAttr, |
| | | classifyInvokeAttrName, |
| | | classifyInvokeLevel, |
| | | classifyInvokeEditFlag, |
| | | classifyNumber |
| | | } = this.injectOption; |
| | | |
| | | const data = { |
| | | "注入类型": classifyInvokeAttr, |