fei
2025-11-15 e3cac4fb5b540b45d6ec1a53a534d08c03d7c174
src/views/archiveManager/arMAutoUser.vue
@@ -48,7 +48,7 @@
          v-hasPermi="['system:role:remove']"
        >批量取消授权</el-button>
      </el-col> -->
      <el-col :span="1.5">
    <!--  <el-col :span="1.5">
        <el-button
          type="warning"
          plain
@@ -56,7 +56,7 @@
          size="mini"
          @click="handleClose"
        >关闭</el-button>
      </el-col>
      </el-col> -->
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
@@ -148,7 +148,7 @@
  created() {
    const roleId = this.$route.params && this.$route.params.roleId
    const recordId = this.$route.params && this.$route.params.archiveRecordsId
    if (roleId && recordId) {
      this.queryParams.roleId = roleId
      // 进行类型转换
@@ -164,7 +164,7 @@
      // 创建一个新对象,将字符串类型的archiveRecordsId转换为数字类型
      const params = {
        ...this.queryParams,
        archiveRecordsId: !isNaN(Number(this.queryParams.archiveRecordsId)) ?
        archiveRecordsId: !isNaN(Number(this.queryParams.archiveRecordsId)) ?
                    Number(this.queryParams.archiveRecordsId) : 0
      }
      listArchiverecordstouser(params).then(response => {
@@ -176,8 +176,9 @@
    /** 打开授权用户表弹窗 */
    openSelectUser() {
      // 确保传递给select组件的recordId是数字类型
      const recordId = !isNaN(Number(this.queryParams.archiveRecordsId)) ?
      const recordId = !isNaN(Number(this.queryParams.archiveRecordsId)) ?
                    Number(this.queryParams.archiveRecordsId) : 0
      this.$refs.select.show(recordId)
    },
    // 返回按钮