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

Loading…
Cancel
Save