loulijun2021
2022-06-22 fd59571a8536d48d4029eb7b09a717393f19e210
src/views/jcsz/jsqd.vue
@@ -1,7 +1,7 @@
<template>
  <div>
    <div class="body" style="background-color: #ffffff;  padding: 20px 10px 0 20px;">
      <!--    <div class="body" style="background-color: #ffffff;  padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}">-->
    <!--    <div class="body" style="background-color: #ffffff;  padding: 20px 10px 0 20px;">-->
    <div class="body" style="background-color: #ffffff;  padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}">
      <div>
        <el-form
          ref="form"
@@ -18,7 +18,7 @@
              <el-input v-model="form.RoleName" placeholder="请输入" style="width: calc(100%-30px)" />
            </el-form-item>
            <el-form-item label="角色类型" style=" display: flex;">
              <el-select v-model="form.RoleTypeCode" style="width: calc(100%-30px)" placeholder="请选择">
              <el-select v-model="form.RoleTypeCode" filterable style="width: calc(100%-30px)" placeholder="请选择">
                <el-option
                  v-for="item in RoleTypeCodeArr2"
                  :key="item.roletype_code"
@@ -47,12 +47,12 @@
        <el-table
          :data="tableData"
          border
          :style="{width: 100+'%',height:tableHeight+'px'}"
          highlight-current-row
          :header-cell-style="this.$headerCellStyle"
          :cell-style="this.$cellStyle"
          @sort-change="sortChange"
        >
          <!--          :style="{width: 100+'%',height:tableHeight+'px'}"-->
          <!--          <el-table-column-->
          <!--            type="selection"-->
@@ -159,6 +159,7 @@
        <el-form-item prop="RoleTypeCode" label="角色类型">
          <el-select
            v-model="dialogForm.RoleTypeCode"
            filterable
            style="width: 220px"
            placeholder="请选择"
          >
@@ -233,7 +234,7 @@
            <div v-else> {{ row.roletype_name }}</div>
          </template>
        </el-table-column>
        <el-table-column>
        <el-table-column label="操作">
          <template slot-scope="{row}">
            <div class="operationClass">
@@ -297,6 +298,7 @@
            <el-cascader
              ref="dialogCascaderUser"
              key="cascaderKey"
              filterable
              :options="StuOrgArr"
              :props="defaultProps"
              class="userDialogVisibleInput"
@@ -308,6 +310,7 @@
          <el-form-item label="关联角色">
            <el-select
              v-model="dialogFormUser.isrole"
              filterable
              style="width: 220px"
              placeholder="请选择"
              class="userDialogVisibleInput"
@@ -491,7 +494,7 @@
  DeleteRole, RoleAssociationRight,
  RoleAssociationUser,
  RoleSearch, RoleTypeAdd,
  RoleTypeDelete, RoleTypeSearch, SaveRoleAssoctUser, SaveUserAssoctRight, UserOrganization
  RoleTypeDelete, RoleTypeSearch, RoleTypeSelect, SaveRoleAssoctUser, SaveUserAssoctRight, UserOrganization
} from '@/api/jcsz'
import { getCookie } from '@/utils/auth'
import $ from 'jquery'
@@ -532,7 +535,7 @@
        prop: 'lm_date', // 排序字段
        order: 'desc', // 排序字段
        page: 1, // 第几页
        rows: 10 // 每页多少条
        rows: 20 // 每页多少条
      },
      total: 10,
      RoleTypeCodeArr: [], // 角色类型编码数组
@@ -644,13 +647,7 @@
      })
    },
    async getRoleTypeSearch2() { // 搜索展示的内容
      const data = {
        page: 1,
        rows: 1000000,
        prop: 'roletype_code',
        order: 'desc'
      }
      const res = await RoleTypeSearch(data)
      const res = await RoleTypeSelect()
      this.RoleTypeCodeArr2 = res.data
    },
    settingButton() {