| | |
| | | <basic-container> |
| | | <avue-crud v-model="form" :option="option" :data="data" ref="crud" @on-load="onLoad" @row-save="rowSave" |
| | | @row-update="rowUpdate" :before-open="beforeOpen" @row-del="rowDel" :page.sync="page" |
| | | @refresh-change="refreshChange" @row-click="rowClick"> |
| | | @refresh-change="refreshChange" @row-click="rowClick" |
| | | @selection-change="selectChange"> |
| | | <template slot-scope="{row,index,type}" slot="selInputForm"> |
| | | <div style="margin-left: 75px"> |
| | | <el-input v-model="form.text" :size="size" style="width: 210px" :readonly="true" @focus="selectBtmType" :disabled="referType.disable"></el-input> |
| | | <!-- <el-button type="primary" style="margin-left: 10px" @click="addHandle">选择</el-button> --> |
| | | <!-- <el-button type="info">取消</el-button> --> |
| | | </div> |
| | | </template> |
| | | <template slot="radio" |
| | | slot-scope="{row}"> |
| | | <el-radio v-model="selectRow" |
| | | :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="referType.display" append-to-body :title="referType.title" width="1000px"> |
| | | <original-range @rowchange="rowchange"></original-range> |
| | |
| | | currentPage: 1, |
| | | total: 100 |
| | | }, |
| | | selectRow: '', |
| | | data: [ |
| | | |
| | | ], |
| | | option: { |
| | | height: "550px", |
| | | selection: true, |
| | | headerAlign: 'center', |
| | | border: true, |
| | | index: true, |
| | | rowKey: 'id', |
| | | tabs: true, |
| | | column: [ |
| | | highlightCurrentRow: true, |
| | | column: [{ |
| | | label: '选择', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | }, |
| | | { |
| | | label: '属性编号', |
| | | prop: 'key', |
| | |
| | | }) |
| | | }, |
| | | rowClick(row) { |
| | | this.itemData = row |
| | | this.itemData = row; |
| | | this.selectRow = row.$index; |
| | | |
| | | } |
| | | ,selectBtmType(){ |
| | | this.referType.display = true; |
| | | this.referType.title = "请选择" + this.referType.value |
| | | } |
| | | }, |
| | | }, |
| | | } |
| | | </script> |