tangjunhao 4 hónapja
szülő
commit
16cbcfec05
2 módosított fájl, 37 hozzáadás és 11 törlés
  1. 4 4
      src/views/home.vue
  2. 33 7
      src/views/vuetree/index.vue

+ 4 - 4
src/views/home.vue

@@ -2684,13 +2684,13 @@ const handleEditorChange = (value) => {
   newtextarea1.value = value;
 };
 
-let MathFuncxinjian = ref('ture')
+let MathFuncxinjian = ref('false')
 const MathFunctabchange = (val) => {
   // console.log('MathFunctabchange:',val);
-  if(val == '1' || val == '0'){
-    MathFuncxinjian.value = false;
-  }else{
+  if(val == '2'){
     MathFuncxinjian.value = true;
+  }else{
+    MathFuncxinjian.value = false;
   }
 }
 

+ 33 - 7
src/views/vuetree/index.vue

@@ -244,6 +244,13 @@
           :is-indeterminate="isIndeterminate"
           @check-flag-change="handlecheckFlagchange"
         />
+        <linetablecard v-if="datacontent === '9'"
+          v-model:check-all="checkAll"
+          v-model:table-data="Tacsyouhuatable"
+          :steamtype-options="steamtypeoptions"
+          :is-indeterminate="isIndeterminate"
+          @check-flag-change="handlecheckFlagchange"
+        />
         <!-- <div v-if="datacontent === '4'">
           <el-card :shadow="none" style="min-height: 240px; max-height: 480px;">
           <el-checkbox v-model="checkAll" 
@@ -865,6 +872,8 @@ let Xfoilyouhuatable = ref([
   // { code:'', name:'下表面转换点位置xtr-lower', comtype:2 , steamflag:1, steamtype:1 },
 ])
 
+let Tacsyouhuatable = ref([])
+
 let checkAll = ref(false);
 let isIndeterminate = ref(false);
 
@@ -877,6 +886,7 @@ const dataTables = {
   '6': TacsMathFunctable,
   '7': youhuaTACStable,
   '8': MathFuncyouhuatable,
+  '9': Tacsyouhuatable,
 };
 
 const handlecheckFlagchange = () => {
@@ -1003,7 +1013,7 @@ function onEdgeDoubleClick(e) {
     adid.value = e.edge.sourceNode.data.adid;
     // console.log('adid:',adid.value)
     if(adid.value) {
-      querydataFlow(adid);
+      querydataFlow(adid,2);
       dataflowshow.value = true;
     }else{
       ElMessage.error('ADflow未初始化!')
@@ -1014,7 +1024,7 @@ function onEdgeDoubleClick(e) {
     xfid.value = e.edge.sourceNode.data.xfid;
     // console.log('xfid:',xfid.value)
     if(xfid.value) {
-      querydataFlow(xfid);
+      querydataFlow(xfid,2);
       dataflowshow.value = true;
     }else{
       ElMessage.error('Xfoil未初始化!')
@@ -1023,7 +1033,7 @@ function onEdgeDoubleClick(e) {
     datacontent.value = '5';
     adid.value = e.edge.sourceNode.data.adid;
     if(adid.value&&mfcid.value) {
-      querydataFlow(adid);
+      querydataFlow(adid,3);
       dataflowshow.value = true;
     }else{
       ElMessage.error('ADflow或MathFunc未初始化!')
@@ -1032,7 +1042,7 @@ function onEdgeDoubleClick(e) {
     datacontent.value = '6';
     tacsid.value = e.edge.sourceNode.data.tacsid;
     if(tacsid.value&&mfcid.value) {
-      querydataFlow(tacsid);
+      querydataFlow(tacsid,3);
       dataflowshow.value = true;
     }else{
       ElMessage.error('TACS或MathFunc未初始化!')
@@ -1050,11 +1060,20 @@ function onEdgeDoubleClick(e) {
     datacontent.value = '8';
     mfcid.value = e.edge.sourceNode.data.mfcid;
     if(mfcid.value) {
-      querydataFlow(mfcid);
+      querydataFlow(mfcid,2);
       dataflowshow.value = true;
     }else{
       ElMessage.error('MathFunc未初始化!')
     }
+  }else if( qidian ==='TACS' && youhualist.includes(zhongdian)) {
+    datacontent.value = '9';
+    tacsid.value = e.edge.sourceNode.data.tacsid;
+    if(tacsid.value) {
+      querydataFlow(tacsid,2);
+      dataflowshow.value = true;
+    }else{
+      ElMessage.error('TACS未初始化!')
+    }
   }
   console.log('leixing:',datacontent.value);
 
@@ -1063,11 +1082,12 @@ function onEdgeDoubleClick(e) {
   });
 }
 
-const querydataFlow = (comid) => {
+const querydataFlow = (comid,type) => {
   const params = {
     transCode: "MDO0052",
     pid: pid.value,
-    comid: comid.value
+    comid: comid.value,
+    type: type,
   }
   request(params).then((res) => {
     if(datacontent.value === '3'){
@@ -1090,6 +1110,10 @@ const querydataFlow = (comid) => {
       MathFuncyouhuatable.value = res.params;
       handlecheckFlagchange();
     }
+    if(datacontent.value === '9'){
+      Tacsyouhuatable.value = res.params;
+      handlecheckFlagchange();
+    }
     
   })
   .catch((err) => {
@@ -1106,6 +1130,8 @@ const dataFlowsave = () => {
     stringArray = convertToStringArray([],Xfoilyouhuatable.value);
   }else if(datacontent.value === '8'){
     stringArray = convertToStringArray([],MathFuncyouhuatable.value);
+  }else if(datacontent.value === '9'){
+    stringArray = convertToStringArray([],Tacsyouhuatable.value);
   }else{
     return;
   }