duy 5 mesiacov pred
rodič
commit
37635d0aa9

+ 2 - 1
src/views/manager/wbsinfo/paramDetail.vue

@@ -90,7 +90,7 @@
         </el-form-item>
        
         <div class="form-container1" v-if="form.type===2" >
-            <el-button type="warning" class="add-button" size="small" @click="addProData">新增</el-button>
+            <el-button  type="warning" class="add-button" size="small" @click="addProData"  v-if="form.type===2&&!form.id">新增</el-button>
             <div v-if="form.type===2" class="form-container" v-for="(item,index) in proData" :key="index"  :style="{ marginTop: index === 0 ? '40px' : '0' }"> 
                 <!-- 删除图标 -->
               <el-button type="danger" size="mini" v-if="index !== 0"
@@ -480,5 +480,6 @@ export default {
 .sub-title{
   margin-bottom: 15px;
   font-weight: bold;
+  font-size: 16px
 }
 </style>

+ 4 - 2
src/views/manager/wbsinfo/parameter.vue

@@ -7,7 +7,7 @@
     <div class="pd-t-20">
         <el-row :gutter="20" style="height: calc(100vh - 290px)" v-if="projectPageList.length > 0">
             <el-col  :span="6" v-for="(item, index) in projectPageList" :key="item.id">
-                <el-card @click.native="handleSetParameterName(item)" class="box-card h-100p flex bg-color clickable">
+                <el-card @click.native="handleSetParameterName(item)" class="box-card h-100p flex bg-color clickable" style="height: 160px;">
                     <div class="card-content">
                     <h3>{{ item.paramName }}</h3>
                     <p class="text-bold">{{item.paramTypeName }}</p>
@@ -18,7 +18,7 @@
             </el-col>
            
         </el-row>
-        <div :span="24"  class="empty-data">
+        <div :span="24"  class="empty-data" v-else>
             <p>暂无参数信息</p>
         </div>
         <div>
@@ -140,10 +140,12 @@ export default{
 
 .card-content {
   flex: 1;
+  margin-top: -10px
 }
 
 .small-text {
   font-size: smaller;
+  margin-top:30px;
 }
 .text-bold{
     font-weight: bold;