|
|
@@ -225,7 +225,7 @@ import detail from '../../../../layouts/components/JYXDetail/index.vue'
|
|
|
import ruleSelect from '../../../../layouts/components/ruleSelect/index.vue'
|
|
|
import Detail from "@/views/representative/detail.vue";
|
|
|
// 导入Vue 3组合式API
|
|
|
-import { ref, onMounted, nextTick } from 'vue'
|
|
|
+import { ref, onMounted, onBeforeMount, nextTick } from 'vue'
|
|
|
|
|
|
// 路由实例
|
|
|
const myRouter = useRouter()
|
|
|
@@ -319,7 +319,7 @@ let isEdit = ref(false)
|
|
|
let projectAddFrom = ref({
|
|
|
ruleAttrs: [], // 规则属性
|
|
|
schemeType: 1, // 方案类型:1-基础方案,2-自选方案
|
|
|
- productId: '', // 险种类型
|
|
|
+ productId: '0330', // 险种类型
|
|
|
schemeList: [{
|
|
|
schemeName: '', // 方案名称
|
|
|
description: '', // 方案描述
|
|
|
@@ -486,7 +486,7 @@ let insuranceTypeList = ref([])
|
|
|
* 初始化险种数据
|
|
|
*/
|
|
|
const initInsurance = () => {
|
|
|
- api.projectApi.getBusinessInsurance(projectAddFrom.value.productId).then(res => {
|
|
|
+ api.projectApi.getBusinessInsurance(projectAddFrom.value.productId || '0330').then(res => {
|
|
|
if(res.code == 200) {
|
|
|
insuranceTypeList.value = res.data
|
|
|
|
|
|
@@ -892,7 +892,7 @@ const save = async (ProjectAddRef: FormInstance | undefined) => {
|
|
|
/**
|
|
|
* 组件挂载时执行
|
|
|
*/
|
|
|
-onMounted(() => {
|
|
|
+ onBeforeMount(() => {
|
|
|
// 初始化险种类型
|
|
|
initType()
|
|
|
// 初始化保险公司列表
|