duy 5 сар өмнө
parent
commit
0deb2407d8

+ 0 - 4
src/views/manager/wbsinfo/addParamDialog.vue

@@ -95,10 +95,6 @@
       show(n){
       this.visible=true
       this.parameter = JSON.parse(JSON.stringify(n));
-            console.log(this.parameter,'this.parameter1111111111');
-            // this.$nextTick(()=>{
-            //   this.parameter.paramTypeVal=this.parameter.paramType.split(',')
-            // })
             this.$set(this.parameter,"paramTypeVal", this.parameter.paramType.split(','))
     },
       getParamTypeList() {

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

@@ -2,7 +2,7 @@
   <div>
    
     <!-- 弹窗 -->
-    <el-dialog title="参数信息" :visible.sync="dialogVisible" width="60%" append-to-body @clocse="closeParamDialog">
+    <el-dialog title="参数信息" :visible.sync="dialogVisible" width="60%" append-to-body @close="closeParamDialog">
       <div>
         <div class="sub-title">{{ params.paramName }}</div>
         <!-- 搜索栏 -->
@@ -200,8 +200,11 @@ export default {
       this.getTableData(id)
     },
     closeParamDialog(){
+   
+      this.$emit('finshDetail')
       this.dialogVisible = false;
       this.addDialogVisible=false;
+   
     },
     onSearch() {
       // 实现搜索逻辑
@@ -235,6 +238,7 @@ export default {
     },
     addCardFinish(){
           console.log('编辑完成');
+          closeParamDialog()
           
     },
     handleEdit(index, row) {;

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

@@ -10,7 +10,7 @@
                 <el-card @click.native="handleSetParameterName(item)" class="box-card h-100p flex bg-color clickable">
                     <div class="card-content">
                     <h3>{{ item.paramName }}</h3>
-                    <p class="text-bold">{{convertParamType (item.paramType )}}</p>
+                    <p class="text-bold">{{item.paramTypeName }}</p>
                     <p class="small-text">{{ item.remarks }}</p>
                 
                     </div>
@@ -108,9 +108,12 @@ export default{
             this.dialogVisible = true
         },
         addCardFinish(){
+            
             this.getProjectPageList()
         },
         finshDetail(){
+            console.log(1111111111111111);
+            
             this.getProjectPageList()
         },
         handleSetParameterName(item){