浏览代码

发送日志

zhongxiaoyu 3 年之前
父节点
当前提交
da1310b0c4

+ 5 - 1
src/api/Account.js

@@ -1,7 +1,7 @@
 /*
  * @Author: Badguy
  * @Date: 2022-02-14 09:37:11
- * @LastEditTime: 2022-03-29 18:15:11
+ * @LastEditTime: 2022-03-30 11:16:24
  * @LastEditors: your name
  * @Description: 账户管理api
  * have a nice day!
@@ -25,6 +25,7 @@ export function ChangeUserStatus (params) {
     method: 'post',
     data: params,
     msg: '账号状态变更',
+    Ident: 'userlist_btn_status_change',
     proxy: true
   })
 }
@@ -36,6 +37,7 @@ export function delAccount (params) {
     method: 'post',
     data: params,
     msg: '账号删除',
+    Ident: 'userlist_btn_del',
     proxy: true
   })
 }
@@ -47,6 +49,7 @@ export function addAccount (params) {
     method: 'post',
     data: params,
     msg: '账号新增',
+    Ident: 'userlist_btn_add',
     proxy: true
   })
 }
@@ -68,6 +71,7 @@ export function editAccount (params) {
     method: 'post',
     data: params,
     msg: '账号编辑',
+    Ident: 'userupdate_btn_save',
     proxy: true
   })
 }

+ 25 - 8
src/api/AccountGroup.js

@@ -1,6 +1,15 @@
+/*
+ * @Author: Badguy
+ * @Date: 2022-02-14 09:37:11
+ * @LastEditTime: 2022-03-30 10:42:31
+ * @LastEditors: your name
+ * @Description: 账号组|岗位路由表
+ * have a nice day!
+ */
 import request from '@/utils/request'
+const accountGroupType = PLATFROM_CONFIG.accountGroupType
 
-// 岗位树查询
+// 账号组|岗位树查询
 export function GetGroupTree (params) {
   return request({
     url: '/api/fs4a/GetGroupTree/v1',
@@ -10,27 +19,31 @@ export function GetGroupTree (params) {
   })
 }
 
-//岗位新增
+//账号组|岗位新增
 export function SaveGroup (params) {
   return request({
     url: '/api/fs4a/SaveGroup/v1',
     method: 'post',
     data: params,
+    msg: `${accountGroupType}新增`,
+    Ident: 'group_btn_save',
     proxy: true
   })
 }
 
-//岗位删除
+//账号组|岗位删除
 export function DeleteGroup (params) {
   return request({
     url: '/api/fs4a/DeleteGroup/v1',
     method: 'post',
     data: params,
+    msg: `${accountGroupType}删除`,
+    Ident: 'grouptree_btn_del_group',
     proxy: true
   })
 }
 
-//岗位详情
+//账号组|岗位详情
 export function GetGroupDetails (params) {
   return request({
     url: '/api/fs4a/GetGroupDetails/v1',
@@ -40,17 +53,19 @@ export function GetGroupDetails (params) {
   })
 }
 
-//岗位修改状态
+//账号组|岗位修改状态
 export function ChangeGroupStatus (params) {
   return request({
     url: '/api/fs4a/ChangeGroupStatus/v1',
     method: 'post',
     data: params,
+    msg: `${accountGroupType}状态变更`,
+    Ident: 'grouptree_btn_state_switch',
     proxy: true
   })
 }
 
-// 根据岗位获取权限树
+// 根据账号组|岗位获取权限树
 export function GetAuthTreeByGroup (params) {
   return request({
     url: '/api/fs4a/GetAuthTreeByGroup/v1',
@@ -60,17 +75,19 @@ export function GetAuthTreeByGroup (params) {
   })
 }
 
-// 修改保存岗位
+// 修改保存账号组|岗位
 export function EditGroup (params) {
   return request({
     url: '/api/fs4a/EditGroup/v1',
     method: 'post',
     data: params,
+    msg: `${accountGroupType}编辑`,
+    Ident: 'group_btn_edit',
     proxy: true
   })
 }
 
-//根据岗位获取角色
+//根据账号组|岗位获取角色
 export function GetRoleByGroup (params) {
   return request({
     url: '/api/fs4a/GetRoleByGroup/v1',

+ 20 - 2
src/api/apiAuthority.js

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-12-21 09:22:04
- * @LastEditTime: 2022-03-29 18:17:52
+ * @LastEditTime: 2022-03-30 10:53:51
  * @LastEditors: your name
  * @Description: 权限项管理
  * @FilePath: \Foshan4A2.0\src\api\apiAuthority.js
@@ -24,6 +24,7 @@ export function SaveApp (params) {
     url: '/api/fs4a/SaveApp/v1',
     method: 'post',
     data: params,
+    msg: '应用新增',
     proxy: true
   })
 }
@@ -44,6 +45,7 @@ export function EditApp (params) {
     url: '/api/fs4a/EditApp/v1',
     method: 'post',
     data: params,
+    msg: '应用编辑',
     proxy: true
   })
 }
@@ -65,6 +67,7 @@ export function DeleteApp (params) {
     url: '/api/fs4a/DeleteApp/v1',
     method: 'post',
     data: params,
+    msg: '应用删除',
     proxy: true
   })
 }
