Browse Source

fix:1、督察报告获取创建人信息 & 根据创建时间排序 & 督察报告提交非空校验 & 关闭对话框的时候销毁内部组件; 2、 现场专项黄赌警情办结率统计单位切换消失问题

main
pengwei 4 months ago
parent
commit
a17362ca9d
  1. 2
      src/views/datav/SceneInsp.vue
  2. 19
      src/views/superviseReport/superviseReport.vue

2
src/views/datav/SceneInsp.vue

@ -430,7 +430,7 @@
class="descriptions_content" class="descriptions_content"
> >
{{ {{
rightOverview.completeRate rightOverview.completedRate
}}% }}%
</div> </div>
<div <div

19
src/views/superviseReport/superviseReport.vue

@ -64,8 +64,10 @@ const UpDataShowFun = (row) =>{
editRow.value=row; editRow.value=row;
} }
const formRef = ref(null)
// //
const handleSumbit = async ()=>{ const handleSumbit = async ()=>{
await formRef.value.validate();
editLoading.value=true; editLoading.value=true;
const res = await addOrUpDataFun(editRow.value); const res = await addOrUpDataFun(editRow.value);
editShow.value=false; editShow.value=false;
@ -118,6 +120,19 @@ const getNegativePageFun = async (row)=>{
negativeLoging.value=false; 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> </script>
@ -202,8 +217,8 @@ const getNegativePageFun = async (row)=>{
</main> </main>
<!-- 创建督察报告--> <!-- 创建督察报告-->
<el-dialog :title="`创建督察报告`" v-model="editShow" v-loading="editLoading"> <el-dialog :title="`创建督察报告`" destroy-on-close v-model="editShow" v-loading="editLoading" @close="closeAdd">
<el-form :model="editRow" > <el-form :model="editRow" ref="formRef">
<el-form-item label="督察报告名称" prop="reportName" :rules="{ <el-form-item label="督察报告名称" prop="reportName" :rules="{
required: true, required: true,
message: '请填写督察报告名称', message: '请填写督察报告名称',

Loading…
Cancel
Save