From d619dcb268746c73ead3d7f0a3bbda2a49b88b60 Mon Sep 17 00:00:00 2001 From: YuanHuakk <1751826683@qq.com> Date: Thu, 7 Mar 2024 18:58:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(custom):=20=E5=A2=9E=E5=8A=A0=E6=A0=B8?= =?UTF-8?q?=E9=94=80=E4=BA=BA=E5=91=98=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sys/verify/index.vue | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/views/sys/verify/index.vue b/src/views/sys/verify/index.vue index f6b1fb8..87a2506 100644 --- a/src/views/sys/verify/index.vue +++ b/src/views/sys/verify/index.vue @@ -28,7 +28,6 @@ const columns = ref([ slot: 'action', align: 'center', render: (row) => { - console.log(row) return [ h( NButton, @@ -112,6 +111,7 @@ const addUser = (type, row = {}) => { id: row.uid, url: row.avatarUrl, name: row.nickName, + pres: JSON.parse(row.permission), } } showModal.value = true @@ -124,6 +124,12 @@ const model = ref({ url: '', id: null, name: '', + pres: { + dd: false, + tj: false, + hx: false, + tx: false, + }, }) const search = async () => { @@ -135,6 +141,12 @@ const search = async () => { id: res.data.data.uid, url: res.data.data.avatarUrl, name: res.data.data.nickName, + pres: { + dd: false, + tj: false, + hx: false, + tx: false, + }, } } @@ -142,6 +154,7 @@ const submit = async () => { if (!model.value.id) return $message.error('请绑定核销人员') const res = await api.bindUser({ uid: model.value.id, + permission: JSON.stringify(model.value.pres), }) $message.success(res.msg) clear() @@ -153,6 +166,12 @@ const clear = () => { url: '', id: null, name: '', + pres: { + dd: false, + tj: false, + hx: false, + tx: false, + }, } showModal.value = false get_list() @@ -206,9 +225,20 @@ const delVerifyUser = async (row) => {
{{ model.name }}
-
+
+ + + + + + + + + + + +
提交