jiangniuniu 4 年 前
コミット
2c93fe1002

+ 7 - 2
components/tm-radio-group/tm-radio-group.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="tm-radio-group">
-		<view v-if="true" class="label-view">
-			<text>改善工具</text>
+		<view v-if="label" class="label-view">
+			<text>{{ label }}</text>
 		</view>
 		<view class="radio-group">
 			<template v-for="(item, i) in list">
@@ -34,6 +34,11 @@
 				type: Number | String,
 				default: ''
 			},
+			// 单选列表组合名字
+			label: {
+				type: String,
+				default: ''
+			},
 			// 单选组配置
 			setting: {
 				type: Object, 

+ 29 - 0
pages/mission-action/components/assign-mission/assign-mission.vue

@@ -2,6 +2,20 @@
 	<view class="assign-mission">
 		<scroll-view class="scroll-y" scroll-y="true">
 			<tm-radio-group 
+			  :list="list"
+				label="改善工具"
+				:defaultValue='defaultValue'
+				@change="changeSelect"
+				:setting="{
+				  value: 'value',
+				  name: 'label'
+			  }"
+		/>
+		<view class="switch-box">
+			<text class="label">需要审核改善方案</text>
+			<switch checked="true" style="transform:scale(1.5)" />
+		</view>
+		<tm-radio-group
 			  :list="list"
 				:defaultValue='defaultValue'
 				@change="changeSelect"
@@ -50,6 +64,21 @@
 		
 		.scroll-y {
 			height: calc(100% - 87.5rpx);
+			
+			.switch-box {
+				display: flex;
+				justify-content: space-between;
+				align-items: center;
+				margin-bottom: 15rpx;
+				height: 87.5rpx;
+				background-color: #fff;
+				padding: 0 25rpx;
+				
+				.label {
+					font-size: 22.5rpx;
+					color: #292C33;
+				}
+			}
 		}
 	}
 </style>