@@ -76,6 +79,8 @@ export function EditAuth (params) {
     url: '/api/fs4a/EditAuth/v1',
     method: 'post',
     data: params,
+    msg: '权限项编辑',
+    Ident: 'appupdate_box_save',
     proxy: true
   })
 }
@@ -106,6 +111,8 @@ export function SaveAuth (params) {
     url: '/api/fs4a/SaveAuth/v1',
     method: 'post',
     data: params,
+    msg: '权限项新增',
+    Ident: 'authtree_btn_add_auth',
     proxy: true
   })
 }
@@ -116,6 +123,8 @@ export function DeleteAuth (params) {
     url: '/api/fs4a/DeleteAuth/v1',
     method: 'post',
     data: params,
+    msg: '权限项删除',
+    Ident: 'authtree_btn_del_auth',
     proxy: true
   })
 }
@@ -126,7 +135,8 @@ export function UpdateAuthStatus (params) {
     url: '/api/fs4a/UpdateAuthStatus/v1',
     method: 'post',
     data: params,
-    msg: '权限状态变更',
+    msg: '权限项状态变更',
+    Ident: 'authtree_btn_state_switch',
     proxy: true
   })
 }
@@ -137,6 +147,8 @@ export function SaveRole (params) {
     url: '/api/fs4a/SaveRole/v1',
     method: 'post',
     data: params,
+    msg: '角色新增',
+    Ident: 'role_add',
     proxy: true
   })
 }
@@ -187,6 +199,8 @@ export function DeleteRole (params) {
     url: '/api/fs4a/DeleteRole/v1',
     method: 'post',
     data: params,
+    msg: '角色删除',
+    Ident: 'role_delete',
     proxy: true
   })
 }
@@ -197,6 +211,8 @@ export function EditRole (params) {
     url: '/api/fs4a/EditRole/v1',
     method: 'post',
     data: params,
+    msg: '角色编辑',
+    Ident: 'role_edit_save',
     proxy: true
   })
 }
@@ -207,6 +223,8 @@ export function UpdateStatus (params) {
     url: '/api/fs4a/UpdateStatus/v1',
     method: 'post',
     data: params,
+    msg: '角色状态变更',
+    Ident: 'role_state_switch',
     proxy: true
   })
 }

+ 22 - 14
src/api/jobApi.js

@@ -1,7 +1,7 @@
 import request from '@/utils/request'
 
 //岗位列表查询
