Browse Source

涉及对象显示不对问题

main
kami 1 year ago
parent
commit
7acbacbaf1
  1. 120
      src/components/negative/verify.vue

120
src/components/negative/verify.vue

@ -47,7 +47,8 @@
v-for="item in dict.inspectCase" v-for="item in dict.inspectCase"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -77,7 +78,8 @@
v-for="item in dict.isRectify" v-for="item in dict.isRectify"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -103,7 +105,8 @@
v-for="item in dict.accountabilityTarget" v-for="item in dict.accountabilityTarget"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -124,7 +127,7 @@
trigger: ['blur'], trigger: ['blur'],
}" }"
> >
<el-input-number v-model="form.rectifyRestrictionDays" /> <el-input-number v-model="form.rectifyRestrictionDays"/>
<span class="ml-8"></span> <span class="ml-8"></span>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -197,7 +200,8 @@
@click="handleRemovePersonal(item)" @click="handleRemovePersonal(item)"
text text
class="ml-10" class="ml-10"
>删除</el-button >删除
</el-button
> >
</div> </div>
<el-row> <el-row>
@ -286,7 +290,8 @@
v-for="item in dict.personType" v-for="item in dict.personType"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -357,11 +362,15 @@
type="primary" type="primary"
v-if="j === 0" v-if="j === 0"
size="small" size="small"
><template #icon> >
<template #icon>
<icon <icon
name="el-icon-Plus" name="el-icon-Plus"
/> </template />
>添加问题</el-button </template
>
添加问题
</el-button
> >
</div> </div>
</div> </div>
@ -396,7 +405,8 @@
v-for="item in dict.responsibilityType" v-for="item in dict.responsibilityType"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -429,7 +439,8 @@
v-for="item in dict.subjectiveAspect" v-for="item in dict.subjectiveAspect"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
<el-form-item <el-form-item
@ -520,7 +531,8 @@
} }
} }
" "
>{{ dictItem.dictLabel }}</el-radio >{{ dictItem.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -550,7 +562,8 @@
v-for="item in dict.protectRights" v-for="item in dict.protectRights"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -560,13 +573,17 @@
</div> </div>
<div class="flex center" style="width: 100%"> <div class="flex center" style="width: 100%">
<el-button type="primary" plain @click="handleAddPersomal" <el-button type="primary" plain @click="handleAddPersomal"
><template #icon> >
<icon name="el-icon-Plus" /> </template <template #icon>
>添加涉及人员</el-button <icon name="el-icon-Plus"/>
</template
>
添加涉及人员
</el-button
> >
</div> </div>
</el-form-item> </el-form-item>
<el-divider /> <el-divider/>
<el-form-item <el-form-item
label-position="top" label-position="top"
prop="blameLeaders" prop="blameLeaders"
@ -585,7 +602,8 @@
@click="handleRemoveBlameLeader(index)" @click="handleRemoveBlameLeader(index)"
text text
class="ml-10" class="ml-10"
>删除</el-button >删除
</el-button
> >
</div> </div>
@ -710,7 +728,8 @@
v-for="item in dict.leadResponsibilityType" v-for="item in dict.leadResponsibilityType"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -777,7 +796,8 @@
} }
} }
" "
>{{ dictItem.dictLabel }}</el-radio >{{ dictItem.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -808,7 +828,8 @@
v-for="item in dict.protectRights" v-for="item in dict.protectRights"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -827,13 +848,17 @@
type="primary" type="primary"
plain plain
@click="handleAddBlameLeader" @click="handleAddBlameLeader"
><template #icon> >
<icon name="el-icon-Plus" /> </template <template #icon>
>添加涉及领导</el-button <icon name="el-icon-Plus"/>
</template
>
添加涉及领导
</el-button
> >
</div> </div>
</el-form-item> </el-form-item>
<el-divider /> <el-divider/>
</div> </div>
<el-form-item <el-form-item
label-position="top" label-position="top"
@ -901,7 +926,8 @@
> >
<el-radio-group v-model="item.ivPersonTypeCode"> <el-radio-group v-model="item.ivPersonTypeCode">
<el-radio :value="PersonType.POLICE" <el-radio :value="PersonType.POLICE"
>民警</el-radio >民警
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -929,7 +955,8 @@
v-for="item in dict.superviseMeasures" v-for="item in dict.superviseMeasures"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -1000,11 +1027,15 @@
type="primary" type="primary"
v-if="j === 0" v-if="j === 0"
size="small" size="small"
><template #icon> >
<template #icon>
<icon <icon
name="el-icon-Plus" name="el-icon-Plus"
/> </template />
>添加问题</el-button </template
>
添加问题
</el-button
> >
</div> </div>
</div> </div>
@ -1038,7 +1069,8 @@
v-for="item in dict.subjectiveAspect" v-for="item in dict.subjectiveAspect"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -1070,7 +1102,8 @@
v-for="item in dict.responsibilityType" v-for="item in dict.responsibilityType"
:key="item.dictCode" :key="item.dictCode"
:value="item.dictValue" :value="item.dictValue"
>{{ item.dictLabel }}</el-radio >{{ item.dictLabel }}
</el-radio
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -1162,12 +1195,12 @@
:problemSourcesCode="negative.problemSourcesCode" :problemSourcesCode="negative.problemSourcesCode"
/> />
</div> </div>
<file-list v-model:files="form.files" :removeEnable="true" /> <file-list v-model:files="form.files" :removeEnable="true"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { BASE_PATH } from "@/api/request"; import {BASE_PATH} from "@/api/request";
import { import {
InspectCase, InspectCase,
IsRectify, IsRectify,
@ -1180,7 +1213,8 @@ import {
SubjectiveAspect, SubjectiveAspect,
} from "@/enums/dictEnums"; } from "@/enums/dictEnums";
import useCatchStore from "@/stores/modules/catch"; import useCatchStore from "@/stores/modules/catch";
import { computed } from "vue"; import {computed} from "vue";
const catchSotre = useCatchStore(); const catchSotre = useCatchStore();
const dict = catchSotre.getDicts([ const dict = catchSotre.getDicts([
"inspectCase", "inspectCase",
@ -1216,15 +1250,18 @@ function getFormData() {
checkStatusDesc: negative.value.checkStatusDesc, checkStatusDesc: negative.value.checkStatusDesc,
rectifyDesc: negative.value.rectifyDesc, rectifyDesc: negative.value.rectifyDesc,
rectifyRestrictionDays: negative.value.rectifyRestrictionDays, rectifyRestrictionDays: negative.value.rectifyRestrictionDays,
accountabilityTarget: accountabilityTarget: "",
negative.value.accountabilityTarget ||
negative.value.problemSourcesCode === ProblemSources.JWDC
? AccountabilityTarget.PERSONAL
: "",
blames: negative.value.blames, blames: negative.value.blames,
blameLeaders: negative.value.blameLeaders, blameLeaders: negative.value.blameLeaders,
files: negative.value.files || [], files: negative.value.files || [],
}; };
if (negative.value.accountabilityTarget != undefined) {
form.value.accountabilityTarget = negative.value.accountabilityTarget;
return;
}
if (negative.value.problemSourcesCode === ProblemSources.JWDC) {
form.value.accountabilityTarget = AccountabilityTarget.PERSONAL;
}
} }
function handleAddPersomal() { function handleAddPersomal() {
@ -1365,6 +1402,7 @@ function handleCheckboxChange(blameLeader, bool, val) {
); );
} }
} }
const formRef = ref(null); const formRef = ref(null);
async function validate() { async function validate() {
@ -1404,6 +1442,7 @@ defineExpose({
.el-form-item .el-form-item { .el-form-item .el-form-item {
margin-bottom: 18px; margin-bottom: 18px;
} }
:deep() { :deep() {
.el-form-item--label-right .el-form-item__label { .el-form-item--label-right .el-form-item__label {
text-align: right; text-align: right;
@ -1411,6 +1450,7 @@ defineExpose({
margin-bottom: 0; margin-bottom: 0;
} }
} }
p { p {
margin: 0; margin: 0;
line-height: 1.4; line-height: 1.4;

Loading…
Cancel
Save