Browse Source

fix:督察任务修复

master
pengwei 3 months ago
parent
commit
6971cd96b7
  1. 2
      src/views/datav/subonedatav/SubOneVideoInsp.vue
  2. 9
      src/views/mobileSupervise/Inspection.vue

2
src/views/datav/subonedatav/SubOneVideoInsp.vue

@ -45,7 +45,7 @@
<datav-card <datav-card
title="问题数排名" title="问题数排名"
sub-title="问题数" sub-title="问题数"
style="height: 370px" style="height: 350px"
> >
<datav-tabs <datav-tabs
type="bottom-button" type="bottom-button"

9
src/views/mobileSupervise/Inspection.vue

@ -225,7 +225,7 @@
<div class="content-main" v-if="form.supervisionType !== '日常督察'"> <div class="content-main" v-if="form.supervisionType !== '日常督察'">
<div id="jjdc" v-if="form.specialType === '六项规定督察'"> <div id="jjdc" v-if="form.specialType === '六项规定督察'">
<hr style="color: #abaaaa;opacity: 0.2"/> <hr style="color: #abaaaa;opacity: 0.2"/>
<el-form-item label="督察人员" <el-form-item label="督察人员" v-if="form.specialType === '六项规定督察'"
:rules="{ :rules="{
required: true, required: true,
message: '请选择', message: '请选择',
@ -593,6 +593,7 @@
<div id="rcdc" v-if="form.supervisionType ==='日常督察'"> <div id="rcdc" v-if="form.supervisionType ==='日常督察'">
<hr style="color: #abaaaa;opacity: 0.2"/> <hr style="color: #abaaaa;opacity: 0.2"/>
<el-form-item <el-form-item
v-if="form.supervisionType === '日常督察'"
label="督察人员" label="督察人员"
:rules="{ :rules="{
required: true, required: true,
@ -2532,7 +2533,7 @@ const issueForm = ref({})
const issueLoading = ref(false) const issueLoading = ref(false)
const formRefs =ref(); const formRefs =ref();
// //
const issueMatterFun =(row,key)=>{ const issueMatterFun =async (row,key)=>{
switch (key){ switch (key){
case "selfexamination": case "selfexamination":
issueForm.value.taskId = selfPeopleQuery.value.id; issueForm.value.taskId = selfPeopleQuery.value.id;
@ -2540,7 +2541,8 @@ const issueMatterFun =(row,key)=>{
break; break;
case "inspection": case "inspection":
issueForm.value.taskId = problemQuery.value.id; issueForm.value.taskId = problemQuery.value.id;
issueForm.value.problemVo = row issueForm.value.problemVo = await getTaskProblem(row.id)
// issueForm.value.problemVo = row
break; break;
case "testing_alcohol": case "testing_alcohol":
issueForm.value.taskId = row.taskId; issueForm.value.taskId = row.taskId;
@ -2561,6 +2563,7 @@ const handleSubmitTask =async ()=>{
await formRefs.value.validate(); await formRefs.value.validate();
issueLoading.value = true issueLoading.value = true
console.log('activeRow----------',activeRow.value) console.log('activeRow----------',activeRow.value)
try { try {
await TestingAlcoholIssueMatterFun(issueForm.value) await TestingAlcoholIssueMatterFun(issueForm.value)
} catch(e) { } catch(e) {

Loading…
Cancel
Save