|
@@ -16,13 +16,13 @@
|
|
|
</div>
|
|
|
<div class="log" v-if="show">
|
|
|
<div class="header">算法运行日志</div>
|
|
|
- <div class="content" v-html="message"></div>
|
|
|
+ <div class="content" v-html="message" v-bind:style="{height: dynamicHeight}"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getAlgorithm, runAlgorithms, getLog } from '@/api/algoManager/algorithm'
|
|
|
+import { getAlgorithm, runAlgorithms, getLog,setLog } from '@/api/algoManager/algorithm'
|
|
|
import { registerAction } from 'echarts/core'
|
|
|
export default {
|
|
|
name: 'AlgoRun',
|
|
@@ -37,6 +37,7 @@ export default {
|
|
|
show: false,
|
|
|
message: null,
|
|
|
timer: null,
|
|
|
+ dynamicHeight: '500px'
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -106,7 +107,6 @@ export default {
|
|
|
.log {
|
|
|
width: 80%;
|
|
|
height: 500px;
|
|
|
- // background-color: black;
|
|
|
border: 1px solid #d1d1d1;
|
|
|
box-shadow: 10px 12px 10px #ebebeb;
|
|
|
margin-top: 27px;
|
|
@@ -121,6 +121,7 @@ export default {
|
|
|
width: 100%;
|
|
|
height: 475px;
|
|
|
background-color: black;
|
|
|
+ overflow-y: scroll;
|
|
|
border-right: 10px solid white;
|
|
|
padding: 15px;
|
|
|
}
|