|
|
|
|
@ -64,8 +64,10 @@ const UpDataShowFun = (row) =>{
|
|
|
|
|
editRow.value=row; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const formRef = ref(null) |
|
|
|
|
//保存数据 |
|
|
|
|
const handleSumbit = async ()=>{ |
|
|
|
|
await formRef.value.validate(); |
|
|
|
|
editLoading.value=true; |
|
|
|
|
const res = await addOrUpDataFun(editRow.value); |
|
|
|
|
editShow.value=false; |
|
|
|
|
@ -118,6 +120,19 @@ const getNegativePageFun = async (row)=>{
|
|
|
|
|
negativeLoging.value=false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const closeAdd =()=>{ |
|
|
|
|
console.log('12-----') |
|
|
|
|
editRow.value={} |
|
|
|
|
console.log(editRow.value) |
|
|
|
|
} |
|
|
|
|
watch(()=>editRow.value.files,(val)=>{ |
|
|
|
|
console.log(val) |
|
|
|
|
if(val){ |
|
|
|
|
console.log(val[0]?.fileName.split(".")[0]) |
|
|
|
|
editRow.value.reportName = val[0]?.fileName.split(".")[0] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
@ -202,8 +217,8 @@ const getNegativePageFun = async (row)=>{
|
|
|
|
|
</main> |
|
|
|
|
|
|
|
|
|
<!-- 创建督察报告--> |
|
|
|
|
<el-dialog :title="`创建督察报告`" v-model="editShow" v-loading="editLoading"> |
|
|
|
|
<el-form :model="editRow" > |
|
|
|
|
<el-dialog :title="`创建督察报告`" destroy-on-close v-model="editShow" v-loading="editLoading" @close="closeAdd"> |
|
|
|
|
<el-form :model="editRow" ref="formRef"> |
|
|
|
|
<el-form-item label="督察报告名称" prop="reportName" :rules="{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请填写督察报告名称', |
|
|
|
|
|