From bcd60063f440e295e5590b73cd775612fd780115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E8=8F=B2?= <1622041228@qq.com> Date: Fri, 27 May 2022 16:02:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=A2=9E=E5=88=A0=E6=94=B9=E6=9F=A5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept/index.js | 2 +- .../system/dept/components/DeptModal.vue | 151 ++++++------------ src/views/system/dept/index.vue | 108 +++++++++---- .../system/menu/components/MenuModal.vue | 5 +- src/views/system/menu/index.vue | 6 +- 5 files changed, 129 insertions(+), 143 deletions(-) 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 } }