From f346dcb4e26bfca845b4825006af03affe089b8a Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 02 八月 2024 17:23:42 +0800
Subject: [PATCH] 对外支持模块
---
src/views/fysp/evaluation/components/precheck/components/CompCheckArea.vue | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/src/views/fysp/evaluation/components/precheck/components/CompCheckArea.vue b/src/views/fysp/evaluation/components/precheck/components/CompCheckArea.vue
index 3aea097..457a050 100644
--- a/src/views/fysp/evaluation/components/precheck/components/CompCheckArea.vue
+++ b/src/views/fysp/evaluation/components/precheck/components/CompCheckArea.vue
@@ -21,7 +21,7 @@
:allOption="false"
:initValue="false"
:sourceInit="sceneOptionSourceInit"
- :type="formObj.sourcetype ? 1 : 2"
+ :type="formObj.sourceType"
v-model:value="formObj._scenetype"
></FYOptionScene>
<!-- 鏃堕棿 -->
@@ -31,9 +31,17 @@
type="month"
v-model:value="formObj.time"
></FYOptionTime>
- <el-form-item label="涓绘暟鎹簮" prop="sourcetype">
- <el-switch v-model="formObj.sourcetype" @change="sceneOptionSourceInit = true" />
- <span class="m-l-16">{{ formObj.sourcetype ? '瀹堟硶鏈嶅姟璁板綍' : '鐜板満宸℃煡璁板綍' }}</span>
+ <el-form-item label="涓绘暟鎹簮" prop="sourceType">
+ <!-- <el-switch v-model="formObj.sourceType" @change="sceneOptionSourceInit = true" /> -->
+ <el-radio-group
+ v-model="formObj.sourceType"
+ size="small"
+ @change="sceneOptionSourceInit = true"
+ >
+ <el-radio-button label="1">瀹堟硶鏈嶅姟璁板綍</el-radio-button>
+ <el-radio-button label="2">鐜板満宸℃煡璁板綍</el-radio-button>
+ </el-radio-group>
+ <!-- <span class="m-l-16">{{ formObj.sourceType ? '瀹堟硶鏈嶅姟璁板綍' : '鐜板満宸℃煡璁板綍' }}</span> -->
<el-tooltip placement="bottom-start" effect="light">
<template #content>
<!-- <el-text tag="b" size="default">璇存槑</el-text><br /> -->
@@ -92,6 +100,13 @@
message: '鏃堕棿涓嶈兘涓虹┖',
trigger: 'change'
}
+ ],
+ sourceType: [
+ {
+ required: true,
+ message: '涓绘暟鎹簮蹇呴』閫夋嫨',
+ trigger: 'change'
+ }
]
},
// 褰撳満鏅�夐」鍒囨崲鏁版嵁婧愭椂锛屾槸鍚︽竻绌哄綋鍓嶉�夐」鍊�
@@ -103,7 +118,7 @@
this.sceneOptionSourceInit = false;
this.$refs.formRef.formObj._locations = param.locations;
this.$refs.formRef.formObj._scenetype = param.scenetype;
- this.$refs.formRef.formObj.sourcetype = param.sourcetype;
+ this.$refs.formRef.formObj.sourceType = param.sourceType;
},
submit() {
this.$refs.formRef.onSubmit(false);
--
Gitblit v1.9.3