wangyi
2026-01-19 7fb0a8f0ab16c149484bf043754cd10cfa94de2f
src/views/system/user/xtUserList.vue
@@ -105,8 +105,7 @@
          @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-share" size="mini" :disabled="single"
          @click="openQuery = true">权限</el-button>
        <el-button type="primary" icon="el-icon-share" size="mini" :disabled="single" @click="queryClick">权限</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除
@@ -147,7 +146,7 @@
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
      <el-dialog title="用户权限" :visible.sync="openQuery" width="1480px" append-to-body class="xsckdBox">
        <Query />
        <Query HSouceBillType="yh" @editQueryClose="editQueryClose" :linterid=this.rowForm.用户编码 v-if="queryShow" />
      </el-dialog>
    </div>
  </div>
@@ -157,7 +156,7 @@
import axios from 'axios'
import RowSettings from '@/views/component/rowSettings'
import Edit from '@/views/system/user/xtUserListEdit.vue'
import Query from '@/views/system/user/xtUserRightQuery.vue'
import Query from '@/views/system/user/powerInformation.vue'
export default {
@@ -172,6 +171,7 @@
      activeSeach: '',
      HModName: 'Xt_UserList',
      editShow: false,
      queryShow: false,
      openEdit: false,
      totalNameList: [],
      tableShow: true,
@@ -213,7 +213,7 @@
      open: false,
      // 查询参数
      queryParams: {
        HUSEORGID: null,
        HUSEORGID: sessionStorage["OrganizationID"] - 0,
        HName: null,
        HNumber: null,
        Comparator1: '',
@@ -350,10 +350,9 @@
      if (this.pageSize == 0) {
        this.pageSize = 50
      }
      this.queryParams.HUSEORGID = sessionStorage["OrganizationID"] - 0
      // this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
      //列表
      axios.get(this.baseURL + '/Xt_User/list', {
      axios.get(this.$baseUrl + '/Xt_User/list', {
        params: {
          "sWhere": this.sWhere,
          "user": sessionStorage["HUserName"],
@@ -383,7 +382,7 @@
    },
    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,
@@ -529,7 +528,7 @@
    },
    //选中行高亮样式
    rowStyle({ row, rowIndex }) {
      if (this.ids.includes(row.HEmpID)) {
      if (this.ids.includes(row.用户编码)) {
        return { "background": "#ecf5ff" }
      }
    },
@@ -642,7 +641,7 @@
    //根据用户获取用户关联组织的过滤条件
    getOrgIDByUser() {
      var res = "";
      axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', {
      axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', {
        params: {
          HModName: this.HModName,
          user: sessionStorage["HUserName"],
@@ -667,7 +666,7 @@
    resetQuery() {
      this.sWhere = ''
      this.queryParams = {
        // HOrgID: null,
        HOrgID: null,
        HName: null,
        HNumber: null,
        Comparator1: '',
@@ -684,6 +683,7 @@
    //退出
    close() {
      this.tableShow = true
      this.single= true
      this.openEdit = false
      this.editShow = false
      this.getList()
@@ -695,7 +695,6 @@
        this.openEdit = true
        this.editShow = true
      })
    },
    //打开修改组件弹窗
    handleEdit() {
@@ -708,14 +707,26 @@
    editClose(val) {
      this.editShow = false
      this.openEdit = false
      this.multiple = true
      this.single= true
      this.ids = []
      this.getList()
    },
    queryClick() {
      this.queryShow = true
      this.openQuery = true
    },
    editQueryClose(val) {
      this.queryShow = false
      this.openQuery = false
      this.single= true
      this.ids = []
      this.getList()
    },
    /** 删除按钮操作 */
    handleDelete() {
      this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => {
        var HCzybm = this.rowForm.用户编码.toString();
        axios.get(this.baseURL + "/Xt_User/DeltetUser", {
        axios.get(this.$baseUrl + "/Xt_User/DeltetUser", {
          params: { "HCzybm": HCzybm }
        }).then(response => {
          if (response.data.count == 1) {