-export function GetJobList (params) {
+export function GetJobList(params) {
   return request({
     url: '/api/fs4a/GetJobList/v1',
     method: 'post',
@@ -10,71 +10,79 @@ export function GetJobList (params) {
 }
 
 //新增岗位
-export function SaveJob (params) {
+export function SaveJob(params) {
   return request({
     url: '/api/fs4a/SaveJob/v1',
     method: 'post',
     data: params,
+    msg: '岗位新增',
+    Ident: 'job_btn_save'
   })
 }
 //修改岗位状态
-export function ChangeJobStatus (params) {
+export function ChangeJobStatus(params) {
   return request({
     url: '/api/fs4a/ChangeJobStatus/v1',
     method: 'post',
     data: params,
+    msg: '岗位状态变更',
+    Ident: 'joblist_btn_state_switch'
   })
 }
 
 //编辑岗位
-export function EditJob (params) {
+export function EditJob(params) {
   return request({
     url: '/api/fs4a/EditJob/v1',
     method: 'post',
     data: params,
+    msg: '岗位编辑',
+    Ident: 'job_btn_edit'
   })
 }
 //删除岗位
-export function DeleteJob (params) {
+export function DeleteJob(params) {
   return request({
     url: '/api/fs4a/DeleteJob/v1',
     method: 'post',
     data: params,
+    msg: '岗位删除',
+    Ident: 'joblist_btn_del_job'
   })
 }
 
 //根据岗位获取权限
-export function GetAuthTreeByJob (params) {
+export function GetAuthTreeByJob(params) {
   return request({
     url: '/api/fs4a/GetAuthTreeByJob/v1',
     method: 'post',
-    data: params,
+    data: params
   })
 }
 
 //岗位详情
-export function GetJobDetails (params) {
+export function GetJobDetails(params) {
   return request({
     url: '/api/fs4a/GetJobDetails/v1',
     method: 'post',
-    data: params,
+    data: params
   })
 }
 
 //根据岗位获取角色
-export function GetRoleByJob (params) {
+export function GetRoleByJob(params) {
   return request({
     url: '/api/fs4a/GetRoleByJob/v1',
     method: 'post',
-    data: params,
+    data: params
   })
 }
 
 //根据组织查询职员列表
-export function GetOfficerListByOrganId (params) {
+export function GetOfficerListByOrganId(params) {
   return request({
     url: '/api/fs4a/GetOfficerListByOrganId/v1',
     method: 'post',
-    data: params,
+    data: params
   })
-}
+}

+ 146 - 162
src/api/postInterface.js

@@ -1,203 +1,187 @@
 import request from '@/utils/request'
 
 //岗位列表查询
-export function postList (params) {
-    return request({
-        url: '/api/fs4a/GetJobList/v1',
-        method: 'post',
-        data: params
-    })
+export function postList(params) {
+  return request({
+    url: '/api/fs4a/GetJobList/v1',
+    method: 'post',
+    data: params
+  })
 }
 
 //组织树查询
-export function tissueTreeList (params) {
-    return request({
-        url: '/api/fs4a/GetOrganTree/v1',
-        method: 'post',
-        data: params,
-    })
+export function tissueTreeList(params) {
+  return request({
+    url: '/api/fs4a/GetOrganTree/v1',
+    method: 'post',
+    data: params
+  })
 }
-//组织树状态
-export function tissueTreeStart (params) {
-    return request({
-        url: '/api/fs4a/ChangeOrganStatus/v1',
-        method: 'post',
-        data: params,
-    })
-}
-//职员查询
-export function staffList (params) {
-    return request({
-        url: '/api/fs4a/GetOfficerList/v1',
-        method: 'post',
-        data: params,
-    })
+
+//新增组织
+export function newOrgan(params) {
+  return request({
+    url: '/api/fs4a/SaveOrgan/v1',
+    method: 'post',
+    data: params,
+    msg: '组织新增',
+    Ident: 'organ_btn_save'
+  })
 }
 
-//职员状态
-export function staffStart (params) {
-    return request({
-        url: '/api/fs4a/ChangeOfficerStatus/v1',
-        method: 'post',
-        data: params,
-    })
+//编辑组织
+export function newOrganmod(params) {
+  return request({
+    url: '/api/fs4a/EditOrgan/v1',
+    method: 'post',
+    data: params,
+    msg: '组织编辑',
+    Ident: 'organ_btn_edit'
+  })
 }
 
-//删除职员
-export function staffListele (params) {
-    return request({
-        url: '/api/fs4a/DeleteOfficer/v1',
-        method: 'post',
-        data: params,
-    })
-}
-//新增岗位
-export function newPostUp (params) {
-    return request({
-        url: '/api/fs4a/SaveJob/v1',
-        method: 'post',
-        data: params,
-    })
-}
-//岗位状态
-export function PostSatrt (params) {
-    return request({
-        url: '/api/fs4a/ChangeJobStatus/v1',
-        method: 'post',
-        data: params,
-    })
-}
-
-//编辑岗位
-export function PostSatrtmod (params) {
-    return request({
-        url: '/api/fs4a/EditJob/v1',
-        method: 'post',
-        data: params,
-    })
-}
-//删除岗位
-export function PostUpele (params) {
-    return request({
-        url: '/api/fs4a/DeleteJob/v1',
-        method: 'post',
-        data: params,
-    })
+//组织删除
+export function organele(params) {
+  return request({
+    url: '/api/fs4a/DeleteOrgan/v1',
+    method: 'post',
+    data: params,
+    msg: '组织删除',
+    Ident: 'organtree_btn_del_organ'
+  })
 }
 
+//组织树状态
+export function tissueTreeStart(params) {
+  return request({
+    url: '/api/fs4a/ChangeOrganStatus/v1',
+    method: 'post',
+    data: params,
+    msg: '组织状态变更',
+    Ident: 'organtree_btn_state_switch'
+  })
+}
 
-//新增组织
-export function newOrgan (params) {
-    return request({
-        url: '/api/fs4a/SaveOrgan/v1',
-        method: 'post',
-        data: params,
-    })
+//组织详情
+export function newOrganall(params) {
+  return request({
+    url: '/api/fs4a/GetOrganDetails/v1',
+    method: 'post',
+    data: params
+  })
 }
 
-//编辑组织
-export function newOrganmod (params) {
-    return request({
-        url: '/api/fs4a/EditOrgan/v1',
-        method: 'post',
-        data: params,
-    })
+//职员查询
+export function staffList(params) {
+  return request({
+    url: '/api/fs4a/GetOfficerList/v1',
+    method: 'post',
+    data: params
+  })
 }
 
+//新增职员
+export function newstaff(params) {
+  return request({
+    url: '/api/fs4a/SaveOfficer/v1',
+    method: 'post',
+    data: params,
+    msg: '职员新增',
+    Ident: 'officer_btn_save'
+  })
+}
 
-//组织详情
-export function newOrganall (params) {
-    return request({
-        url: '/api/fs4a/GetOrganDetails/v1',
-        method: 'post',
-        data: params,
-    })
+//编辑职员
+export function newstaffmod(params) {
+  return request({
+    url: '/api/fs4a/EditOfficer/v1',
+    method: 'post',
+    data: params,
+    msg: '职员编辑',
+    Ident: 'officer_btn_edit'
+  })
 }
 
+//删除职员
+export function staffListele(params) {
+  return request({
+    url: '/api/fs4a/DeleteOfficer/v1',
+    method: 'post',
+    data: params,
+    msg: '职员删除',
+    Ident: 'officerlist_btn_del_officer'
+  })
+}
 
-//新增职员
-export function newstaff (params) {
-    return request({
-        url: '/api/fs4a/SaveOfficer/v1',
-        method: 'post',
-        data: params,
-    })
+//职员状态
+export function staffStart(params) {
+  return request({
+    url: '/api/fs4a/ChangeOfficerStatus/v1',
+    method: 'post',
+    data: params,
+    msg: '职员状态变更',
+    Ident: 'officerlist_btn_state_switch'
+  })
 }
+
 //职员详情
-export function Staffdetails (params) {
-    return request({
-        url: '/api/fs4a/GetOfficerDetails/v1',
-        method: 'post',
-        data: params,
-    })
-}
-//编辑职员
-export function newstaffmod (params) {
-    return request({
-        url: '/api/fs4a/EditOfficer/v1',
-        method: 'post',
-        data: params,
-    })
+export function Staffdetails(params) {
+  return request({
+    url: '/api/fs4a/GetOfficerDetails/v1',
+    method: 'post',
+    data: params
+  })
 }
 
 //根据组织获取权限
-export function organizationUptree (params) {
-    return request({
-        url: '/api/fs4a/GetAuthTreeByOrgan/v1',
-        method: 'post',
-        data: params,
-    })
+export function organizationUptree(params) {
+  return request({
+    url: '/api/fs4a/GetAuthTreeByOrgan/v1',
+    method: 'post',
+    data: params
+  })
 }
 //根据岗位获取权限
-export function postUptree (params) {
-    return request({
-        url: '/api/fs4a/GetAuthTreeByJob/v1',
-        method: 'post',
-        data: params,
-    })
+export function postUptree(params) {
+  return request({
+    url: '/api/fs4a/GetAuthTreeByJob/v1',
+    method: 'post',
+    data: params
+  })
 }
 
 //岗位详情
-export function jbdetails (params) {
-    return request({
-        url: '/api/fs4a/GetJobDetails/v1',
-        method: 'post',
-        data: params,
-    })
+export function jbdetails(params) {
+  return request({
+    url: '/api/fs4a/GetJobDetails/v1',
+    method: 'post',
+    data: params
+  })
 }
 
 //根据岗位获取角色
-export function jbdetpop (params) {
-    return request({
-        url: '/api/fs4a/GetRoleByJob/v1',
-        method: 'post',
-        data: params,
-    })
+export function jbdetpop(params) {
+  return request({
+    url: '/api/fs4a/GetRoleByJob/v1',
+    method: 'post',
+    data: params
+  })
 }
 
 //组织获取角色
-export function organpop (params) {
-    return request({
-        url: '/api/fs4a/GetRoleByOrgan/v1',
-        method: 'post',
-        data: params,
-    })
-}
-
-//组织删除
-export function organele (params) {
-    return request({
-        url: '/api/fs4a/DeleteOrgan/v1',
-        method: 'post',
-        data: params,
-    })
+export function organpop(params) {
+  return request({
+    url: '/api/fs4a/GetRoleByOrgan/v1',
+    method: 'post',
+    data: params
+  })
 }
 
 //根据组织查询岗位列表
-export function organgitpost (params) {
-    return request({
-        url: '/api/fs4a/GetJobListByOrgan/v1',
-        method: 'post',
-        data: params,
-    })
-}
+export function organgitpost(params) {
+  return request({
+    url: '/api/fs4a/GetJobListByOrgan/v1',
+    method: 'post',
+    data: params
+  })
+}

+ 8 - 0
src/api/systemConfiguration.js

@@ -25,6 +25,8 @@ export function SaveTac (params) {
     url: '/api/fs4a/SaveTac/v1',
     method: 'post',
     data: params,
+    msg: '登录策略新增',
+    Ident: 'logintac_btn_add',
     proxy: true
   })
 }
@@ -35,6 +37,8 @@ export function EditTac (params) {
     url: '/api/fs4a/EditTac/v1',
     method: 'post',
     data: params,
+    msg: '登录策略编辑',
+    Ident: 'logintac_btn_edit',
     proxy: true
   })
 }
@@ -45,6 +49,8 @@ export function DeleteTac (params) {
     url: '/api/fs4a/DeleteTac/v1',
     method: 'post',
     data: params,
+    msg: '登录策略删除',
+    Ident: 'logintac_btn_delete',
     proxy: true
   })
 }
@@ -66,6 +72,8 @@ export function SaveSystemSet (params) {
     url: '/api/fs4a/SaveSystemSet/v1',
     method: 'post',
     data: params,
+    msg: '系统设置保存',
+    Ident: 'system_btn_save',
     proxy: true
   })
 }

+ 0 - 10
src/api/table.js

@@ -1,10 +0,0 @@
-import request from '@/utils/request'
-
-
-export function GetCheckCode(params) {
-  return request({
-    url: '/vue-admin-template/table/list',
-    method: 'get',
-    params
-  })
-}

+ 0 - 24
src/api/user.js

@@ -1,24 +0,0 @@
-import request from '@/utils/request'
-
-export function login(data) {
-  return request({
-    url: '/vue-admin-template/user/login',
-    method: 'post',
-    data: data
-  })
-}
-
-export function getInfo(token) {
-  return request({
-    url: '/vue-admin-template/user/info',
-    method: 'get',
-    params: { token }
-  })
-}
-
-export function logout() {
-  return request({
-    url: '/vue-admin-template/user/logout',
-    method: 'post'
-  })
-}

+ 18 - 17
src/utils/request.js

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2022-01-06 09:45:17
- * @LastEditTime: 2022-03-29 18:11:10
+ * @LastEditTime: 2022-03-30 11:44:39
  * @LastEditors: your name
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: \vue-admin-template\src\utils\request.js
@@ -10,6 +10,7 @@ import axios from 'axios'
 import { MessageBox, Message } from 'element-ui'
 import store from '@/store'
 import { getToken, getUserId, getCodeToken } from '@/utils/auth'
+import { parseTime } from '@/utils'
 import { Loading } from 'element-ui'
 // create an axios instance
 const service = axios.create({
@@ -46,13 +47,9 @@ service.interceptors.request.use(
         text: '数据加载中'
       })
     }
-    if (!config.url.includes('/api/fs4a/sendLog') && config.msg) {
+    if (!config.url.includes('/api/fs4a/sendLog') && config.Ident) {
       config.metaData = {
-        beginTime: new Date(),
-        browserTag: navigator.userAgent,
-        logType: config.msg ?? '未定义操作',
-        operateIP: returnCitySN.cip,
-        operator: getUserId()
+        beginTime: parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}')
       }
     }
     return config
@@ -78,20 +75,24 @@ service.interceptors.response.use(
    */
   response => {
     const res = response.data
-    const config = response.config
-    if (!config.url.includes('/api/fs4a/sendLog') && config.msg) {
-      config.metaData = {
-        ...config.metaData,
-        endTime: new Date(),
-        data: config.data,
-        operateResult: res.returnData
-      }
+    const { metaData, url, Ident, data, msg } = response.config
+    if (!url.includes('/api/fs4a/sendLog') && Ident) {
+      Object.assign(metaData, {
+        browserTag: navigator.userAgent,
+        data: typeof data === 'string' ? JSON.parse(data) : data,
+        endTime: parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}'),
+        logType: msg ?? '未定义操作',
+        operateIP: returnCitySN.cip,
+        operateResult: res.returnData,
+        operator: getUserId(),
+        Ident: Ident
+      })
       service({
         url: '/api/fs4a/sendLog',
         method: 'post',
         data: {
-          data: [config.metaData],
-          msg: config.msg,
+          data: [metaData],
+          msg,
           type: '2'
         },
         proxy: true

+ 3 - 3
src/views/accountGroupManagement/components/accountGroupHome.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2022-01-08 09:27:43
- * @LastEditTime: 2022-03-24 10:49:51
+ * @LastEditTime: 2022-03-30 11:40:59
  * @LastEditors: your name
  * @Description: 用户组管理
  * @FilePath: \Foshan4A2.0\src\views\accountGroupManagement\components\home.vue
@@ -76,7 +76,7 @@
                         <span class="use" v-if="data.Status == '1'">启用</span>
                         <span class="unUse" v-if="data.Status != '1'">禁用</span>
                       </el-col>
-                      <el-col v-is="['grouptree_btn_state_swatch']" :span="12" v-if="data.GroupId != -1">
+                      <el-col v-is="['grouptree_btn_state_switch']" :span="12" v-if="data.GroupId != -1">
                         <el-switch active-color="#6F81BC" v-model="data.flag" @change="renderChange(data)"></el-switch>
                       </el-col>
                     </el-row>
@@ -157,7 +157,7 @@
                         <span class="use" v-if="data.Status == '1'">启用</span>
                         <span class="unUse" v-if="data.Status != '1'">禁用</span>
                       </el-col>
-                      <el-col v-is="['grouptree_btn_state_swatch']" :span="12" v-if="data.GroupId != -1">
+                      <el-col v-is="['grouptree_btn_state_switch']" :span="12" v-if="data.GroupId != -1">
                         <el-switch active-color="#6F81BC" v-model="data.flag" @click.stop.native @change="childrenRenderChange(data, index)"></el-switch>
                       </el-col>
                     </el-row>

+ 2 - 2
src/views/authorityManagement/components/authorityHome.vue

@@ -65,7 +65,7 @@
                           </div>
                           <div v-if="data.Type > 0" class="flex details">
                             <div class="details-msg">状态:<span :class="data.Status === 1 ? 'success' : 'error'">{{data.Status === 1 ? '启用' : '禁用'}}</span></div>
-                            <div v-is="['authtree_btn_state_swatch']" class="details-info">
+                            <div v-is="['authtree_btn_state_switch']" class="details-info">
                               <el-switch v-model="data.flag" @change="renderChange(data)" active-color="#6F81BC">
                               </el-switch>
                             </div>
@@ -118,7 +118,7 @@
                           </div>
                           <div v-if="data.Type > 0" class="flex details">
                             <div class="details-msg">状态:<span :class="data.Status === 1 ? 'success' : 'error'">{{data.Status === 1 ? '启用' : '禁用'}}</span></div>
-                            <div v-is="['authtree_btn_state_swatch']" class="details-info">
+                            <div v-is="['authtree_btn_state_switch']" class="details-info">
                               <el-switch v-model="data.flag" @click.stop.native @change="childrenRenderChange(data,index)" active-color="#6F81BC">
                               </el-switch>
                             </div>

+ 2 - 2
src/views/authorityManagement/components/authorityRoleHome.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2021-11-29 14:37:54
- * @LastEditTime: 2022-03-18 10:41:39
+ * @LastEditTime: 2022-03-30 10:49:19
  * @LastEditors: your name
  * @Description: 角色管理
  * @FilePath: \Foshan4A2.0\src\views\authorityManagement\components\authorityRole.vue
@@ -49,7 +49,7 @@
                   <div class="details-msg">
                     状态:<span :class="item.Status == 1 ? 'success' : 'error'">{{item.Status == 1 ? '启用' : '停用'}}</span>
                   </div>
-                  <div v-is="['role_state switch']" class="details-info">
+                  <div v-is="['role_state_switch']" class="details-info">
                     <el-switch v-model="item.isauto" @change="handleChange(item)" active-color="#6F81BC">
                     </el-switch>
                   </div>

+ 1 - 1
src/views/jobsManagement/list.vue

@@ -43,7 +43,7 @@
                 状态:<span class="used" v-if="item.Status == 1">启用</span>
                 <span class="unUsed" v-else-if="item.Status == 0">停用</span>
               </el-col>
-              <el-col v-is="['joblist_btn_state_swatch']" :span="12" class="flexLeft">
+              <el-col v-is="['joblist_btn_state_switch']" :span="12" class="flexLeft">
                 <el-switch @change="isUsedChange(item, index)" v-model="item.Flag" :active-value="true" :inactive-value="false" active-color="#6F81BC" inactive-color="#CFD6E2">
                 </el-switch>
               </el-col>

+ 2 - 2
src/views/organizationManagement/components/organizationHome.vue

@@ -95,7 +95,7 @@
                         <span class="use" v-if="data.Status == '1'">启用</span>
                         <span class="unUse" v-if="data.Status != '1'">禁用</span>
                       </el-col>
-                      <el-col v-is="['organtree_btn_state_swatch']" :span="12" v-if="data.OrganId != -1">
+                      <el-col v-is="['organtree_btn_state_switch']" :span="12" v-if="data.OrganId != -1">
                         <el-switch active-color="#6F81BC" v-model="data.flag" @change="renderChange(data)"></el-switch>
                       </el-col>
                     </el-row>
@@ -172,7 +172,7 @@
                         <span class="use" v-if="data.Status == '1'">启用</span>
                         <span class="unUse" v-if="data.Status != '1'">禁用</span>
                       </el-col>
-                      <el-col v-is="['organtree_btn_state_swatch']" :span="12" v-if="data.OrganId != -1">
+                      <el-col v-is="['organtree_btn_state_switch']" :span="12" v-if="data.OrganId != -1">
                         <el-switch active-color="#6F81BC" v-model="data.flag" @click.stop.native @change="childrenRenderChange(data, index)"></el-switch>
                       </el-col>
                     </el-row>

+ 1 - 1
src/views/staffManagement/compontents/staffHome.vue

@@ -50,7 +50,7 @@
                     <div class="details-msg">
                       状态:<span :class="item.Status == 1 ? 'success' : 'error'">{{item.Status == 1 ? '启用' : '停用'}}</span>
                     </div>
-                    <div v-is="['officerlist_btn_state_swatch']" class="details-info">
+                    <div v-is="['officerlist_btn_state_switch']" class="details-info">
                       <el-switch v-model="item.isauto" @change="handleChange(item)" active-color="#6F81BC">
                       </el-switch>
                     </div>