|
@@ -1,79 +1,69 @@
|
|
|
<template>
|
|
|
<dg-row gutter="1rem">
|
|
|
- <dg-col :span="12">
|
|
|
- <dg-card shadow="never" header="角色列表">
|
|
|
- <!-- 角色搜索栏 -->
|
|
|
- <search-bar
|
|
|
- :conditionForm="roleConditionForm"
|
|
|
- @submitSearch="receiveRoleSearch"
|
|
|
- @submitCurrentApp="getCurrentApp"
|
|
|
- ></search-bar>
|
|
|
- <!-- 角色列表 -->
|
|
|
- <new-table
|
|
|
- ref="table"
|
|
|
- :tableHeader="roleTableHeader"
|
|
|
- :tableUrl="roleTableUrl"
|
|
|
- :condition="roleCondition"
|
|
|
- @handleRowClick="handleRoleRowClick"
|
|
|
- >
|
|
|
- <template #name="{ row }">
|
|
|
- <span style="cursor: pointer;color: #1890ff;" @click="viewRoleMenu(row, $event)">
|
|
|
- {{ row.name }}
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </new-table>
|
|
|
- </dg-card>
|
|
|
- </dg-col>
|
|
|
- <dg-col :span="12">
|
|
|
- <dg-card shadow="never" header="人员列表">
|
|
|
- <!-- 角色搜索栏 -->
|
|
|
- <search-bar
|
|
|
- :conditionForm="userConditionForm"
|
|
|
- @submitSearch="receiveUserSearch"
|
|
|
- @submitDefaultSearch="receiveUserDefaultCondition"
|
|
|
- ></search-bar>
|
|
|
- <!-- 角色操作栏 -->
|
|
|
- <operate-bar :pageOptList="userOptList" @submitPageOpt="receviceOpt"></operate-bar>
|
|
|
- <!-- 角色列表 -->
|
|
|
- <dg-table
|
|
|
- ref="userTable"
|
|
|
- :condition="userCondition"
|
|
|
- :url="userTableUrl"
|
|
|
- row-key="id"
|
|
|
- border
|
|
|
- @selection-change="handleSelectChange"
|
|
|
- :before-quest="handleBeforeQuest"
|
|
|
- lazyLoad
|
|
|
- >
|
|
|
- <dg-table-column type="selection" reserve-selection width="50"></dg-table-column>
|
|
|
- <!-- <dg-table-column type="index" label="序号" width="70"></dg-table-column> -->
|
|
|
- <dg-table-column prop="name" align="center" width="120" label="姓名"></dg-table-column>
|
|
|
- <dg-table-column prop="idcard" align="center" label="身份证号码" width="200"></dg-table-column>
|
|
|
- <!-- <dg-table-column prop="orgName" align="center" label="单位名称"></dg-table-column> -->
|
|
|
- <dg-table-column
|
|
|
- prop="userType"
|
|
|
- align="center"
|
|
|
- label="用户类型"
|
|
|
- enum="UserTypeEnum"
|
|
|
- ></dg-table-column>
|
|
|
+ <scroll-card header="角色列表" contentHeight="calc(100vh - 19rem)" :colSpan="12">
|
|
|
+ <!-- 角色搜索栏 -->
|
|
|
+ <search-bar
|
|
|
+ :conditionForm="roleConditionForm"
|
|
|
+ @submitSearch="receiveRoleSearch"
|
|
|
+ @submitCurrentApp="getCurrentApp"
|
|
|
+ ></search-bar>
|
|
|
+ <!-- 角色列表 -->
|
|
|
+ <new-table
|
|
|
+ ref="table"
|
|
|
+ :tableHeader="roleTableHeader"
|
|
|
+ :tableUrl="roleTableUrl"
|
|
|
+ :condition="roleCondition"
|
|
|
+ @handleRowClick="handleRoleRowClick"
|
|
|
+ >
|
|
|
+ <template #name="{ row }">
|
|
|
+ <span style="cursor: pointer;color: #1890ff;" @click="viewRoleMenu(row, $event)">
|
|
|
+ {{ row.name }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </new-table>
|
|
|
+ </scroll-card>
|
|
|
+
|
|
|
+ <scroll-card header="人员列表" contentHeight="calc(100vh - 19rem)" :colSpan="12">
|
|
|
+ <!-- 角色搜索栏 -->
|
|
|
+ <search-bar
|
|
|
+ :conditionForm="userConditionForm"
|
|
|
+ @submitSearch="receiveUserSearch"
|
|
|
+ @submitDefaultSearch="receiveUserDefaultCondition"
|
|
|
+ ></search-bar>
|
|
|
+ <!-- 角色操作栏 -->
|
|
|
+ <operate-bar :pageOptList="userOptList" @submitPageOpt="receviceOpt"></operate-bar>
|
|
|
+ <!-- 角色列表 -->
|
|
|
+ <dg-table
|
|
|
+ ref="userTable"
|
|
|
+ :condition="userCondition"
|
|
|
+ :url="userTableUrl"
|
|
|
+ row-key="id"
|
|
|
+ border
|
|
|
+ @selection-change="handleSelectChange"
|
|
|
+ :before-quest="handleBeforeQuest"
|
|
|
+ lazyLoad
|
|
|
+ >
|
|
|
+ <dg-table-column type="selection" reserve-selection width="50"></dg-table-column>
|
|
|
+ <!-- <dg-table-column type="index" label="序号" width="70"></dg-table-column> -->
|
|
|
+ <dg-table-column prop="name" align="center" width="120" label="姓名"></dg-table-column>
|
|
|
+ <dg-table-column prop="idcard" align="center" label="身份证号码" width="200"></dg-table-column>
|
|
|
+ <!-- <dg-table-column prop="orgName" align="center" label="单位名称"></dg-table-column> -->
|
|
|
+ <dg-table-column prop="userType" align="center" label="用户类型" enum="UserTypeEnum"></dg-table-column>
|
|
|
|
|
|
- <dg-table-column
|
|
|
- prop="policeCategory"
|
|
|
- align="center"
|
|
|
- code="T_MD_POLICE_TYPE"
|
|
|
- label="警种"
|
|
|
- ></dg-table-column>
|
|
|
- <dg-table-column prop="policeBusiness" align="center" label="业务域"></dg-table-column>
|
|
|
- <dg-table-column label="权限有效期" width="120" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <a href="javascript:;" @click="handleValidateChoose(scope.row)">{{
|
|
|
- scope.row.activeTime
|
|
|
- }}</a>
|
|
|
- </template>
|
|
|
- </dg-table-column>
|
|
|
- </dg-table>
|
|
|
- </dg-card>
|
|
|
- </dg-col>
|
|
|
+ <dg-table-column
|
|
|
+ prop="policeCategory"
|
|
|
+ align="center"
|
|
|
+ code="T_MD_POLICE_TYPE"
|
|
|
+ label="警种"
|
|
|
+ ></dg-table-column>
|
|
|
+ <dg-table-column prop="policeBusiness" align="center" label="业务域"></dg-table-column>
|
|
|
+ <dg-table-column label="权限有效期" width="120" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <a href="javascript:;" @click="handleValidateChoose(scope.row)">{{ scope.row.activeTime }}</a>
|
|
|
+ </template>
|
|
|
+ </dg-table-column>
|
|
|
+ </dg-table>
|
|
|
+ </scroll-card>
|
|
|
</dg-row>
|
|
|
</template>
|
|
|
|
|
@@ -85,12 +75,15 @@ import searchBar from "@/components/search-bar"
|
|
|
import operateBar from "@/components/operate-bar"
|
|
|
import { searchOpt } from "@/mixins/page-opt"
|
|
|
import roleMenuTree from "./role-menu-tree.vue"
|
|
|
+import scrollCard from "@/components/scroll-card"
|
|
|
+
|
|
|
export default {
|
|
|
name: "role-list",
|
|
|
components: {
|
|
|
newTable,
|
|
|
searchBar,
|
|
|
- operateBar
|
|
|
+ operateBar,
|
|
|
+ scrollCard
|
|
|
},
|
|
|
mixins: [searchOpt],
|
|
|
// 接收父页面传过来的属性
|
|
@@ -138,7 +131,8 @@ export default {
|
|
|
type: "APP",
|
|
|
component: "SelectOrgTree",
|
|
|
placeholder: "请选择单位名称",
|
|
|
- defaultSelectRoot: true
|
|
|
+ defaultSelectRoot: true,
|
|
|
+ defaultSearch: false
|
|
|
},
|
|
|
{
|
|
|
label: "姓名",
|