| | |
| | | hidden: (!this.controllerSecret) |
| | | }]; |
| | | } else { |
| | | debugger; |
| | | this.option.column = this.options.tableConfig.cols.map(item => { |
| | | if (item.field != 'LAY_TABLE_INDEX' && item.field != 'LAY_CHECKED') { |
| | | return { |
| | |
| | | label: item.title, |
| | | prop: item.field, |
| | | formatter:item.template, |
| | | search: true |
| | | search:this.options.tableConfig.queryColumns.some(qItem=>{ |
| | | return qItem.field==item.field |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | |
| | | label: item.title, |
| | | prop: item.field, |
| | | formatter:item.template, |
| | | search: true |
| | | search: this.options.tableConfig.queryColumns.some(qItem=>{ |
| | | return qItem.field==item.field |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | |
| | | <template> |
| | | <div> |
| | | <el-button @click="HandlerSave" v-if="hasEditor" size="small" type="primary" style="margin-bottom: 20px">保存</el-button> |
| | | <el-button @click="HandlerSave" v-if="hasEditor" size="small" type="primary" style="margin-bottom: 10px">保存</el-button> |
| | | <el-table |
| | | v-loading="isLoading" |
| | | :data="tableData" |
| | |
| | | :prop="item.prop" |
| | | :sortable="item.sortable" |
| | | :formatter="item.formatter" |
| | | :width="item.label.length >=4 ?'150':item.label.length==3 ?'120':'90'" |
| | | :width="item.width" |
| | | :show-overflow-tooltip="true" |
| | | align="center" |
| | | > |
| | |
| | | return newitem; |
| | | }) |
| | | batchUpdateCode(datas).then(res => { |
| | | if (res.data.data.success) { |
| | | if (res.data.success) { |
| | | this.$message.success("修改成功"); |
| | | this.BuinseseRend() |
| | | } |
| | | }) |
| | | } |