|
@@ -111,10 +111,64 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="优化运行" name="Three">优化运行</el-tab-pane>
|
|
|
- <el-tab-pane label="优化结果" name="Six">优化结果</el-tab-pane>
|
|
|
- <el-tab-pane label="数据库管理" name="Seven">数据库管理</el-tab-pane>
|
|
|
- <el-tab-pane label="帮助" name="eight">帮助</el-tab-pane>
|
|
|
+ <el-tab-pane label="优化运行" name="Three">
|
|
|
+ <div class="imgzong">
|
|
|
+ <div class="listitem lbg_color3 bkcolor3 threelist" >
|
|
|
+ <div class="item2 floatitem" v-for="(item, index) in Threelist" :key="'Three-' + index"
|
|
|
+ :class="{ activeOrange: active == 'Three-' + index }"
|
|
|
+ @click="clickgeometry($event, index, 'Three-' + index)">
|
|
|
+ <el-image :src="getImgPath(item.url)" fit="cover" />
|
|
|
+ <span>{{ item.titlie }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="listitem lbg_color3 bkcolor3" v-for="(item, index) in Threelist1" :key="'Three1-' + index"
|
|
|
+ :class="{ activeOrange: active == 'Three1' + index }"
|
|
|
+ @click="clickgeometry($event, index, 'Three1' + index)">
|
|
|
+ <div class="item2 ">
|
|
|
+ <el-image :src="getImgPath(item.url)" fit="cover" />
|
|
|
+ <span>{{ item.titlie }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="优化结果" name="Six">
|
|
|
+ <div class="imgzong">
|
|
|
+ <!-- <button @click="etImgPath()"></button> -->
|
|
|
+ <div class="listitem lbg_color3 bkcolor3" v-for="(item, index) in Sixlist" :key="'Six' + index"
|
|
|
+ :class="{ activeOrange: active == 'Six' + index }"
|
|
|
+ @click="clickgeometry($event, index, 'Six' + index)">
|
|
|
+ <div class="item2 ">
|
|
|
+ <el-image :src="getImgPath(item.url)" fit="cover" />
|
|
|
+ <span>{{ item.titlie }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="数据库管理" name="Seven">
|
|
|
+ <div class="imgzong">
|
|
|
+ <div class="listitem lbg_color3 bkcolor3" v-for="(item, index) in Sevenlist" :key="'Seven' + index"
|
|
|
+ :class="{ activeOrange: active == 'Seven' + index }"
|
|
|
+ @click="clickgeometry($event, index, 'Seven' + index)">
|
|
|
+ <div class="item2 ">
|
|
|
+ <el-image :src="getImgPath(item.url)" fit="cover" />
|
|
|
+ <span>{{ item.titlie }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="帮助" name="eight">
|
|
|
+ <div class="imgzong">
|
|
|
+ <div class="listitem lbg_color3 bkcolor3" v-for="(item, index) in eightlist" :key="'eight' + index"
|
|
|
+ :class="{ activeOrange: active == 'eight' + index }"
|
|
|
+ @click="clickgeometry($event, index, 'eight' + index)">
|
|
|
+ <div class="item2 ">
|
|
|
+ <el-image :src="getImgPath(item.url)" fit="cover" />
|
|
|
+ <span>{{ item.titlie }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
<!-- 新建任务 -->
|
|
@@ -591,6 +645,121 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+ <!-- 任务管理 -->
|
|
|
+ <el-dialog v-model="dialog.task" align-center :modal="false" :close-on-click-modal="true"
|
|
|
+ :append-to-body="true" draggable :fullscreen="false" :modal-append-to-body="false" modal-class="summary-dlg"
|
|
|
+ :before-close="handleClose" width="800px" class="dialog_class bgcolor tianjia">
|
|
|
+
|
|
|
+ <template #header="{ titleId, titleClass }">
|
|
|
+ <div class="my-header ">
|
|
|
+ <el-image :src="getImgPath('s11.png')" fit="contain"></el-image>
|
|
|
+ <h4 :id="titleId" :class="titleClass">任务管理</h4>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div>
|
|
|
+
|
|
|
+ <el-table :data="tasktable" stripe style="width: 100%">
|
|
|
+ <el-table-column prop="id" label="任务编号" />
|
|
|
+ <el-table-column prop="name" label="任务名称" />
|
|
|
+ <el-table-column prop="state" label="任务类型"/>
|
|
|
+ <el-table-column prop="time" label="备注" />
|
|
|
+ </el-table>
|
|
|
+ <div class="sev_ruwu sev">
|
|
|
+ <div class="disflex">
|
|
|
+ <el-form-item label="关键字:">
|
|
|
+ <el-select v-model="seval4" :suffix-icon="CaretBottom" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in sevlist"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-input v-model="name" maxlength="18"
|
|
|
+ oninput="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" class="w-50 m-2"
|
|
|
+ placeholder="请输入关键字" />
|
|
|
+ <el-button class="btncolor">查询</el-button>
|
|
|
+ <el-button class="btncolor">添加</el-button>
|
|
|
+ <el-button class="btncolor">删除</el-button>
|
|
|
+ <el-button class="btncolor">提交</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button @click="dialog.task = false">取消</el-button>
|
|
|
+ <el-button type="primary" @click="dialog.task = false">
|
|
|
+ 确定
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 任务管理 -->
|
|
|
+ <el-dialog v-model="dialog.guanli" align-center :modal="false" :close-on-click-modal="true"
|
|
|
+ :append-to-body="true" draggable :fullscreen="false" :modal-append-to-body="false" modal-class="summary-dlg"
|
|
|
+ :before-close="handleClose" width="800px" class="dialog_class bgcolor tianjia">
|
|
|
+
|
|
|
+ <template #header="{ titleId, titleClass }">
|
|
|
+ <div class="my-header ">
|
|
|
+ <el-image :src="getImgPath('s11.png')" fit="contain"></el-image>
|
|
|
+ <h4 :id="titleId" :class="titleClass">任务管理</h4>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div>
|
|
|
+ <div class="sev_ruwu">
|
|
|
+ <div class="disflex">
|
|
|
+ <el-form-item label="关键字:">
|
|
|
+ <el-select v-model="seval4" :suffix-icon="CaretBottom" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in sevlist"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-input v-model="name" maxlength="18"
|
|
|
+ oninput="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" class="w-50 m-2"
|
|
|
+ placeholder="请输入关键字" />
|
|
|
+ <el-checkbox class="magright" label="范围" v-model="checkbox" />
|
|
|
+ <el-button class="btncolor">查询</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-table :data="tasktable" stripe style="width: 100%">
|
|
|
+ <el-table-column prop="id" label="任务编号" />
|
|
|
+ <el-table-column prop="name" label="任务名称" />
|
|
|
+ <el-table-column prop="state" label="任务类型"/>
|
|
|
+ <el-table-column prop="time" label="备注" />
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button @click="dialog.guanli = false">取消</el-button>
|
|
|
+ <el-button type="primary" @click="dialog.guanli = false">
|
|
|
+ 确定
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 内容区 -->
|
|
|
+ <div>
|
|
|
+ <!--left菜单栏 -->
|
|
|
+ <div class="left_main"></div>
|
|
|
+ <!-- 放图形 -->
|
|
|
+ <div class="main"></div>
|
|
|
+ <!-- 优化监控 -->
|
|
|
+ <div class="opt_moitor" v-if="tabactive=='Three10'">
|
|
|
+ <optmonitor />
|
|
|
+ </div>
|
|
|
+ <div class="opt_moitor" v-if="tabactive=='Six0'">
|
|
|
+ <sixtop />
|
|
|
+ <sixbottom/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</el-main>
|
|
|
|
|
@@ -604,8 +773,13 @@ import { ElMessage, ElButton, ElDialog, ElSelect } from 'element-plus'
|
|
|
import { Edit,CaretBottom } from '@element-plus/icons-vue'
|
|
|
import '@/utils/flexible'
|
|
|
import s0 from "@/assets/img/s0.png"
|
|
|
+import optmonitor from './echart/optimize_monitor.vue'
|
|
|
+import sixtop from './echart/six_top.vue'
|
|
|
+import sixbottom from './echart/six_bottom.vue'
|
|
|
const activeName = ref('User')
|
|
|
let active = ref('');
|
|
|
+let tabactive=ref("");
|
|
|
+let checkbox=ref(false)
|
|
|
let formLabelWidth6 = ref(100)
|
|
|
let formLabelWidth1 = ref(200)
|
|
|
let formLabelWidth2 = ref(130)
|
|
@@ -637,10 +811,40 @@ let tasktion2 = ref([
|
|
|
{ url: 't3.png', titlie: "加点方法" },
|
|
|
{ url: 't4.png', titlie: "终止条件" },
|
|
|
])
|
|
|
+let Threelist = ref([
|
|
|
+ { url: 'tt.png', titlie: "开始" },
|
|
|
+ { url: 'tt1.png', titlie: "暂停" },
|
|
|
+ { url: 'tt2.png', titlie: "结束" },
|
|
|
+])
|
|
|
+let Threelist1 = ref([
|
|
|
+ { url: 'tt3.png', titlie: "优化监控" },
|
|
|
+])
|
|
|
+let Sixlist = ref([
|
|
|
+{ url: 'ss.png', titlie: '可视化' },
|
|
|
+{ url: 'ss1.png', titlie: '查看报告' },
|
|
|
+{ url: 'ss2.png', titlie: '导出报告' },
|
|
|
+])
|
|
|
+let Sevenlist = ref([
|
|
|
+{ url: 's11.png', titlie: '任务管理' },
|
|
|
+{ url: 's12.png', titlie: '任务检索' },
|
|
|
+{ url: 's13.png', titlie: '备份与恢复' },
|
|
|
+])
|
|
|
+let eightlist = ref([
|
|
|
+{ url: 'e1.png', titlie: '快速入门' },
|
|
|
+{ url: 'e2.png', titlie: '帮助文档' },
|
|
|
+{ url: 'e3.png', titlie: '关于软件' },
|
|
|
+])
|
|
|
let canshulist = ref([
|
|
|
{ label: 'CST参数化', value: 'CST参数化' },
|
|
|
{ label: 'FFD参数化', value: 'FFD参数化' },
|
|
|
])
|
|
|
+let sevlist = ref([
|
|
|
+{ label: '任务编号', value: '任务编号' },
|
|
|
+{ label: '任务名称', value: '任务名称' },
|
|
|
+{ label: '任务类型', value: '任务类型' },
|
|
|
+{ label: '创建时间', value: '创建时间' },
|
|
|
+])
|
|
|
+let seval4=ref('任务名称');
|
|
|
let agelist = ref([
|
|
|
{ label: 'Kriging模型', value: 'Kriging模型' },
|
|
|
{ label: '相关函数类型', value: '相关函数类型' },
|
|
@@ -683,6 +887,8 @@ let dialog = ref({
|
|
|
agency:false,
|
|
|
enddialog:false,
|
|
|
addfun:false,
|
|
|
+ task:false,
|
|
|
+ guanli:false,
|
|
|
})
|
|
|
let options=ref([
|
|
|
{ label: '升阻比', value: '升阻比' },
|
|
@@ -815,6 +1021,24 @@ const designtable = ref([
|
|
|
|
|
|
},
|
|
|
])
|
|
|
+const tasktable = ref([
|
|
|
+{
|
|
|
+ id:"01",
|
|
|
+ time: '2016-05-03',
|
|
|
+ name: '升阻比',
|
|
|
+ state: '增大',
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:"02",
|
|
|
+ time: '2016-05-03',
|
|
|
+ name: '升阻比',
|
|
|
+ state: '增大',
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+])
|
|
|
|
|
|
let name = ref("1")
|
|
|
let num = ref(1)
|
|
@@ -822,12 +1046,30 @@ const getImgPath = (url) => {
|
|
|
return new URL(`../assets/img/${url}`, import.meta.url).href
|
|
|
}
|
|
|
const handleClick = (tab, event) => {
|
|
|
- // console.log(tab, event)
|
|
|
+
|
|
|
+ console.log(tab.props.name);
|
|
|
+ tabactive.value=tab.props.name;
|
|
|
+ dialogcolse()
|
|
|
+}
|
|
|
+// 关闭所有弹窗
|
|
|
+const dialogcolse=()=>{
|
|
|
+ dialog.value.newdialog = false;
|
|
|
+ dialog.value.setdialog = false;
|
|
|
+ dialog.value.targetdialog = false;
|
|
|
+ dialog.value.design = false;
|
|
|
+ dialog.value.constraint = false;
|
|
|
+ dialog.value.parameter = false;
|
|
|
+ dialog.value.agency = false;
|
|
|
+ dialog.value.addfun = false;
|
|
|
+ dialog.value.enddialog = false;
|
|
|
+ dialog.value.task = false;
|
|
|
+ dialog.value.guanli = false;
|
|
|
}
|
|
|
// 模块选择
|
|
|
const clickgeometry = (e, index, key) => {
|
|
|
console.log(key);
|
|
|
- switch (key) {
|
|
|
+ tabactive.value=key;
|
|
|
+ switch (tabactive.value) {
|
|
|
case "one0-0":
|
|
|
dialog.value.newdialog = true;
|
|
|
break;
|
|
@@ -855,6 +1097,15 @@ const clickgeometry = (e, index, key) => {
|
|
|
case "Task-2":
|
|
|
dialog.value.enddialog = true;
|
|
|
break;
|
|
|
+ case "Seven0":
|
|
|
+ dialog.value.task = true;
|
|
|
+ break;
|
|
|
+ case "Seven1":
|
|
|
+ dialog.value.guanli = true;
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ console.log(1111)
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|