| | |
| | | </el-dialog> |
| | | <!-- 编辑 --> |
| | | <el-dialog title="编辑" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close"> |
| | | <edit :OperationType=OperationType :linterid="this.rowForm.hmainid" @editClose="editClose" v-if="editShow" /> |
| | | <edit :OperationType="OperationType" :linterid="this.rowForm.HGroupID" @editClose="editClose" v-if="editShow" /> |
| | | </el-dialog> |
| | | <!-- 权限 --> |
| | | <el-dialog title="角色权限" :visible.sync="openQuery" width="1480px" append-to-body class="xsckdBox"> |
| | | <Query HSouceBillType="js" @editQueryClose="editQueryClose" :linterid=this.rowForm.HGroupID v-if="queryShow" /> |
| | | <Query HSouceBillType="js" @editQueryClose="editQueryClose" :linterid="this.rowForm.HGroupID" v-if="queryShow" /> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | |
| | | //#region 选中行高亮样式 |
| | | rowStyle({ row, rowIndex }) { |
| | | if (this.ids.includes(row.hmainid)) { |
| | | return { "background": "#ecf5ff" } |
| | | return { } |
| | | } |
| | | }, |
| | | //#endregion |
| | |
| | | //#region 双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | this.OperationType = 3 |
| | | this.handleEdit() |
| | | this.handleEdit(row) |
| | | }, |
| | | //#endregion |
| | | |
| | |
| | | |
| | | //#region 新增 |
| | | handleAddEdit() { |
| | | this.rowForm.hmainid = 0 |
| | | this.OperationType = 1 |
| | | this.rowForm.HGroupID = 0 |
| | | console.log(' OperationType=', this.OperationType, 'rowForm.HGroupID=', this.rowForm.HGroupID) |
| | | this.editShow = true |
| | | this.openEdit = true |
| | | }, |
| | |
| | | //#region 编辑 |
| | | handleEdit(row) { |
| | | this.rowForm = row |
| | | console.log('OperationType=', this.OperationType, 'rowForm=', this.rowForm) |
| | | this.editShow = true |
| | | this.openEdit = true |
| | | }, |