|  | @@ -375,9 +375,7 @@
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |              <div class="numberinput">
 | 
	
		
			
				|  |  | -              <!-- class="border2" -->
 | 
	
		
			
				|  |  |                <div>
 | 
	
		
			
				|  |  | -                <!-- <div class="title2">GA遗传算法</div> -->
 | 
	
		
			
				|  |  |                  <el-form-item label="优化算法" :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  |                    <el-select v-model="youhua.algorithm" :suffix-icon="CaretBottom" placeholder="请选择">
 | 
	
		
			
				|  |  |                      <el-option v-for="item in yslist" :key="item.value" :label="item.label" :value="item.value">
 | 
	
	
		
			
				|  | @@ -417,16 +415,6 @@
 | 
	
		
			
				|  |  |                      </el-option>
 | 
	
		
			
				|  |  |                    </el-select>
 | 
	
		
			
				|  |  |                  </el-form-item>
 | 
	
		
			
				|  |  | -                <!-- <el-form-item label="precision:" :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  | -                    <el-select   v-model="addval7" :suffix-icon="CaretBottom" placeholder="请选择">
 | 
	
		
			
				|  |  | -                            <el-option
 | 
	
		
			
				|  |  | -                              v-for="item in addlist7"
 | 
	
		
			
				|  |  | -                              :key="item.value"
 | 
	
		
			
				|  |  | -                              :label="item.label"
 | 
	
		
			
				|  |  | -                              :value="item.value">
 | 
	
		
			
				|  |  | -                            </el-option>
 | 
	
		
			
				|  |  | -                          </el-select>
 | 
	
		
			
				|  |  | -                  </el-form-item> -->
 | 
	
		
			
				|  |  |                  <el-form-item label="GPU" :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  |                    <el-select v-model="youhua.gpu" :suffix-icon="CaretBottom" placeholder="请选择">
 | 
	
		
			
				|  |  |                      <el-option v-for="item in addlist8" :key="item.value" :label="item.label" :value="item.value">
 | 
	
	
		
			
				|  | @@ -1104,12 +1092,6 @@
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |              <div class="numberinput lefttext">
 | 
	
		
			
				|  |  |                <el-form>
 | 
	
		
			
				|  |  | -                <!-- <el-input
 | 
	
		
			
				|  |  | -                  v-model="looktext"
 | 
	
		
			
				|  |  | -                  style="width: 460px"
 | 
	
		
			
				|  |  | -                  :rows="2"
 | 
	
		
			
				|  |  | -                  type="textarea"
 | 
	
		
			
				|  |  | -                /> -->
 | 
	
		
			
				|  |  |                  <el-image :src="getImgPath('baog.png')" fit="contain"></el-image>
 | 
	
		
			
				|  |  |                </el-form>
 | 
	
		
			
				|  |  |              </div>
 | 
	
	
		
			
				|  | @@ -1122,6 +1104,126 @@
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-dialog>
 | 
	
		
			
				|  |  | +          <!-- 气动分析Xfoil、ADflow -->
 | 
	
		
			
				|  |  | +          <el-dialog v-model="dialog.XfAD" align-center :modal="false" :close-on-click-modal="false"
 | 
	
		
			
				|  |  | +            :append-to-body="true" draggable :fullscreen="false" :modal-append-to-body="false" modal-class="summary-dlg"
 | 
	
		
			
				|  |  | +            :before-close="handleClose" width="700" class="dialog_class bgcolor tianjia sel colortext">
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            <template #header="{ titleId, titleClass }">
 | 
	
		
			
				|  |  | +              <div class="my-header ">
 | 
	
		
			
				|  |  | +                <!-- <el-image :src="getImgPath('xuek0.png')" fit="contain"></el-image> -->
 | 
	
		
			
				|  |  | +                <h4 :id="titleId" :class="titleClass">气动分析</h4>
 | 
	
		
			
				|  |  | +              </div>
 | 
	
		
			
				|  |  | +            </template>
 | 
	
		
			
				|  |  | +            <div class="numberinput lefttext ">
 | 
	
		
			
				|  |  | +              <el-form>
 | 
	
		
			
				|  |  | +                <el-tabs tab-position="left" class="demo-tabs">
 | 
	
		
			
				|  |  | +              <el-tab-pane label="Xfoil">
 | 
	
		
			
				|  |  | +                <div class="XFpdding">
 | 
	
		
			
				|  |  | +                    <ul>
 | 
	
		
			
				|  |  | +                      <li class="item"   v-for="(tab, index) in tabslist" :key="index" :class="{ active: currentTab === index }"
 | 
	
		
			
				|  |  | +                     @click="selectTab(index)">{{tab.name  }}</li>
 | 
	
		
			
				|  |  | +                    </ul>
 | 
	
		
			
				|  |  | +                    <!-- 来流参数 v-show="currentTab=='0'"-->
 | 
	
		
			
				|  |  | +                    <div  v-show="currentTab=='0'">
 | 
	
		
			
				|  |  | +                      <div class="eldesign classtable" style="margin-top: 10px;">
 | 
	
		
			
				|  |  | +                   <el-table :data="lailiutable"  border style="width: 100%;height:400px" >
 | 
	
		
			
				|  |  | +                    <el-table-column type="index" width="70"  label="编号"/>
 | 
	
		
			
				|  |  | +                  <el-table-column prop="name" label="参数名称">
 | 
	
		
			
				|  |  | +                    <template #default="{ row }">
 | 
	
		
			
				|  |  | +                      <el-input v-model="row.name" @change="handleEdit(row)" />
 | 
	
		
			
				|  |  | +                    </template>
 | 
	
		
			
				|  |  | +                  </el-table-column>
 | 
	
		
			
				|  |  | +                  <el-table-column prop="data" label="参数值">
 | 
	
		
			
				|  |  | +                    <template #default="{ row }">
 | 
	
		
			
				|  |  | +                      <el-input v-model.number="row.data" @change="handleEdit(row)" />
 | 
	
		
			
				|  |  | +                    </template>
 | 
	
		
			
				|  |  | +                  </el-table-column>
 | 
	
		
			
				|  |  | +                 <el-table-column prop="con" label="启用" width="100">
 | 
	
		
			
				|  |  | +                    <template v-slot="scope">
 | 
	
		
			
				|  |  | +                      <el-checkbox :false-label="'-1'" :true-label="'1'" :label="false" v-model="scope.row.enable"  @change="changecheck($event,scope.row)"/>
 | 
	
		
			
				|  |  | +                    </template>
 | 
	
		
			
				|  |  | +                  </el-table-column> 
 | 
	
		
			
				|  |  | +              
 | 
	
		
			
				|  |  | +                </el-table>
 | 
	
		
			
				|  |  | +              </div>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                      <!-- 设置参数 v-show="currentTab=='2'"-->
 | 
	
		
			
				|  |  | +                      <div  v-show="currentTab=='1'">
 | 
	
		
			
				|  |  | +                        <div class="eldesign classtable" style="margin-top: 10px;" >
 | 
	
		
			
				|  |  | +                        <el-form-item label="计算完成:"  :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  | +                        <el-radio-group v-model="resource">
 | 
	
		
			
				|  |  | +                          <el-radio label="0">是</el-radio>
 | 
	
		
			
				|  |  | +                          <el-radio label="1">否</el-radio>
 | 
	
		
			
				|  |  | +                        </el-radio-group> 
 | 
	
		
			
				|  |  | +                    
 | 
	
		
			
				|  |  | +                      </el-form-item>
 | 
	
		
			
				|  |  | +                        <el-form-item label="迭代次数:"  :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  | +                          <el-input v-model="youhua.popsize" :step="100" :min="0" :max="1000" controls-position="right" />
 | 
	
		
			
				|  |  | +                        </el-form-item>
 | 
	
		
			
				|  |  | +                         <el-form-item label="表面求解点个数:"  :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  | +                          <el-input v-model="youhua.popsize" :step="100" :min="0" :max="1000" controls-position="right" />
 | 
	
		
			
				|  |  | +                        </el-form-item>
 | 
	
		
			
				|  |  | +                        <div class="cheinput">
 | 
	
		
			
				|  |  | +                        <el-form-item label="压力分布:"  :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  | +                          <el-input v-model="youhua.popsize" :step="100" :min="0" :max="1000" controls-position="right" />
 | 
	
		
			
				|  |  | +                        </el-form-item>
 | 
	
		
			
				|  |  | +                        <el-checkbox v-model="checked2" size="large" />
 | 
	
		
			
				|  |  | +                      </div>
 | 
	
		
			
				|  |  | +                      <div class="cheinput">
 | 
	
		
			
				|  |  | +                         <el-form-item label="翼型坐标:"  :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  | +                          <el-input v-model="youhua.popsize" :step="100" :min="0" :max="1000" controls-position="right" />
 | 
	
		
			
				|  |  | +                     
 | 
	
		
			
				|  |  | +                        </el-form-item>
 | 
	
		
			
				|  |  | +                        <el-checkbox v-model="checked2" size="large" />
 | 
	
		
			
				|  |  | +                      </div>
 | 
	
		
			
				|  |  | +                      <div class="cheinput">
 | 
	
		
			
				|  |  | +                        <el-form-item label="力和力矩:"  :label-width="formLabelWidth1">
 | 
	
		
			
				|  |  | +                          <el-input v-model="youhua.popsize" :step="100" :min="0" :max="1000" controls-position="right" />
 | 
	
		
			
				|  |  | +                         </el-form-item>
 | 
	
		
			
				|  |  | +                         <el-checkbox v-model="checked2" size="large" />
 | 
	
		
			
				|  |  | +                      </div>
 | 
	
		
			
				|  |  | +                      </div>
 | 
	
		
			
				|  |  | +                      </div>
 | 
	
		
			
				|  |  | +                     <!-- 分析参数 v-show="currentTab=='2'"-->
 | 
	
		
			
				|  |  | +                    <div  v-show="currentTab=='2'">
 | 
	
		
			
				|  |  | +                      <div class="eldesign classtable" style="margin-top: 10px;">
 | 
	
		
			
				|  |  | +                   <el-table :data="fenxtable"  border style="width: 100%" >
 | 
	
		
			
				|  |  | +                    <el-table-column type="index" width="70"  label="编号"/>
 | 
	
		
			
				|  |  | +                  <el-table-column prop="name" label="参数名称">
 | 
	
		
			
				|  |  | +                    <template #default="{ row }">
 | 
	
		
			
				|  |  | +                      <el-input v-model="row.name" @change="handleEdit(row)" />
 | 
	
		
			
				|  |  | +                    </template>
 | 
	
		
			
				|  |  | +                  </el-table-column>
 | 
	
		
			
				|  |  | +                  <el-table-column prop="data" label="参数值">
 | 
	
		
			
				|  |  | +                    <template #default="{ row }">
 | 
	
		
			
				|  |  | +                      <el-input v-model.number="row.data" @change="handleEdit(row)" />
 | 
	
		
			
				|  |  | +                    </template>
 | 
	
		
			
				|  |  | +                  </el-table-column>
 | 
	
		
			
				|  |  | +                 <el-table-column prop="con" label="启用" width="100">
 | 
	
		
			
				|  |  | +                    <template v-slot="scope">
 | 
	
		
			
				|  |  | +                      <el-checkbox :false-label="'-1'" :true-label="'1'" :label="false" v-model="scope.row.enable"  @change="changecheck($event,scope.row)"/>
 | 
	
		
			
				|  |  | +                    </template>
 | 
	
		
			
				|  |  | +                  </el-table-column> 
 | 
	
		
			
				|  |  | +              
 | 
	
		
			
				|  |  | +                </el-table>
 | 
	
		
			
				|  |  | +              </div>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  | +              </el-tab-pane>
 | 
	
		
			
				|  |  | +              <el-tab-pane label="ADflow">ADflow</el-tab-pane>
 | 
	
		
			
				|  |  | +            </el-tabs>
 | 
	
		
			
				|  |  | +              </el-form>
 | 
	
		
			
				|  |  | +            </div>
 | 
	
		
			
				|  |  | +            <template #footer>
 | 
	
		
			
				|  |  | +              <div class="dialog-footer">
 | 
	
		
			
				|  |  | +                <el-button @click="dialog.XfAD = false">取消</el-button>
 | 
	
		
			
				|  |  | +                <el-button type="primary" @click="cstok()">
 | 
	
		
			
				|  |  | +                  确定
 | 
	
		
			
				|  |  | +                </el-button>
 | 
	
		
			
				|  |  | +              </div>
 | 
	
		
			
				|  |  | +            </template>
 | 
	
		
			
				|  |  | +          </el-dialog>
 | 
	
		
			
				|  |  |            <!-- 内容区 -->
 | 
	
		
			
				|  |  |            <div class="main  mianflex">
 | 
	
		
			
				|  |  |              <!--left菜单栏  -->
 | 
	
	
		
			
				|  | @@ -1534,6 +1636,12 @@ let sctable = ref([]);
 | 
	
		
			
				|  |  |  //   val:'3',name:"约束条件",
 | 
	
		
			
				|  |  |  // }])
 | 
	
		
			
				|  |  |  //  let quval=ref('1')
 | 
	
		
			
				|  |  | +let currentTab=ref(0);
 | 
	
		
			
				|  |  | +let tabslist = ref([
 | 
	
		
			
				|  |  | +  { id: '0', name: '来流参数' },
 | 
	
		
			
				|  |  | +  { id: '1', name: '设置参数' },
 | 
	
		
			
				|  |  | +  { id: '2', name: '分析参数' },
 | 
	
		
			
				|  |  | +])
 | 
	
		
			
				|  |  |  let quxian = ref([
 | 
	
		
			
				|  |  |    { label: '设计变量', value: '设计变量' },
 | 
	
		
			
				|  |  |    { label: '约束条件', value: '约束条件' },
 | 
	
	
		
			
				|  | @@ -1746,6 +1854,7 @@ let dialog = ref({
 | 
	
		
			
				|  |  |    Xfiol: false,
 | 
	
		
			
				|  |  |    tidu:false,
 | 
	
		
			
				|  |  |    CSTt:false,
 | 
	
		
			
				|  |  | +  XfAD:true,
 | 
	
		
			
				|  |  |    enddialog: false,
 | 
	
		
			
				|  |  |    addfun: false,
 | 
	
		
			
				|  |  |    sufun: false,
 | 
	
	
		
			
				|  | @@ -1924,6 +2033,28 @@ const handleNodeClick = (data) => {
 | 
	
		
			
				|  |  |    tabactive.value = data.label;
 | 
	
		
			
				|  |  |    dialogbolen();
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +let lailiutable=ref([
 | 
	
		
			
				|  |  | +{
 | 
	
		
			
				|  |  | +    date: '2016-05-04',
 | 
	
		
			
				|  |  | +    name: 'Aleyna Kutzner',
 | 
	
		
			
				|  |  | +    con:-1
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    date: '2016-05-03',
 | 
	
		
			
				|  |  | +    name: 'Helen Jacobi',
 | 
	
		
			
				|  |  | +    con:1
 | 
	
		
			
				|  |  | +  }])
 | 
	
		
			
				|  |  | +  let fenxtable=ref([
 | 
	
		
			
				|  |  | +{
 | 
	
		
			
				|  |  | +    date: '2016-05-04',
 | 
	
		
			
				|  |  | +    name: '升力系数Cl',
 | 
	
		
			
				|  |  | +    con:-1
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    date: '2016-05-03',
 | 
	
		
			
				|  |  | +    name: '上表面转换点位置xtr-upper',
 | 
	
		
			
				|  |  | +    con:1
 | 
	
		
			
				|  |  | +  }])
 | 
	
		
			
				|  |  |  // cst时间
 | 
	
		
			
				|  |  |  const keydownenter=()=>{
 | 
	
		
			
				|  |  |    //cstnum.value='';
 | 
	
	
		
			
				|  | @@ -1954,7 +2085,7 @@ tableDatacst.value=tablearr;
 | 
	
		
			
				|  |  |  const cstok=()=>{
 | 
	
		
			
				|  |  |   // cstnum.value='';
 | 
	
		
			
				|  |  |    dialog.value.CSTt = false;
 | 
	
		
			
				|  |  | -  //console.log(tableDatacst.value);
 | 
	
		
			
				|  |  | +  console.log(tableDatacst.value);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  const optimizerfalse = (val) => {
 | 
	
	
		
			
				|  | @@ -2561,7 +2692,6 @@ const getarr = (name, arrays) => {
 | 
	
		
			
				|  |  |      } else {
 | 
	
		
			
				|  |  |        att = arr;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      const valuesWithSemiColons = att.join(',');
 | 
	
		
			
				|  |  |      name += valuesWithSemiColons + ';';
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -3042,6 +3172,10 @@ const footerShows = (evt) => {
 | 
	
		
			
				|  |  |  //   console.log('echartData changed:', newValue);
 | 
	
		
			
				|  |  |  // //  console.log(optmonitor1.value);
 | 
	
		
			
				|  |  |  // });
 | 
	
		
			
				|  |  | +// 选项卡
 | 
	
		
			
				|  |  | +const selectTab=(index)=>{
 | 
	
		
			
				|  |  | +  currentTab.value = index;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  <style lang="scss" scoped>
 | 
	
		
			
				|  |  |  .conter_flex {
 | 
	
	
		
			
				|  | @@ -3232,7 +3366,7 @@ const footerShows = (evt) => {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  .classtable .el-table td.el-table__cell div {
 | 
	
		
			
				|  |  | -  height: 24px;
 | 
	
		
			
				|  |  | +  height: 30px;
 | 
	
		
			
				|  |  |    overflow: hidden;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 |