summaryrefslogtreecommitdiff
path: root/src/views/menuTaskManagement/module/UserForm.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/menuTaskManagement/module/UserForm.vue')
-rw-r--r--src/views/menuTaskManagement/module/UserForm.vue48
1 files changed, 34 insertions, 14 deletions
diff --git a/src/views/menuTaskManagement/module/UserForm.vue b/src/views/menuTaskManagement/module/UserForm.vue
index 1d6f98f..708b714 100644
--- a/src/views/menuTaskManagement/module/UserForm.vue
+++ b/src/views/menuTaskManagement/module/UserForm.vue
@@ -49,7 +49,6 @@
<el-option
v-for="item in strategy"
:key="item.value"
- :label="item.label"
:value="item.value">
</el-option>
</el-select>
@@ -134,10 +133,12 @@ export default {
{ value: 'ddos', label: '拒绝服务', type: 'warning' },
{ value: 'sjqp', label: '数据欺骗', type: 'warning' },
],
- agencyChange:[
- { value: '中国北京', label: '中国北京', type: 'success' },
- { value: '美国纽约', label: '美国纽约', type: 'warning' },
- ],
+ // 代理选择列表
+ // agencyChange:[
+ // { value: '中国北京', label: '中国北京', type: 'success' },
+ // { value: '美国纽约', label: '美国纽约', type: 'warning' },
+ // ],
+ agencyChange:[],
stateAwareMode:[
{ value: 'auto', label: '自动选择', type: 'success' },
{ value: 'tcp', label: 'TCP时延', type: 'warning' },
@@ -149,10 +150,11 @@ export default {
{ value: 'now', label: '立刻执行', type: 'success' },
{ value: 'man', label: '手动执行', type: 'warning' },
]
-
-
}
},
+ created(){
+ this.getAgenayList();
+ },
methods: {
getTagsByIP(val){
let data={
@@ -165,8 +167,25 @@ export default {
}).catch(err=>{
console.log(err)
})
-
-
+ },
+ // 获取代理信息
+ getAgenayList(){
+ let data={
+ "atype":"gjst",
+ "status":1,
+ "idle":1
+ }
+ this.$axios.get(this.$http.api.agentQueryList,data).then(res=>{
+ if(res.code===200){
+ console.log("*****Length", res.total)
+ for (let i=0; i<res.total; i++) {
+ let id = res.agent_data[i].id
+ this.agencyChange.push({value:id})
+ }
+ }
+ }).catch(err=>{
+ console.log(err)
+ })
},
close() {
this.resetForm()
@@ -175,16 +194,17 @@ export default {
},
submit() {
let data={
- "target":this.form.domain,
+ // "target":this.form.domain,
"agent":this.form.agencyChange,
"name":this.form.name,
- "target_domain":"",
- "target_rr":this.form.inject,
+ "policy":this.form.strategy,
"policy_time":this.form.switchoverTime,
- "run_time":this.form.executeTime,
"run_flag":this.form.operationalConfiguration,
- "policy":this.form.strategy,
+ "run_time":this.form.executeTime,
"scan":this.form.stateAwareMode,
+ "target": this.form.ip,
+ "target_domain":this.form.domain,
+ "target_rr":this.form.inject,
}
console.log("EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE")
console.log(data)