|
@@ -717,181 +717,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
- <!-- 进步优化器 -->
|
|
|
- <!-- <el-dialog v-model="dialog.jboptimizer" 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="430" class="dialog_class bgcolor tianjia sel">
|
|
|
-
|
|
|
- <template #header="{ titleId, titleClass }">
|
|
|
- <div class="my-header ">
|
|
|
- <el-image :src="getImgPath('t2.png')" fit="contain"></el-image>
|
|
|
- <h4 :id="titleId" :class="titleClass">优化算法:</h4>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <div class="numberinput lefttext">
|
|
|
- <el-form>
|
|
|
- <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">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="种群规模:" :label-width="formLabelWidth1">
|
|
|
- <el-input-number 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-number v-model="youhua.epoch" :step="100" :min="0" :max="1000" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="交叉概率:" :label-width="formLabelWidth1">
|
|
|
- <el-input-number v-model="youhua.probcrossover" :step="0.1" :min="0" :max="1000"
|
|
|
- controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="变异概率:" :label-width="formLabelWidth1">
|
|
|
- <el-input-number v-model="youhua.probmut" :step="0.1" :min="0" :max="1000" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="交叉算子:" :label-width="formLabelWidth1">
|
|
|
- <el-select v-model="youhua.proboperator" :suffix-icon="CaretBottom" placeholder="请选择">
|
|
|
- <el-option v-for="item in addlist2" :key="item.value" :label="item.label" :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="竞赛规模:" :label-width="formLabelWidth1">
|
|
|
- <el-input-number v-model="youhua.probscale" :min="0" :max="100" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="保留优选策略:" :label-width="formLabelWidth1">
|
|
|
- <el-select v-model="youhua.strategy" :suffix-icon="CaretBottom" placeholder="请选择">
|
|
|
- <el-option v-for="item in addlist3" :key="item.value" :label="item.label" :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="变异算子选择:" :label-width="formLabelWidth1">
|
|
|
- <el-select v-model="youhua.operator" :suffix-icon="CaretBottom" placeholder="请选择">
|
|
|
- <el-option v-for="item in addlist4" :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">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- <template #footer>
|
|
|
- <div class="dialog-footer">
|
|
|
- <el-button @click="dialog.jboptimizer = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="getaddsave(); dialog.jboptimizer = false">
|
|
|
- 确定
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-dialog> -->
|
|
|
- <!-- Xfiol改版之前 -->
|
|
|
- <!-- <el-dialog v-model="dialog.Xfiol" align-center :modal="false" :close-on-click-modal="false"
|
|
|
- :append-to-body="true" draggable :fullscreen="false" :modal-append-to-body="false"
|
|
|
- modal-class="summary-dlg2 summary-dlg" :before-close="handleClose" width="500"
|
|
|
- class="dialog_class bgcolor tianjia sel">
|
|
|
-
|
|
|
- <template #header="{ titleId, titleClass }">
|
|
|
- <div class="my-header ">
|
|
|
- <el-image :src="getImgPath('xuek9.png')" fit="contain"></el-image>
|
|
|
- <h4 :id="titleId" :class="titleClass">Xfiol</h4>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <div class="youhualog youhualog1" style="height: 480px;">
|
|
|
- <ul>
|
|
|
- <li v-for="(tab, index) in xfoil" :key="index" :class="{ 'active2': activeIndex3 === index }"
|
|
|
- @click="dianjia(index)">{{ tab }}</li>
|
|
|
- </ul>
|
|
|
- <div class="chushij">
|
|
|
- <el-button type="info" size="small" @click="initialize()">初始化</el-button>
|
|
|
- </div> -->
|
|
|
- <!-- 输入 -->
|
|
|
- <!-- <div class="eldesign classtable" style="margin-top: 10px;" v-if="activeIndex3 == 0">
|
|
|
- <el-table :data="srtable" border style="width: 100%" height="400">
|
|
|
- <el-table-column prop="enable" label="启用" width="50">
|
|
|
- <template v-slot="scope">
|
|
|
- <el-checkbox :false-label="'0'" :true-label="'1'" :label="false" v-model="scope.row.enable" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <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="v1" label="参数值1">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-input v-model.number="row.v1" @change="handleEdit(row)" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="v2" label="参数值2" width="100">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-input v-model.number="row.v2" @change="handleEdit(row)" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" width="140">
|
|
|
- <template #default="scope">
|
|
|
- <el-button size="small" type="success" @click.stop="susave(scope.$index, scope.row)">保存</el-button>
|
|
|
- <el-button size="small" type="danger" @click.stop="sudelete(scope.$index, scope.row)">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div> -->
|
|
|
- <!-- 执行 -->
|
|
|
- <!-- <div class="eldesign classtable" style="margin-top: 10px;" v-if="activeIndex3 == 1">
|
|
|
- <div style="display: flex;">
|
|
|
- <el-form-item label="执行路径">
|
|
|
- <el-select v-model="zhixing" :suffix-icon="CaretBottom" placeholder="请选择">
|
|
|
- <el-option label="Rosenbrock" value="Rosenbrock">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-button type="primary" style="margin-left: 10px;">选择路径</el-button>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
- <!-- 输出 -->
|
|
|
- <!-- <div class="eldesign classtable" style="margin-top: 10px;" v-if="activeIndex3 == 2">
|
|
|
- <el-table :data="sctable" border style="width: 100%" height="400">
|
|
|
- <el-table-column prop="enable" label="启用" width="50">
|
|
|
- <template v-slot="scope">
|
|
|
- <el-checkbox :false-label="'0'" :true-label="'1'" :label="false" v-model="scope.row.enable" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <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="v1" label="参数值1">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-input v-model="row.v1" @change="handleEdit(row)" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="v2" label="参数值2" width="100">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-input v-model="row.v2" @change="handleEdit(row)" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" width="140">
|
|
|
- <template #default="scope">
|
|
|
- <el-button size="small" type="success" @click.stop="scsave(scope.$index, scope.row)">保存</el-button>
|
|
|
- <el-button size="small" type="danger" @click.stop="scdelete(scope.$index, scope.row)">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <template #footer>
|
|
|
- <div class="dialog-footer">
|
|
|
- <el-button type="info" @click="newxfiol">新建 </el-button>
|
|
|
- <el-button type="info" @click="dialog.Xfiol = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="dialog.Xfiol = false">
|
|
|
- 确定
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-dialog> -->
|
|
|
+
|
|
|
<!-- Xfiol改版后的 -->
|
|
|
<el-dialog v-model="dialog.Xfiol" align-center :modal="false" :close-on-click-modal="false"
|
|
|
:append-to-body="true" draggable :fullscreen="false" :modal-append-to-body="false"
|
|
@@ -915,117 +741,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
- <!--梯度优化器 -->
|
|
|
- <!-- <el-dialog v-model="dialog.tidu" 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="430" class="dialog_class bgcolor tianjia sel">
|
|
|
-
|
|
|
- <template #header="{ titleId, titleClass }">
|
|
|
- <div class="my-header ">
|
|
|
- <el-image :src="getImgPath('xuek12.png')" fit="contain"></el-image>
|
|
|
- <h4 :id="titleId" :class="titleClass">梯度优化器</h4>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <div class="numberinput lefttext">
|
|
|
- <el-form>
|
|
|
- <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">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </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.epoch" :step="100" :min="0" :max="1000" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="线性约束容差:" :label-width="formLabelWidth1">
|
|
|
- <el-input v-model="youhua.epoch" :step="100" :min="0" :max="1000" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="非线性约束容差:" :label-width="formLabelWidth1">
|
|
|
- <el-input v-model="youhua.epoch" :step="100" :min="0" :max="1000" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="最优性度量容差::" :label-width="formLabelWidth1">
|
|
|
- <el-input v-model="youhua.epoch" :step="100" :min="0" :max="1000" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- <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">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- <template #footer>
|
|
|
- <div class="dialog-footer">
|
|
|
- <el-button @click="dialog.tidu = false">取消</el-button>
|
|
|
- <el-button type="primary" @click=" dialog.tidu = false">
|
|
|
- 确定
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-dialog> -->
|
|
|
- <!--CST -->
|
|
|
- <!-- <el-dialog v-model="dialog.CSTt" 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="900" class="dialog_class bgcolor tianjia sel">
|
|
|
-
|
|
|
- <template #header="{ titleId, titleClass }">
|
|
|
- <div class="my-header ">
|
|
|
- <el-image :src="getImgPath('xuek0.png')" fit="contain"></el-image>
|
|
|
- <h4 :id="titleId" :class="titleClass">CST</h4>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <div class="numberinput lefttext ">
|
|
|
- <el-form>
|
|
|
- <div style="width: 49%;">
|
|
|
- <el-form-item label="CST阶数:" :label-width="formLabelWidth3">
|
|
|
- <el-input v-model="cstnum" :max="20" controls-position="right" @keydown.enter='keydownenter'/>
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- <div style="display: flex;">
|
|
|
- <div class="cstleft ">
|
|
|
- <el-form-item label="上表面类函数参数N1:" :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="下表面类函数参数N1:" :label-width="formLabelWidth1">
|
|
|
- <el-input v-model="youhua.popsize" :step="100" :min="0" :max="1000" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- <div class="cstleft " style="margin-left: 20px;">
|
|
|
- <el-form-item label="上表面类函数参数N2:" :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="下表面类函数参数N2:" :label-width="formLabelWidth1">
|
|
|
- <el-input v-model="youhua.popsize" :step="100" :min="0" :max="1000" controls-position="right" />
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="classtable">
|
|
|
- <el-table :data="tableDatacst" style="width: 100%" border>
|
|
|
- <el-table-column prop="date" label="" width="180" />
|
|
|
- <el-table-column
|
|
|
- v-for="(item,index) in tablecstHeaders" :key="index"
|
|
|
- :prop="item.prop"
|
|
|
- :label="item.label">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-input v-model="row[item.prop]" @change="handleEdit(row)"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- <template #footer>
|
|
|
- <div class="dialog-footer">
|
|
|
- <el-button @click="dialog.CSTt = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="cstok()">
|
|
|
- 确定
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-dialog> -->
|
|
|
+
|
|
|
<!-- 列表 -->
|
|
|
<el-dialog v-model="dialog.listdialog" 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"
|
|
@@ -1233,7 +949,7 @@
|
|
|
<!-- 导出报告 -->
|
|
|
<el-dialog v-model="dialog.exportreport" 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" style="height: 722px;">
|
|
|
+ :before-close="handleClose" width="600" class="dialog_class bgcolor tianjia sel" style="max-height: 70%;">
|
|
|
|
|
|
<template #header="{ titleId, titleClass }">
|
|
|
<div class="my-header ">
|
|
@@ -1286,7 +1002,7 @@
|
|
|
<!-- CST -->
|
|
|
<el-dialog v-model="dialog.CSTt" 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="900" class="dialog_class bgcolor colortext tianjia sel">
|
|
|
+ :before-close="handleClose" width="840" class="dialog_class bgcolor colortext tianjia sel">
|
|
|
|
|
|
<template #header="{ titleId, titleClass }">
|
|
|
<div class="my-header ">
|
|
@@ -1307,7 +1023,7 @@
|
|
|
<!-- FFD -->
|
|
|
<el-dialog v-model="dialog.ffdt" 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="900" class="dialog_class bgcolor colortext tianjia sel">
|
|
|
+ :before-close="handleClose" width="730" class="dialog_class bgcolor colortext tianjia sel">
|
|
|
|
|
|
<template #header="{ titleId, titleClass }">
|
|
|
<div class="my-header ">
|
|
@@ -4554,14 +4270,11 @@ color: #2267B1;
|
|
|
background: #fff;
|
|
|
}
|
|
|
|
|
|
-.classtable .el-table .cell {
|
|
|
- font-family: 'Source Sans-Regular';
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-
|
|
|
.classtable .el-table td.el-table__cell div {
|
|
|
- height: 30px;
|
|
|
+ height: 31px;
|
|
|
overflow: hidden;
|
|
|
+ display: flex;
|
|
|
+ align-items: center; /* 垂直居中 */
|
|
|
}
|
|
|
|
|
|
.classtable .el-table td.el-table__cell,
|