修改bug
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
<template>
|
||||
<el-dialog v-model="dialogVisible" title="招标文件" width="500" draggable>
|
||||
<el-dialog v-model="dialogVisible" title="招标文件" width="500" draggable @close="closeDialog">
|
||||
<el-form ref="ruleFormRef" style="max-width: 600px" :model="ruleForm" :rules="rules" label-width="auto">
|
||||
<el-form-item label="招标文件" prop="name">
|
||||
<file-upload
|
||||
v-model="form.costEstimationFile"
|
||||
:fileSize="100"
|
||||
:auto-upload="false"
|
||||
uploadUrl="/tender/biddingPlan/uploadBiddingDocuments"
|
||||
@ -11,7 +10,7 @@
|
||||
ref="fileUploadRef"
|
||||
:data="{
|
||||
projectId: currentProject?.id,
|
||||
planType: planType,
|
||||
type: planType,
|
||||
fileType: '1',
|
||||
bidStatus: '0',
|
||||
id: row.id
|
||||
@ -22,7 +21,7 @@
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="resetForm()"> 取消 </el-button>
|
||||
<el-button @click="closeDialog()"> 取消 </el-button>
|
||||
<el-button type="primary" @click="submitForm()">确定</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@ -41,15 +40,14 @@ const ruleForm = ref<any>();
|
||||
const rules = ref({
|
||||
costEstimationFile: [{ required: true, message: '请上传招标文件', trigger: ['blur'] }]
|
||||
});
|
||||
const emit = defineProps({
|
||||
success: {
|
||||
type: Function
|
||||
// required: true
|
||||
}
|
||||
});
|
||||
const emit = defineEmits(['success']);
|
||||
const form = ref({
|
||||
costEstimationFile: ''
|
||||
});
|
||||
const closeDialog = () => {
|
||||
dialogVisible.value = false;
|
||||
emit('success');
|
||||
};
|
||||
|
||||
const open = (rows: any, type: string) => {
|
||||
dialogVisible.value = true;
|
||||
@ -68,7 +66,7 @@ const submitForm = () => {
|
||||
return;
|
||||
}
|
||||
dialogVisible.value = false;
|
||||
emit.success();
|
||||
emit('success');
|
||||
});
|
||||
};
|
||||
defineExpose({
|
||||
|
Reference in New Issue
Block a user