From c88cf51bbf981349719ea32484c6b564cd57d051 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 17 Apr 2024 14:30:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/evaluation/evaluationUpload.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index f756f9b1..ebc804e7 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -1727,11 +1727,14 @@ import {downLoadZip} from "@/utils/zipdownload"; state.permissionId = '' state.checkclick = [] } - const getByUserId = async () => { - await getByUserId().then(res=>{ + // const getByUserIds = async () => { + // const roleCode = userInfo.value + // const roleId = roleCode.roleList.find(item=>item.roleCode=='quiz-admin') || null + // const isQuizAdmin = roleId ? 1 : 0 + // await getByUserId({loginId:roleCode.userId,roleId,isQuizAdmin}).then(res=>{ - }) - } + // }) + // } const powerTrue = async () => { state.powerStatus.permission = state.checkclick.join(",") if(state.permissionId){ @@ -1748,6 +1751,7 @@ import {downLoadZip} from "@/utils/zipdownload"; message.success('启用成功') listData() saveListItem() + getByUserIds() } }) } @@ -1785,7 +1789,7 @@ import {downLoadZip} from "@/utils/zipdownload"; powerSetting, of_power, powerTrue, - getByUserId, + getByUserIds, textDeleteAdd, searchStatusVal2, serchList, From 1973d3ed05c664a138997a1aa8766836c07dadf9 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 17 Apr 2024 14:37:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9C=80=E6=96=B0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/evaluation/evaluationUpload.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index ebc804e7..86b879f2 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -1727,14 +1727,14 @@ import {downLoadZip} from "@/utils/zipdownload"; state.permissionId = '' state.checkclick = [] } - // const getByUserIds = async () => { - // const roleCode = userInfo.value - // const roleId = roleCode.roleList.find(item=>item.roleCode=='quiz-admin') || null - // const isQuizAdmin = roleId ? 1 : 0 - // await getByUserId({loginId:roleCode.userId,roleId,isQuizAdmin}).then(res=>{ + const getByUserIds = async () => { + // const roleCode = userInfo.value + // const roleId = roleCode.roleList.find(item=>item.roleCode=='quiz-admin') || null + // const isQuizAdmin = roleId ? 1 : 0 + // await getByUserId({loginId:roleCode.userId,roleId,isQuizAdmin}).then(res=>{ - // }) - // } + // }) + } const powerTrue = async () => { state.powerStatus.permission = state.checkclick.join(",") if(state.permissionId){ From 8f38d7b9b20fde2d7d54f9ae58791a1d82c1d222 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 17 Apr 2024 17:26:54 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B5=8B=E8=AF=84platform=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/evaluation/evaluationUpload.vue | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index 86b879f2..e795e15c 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -878,6 +878,7 @@ import {downLoadZip} from "@/utils/zipdownload"; bg_remarks: false, checkclick: [], permissionId:'', + perWorkNum: '', filesList:[], tableData:[], tableData1:[], @@ -1289,6 +1290,7 @@ import {downLoadZip} from "@/utils/zipdownload"; listData() } }) + getByUserIds(record.workNum) } const textDelete = (record) => { dialog({ @@ -1301,12 +1303,14 @@ import {downLoadZip} from "@/utils/zipdownload"; listData() } }) + getByUserIds(record.workNum) } }) } const updateAuthority = (record) => { state.bg_power = true state.permissionId = record.id + state.perWorkNum = record.workNum if(record.permission){ state.checkclick = record.permission.split(',') } @@ -1725,21 +1729,22 @@ import {downLoadZip} from "@/utils/zipdownload"; state.bg_power2 = false state.powerStatus = {} state.permissionId = '' + state.perWorkNum = '' state.checkclick = [] } - const getByUserIds = async () => { - // const roleCode = userInfo.value - // const roleId = roleCode.roleList.find(item=>item.roleCode=='quiz-admin') || null - // const isQuizAdmin = roleId ? 1 : 0 - // await getByUserId({loginId:roleCode.userId,roleId,isQuizAdmin}).then(res=>{ - - // }) + const getByUserIds = async (workNum) => { + await getByUserId({workNum,}).then(res=>{ + // if(res.code == 200){ + // console.log(res.data,'workUnum') + // } + }) } const powerTrue = async () => { state.powerStatus.permission = state.checkclick.join(",") if(state.permissionId){ await updateStatus({id:state.permissionId,permission:state.checkclick.join(",")}).then((res)=>{ saveListItem() + getByUserIds(state.perWorkNum) }) } listData() @@ -1751,9 +1756,9 @@ import {downLoadZip} from "@/utils/zipdownload"; message.success('启用成功') listData() saveListItem() - getByUserIds() } }) + getByUserIds(record.workNum) } const textEnableAdd = async (record) => { record.statusList = 0