| | |
| | | @row-save="rowSaveHandler" |
| | | @row-update="rowUpdateHandler" |
| | | > |
| | | <template slot="menuLeft" slot-scope="{ row, index }"> |
| | | <el-button v-if="permissionList.addBtn" class="button-custom-icon" size="small" |
| | | type="primary" @click="$refs.passWordCrud.rowAdd()"> |
| | | <icon-show :name="permissionList.addBtn.source"></icon-show> |
| | | 新 增 |
| | | </el-button> |
| | | </template> |
| | | <template slot="menu" slot-scope="{ row, index }"> |
| | | <el-button |
| | | v-if="permissionList.editBtn" |
| | | icon="el-icon-edit" |
| | | size="small" |
| | | type="text" |
| | | @click="handleEdit(row, index)" |
| | | > |
| | | <icon-show :name="permissionList.editBtn.source"></icon-show> |
| | | 编辑 |
| | | </el-button> |
| | | <el-button |
| | | v-if="permissionList.delBtn" |
| | | icon="el-icon-delete" |
| | | size="small" |
| | | type="text" |
| | | @click="handleDel(row, index)" |
| | | > |
| | | <icon-show :name="permissionList.delBtn.source"></icon-show> |
| | | 删除 |
| | | </el-button> |
| | | </template> |
| | |
| | | option() { |
| | | return { |
| | | ...basicOption, |
| | | addBtn: this.permissionList.addBtn, |
| | | addBtn: false, |
| | | selection: false, |
| | | menuWidth: 150, |
| | | editBtn: false, |