loulijun2021
2023-04-26 1f0499711f667cdc8008f71402d190e623528db7
1.提交
已修改3个文件
21 ■■■■■ 文件已修改
src/store/modules/permission.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/jcsz/jsqd.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/permission.js
@@ -109,6 +109,7 @@
            return i
          }
        })
        newRoutes.push({ path: '*', redirect: '/404', hidden: true })
      } else {
        newRoutes = getAsyncRoutes(asyncRoutes, menu)
      }
src/views/jcsz/jsqd.vue
@@ -410,7 +410,7 @@
        </el-button>
      </div>
      <el-table
        ref="multipleTable"
        ref="multipleTableRef"
        :data="dialogFormUserTable"
        border
        :row-class-name="tableRowClassName"
@@ -981,7 +981,7 @@
    },
    /* 关联用户模块*/
    async  userClick(row) {
    userClick(row) {
      if (row.role_code === 'S001') {
        return this.$message.info('此角色无法操作!')
      }
@@ -995,29 +995,31 @@
      this.userForm.roleName = row.role_name
      this.dialogFormUser.rolecode = row.role_code
      const res = await this.getRoleAssociationUser()
      this.getRoleAssociationUser().then(res => {
      if (res.code === '200') {
        setTimeout(() => {
          loading.close()
          this.userDialogVisible = true
          this.$nextTick(() => {
            this.$refs.multipleTable.doLayout()
              this.$refs.multipleTableRef.doLayout()
          })
        }, 1000)
          })
      } else {
        loading.close()
      }
      })
    },
    // 获取角色清单关联用户
    async getRoleAssociationUser() {
      const res = await RoleAssociationUser(this.dialogFormUser)
      this.dialogFormUserTable = res.data
      this.dialogFormUserTableLength = res.count
      this.userDialogVisible = true
      this.$nextTick(() => {
        this.dialogFormUserTable.forEach((item, index) => {
          if (item.flag === 'Y') {
            this.$refs.multipleTable.toggleRowSelection(this.dialogFormUserTable[index], true)
            this.$refs.multipleTableRef.toggleRowSelection(this.dialogFormUserTable[index], true)
          }
        })
      })
@@ -1064,7 +1066,7 @@
      this.dialogFormUser.orgcode = ''
      this.dialogFormUser.isrole = ''
      this.$refs.dialogCascaderUser.checkedValue = ''
      this.$refs.multipleTable.clearSelection()
      this.$refs.multipleTableRef.clearSelection()
    },
    // 关联用户对话框关闭
    userDialogVisibleCancel() {
vue.config.js
@@ -52,7 +52,7 @@
      [process.env.VUE_APP_BASE_API]: {
        // target: 'http://121.196.36.24:8005', // 请求的第三⽅接⼝地址      本地服务器(灵翔)
        // target: 'http://192.168.0.230:8001', // 请求的第三⽅接⼝地址   客户服务器(灵翔)  (未上云)
        target: 'http://ncr3az.natappfree.cc', // 请求的第三⽅接⼝地址   客户服务器(灵翔)  (上云)
        target: 'http://3up6ju.natappfree.cc', // 请求的第三⽅接⼝地址   客户服务器(灵翔)  (上云)
        changeOrigin: true, // 请求跨域时,需 配置此项
        pathRewrite: { // 路径重写,替换target中的请求地址
          ['^' + process.env.VUE_APP_BASE_API]: '/api/'