From c5ae8971e7506c838fe2dc39ede5afd9c9d696ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Fri, 7 Jul 2023 23:24:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=88=86=E9=A1=B5=E4=B8=8B=E6=8B=89=E6=A1=86=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8F=82=E6=95=B0=E5=B1=9E=E6=80=A7=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86=E4=B8=A4=E4=B8=AA=E5=9C=B0?= =?UTF-8?q?=E6=96=B9=E7=9A=84=E5=8F=82=E6=95=B0=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/components/XnPageSelect/index.vue | 2 +- snowy-admin-web/src/views/biz/user/form.vue | 7 ++----- snowy-admin-web/src/views/sys/user/form.vue | 7 ++----- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/snowy-admin-web/src/components/XnPageSelect/index.vue b/snowy-admin-web/src/components/XnPageSelect/index.vue index f1f67b8d..2907cbaa 100644 --- a/snowy-admin-web/src/components/XnPageSelect/index.vue +++ b/snowy-admin-web/src/components/XnPageSelect/index.vue @@ -58,7 +58,7 @@ }) // 请求数据 - const onPage = (param) => { + const onPage = (param = {}) => { if (props.pageFunction) { initParams.value = param initParams.value.size = props.pageSize diff --git a/snowy-admin-web/src/views/biz/user/form.vue b/snowy-admin-web/src/views/biz/user/form.vue index 16519683..343366e5 100644 --- a/snowy-admin-web/src/views/biz/user/form.vue +++ b/snowy-admin-web/src/views/biz/user/form.vue @@ -426,10 +426,7 @@ orgId: orgId } xnPositionPageSelectRef.value.onPage(xnPositionPageSelectParam) - const xnUserPageSelectParam = { - orgId: orgId - } - xnUserPageSelectRef.value.onPage(xnUserPageSelectParam) + xnUserPageSelectRef.value.onPage() // 此类型代表选择的时候重置后面的职位 if (type === 0) { formData.value.positionId = undefined @@ -520,7 +517,7 @@ } formLoading.value = true bizUserApi - .submitForm(formDatas, !formDatas.id) + .submitForm(formDatas, formDatas.id) .then(() => { onClose() emit('successful') diff --git a/snowy-admin-web/src/views/sys/user/form.vue b/snowy-admin-web/src/views/sys/user/form.vue index 1f835a7f..9f56190e 100644 --- a/snowy-admin-web/src/views/sys/user/form.vue +++ b/snowy-admin-web/src/views/sys/user/form.vue @@ -429,10 +429,7 @@ orgId: orgId } xnPositionPageSelectRef.value.onPage(xnPositionPageSelectParam) - const xnUserPageSelectParam = { - orgId: orgId - } - xnUserPageSelectRef.value.onPage(xnUserPageSelectParam) + xnUserPageSelectRef.value.onPage() // 此类型代表选择的时候重置后面的职位 if (type === 0) { formData.value.positionId = undefined @@ -524,7 +521,7 @@ } formLoading.value = true userApi - .submitForm(formDatas, !formDatas.id) + .submitForm(formDatas, formDatas.id) .then(() => { onClose() emit('successful')