From 4399b0839619d0fb37ff877b44d38cff9d775687 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 29 Jan 2024 13:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E8=AF=95=E7=94=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trialApproval.vue | 55 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/src/views/trialApproval.vue b/src/views/trialApproval.vue index 194f7d55..a0f59adc 100644 --- a/src/views/trialApproval.vue +++ b/src/views/trialApproval.vue @@ -93,12 +93,12 @@ > refuse -
Delete -
+ --> @@ -266,7 +266,7 @@ export default defineComponent({ let userInfo:any = getCookie("userInfo") this.userInfo = JSON.parse(userInfo); - if (this.userInfo.userId == 83 || this.userInfo.userId == 88) { + if (this.userInfo.userId == 83 || this.userInfo.userId == 88 || this.userInfo.userId == 6) { } else { router.replace("/home"); return @@ -296,7 +296,6 @@ export default defineComponent({ }, setIsAutoApproval(){ - return Https.axiosPost(Https.httpUrls.switchIsAutoApproval, {}).then( (rv: any) => { this.getIsAutoApproval @@ -329,7 +328,6 @@ export default defineComponent({ const formData = new FormData() formData.append('ids',record.id) let config:any = {headers:{'Content-Type':'multipart/form-data','Accept':'*/*' }} - return Https.axiosPost(Https.httpUrls.trialOrderApproval, {ids:record.id}).then( (rv: any) => { message.success('同意成功~') @@ -348,30 +346,29 @@ export default defineComponent({ ); }, //删除分组 - deleteGroup(record: any, index: number) { - return - let deleteGroupFun = (id: any, index: number) => { - let data = { - userGroupId: id, - }; - Https.axiosPost(Https.httpUrls.deleteUserGroup, data).then( - (rv: any) => { - this.collectionList.splice(index, 1); - } - ); - }; - Modal.confirm({ - title: "11", - icon: createVNode(ExclamationCircleOutlined), - okText: "Yes", - cancelText: "No", - centered: true, - mask: false, - onOk() { - deleteGroupFun(record.id, index); - }, - }); - }, + // deleteGroup(record: any, index: number) { + // let deleteGroupFun = (id: any, index: number) => { + // let data = { + // userGroupId: id, + // }; + // Https.axiosPost(Https.httpUrls.deleteUserGroup, data).then( + // (rv: any) => { + // this.collectionList.splice(index, 1); + // } + // ); + // }; + // Modal.confirm({ + // title: "", + // icon: createVNode(ExclamationCircleOutlined), + // okText: "Yes", + // cancelText: "No", + // centered: true, + // mask: false, + // onOk() { + // deleteGroupFun(record.id, index); + // }, + // }); + // }, setState(){ this.currentState.state = true },