This commit is contained in:
parent
54dbc79321
commit
54ca0a37e3
|
|
@ -87,7 +87,7 @@ export function selectRectificationListApi(data) {
|
||||||
}
|
}
|
||||||
export function updateRectificationApi(data) {
|
export function updateRectificationApi(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/blade-system/fileManage/selectRectificationList',
|
url: '/blade-system/fileManage/updateRectification',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data:data,
|
data:data,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -153,20 +153,23 @@ const formRef = ref();
|
||||||
|
|
||||||
// 编辑表单配置
|
// 编辑表单配置
|
||||||
const editOption = reactive({
|
const editOption = reactive({
|
||||||
labelWidth: 100,
|
submitBtn: false,
|
||||||
|
emptyBtn: false,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: '档案名称',
|
label: '档案名称',
|
||||||
prop: 'contentName',
|
prop: 'contentName',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
placeholder: '档案名称'
|
placeholder: '档案名称',
|
||||||
|
span: 24
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '整改内容',
|
label: '整改内容',
|
||||||
prop: 'description',
|
prop: 'description',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
rows: 4,
|
rows: 4,
|
||||||
placeholder: '请输入整改内容'
|
placeholder: '请输入整改内容',
|
||||||
|
span: 24
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
@ -196,7 +199,11 @@ const submitEdit = async () => {
|
||||||
await formRef.value.validate();
|
await formRef.value.validate();
|
||||||
submitLoading.value = true;
|
submitLoading.value = true;
|
||||||
try {
|
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) {
|
if (res.data.code === 200) {
|
||||||
ElMessage.success('保存成功');
|
ElMessage.success('保存成功');
|
||||||
closeDialog();
|
closeDialog();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue