This commit is contained in:
parent
54dbc79321
commit
54ca0a37e3
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue