diff --git a/src/api/system/role.js b/src/api/system/role.js index 05d2a59f..60d11b0c 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -44,11 +44,7 @@ export function updateRole(data) { } // 角色状态修改 -export function changeRoleStatus(id, status) { - const data = { - id, - status - } +export function changeRoleStatus(data) { return request({ url: '/system/role/update-status', method: 'put', diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 62a875b6..e4154b80 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -23,7 +23,7 @@ const permission = { state.topbarRouters = routes }, SET_SIDEBAR_ROUTERS: (state, routes) => { - console.log('==SET_SIDEBAR_ROUTERS==:',routes) + // console.log('==SET_SIDEBAR_ROUTERS==:',routes) state.sidebarRouters = routes }, }, diff --git a/src/views/equipment/base/inspection/items/index.vue b/src/views/equipment/base/inspection/items/index.vue index fbf01d64..be5171a7 100644 --- a/src/views/equipment/base/inspection/items/index.vue +++ b/src/views/equipment/base/inspection/items/index.vue @@ -28,7 +28,6 @@ import moment from 'moment'; import basicPageMixin from '@/mixins/lb/basicPageMixin'; import { deleteProgramTypeData } from '@/api/equipment/base/maintain/items' import showDetail from './showDetail.vue' -import { publicFormatter } from '@/utils/dict'; export default { name: 'PlanConfig', diff --git a/src/views/mall/promotion/couponTemplate/index.vue b/src/views/mall/promotion/couponTemplate/index.vue index db81ab3c..ffdbb920 100644 --- a/src/views/mall/promotion/couponTemplate/index.vue +++ b/src/views/mall/promotion/couponTemplate/index.vue @@ -176,7 +176,6 @@ import { } from "@/utils/constants"; import { getSpuSimpleList } from "@/api/mall/product/spu"; import { parseTime } from "@/utils/ruoyi"; -import {changeRoleStatus} from "@/api/system/role"; export default { name: "PromotionCouponTemplate", diff --git a/src/views/system/components/statusBtn2.vue b/src/views/system/components/statusBtn2.vue index 3a4ab297..ed3b490f 100644 --- a/src/views/system/components/statusBtn2.vue +++ b/src/views/system/components/statusBtn2.vue @@ -5,6 +5,7 @@ diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 30b611c8..15fbfa6c 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -39,7 +39,7 @@ @confirm="handleConfirm" :before-close="handleCancel" width="50%"> - + @@ -297,7 +297,7 @@ const tableProps = [ prop: 'dept', label: '部门', minWidth: 120, - filter: (item) => item.name || '', + filter: (item) => item?.name || '', showOverflowtooltip: true, }, { @@ -496,6 +496,9 @@ export default { username: [ { required: true, message: '用户名称不能为空', trigger: 'blur' }, ], + deptId: [ + { required: true, message: '归属部门不能为空', trigger: 'change' }, + ], nickname: [ { required: true, message: '用户昵称不能为空', trigger: 'blur' }, ],