From 3f6bf89b1985b6668f02ffcc9af577b412e92e45 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期一, 24 三月 2025 17:17:45 +0800 Subject: [PATCH] bug修改 --- src/views/safetyReview/projectManage/components/projectArchive.vue | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/safetyReview/projectManage/components/projectArchive.vue b/src/views/safetyReview/projectManage/components/projectArchive.vue index d492159..85aff7c 100644 --- a/src/views/safetyReview/projectManage/components/projectArchive.vue +++ b/src/views/safetyReview/projectManage/components/projectArchive.vue @@ -70,9 +70,9 @@ 项目合同额<span style="font-size: 13px;color: red;font-weight: normal;display: inline-block;margin-left: 6px">预估合同金额,归档阶段可以进行修改。仅支持数字,单位万元,小数点后最多两位,数值范围(0.01-999.99)</span> </template> <el-input - v-model="state.actualContract.actualContractMoney" + v-model.trim="state.actualContract.actualContractMoney" + @input="state.actualContract.actualContractMoney= state.actualContract.actualContractMoney.replace(/[^0-9.\/\-]/g,'')" size="large" - type="number" placeholder="请输入项目合同额" > <template #append>万元</template> @@ -82,7 +82,7 @@ </el-row> <el-form-item label="实际合同额说明"> <el-input - v-model="state.actualContract.actualContractIntroduction" + v-model.trim="state.actualContract.actualContractIntroduction" :autosize="{ minRows: 6 }" maxlength="100" show-word-limit @@ -350,27 +350,29 @@ } const handleRemove = async (file, uploadFiles) => { - console.log("file",file) + if (file && file.status == 'success') { + console.log("file", file) let accessoryFileId = ""; - if(file.id){ + if (file.id) { accessoryFileId = file.id - }else { + } else { accessoryFileId = file.response.data.id } const res = await delAccessoryFile(accessoryFileId) - if(res.code == 200){ + if (res.code == 200) { // ElMessage({ // type: 'success', // message: '文件已删除' // }) - }else{ + } else { ElMessage({ type: 'warning', message: res.message }) } } +} defineExpose({ riskOpen -- Gitblit v1.9.2