浏览代码

群控开始执行任务

zhuxinbo 5 年之前
父节点
当前提交
a4f2282c90
共有 2 个文件被更改,包括 9 次插入4 次删除
  1. 7 3
      src/views/modules/appium/AppiumTaskListCan.vue
  2. 2 1
      vue.config.js

+ 7 - 3
src/views/modules/appium/AppiumTaskListCan.vue

@@ -157,7 +157,8 @@ export default {
       appiumDevice: '/ctop/bindAccountLogin/list',
       dataList: [],
       value: null,
-      form: this.$form.createForm(this)
+      form: this.$form.createForm(this),
+      jobId: ''
     }
   },
   computed: {
@@ -182,15 +183,18 @@ export default {
       this.$refs.modalItemForm.disableSubmit = false
     },
     handleOk() {
+      var that = this
       this.form.validateFieldsAndScroll((err, values) => {
         if (err) {
           // 这里做逻辑处理
         } else {
           var params = values
+          params.jobId = that.jobId
           console.log(params)
           postAction(this.run, params).then(res => {
             console.log(res)
-            this.visible = false
+            that.visible = false
+            this.form.resetFields()
           })
         }
       })
@@ -202,7 +206,7 @@ export default {
     },
     start(item) {
       this.visible = true
-      this.detail = item
+      this.jobId = item.id
       this.value = null
       var param = {}
       param.pageNo = 1

+ 2 - 1
vue.config.js

@@ -65,8 +65,9 @@ module.exports = {
        },*/
       '/jeecg-boot': {
         // target: 'http://39.97.120.42:8080', //请求本地 需要jeecg-boot后台项目  生产环境
-        target: 'http://39.106.184.70:8080', //请求本地 需要jeecg-boot后台项目
+        // target: 'http://39.106.184.70:8080', //请求本地 需要jeecg-boot后台项目
         // target: 'http://192.168.2.130:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+        target: 'http://192.168.2.133:8080', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.132:8080', //请求本地 需要jeecg-boot后台项目
         ws: false,
         changeOrigin: true