|
|
@@ -19,10 +19,10 @@
|
|
|
style="width: 450px"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="option in ruleFormConfig.find((c) => c.prop === 'typeId')?.selectOptions || []"
|
|
|
- :key="option.value"
|
|
|
- :label="option.label"
|
|
|
- :value="option.value"
|
|
|
+ v-for="option in hiddenRiskCategoriesList || []"
|
|
|
+ :key="option.id"
|
|
|
+ :label="option.categoryName"
|
|
|
+ :value="option.id"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -235,7 +235,7 @@
|
|
|
<footer class="safety-platform-container__footer">
|
|
|
<el-button @click="router.back()">返回</el-button>
|
|
|
<template v-if="isReviewMode">
|
|
|
- <el-button type="warning" @click="openReviewRejectDialog">审查不通过</el-button>
|
|
|
+ <el-button type="primary" @click="openReviewRejectDialog">审查不通过</el-button>
|
|
|
<el-button type="primary" @click="handleReviewPass">审查通过</el-button>
|
|
|
</template>
|
|
|
<template v-else-if="!isViewMode">
|
|
|
@@ -376,14 +376,17 @@
|
|
|
import type { DeptTree } from '@/types/dept/type';
|
|
|
import { queryAvailableUserList } from '@/api/production-safety/responsibility-implementation';
|
|
|
import PreviewOnline from '@/views/disaster/components/PreviewOnline.vue';
|
|
|
-import { ru } from 'element-plus/es/locale';
|
|
|
+ import { ru } from 'element-plus/es/locale';
|
|
|
+ import {
|
|
|
+ queryDangerTypePage
|
|
|
+ } from '@/api/production-safety';
|
|
|
|
|
|
const router = useRouter();
|
|
|
const route = useRoute();
|
|
|
const searchDeptName = ref('');
|
|
|
const operate = computed(() => (route.query.operate as string) || 'hidden-trouble-account-create');
|
|
|
const currentId = computed(() => Number(route.query.id));
|
|
|
-
|
|
|
+ const hiddenRiskCategoriesList = ref();
|
|
|
const isCreateMode = computed(() => operate.value === 'hidden-trouble-account-create');
|
|
|
const isEditMode = computed(() => operate.value === 'hidden-trouble-account-edit');
|
|
|
const isViewMode = computed(
|
|
|
@@ -868,6 +871,13 @@ const attachmentsFileList = ref([]) as any
|
|
|
onMounted(async () => {
|
|
|
cloneRuleFormData();
|
|
|
await loadDeptAndUserOptions();
|
|
|
+ await queryDangerTypePage({
|
|
|
+ pageNumber: 1,
|
|
|
+ pageSize: 9999,
|
|
|
+ queryParam: {}
|
|
|
+ }).then(res => {
|
|
|
+ hiddenRiskCategoriesList.value = res?.records || [];
|
|
|
+ });
|
|
|
if (isEditMode.value || isViewMode.value) {
|
|
|
await getDetail();
|
|
|
if (route.query.action === 'review' && isViewMode.value && canReview.value) {
|