diff --git a/src/api/system/dept/index.js b/src/api/system/dept/index.js index f9d3ff1..8e7dd20 100644 --- a/src/api/system/dept/index.js +++ b/src/api/system/dept/index.js @@ -1,6 +1,6 @@ import { defAxios as request } from '@/utils/http' /** - * 获取部门分页数据接口 + * 获取部门管理数据接口 * @returns 部门分页 */ export function getDeptList(params) { diff --git a/src/views/system/dept/components/DeptModal.vue b/src/views/system/dept/components/DeptModal.vue index d610d81..7b10d78 100644 --- a/src/views/system/dept/components/DeptModal.vue +++ b/src/views/system/dept/components/DeptModal.vue @@ -14,75 +14,39 @@ :on-positive-click="handleConfirm" :on-negative-click="handleClose" > - - - - + - + - + - - - - + - - - - - - 正常 - 禁用 - + + diff --git a/src/views/system/menu/components/MenuModal.vue b/src/views/system/menu/components/MenuModal.vue index 554a607..41c5507 100644 --- a/src/views/system/menu/components/MenuModal.vue +++ b/src/views/system/menu/components/MenuModal.vue @@ -12,8 +12,8 @@ @@ -128,6 +128,7 @@ export default defineComponent({ }], sort: [{ required: true, + type: 'number', message: '请输入排序号', trigger: 'blur' }] @@ -192,7 +193,7 @@ export default defineComponent({ methods: { // 表单提交 handleConfirm() { - const type = this.data.title ? 'add' : 'edit' + const type = this.data.title ? 'edit' : 'add' this.$refs.formRef.validate((errors) => { if (!errors) { if (type === 'add') { diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 7a4ce6b..a706c23 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -10,7 +10,7 @@ :request="loadDataTable" > @@ -217,7 +217,7 @@ export default { } // 打开新增弹框 - function handlleRoleAdd() { + function handleModal() { data.modalShow = true data.rowData = {} } @@ -258,7 +258,7 @@ export default { tableRef, loadDataTable, handleSearch, - handlleRoleAdd, + handleModal, deleteSingle } }