This commit is contained in:
liang.chao 2025-12-02 17:16:56 +08:00
parent 54dbc79321
commit 54ca0a37e3
2 changed files with 12 additions and 5 deletions

View File

@ -87,7 +87,7 @@ export function selectRectificationListApi(data) {
}
export function updateRectificationApi(data) {
return request({
url: '/blade-system/fileManage/selectRectificationList',
url: '/blade-system/fileManage/updateRectification',
method: 'post',
data:data,
})

View File

@ -153,20 +153,23 @@ const formRef = ref();
//
const editOption = reactive({
labelWidth: 100,
submitBtn: false,
emptyBtn: false,
column: [
{
label: '档案名称',
prop: 'contentName',
disabled: true,
placeholder: '档案名称'
placeholder: '档案名称',
span: 24
},
{
label: '整改内容',
prop: 'description',
type: 'textarea',
rows: 4,
placeholder: '请输入整改内容'
placeholder: '请输入整改内容',
span: 24
}
]
});
@ -196,7 +199,11 @@ const submitEdit = async () => {
await formRef.value.validate();
submitLoading.value = true;
try {
const res = await updateRectificationApi(formData.value);
const submitData = {
id: formData.value.id,
description: formData.value.description
}
const res = await updateRectificationApi(submitData);
if (res.data.code === 200) {
ElMessage.success('保存成功');
closeDialog();