Przeglądaj źródła

测量不确定度评定报告组件增加标题

luoaoxuan 1 rok temu
rodzic
commit
7bb0af736e

+ 21 - 3
src/views/component/inspectionProcess/uncertainty.vue

@@ -1,9 +1,14 @@
 <!-- lax -->
 <template>
     <div class="uncertainty">
-        <div v-if="!isReadonly" class="button">
-            <el-button type="primary" size="mini" icon="ibps-icon-add" @click="handleAdd"> 添加</el-button>
-            <el-button type="danger" size="mini" icon="ibps-icon-remove" @click="handleDelete"> 删除</el-button>
+        <div class="header">
+            <div class="title">
+                <span>评定项目</span>
+            </div>
+            <div v-if="!isReadonly" class="button">
+                <el-button type="primary" size="mini" icon="ibps-icon-add" @click="handleAdd"> 添加</el-button>
+                <el-button type="danger" size="mini" icon="ibps-icon-remove" @click="handleDelete"> 删除</el-button>
+            </div>
         </div>
         <div class="table">
             <el-table :data="showData" @selection-change="handleSelectionChange">
@@ -211,6 +216,19 @@ export default {
 
 <style lang="scss">
 .uncertainty{
+    .header{
+        display: flex;
+        align-items: center;
+        justify-content: space-between;
+        background-color: #F0FFFF;
+        .title{
+            font-weight: bold;
+            font-size: 12px;
+            color: #999999;
+            margin-bottom: 0;
+            margin-left: 6px;
+        }
+    }
     .button{
         display: flex;
         justify-content: flex-end;