From c5359b1ce7a5813b56b4c283f6240cadb062e219 Mon Sep 17 00:00:00 2001 From: GYYM <704080176@qq.com> Date: Thu, 17 Oct 2024 16:34:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8C=89=E7=85=A7=E6=A0=87=E5=87=86?= =?UTF-8?q?=E6=A1=86=E6=9E=B6=E4=BF=AE=E6=94=B9=E8=A7=92=E8=89=B2=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/role/interface/index.ts | 12 +- frontend/src/api/role/roleData.ts | 54 +++--- .../role/components/permissionUnit.vue | 31 ++++ .../authority/role/components/roleUnit.vue | 60 +++++++ frontend/src/views/authority/role/index.vue | 163 ++++++++---------- 5 files changed, 194 insertions(+), 126 deletions(-) create mode 100644 frontend/src/views/authority/role/components/permissionUnit.vue create mode 100644 frontend/src/views/authority/role/components/roleUnit.vue diff --git a/frontend/src/api/role/interface/index.ts b/frontend/src/api/role/interface/index.ts index 3c6b1bb..aed7faa 100644 --- a/frontend/src/api/role/interface/index.ts +++ b/frontend/src/api/role/interface/index.ts @@ -4,9 +4,9 @@ import type { ReqPage } from '@/api/interface' export namespace Role { export interface Permission{ - id: string; //权限名称 - name: string; //权限ID - havePermission:boolean; //是否拥有该权限 + key: string; //权限名称 + label: string; //权限ID + disabled:boolean; //是否拥有该权限 } // 角色列表 @@ -39,9 +39,9 @@ export namespace Role { //角色权限列表 export interface ResPermissionList { - id: string; - name: string; - permissionList?: Permission[]; + key: string; + label: string; + disable?: Permission[]; } // export interface ResRole { diff --git a/frontend/src/api/role/roleData.ts b/frontend/src/api/role/roleData.ts index 0861067..7f37f84 100644 --- a/frontend/src/api/role/roleData.ts +++ b/frontend/src/api/role/roleData.ts @@ -6,19 +6,19 @@ const data = [ describe:"可以对待检设备的台账进行操作并执行检测功能", permissionList: [ { - name: "台账管理", - id: "dataManager", - havePermission: false, + label: "台账管理", + key: "dataManager", + disable: false, }, { - name: "系统配置", - id: "sysManager", - havePermission: false, + label: "系统配置", + key: "sysManager", + disable: false, }, { - name: "设备检测", - id: "devTest", - havePermission: true, + label: "设备检测", + key: "devTest", + disable: true, }, ]}, { @@ -28,19 +28,19 @@ const data = [ describe:"可以设置检测脚本、误差体系、新增操作人员", permissionList: [ { - name: "台账管理", - id: "dataManager", - havePermission: true, + label: "台账管理", + key: "dataManager", + disable: true, }, { - name: "系统配置", - id: "sysManager", - havePermission: false, + label: "系统配置", + key: "sysManager", + disable: false, }, { - name: "设备检测", - id: "devTest", - havePermission: true, + label: "设备检测", + key: "devTest", + disable: true, }, ]}, { @@ -50,19 +50,19 @@ const data = [ describe:"可以修改程序的底层配置,例如检测指标的具体类型", permissionList: [ { - name: "台账管理", - id: "dataManager", - havePermission: true, + label: "台账管理", + key: "dataManager", + disable: true, }, { - name: "系统配置", - id: "sysManager", - havePermission: true, + label: "系统配置", + key: "sysManager", + disable: true, }, { - name: "设备检测", - id: "devTest", - havePermission: true, + label: "设备检测", + key: "devTest", + disable: true, }, ]}, ] diff --git a/frontend/src/views/authority/role/components/permissionUnit.vue b/frontend/src/views/authority/role/components/permissionUnit.vue new file mode 100644 index 0000000..ba79556 --- /dev/null +++ b/frontend/src/views/authority/role/components/permissionUnit.vue @@ -0,0 +1,31 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/authority/role/components/roleUnit.vue b/frontend/src/views/authority/role/components/roleUnit.vue new file mode 100644 index 0000000..edea723 --- /dev/null +++ b/frontend/src/views/authority/role/components/roleUnit.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/authority/role/index.vue b/frontend/src/views/authority/role/index.vue index 6d44c07..f3f74fd 100644 --- a/frontend/src/views/authority/role/index.vue +++ b/frontend/src/views/authority/role/index.vue @@ -7,8 +7,8 @@ > - - -
- - - - - - - - - - - - - - - -
- -
+ + \ No newline at end of file From 8e9cda8c7868f03739642e59b2f0d5a95480af45 Mon Sep 17 00:00:00 2001 From: GYYM <704080176@qq.com> Date: Wed, 23 Oct 2024 20:53:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B7=B2=E4=BF=AE=E6=94=B9=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E3=80=81=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E3=80=81?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=BA=90=E5=88=97=E8=A1=A8=E3=80=81=E8=A2=AB?= =?UTF-8?q?=E6=A3=80=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8=E3=80=81=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E8=84=9A=E6=9C=AC=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 3 +- frontend/src/api/device/device.ts | 13 ++ frontend/src/api/device/deviceData.ts | 48 +++++ frontend/src/api/device/interface/index.ts | 31 +++ frontend/src/api/role/role.ts | 4 +- frontend/src/api/role/roleData.ts | 6 +- .../src/api/testScript/interface/index.ts | 24 +++ frontend/src/api/testScript/testScript.ts | 13 ++ frontend/src/api/testScript/testScriptData.ts | 32 +++ .../src/api/testSource/interface/index.ts | 21 ++ frontend/src/api/testSource/testSource.ts | 13 ++ frontend/src/api/testSource/testSourceData.ts | 28 +++ frontend/src/api/user/interface/index.ts | 47 ++-- frontend/src/api/user/login.ts | 9 +- frontend/src/api/user/user.ts | 27 +-- frontend/src/api/user/userData.ts | 148 +++++-------- .../role/components/permissionUnit.vue | 52 ++++- .../authority/role/components/roleUnit.vue | 14 +- frontend/src/views/authority/role/index.vue | 57 +++-- .../authority/user/components/userUnit.vue | 70 ++++++ frontend/src/views/authority/user/index.vue | 200 ++++++++++++++++++ frontend/src/views/machine/device/index.vue | 123 +++++++++++ .../src/views/machine/testScript/index.vue | 107 +++++++++- .../src/views/machine/testSource/index.vue | 103 +++++++++ 24 files changed, 997 insertions(+), 196 deletions(-) create mode 100644 frontend/src/api/device/device.ts create mode 100644 frontend/src/api/device/deviceData.ts create mode 100644 frontend/src/api/device/interface/index.ts create mode 100644 frontend/src/api/testScript/interface/index.ts create mode 100644 frontend/src/api/testScript/testScript.ts create mode 100644 frontend/src/api/testScript/testScriptData.ts create mode 100644 frontend/src/api/testSource/interface/index.ts create mode 100644 frontend/src/api/testSource/testSource.ts create mode 100644 frontend/src/api/testSource/testSourceData.ts create mode 100644 frontend/src/views/authority/user/components/userUnit.vue create mode 100644 frontend/src/views/authority/user/index.vue create mode 100644 frontend/src/views/machine/device/index.vue create mode 100644 frontend/src/views/machine/testSource/index.vue diff --git a/frontend/.env.development b/frontend/.env.development index 52e29f0..1aa3daa 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -18,4 +18,5 @@ VITE_PWA=false VITE_API_URL=/api # 开发环境跨域代理,支持配置多个 -VITE_PROXY=[["/api","http://192.168.1.125:18092/"]] +# VITE_PROXY=[["/api","http://192.168.1.125:18092/"]] +VITE_PROXY=[["/api","http://192.168.1.138:8080/"]] \ No newline at end of file diff --git a/frontend/src/api/device/device.ts b/frontend/src/api/device/device.ts new file mode 100644 index 0000000..d7cd50a --- /dev/null +++ b/frontend/src/api/device/device.ts @@ -0,0 +1,13 @@ +import { ResPage } from '@/api/interface' +import { Device } from './interface' +import { ADMIN as rePrefix } from '@/api/config/serviceName' +import http from '@/api' + +/** + * @name 被检设备管理模块 + */ +// 获取检测脚本列表 +export const getDeviceList = (params: Device.ReqDeviceParams) => { + return http.post>(`/RoleList_Post`, params) + // return http.post>(`${rePrefix}/device/list`, params) +} diff --git a/frontend/src/api/device/deviceData.ts b/frontend/src/api/device/deviceData.ts new file mode 100644 index 0000000..e638fb8 --- /dev/null +++ b/frontend/src/api/device/deviceData.ts @@ -0,0 +1,48 @@ +const data = [ + { + id: 'device1', + deviceName:"模拟装置1", + deviceType:"PQS882B4电能质量监测装置", + deviceChannels:"4", + PlanName: "沧州220kV留古等4座变电站电能质量检测", + deviceUn: "57.74", + deviceIn: "5", + deviceCompany: "南京灿能电力自动化股份有限公司", + deviceModel: "模拟式", + }, + { + id: 'device2', + deviceName:"模拟装置2", + deviceType:"PQS882A电能质量监测装置", + deviceChannels:"1", + PlanName: "邯郸220kV团城站等4座站电能质量检测", + deviceUn: "57.74", + deviceIn: "5", + deviceCompany: "南京灿能电力自动化股份有限公司", + deviceModel: "模拟式", + }, + { + id: 'device3', + deviceName:"模拟装置3", + deviceType:"PQS882A电能质量监测装置", + deviceChannels:"1", + PlanName: "衡水冀州光伏电站配套出口工程", + deviceUn: "57.74", + deviceIn: "1", + deviceCompany: "南京灿能电力自动化股份有限公司", + deviceModel: "模拟式", + }, + { + id: 'device4', + deviceName:"模拟装置4", + deviceType:"PMC-680M-22-22-00-115ANBC电能质量监测装置", + deviceChannels:"4", + PlanName: "深圳市中电软件有限公司委托送检", + deviceUn: "57.74", + deviceIn: "5", + deviceCompany: "深圳中电电力技术股份有限公司", + deviceModel: "模拟式", + }, + ] + + export default data \ No newline at end of file diff --git a/frontend/src/api/device/interface/index.ts b/frontend/src/api/device/interface/index.ts new file mode 100644 index 0000000..5d6f251 --- /dev/null +++ b/frontend/src/api/device/interface/index.ts @@ -0,0 +1,31 @@ +import type { ReqPage } from '@/api/interface' + +// 被检设备模块 +export namespace Device { + + // 被检设备列表 + export interface ResDeviceList { + id: string; //被检设备ID + deviceName: string; //检测设备名称 + deviceType: string; //检测设备类型 + deviceChannels: string;//设备通道数 + PlanName: string; //所属计划名称 + deviceUn: string; //设备额定电压 + deviceIn: string; //设备额定电流 + deviceCompany: string;//设备厂家 + deviceModel: string; //设备模式 模拟 数字 比对 + } + + // 被检设备参数 + export interface ReqDeviceParams extends ReqPage { + id: string; //被检设备ID + deviceName: string; //检测设备名称 + deviceType: string; //检测设备类型 + deviceChannels: string;//设备通道数 + PlanName: string; //所属计划名称 + deviceUn: string; //设备额定电压 + deviceIn: string; //设备额定电流 + deviceCompany: string;//设备厂家 + deviceModel: string; //设备模式 模拟 数字 比对 + } + } \ No newline at end of file diff --git a/frontend/src/api/role/role.ts b/frontend/src/api/role/role.ts index 62bb047..2cde151 100644 --- a/frontend/src/api/role/role.ts +++ b/frontend/src/api/role/role.ts @@ -8,7 +8,9 @@ import http from '@/api' */ // 获取角色列表 export const getRoleList = (params: Role.ReqRoleParams) => { - return http.post>(`${rePrefix}/role/list`, params) + return http.post>(`/RoleList_Post`, params) + // return http.post>(`${rePrefix}/role/list`, params) + } // // 获取树形用户列表 diff --git a/frontend/src/api/role/roleData.ts b/frontend/src/api/role/roleData.ts index 7f37f84..308b613 100644 --- a/frontend/src/api/role/roleData.ts +++ b/frontend/src/api/role/roleData.ts @@ -1,6 +1,6 @@ const data = [ { - rolename:"操作员", + rolename:"操作员1", id: 'operator_role', status:1, describe:"可以对待检设备的台账进行操作并执行检测功能", @@ -22,7 +22,7 @@ const data = [ }, ]}, { - rolename:"管理员", + rolename:"管理员2", id: 'manager_role', status:1, describe:"可以设置检测脚本、误差体系、新增操作人员", @@ -44,7 +44,7 @@ const data = [ }, ]}, { - rolename:"超级管理员", + rolename:"超级管理员3", id: 'superManager_role', status:0, describe:"可以修改程序的底层配置,例如检测指标的具体类型", diff --git a/frontend/src/api/testScript/interface/index.ts b/frontend/src/api/testScript/interface/index.ts new file mode 100644 index 0000000..4bf95d6 --- /dev/null +++ b/frontend/src/api/testScript/interface/index.ts @@ -0,0 +1,24 @@ +import type { ReqPage } from '@/api/interface' + +// 检测脚本模块 +export namespace TestScript { + + // 检测脚本列表 + export interface ResTestScriptList { + id: string; //检测脚本ID + testScriptModel: string; //检测脚本模式 模拟 数字 比对 + testScriptType: string; //检测脚本类型 脚本 模板 + testScriptValueType: string;//检测脚本值类型名称 相对值 绝对值 + testScriptName: string; //检测脚本名称 + } + + // 检测脚本参数 + // 检测脚本参数 + export interface ReqTestScriptParams extends ReqPage { + id: string; //检测脚本ID + testScriptModel: string; //检测脚本模式 模拟 数字 比对 + testScriptType: string; //检测脚本类型 脚本 模板 + testScriptValueType: string;//检测脚本值类型名称 相对值 绝对值 + testScriptName: string; //检测脚本名称 + } + } \ No newline at end of file diff --git a/frontend/src/api/testScript/testScript.ts b/frontend/src/api/testScript/testScript.ts new file mode 100644 index 0000000..cc559ed --- /dev/null +++ b/frontend/src/api/testScript/testScript.ts @@ -0,0 +1,13 @@ +import { ResPage } from '@/api/interface' +import { TestScript } from './interface' +import { ADMIN as rePrefix } from '@/api/config/serviceName' +import http from '@/api' + +/** + * @name 检测脚本管理模块 + */ +// 获取检测脚本列表 +export const getTestScriptList = (params: TestScript.ReqTestScriptParams) => { + return http.post>(`/RoleList_Post`, params) + // return http.post>(`${rePrefix}/testScript/list`, params) +} diff --git a/frontend/src/api/testScript/testScriptData.ts b/frontend/src/api/testScript/testScriptData.ts new file mode 100644 index 0000000..58be977 --- /dev/null +++ b/frontend/src/api/testScript/testScriptData.ts @@ -0,0 +1,32 @@ +const data = [ + { + testScriptModel:"模拟", + id: 'operatorrole', + testScriptType:"脚本", + testScriptValueType:"绝对值", + testScriptName:"国网入网检测脚本(单影响量-模拟式)", + }, + { + testScriptModel:"模拟", + id: 'managerrole', + testScriptType:"脚本", + testScriptValueType:"相对值", + testScriptName:"国网入网检测脚本(Q/GDW 10650.4 - 2021) 模拟式", + }, + { + testScriptModel:"模拟", + id: 'superManagerrole', + testScriptType:"脚本", + testScriptValueType:"相对值", + testScriptName:"国网入网检测脚本(Q/GDW 1650.4 - 2016) 模拟式", + }, + { + testScriptModel:"模拟", + id: 'superManagerroletest', + testScriptType:"脚本", + testScriptValueType:"相对值", + testScriptName:"GBT 19862 - 2016 模拟式", + }, + ] + + export default data \ No newline at end of file diff --git a/frontend/src/api/testSource/interface/index.ts b/frontend/src/api/testSource/interface/index.ts new file mode 100644 index 0000000..e18bdaf --- /dev/null +++ b/frontend/src/api/testSource/interface/index.ts @@ -0,0 +1,21 @@ +import type { ReqPage } from '@/api/interface' + +// 检测源模块 +export namespace TestSource { + + // 检测源列表 + export interface ResTestSourceList { + id: string; //检测源ID + testSourceName: string; //检测源名称 + testSourceType: string; //检测源类型 + testSourceModel: string; //检测源模式 标准源 高精度源 + } + + // 检测源参数 + export interface ReqTestSourceParams extends ReqPage { + id: string; //检测源ID + testSourceName: string; //检测源名称 + testSourceType: string; //检测源类型 + testSourceModel: string; //检测源模式 标准源 高精度源 + } + } \ No newline at end of file diff --git a/frontend/src/api/testSource/testSource.ts b/frontend/src/api/testSource/testSource.ts new file mode 100644 index 0000000..2175e27 --- /dev/null +++ b/frontend/src/api/testSource/testSource.ts @@ -0,0 +1,13 @@ +import { ResPage } from '@/api/interface' +import { TestSource } from './interface' +import { ADMIN as rePrefix } from '@/api/config/serviceName' +import http from '@/api' + +/** + * @name 检测源管理模块 + */ +// 获取检测脚本列表 +export const getTestSourceList = (params: TestSource.ReqTestSourceParams) => { + return http.post>(`/RoleList_Post`, params) + // return http.post>(`${rePrefix}/testSource/list`, params) +} diff --git a/frontend/src/api/testSource/testSourceData.ts b/frontend/src/api/testSource/testSourceData.ts new file mode 100644 index 0000000..92aad8b --- /dev/null +++ b/frontend/src/api/testSource/testSourceData.ts @@ -0,0 +1,28 @@ +const data = [ + { + id: 'testSource1', + testSourceName: '标准源-福禄克-6100A', + testSourceType: 'FLUKE.6100A电能功率标准源', + testSourceModel: '标准源', + }, + { + id: 'testSource2', + testSourceName: '标准源-昂立-PF2', + testSourceType: 'ANGLI-FP2高性能数字信号源', + testSourceModel: '标准源', + }, + { + id: 'testSource3', + testSourceName: '标准源-丹迪克-DKLN1', + testSourceType: 'DKLN-1电能质量测试分析仪智能检定装置', + testSourceModel: '标准源', + }, + { + id: 'testSource4', + testSourceName: '高精度设备-PQV520-1', + testSourceType: 'PQV-520电能质量监测装置', + testSourceModel: '高精度设备', + }, + ] + + export default data \ No newline at end of file diff --git a/frontend/src/api/user/interface/index.ts b/frontend/src/api/user/interface/index.ts index 149b886..2651a06 100644 --- a/frontend/src/api/user/interface/index.ts +++ b/frontend/src/api/user/interface/index.ts @@ -20,28 +20,21 @@ export namespace User { // 用户列表 export interface ResUserList { - id: string; - username: string; - gender: number; - age:number; - idCard: string; - email: string; - address: string; - createTime: string; - status: number; - avatar: string; - photo: any[]; - children?: ResUserList[]; + id: string; //用户ID,作为唯一标识 + username: string; //用户名 + password: string; //密码 + realname: string; //真实姓名 + status: number; //用户状态 + rolename: string; //角色名称 } export interface ReqUserParams extends ReqPage { - username: string; - gender: number; - idCard: string; - email: string; - address: string; - createTime: string[]; - status: number; + id: string; //用户ID,作为唯一标识 + username: string; //用户名 + password: string; //密码 + realname: string; //真实姓名 + status: number; //用户状态 + rolename: string; //角色名称 } export interface ResStatus { @@ -49,21 +42,5 @@ export namespace User { userValue: number; } - export interface ResGender { - genderLabel: string; - genderValue: number; - } - - export interface ResDepartment { - id: string; - name: string; - children?: ResDepartment[]; - } - - export interface ResRole { - id: string; - name: string; - children?: ResDepartment[]; - } } diff --git a/frontend/src/api/user/login.ts b/frontend/src/api/user/login.ts index 58235e3..3583e5a 100644 --- a/frontend/src/api/user/login.ts +++ b/frontend/src/api/user/login.ts @@ -7,17 +7,20 @@ import http from '@/api' */ // 用户登录 export const loginApi = (params: Login.ReqLoginForm) => { - return http.post(`${rePrefix}/login`, params, { loading: false }) + // return http.post(`${rePrefix}/login`, params, { loading: false }) + return http.post(`/Register1`, params, { loading: false }) } // 获取菜单列表 export const getAuthMenuListApi = () => { - return http.get(`${rePrefix}/menu/list`, {}, { loading: false }) + // return http.get(`${rePrefix}/menu/list`, {}, { loading: false }) + return http.post(`/Register2`, {}, { loading: false }) } // 获取按钮权限 export const getAuthButtonListApi = () => { - return http.get(`${rePrefix}/auth/buttons`, {}, { loading: false }) + // return http.get(`${rePrefix}/auth/buttons`, {}, { loading: false }) + return http.post(`/Register3`, {}, { loading: false }) } // 用户退出登录 diff --git a/frontend/src/api/user/user.ts b/frontend/src/api/user/user.ts index 1a845e7..a1302ca 100644 --- a/frontend/src/api/user/user.ts +++ b/frontend/src/api/user/user.ts @@ -2,7 +2,6 @@ import { ResPage } from '@/api/interface' import { User } from './interface' import { ADMIN as rePrefix } from '@/api/config/serviceName' import http from '@/api' -import type { Resource } from '../resource/interface' /** * @name 用户管理模块 @@ -13,9 +12,9 @@ export const getUserList = (params: User.ReqUserParams) => { } // 获取树形用户列表 -export const getUserTreeList = (params: User.ReqUserParams) => { - return http.post>(`${rePrefix}/user/tree/list`, params) -} +// export const getUserTreeList = (params: User.ReqUserParams) => { +// return http.post>(`${rePrefix}/user/tree/list`, params) +// } // 新增用户 export const addUser = (params: { id: string }) => { @@ -56,23 +55,3 @@ export const exportUserInfo = (params: User.ReqUserParams) => { export const getUserStatus = () => { return http.get(`${rePrefix}/user/status`) } - -// 获取用户状态字典 -export const getResourceType = () => { - return http.get(`${rePrefix}/user/status`) -} - -// 获取用户性别字典 -export const getUserGender = () => { - return http.get(`${rePrefix}/user/gender`) -} - -// 获取用户部门列表 -export const getUserDepartment = () => { - return http.get(`${rePrefix}/user/department`) -} - -// 获取用户角色字典 -export const getUserRole = () => { - return http.get(`${rePrefix}/user/role`) -} diff --git a/frontend/src/api/user/userData.ts b/frontend/src/api/user/userData.ts index 01cb7ea..5582e9d 100644 --- a/frontend/src/api/user/userData.ts +++ b/frontend/src/api/user/userData.ts @@ -1,147 +1,99 @@ const data = [ { 'id': '623689732233728549', - 'username': '薛霞', - 'gender': 2, - 'age': 14, - 'idCard': '623689732233728549', - 'email': 'k.ckfkzrnhd@voyvhqubs.sl', - 'address': '浙江省 温州市', - 'createTime': '1985-04-15 15:42:29', + 'username': 'admin_A', + 'password': '12345678', + 'realname': '薛霞', 'status': 0, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRqMK.jpg', + 'rolename': '管理员', }, { 'id': '621003764863621316', - 'username': '冯敏', - 'gender': 1, - 'age': 16, - 'idCard': '621003764863621316', - 'email': 'h.obqq@cpyirry.bt', - 'address': '内蒙古自治区 兴安盟', - 'createTime': '2003-03-24 22:30:36', + 'username': 'admin_B', + 'password': '12345678', + 'realname': '冯敏', 'status': 1, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRBHS.jpg', + 'rolename': '管理员', }, { 'id': '652286556713195552', - 'username': '潘霞', - 'gender': 1, - 'age': 28, - 'idCard': '652286556713195552', - 'email': 'b.ttcn@xrxuorb.gov.cn', - 'address': '河南省 安阳市', - 'createTime': '1998-01-16 11:23:33', + 'username': 'operator_A', + 'password': '12345678', + 'realname': '潘霞', 'status': 1, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRqMK.jpg', + 'rolename': '操作员', }, { 'id': '373930342176416776', - 'username': '郝秀英', - 'gender': 1, - 'age': 17, - 'idCard': '373930342176416776', - 'email': 'x.fatyfu@udqgch.tv', - 'address': '黑龙江省 哈尔滨市', - 'createTime': '1987-09-22 06:43:43', - 'status': 1, - 'avatar': 'https://i.imgtg.com/2023/01/16/QR57a.jpg', + 'username': 'operator_B', + 'password': '12345678', + 'realname': '郝秀英', + 'status': 0, + 'rolename': '操作员', }, { 'id': '429621442453555775', - 'username': '吕洋', - 'gender': 1, - 'age': 22, - 'idCard': '429621442453555775', - 'email': 's.uirhkbc@bkkvzztn.cv', - 'address': '天津 天津市', - 'createTime': '1982-10-31 09:42:09', + 'username': 'operator_C', + 'password': '12345678', + 'realname': '吕洋', 'status': 1, - 'avatar': 'https://i.imgtg.com/2023/01/16/QR57a.jpg', + 'rolename': '操作员', }, { 'id': '387231964476618937', - 'username': '江磊', - 'gender': 1, - 'age': 28, - 'idCard': '387231964476618937', - 'email': 'c.pbov@vusetqkrnx.net', - 'address': '香港特别行政区 九龙', - 'createTime': '1999-12-24 09:06:37', + 'username': 'operator_D', + 'password': '12345678', + 'realname': '江磊', 'status': 0, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRqMK.jpg', + 'rolename': '操作员', }, { 'id': '604013348875476647', - 'username': '姚静', - 'gender': 1, - 'age': 15, - 'idCard': '604013348875476647', - 'email': 'g.nplhpxqmm@bttefv.ru', - 'address': '西藏自治区 昌都地区', - 'createTime': '2020-08-05 12:22:15', + 'username': 'operator_E', + 'password': '12345678', + 'realname': '姚静', 'status': 0, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRa0s.jpg', + 'rolename': '操作员', }, { 'id': '028222596330483467', - 'username': '龙艳', - 'gender': 1, - 'age': 17, - 'idCard': '028222596330483467', - 'email': 'e.acjsi@bbjk.ci', - 'address': '云南省 普洱市', - 'createTime': '1971-03-07 06:13:10', + 'username': 'operator_F', + 'password': '12345678', + 'realname': '龙艳', 'status': 1, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRqMK.jpg', + 'rolename': '操作员', }, { 'id': '739427478368274267', - 'username': '武涛', - 'gender': 1, - 'age': 18, - 'idCard': '739427478368274267', - 'email': 'x.hlwyeply@bcvejqss.bt', - 'address': '香港特别行政区 香港岛', - 'createTime': '1975-09-27 01:24:19', + 'username': 'operator_G', + 'password': '12345678', + 'realname': '武涛', 'status': 1, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRa0s.jpg', + 'rolename': '操作员', }, { 'id': '448686878612127243', - 'username': '孙芳', - 'gender': 1, - 'age': 17, - 'idCard': '448686878612127243', - 'email': 'j.cmwtpc@xovygkdk.sc', - 'address': '云南省 西双版纳傣族自治州', - 'createTime': '1987-04-22 14:09:59', + 'username': 'operator_H', + 'password': '12345678', + 'realname': '孙芳', 'status': 0, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRBHS.jpg', + 'rolename': '操作员', }, { 'id': '448686878612127244', - 'username': '孙芳1', - 'gender': 1, - 'age': 17, - 'idCard': '448686878612127243', - 'email': 'j.cmwtpc@xovygkdk.sc', - 'address': '云南省 西双版纳傣族自治州', - 'createTime': '1987-04-22 14:09:59', + 'username': 'operator_I', + 'password': '12345678', + 'realname': '孙芳1', 'status': 0, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRBHS.jpg', + 'rolename': '操作员', }, { 'id': '448686878612127245', - 'username': '孙芳2', - 'gender': 1, - 'age': 17, - 'idCard': '448686878612127243', - 'email': 'j.cmwtpc@xovygkdk.sc', - 'address': '云南省 西双版纳傣族自治州', - 'createTime': '1987-04-22 14:09:59', - 'status': 0, - 'avatar': 'https://i.imgtg.com/2023/01/16/QRBHS.jpg', + 'username': 'operator_J', + 'password': '12345678', + 'realname': '孙芳2', + 'status': 1, + 'rolename': '操作员', }, ] diff --git a/frontend/src/views/authority/role/components/permissionUnit.vue b/frontend/src/views/authority/role/components/permissionUnit.vue index ba79556..fb5a0df 100644 --- a/frontend/src/views/authority/role/components/permissionUnit.vue +++ b/frontend/src/views/authority/role/components/permissionUnit.vue @@ -1,8 +1,8 @@