summaryrefslogtreecommitdiff
path: root/src/views/menuMBZTGZ/index.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/menuMBZTGZ/index.vue')
-rw-r--r--src/views/menuMBZTGZ/index.vue24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/views/menuMBZTGZ/index.vue b/src/views/menuMBZTGZ/index.vue
index fed0fda..9617be7 100644
--- a/src/views/menuMBZTGZ/index.vue
+++ b/src/views/menuMBZTGZ/index.vue
@@ -1,7 +1,7 @@
<template>
<div class="home" ref="appRef">
<div class="show">
- <div><span style="float: left;font-size: 20px;margin-left: 2%;color: #00C0FF;margin-top: 1%">{{"目标IP:"+parentLevelRow.target}}</span></div>
+ <div><span style="float: left;font-size: 20px;margin-left: 2%;color: #00C0FF;margin-top: 1%">{{"目标IP: "+parentLevelRow.target}}</span></div>
<div class="tag">
<el-tag class="tags" :style="{'color': (tag==='目标时延') ? '#f8fdff': '#565e6e'}" @click="updateTag('目标时延')">目标时延:</el-tag>
<el-tag class="tags1" :style="{'color': (tag1==='ICMP/v6延时') ? '#f8fdff': '#565e6e'}" @click="updateTag1('ICMP/v6延时')">ICMP/v6延时</el-tag>
@@ -12,10 +12,9 @@
<div v-if="tag==='应答内容'" class="answer">
<div style="display: flex;margin-right: 5px;">
<span style="margin-right: 2%;font-size: 25px;width: 15%">目标域名:</span>
- <el-input v-model="input" placeholder="请输入目标IP"></el-input>
+ <el-input v-model="input" placeholder="请输入目标域名"></el-input>
</div>
<el-button type="primary" style="margin-top: 2%;margin-bottom: 10%">查询</el-button>
-
</div>
<div class="top" v-if="tag==='目标时延'">
<div class="top-left">
@@ -52,7 +51,7 @@
</div>
<!-- <TargetView class="top-right"/>-->
</div>
- <NodeView class="bottom" v-if="tag==='目标时延'"></NodeView>
+ <NodeView class="bottom" v-if="tag==='目标时延'" :taskid=parentLevelRow.id></NodeView>
</div>
</div>
</template>
@@ -62,21 +61,20 @@ import TargetView from './module/target.vue'
import ImageView from './module/image.vue'
import SourceView from './module/source.vue'
import NodeView from './module/node.vue'
+
export default {
- name: 'home',
+ name: 'menuMBZTGZ',
components: { TargetView, ImageView, SourceView, NodeView },
created() {
this.parentLevelRow = this.$route.query.row;
this.input=this.parentLevelRow.target_domain;
-
-
+ this.left1data.taskid = this.parentLevelRow.id;
+ this.left1data.target = this.parentLevelRow.target;
},
// mounted() {
// this.$router.push('/range/home')
// },
methods:{
-
-
updateTag(val){
if(val==='目标时延'){
this.tag=val
@@ -85,14 +83,13 @@ export default {
this.tag=val
this.tag1=""
}
-
},
updateTag1(val){
this.tag1=val;
this.tag='目标时延';
this.left1data.type=this.changePeram(val);
- this.left1data.target=this.parentLevelRow.target;
-
+ this.left1data.target=this.parentLevelRow.target; // 任务目标IP
+ this.left1data.taskid=this.parentLevelRow.id; // 任务id
},
changePeram(val){
switch (val) {
@@ -114,7 +111,8 @@ export default {
data() {
return {
left1data:{
- target:'1.1.1.1',
+ taskid:'',
+ target:'',
type:'icmp',
},
leftYdata:[],