| | |
| | | </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 加载组织下拉列表数据 |
| | | fetchData() { |
| | | axios.get(this.baseURL + "/Web/GetOrganizations", { |
| | | axios.get(this.$baseUrl + "/Web/GetOrganizations", { |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | |
| | | this.loading = true |
| | | |
| | | // 列表查询 |
| | | axios.get(this.baseURL + '/Xt_UserGroup/list', { |
| | | axios.get(this.$baseUrl + '/Xt_UserGroup/list', { |
| | | params: { |
| | | "sWhere": this.sWhere, |
| | | }, |
| | |
| | | |
| | | //#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 |
| | | }, |
| | |
| | | //#region 删除 |
| | | handleDelete() { |
| | | this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => { |
| | | axios.get(this.baseURL + "/Xt_UserGroup/DelXt_UserGroupList", { |
| | | axios.get(this.$baseUrl + "/Xt_UserGroup/DelXt_UserGroupList", { |
| | | params: { 'HInterID': this.rowForm.HGroupID.toString(), 'user': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | |
| | | }, |
| | | DisPlay_HideColumn(HModName, user, option, dataOption) { |
| | | this.totalNameList = [] |
| | | axios.get(this.baseURL + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', { |
| | | axios.get(this.$baseUrl + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', { |
| | | params: { |
| | | "HModName": HModName, |
| | | "user": user, |
| | |
| | | //#region 获取公司名,根据公司进行定制化开发 |
| | | defaintOperationByCompanyName() { |
| | | var result = false; |
| | | axios.get(this.baseURL + '/Xt_getInfo/getCompanyName').then(response => { |
| | | axios.get(this.$baseUrl + '/Xt_getInfo/getCompanyName').then(response => { |
| | | var data1 = response.data |
| | | if (data1.count == 1) { |
| | | if (data1.data == "水务") { |