cxmo 1 жил өмнө
parent
commit
a6b164dab7

+ 47 - 1
src/views/dataEntry_manage/addChart.vue

@@ -565,6 +565,33 @@
 						highlight-current-row
 						border
 					>
+						<el-table-column type="expand">
+							<template slot-scope="{row}">
+								<div class="expand-wrap">
+									<div class="data-change">
+										<el-checkbox>数据转换</el-checkbox>
+										<el-select>
+											<el-option label="乘以" :value="1"></el-option>
+											<el-option label="除以" :value="2"></el-option>
+											<el-option label="对数" :value="3"></el-option>
+										</el-select>
+										<el-input type="number"></el-input>
+									</div>
+									<div class="unit-change">
+										<label>单位</label>
+										<el-input></el-input>
+										<label>英文单位</label>
+										<el-input></el-input>
+									</div>
+									<div class="use-change">
+										<el-radio v-model="useUnit">设置为图表单位</el-radio>
+									</div>
+									<div class="confirm-btn">
+										<el-button type="text">保存</el-button>
+									</div>
+								</div>
+							</template>
+						</el-table-column>
 						<el-table-column
 							v-for="item in tableColums"
 							:key="item.label"
@@ -725,7 +752,9 @@ export default {
 			needWatch: true,
 			IsNameDefault:true,
 
-			UnitOptions:unitArr
+			UnitOptions:unitArr,
+
+			useUnit:''
 
     };
   },
@@ -1204,6 +1233,23 @@ export default {
 			}
 		}
 	}
+	.expand-wrap{
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		gap:30px;
+		.el-checkbox{
+			margin-right: 15px;
+		}
+		.el-input{
+			width:100px;
+			height:27px;
+			line-height: 27px;
+			.el-input__icon{
+				line-height: 27px;
+			}
+		}
+	}
 }
 </style>
 <style lang="scss">