From 1d47ac0c6dffbb8123b749eea2de8ff09dcc2534 Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Fri, 26 May 2023 16:48:27 +0800 Subject: [PATCH] =?UTF-8?q?ecrf=E7=AE=A1=E7=90=86=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subjectMgt/ecrf/index.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/index.vue b/src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/index.vue index 4a8acda..99e2a43 100644 --- a/src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/index.vue +++ b/src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/index.vue @@ -25,18 +25,18 @@ {{ $t('preview') }} {{ $t('update') }} {{ $t('delete') }} @@ -77,9 +77,9 @@ export default { return { previewVisible: false, mixinViewModuleOptions: { - getDataListURL: '/crf/page', + getDataListURL: '/project/crf/template/page', getDataListIsPage: true, - deleteURL: '/crf' + deleteURL: '/project/crf/template' }, dataForm: { projectId: window.SITE_CONFIG['projectId'] @@ -93,6 +93,14 @@ export default { this.$refs.preview.id = id this.$refs.preview.init() }) + }, + deleteCrfItem(id) { + this.$confirm('确认删除吗?').then(() => { + this.$http.delete('/project/crf/template', { params: { id }}).then(() => { + this.$message.success('删除成功') + this.getDataList() + }) + }) } } }