From 0d00924ea19eafb8a754fe98383973f793f90cbd Mon Sep 17 00:00:00 2001 From: yannqing <67121851@qq.com> Date: Mon, 22 Apr 2024 20:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 9 ++------- src/api/project.js | 2 +- src/views/personal/project/childSystem/charge.vue | 11 +++++++++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/components.d.ts b/components.d.ts index ebfb512..85e3c23 100644 --- a/components.d.ts +++ b/components.d.ts @@ -13,19 +13,18 @@ declare module '@vue/runtime-core' { DropdownMenu: typeof import('./src/components/Share/DropdownMenu.vue')['default'] Dropzone: typeof import('./src/components/Dropzone/index.vue')['default'] EditorImage: typeof import('./src/components/Tinymce/components/EditorImage.vue')['default'] - ElAlert: typeof import('element-plus/es')['ElAlert'] + ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete'] ElBadge: typeof import('element-plus/es')['ElBadge'] ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElButton: typeof import('element-plus/es')['ElButton'] ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup'] ElCard: typeof import('element-plus/es')['ElCard'] - ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] - ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElCol: typeof import('element-plus/es')['ElCol'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDivider: typeof import('element-plus/es')['ElDivider'] ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] @@ -37,10 +36,7 @@ declare module '@vue/runtime-core' { ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] - ElPopover: typeof import('element-plus/es')['ElPopover'] ElProgress: typeof import('element-plus/es')['ElProgress'] - ElRadio: typeof import('element-plus/es')['ElRadio'] - ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRow: typeof import('element-plus/es')['ElRow'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] @@ -49,7 +45,6 @@ declare module '@vue/runtime-core' { ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTag: typeof import('element-plus/es')['ElTag'] - ElTimePicker: typeof import('element-plus/es')['ElTimePicker'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElUpload: typeof import('element-plus/es')['ElUpload'] ErrorLog: typeof import('./src/components/ErrorLog/index.vue')['default'] diff --git a/src/api/project.js b/src/api/project.js index 5c981eb..e8a0f23 100644 --- a/src/api/project.js +++ b/src/api/project.js @@ -137,7 +137,7 @@ export function EditChildSystem(id, data, token) { url: "/project/child/edit", method: 'put', data, - params:{ id }, + params: id, headers: { 'Authorization': 'Bearer ' + token, 'content-type': 'application/json;charset=utf-8', diff --git a/src/views/personal/project/childSystem/charge.vue b/src/views/personal/project/childSystem/charge.vue index a7e0972..42ca3d3 100644 --- a/src/views/personal/project/childSystem/charge.vue +++ b/src/views/personal/project/childSystem/charge.vue @@ -648,12 +648,19 @@ function toggleAppointDialog(row) { AppointDialogVisible.value = true; } +//指定负责人id,我写死了,你替换为选择的负责人就行了 +const principalUser = reactive({ + principalId: '6' +}) async function confirmAppointment() { console.log("指定新负责人:", selectedPrincipal.value); - const response = await EditChildSystem(editId, EditFormData, token); + //项目id,我也写死了。你自行修改 + editId.id = '27' + const response = await EditChildSystem(editId, principalUser, token); + console.log("指定负责人Result:", response); + if (response.code===200){ - console.log("指定负责人Result:", response); AppointDialogVisible.value = false; ElMessage({ message: '子系统负责人更新成功',