소스 검색

修改点位表模板下载,创建点位表时参数修改

zhangyu 5 년 전
부모
커밋
d54452c33c
3개의 변경된 파일13개의 추가작업 그리고 11개의 파일을 삭제
  1. 4 4
      config/prod.env.js
  2. 8 7
      src/views/point/config_point/edit_origin/index.vue
  3. 1 0
      src/views/point/config_point/steps/step1.vue

+ 4 - 4
config/prod.env.js

@@ -1,8 +1,8 @@
 'use strict'
 module.exports = {
     NODE_ENV: '"production"',
-    BASE_URL: '"http://172.16.0.239"', //测试iframe地址
-    SSO_SERVER: '"http://192.168.20.101:8004"' //测试环境
-    // BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
-    // SSO_SERVER: '"http://sso.sagacloud.cn"'  //正式环境
+    // BASE_URL: '"http://172.16.0.239"', //测试iframe地址
+    // SSO_SERVER: '"http://192.168.20.101:8004"' //测试环境
+    BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
+    SSO_SERVER: '"http://sso.sagacloud.cn"'  //正式环境
 }

+ 8 - 7
src/views/point/config_point/edit_origin/index.vue

@@ -55,14 +55,15 @@
             return {
                 passWordArr: ['mqtt', 'amqp', 'opc'],
                 formData: {
-                    "ProtocolType": "", //协议类型
-                    "Name": "",
+                    ProtocolType: "", //协议类型
+                    ProtocolStandarded: true,
+                    Name: "",
                     ProtocolInfo: {
-                        "Ip": "", //ip
-                        "Port": "", //端口号,有些协议类型没有该信息
-                        "User": "", //用户名
-                        "Password": "", //密码
-                        "ProgId": "", //progId
+                        Ip: "", //ip
+                        Port: "", //端口号,有些协议类型没有该信息
+                        User: "", //用户名
+                        Password: "", //密码
+                        ProgId: "", //progId
                     },
                     Description: ""
                 },

+ 1 - 0
src/views/point/config_point/steps/step1.vue

@@ -233,6 +233,7 @@
                     },
                     responseType: 'blob'
                 }).then(function(res) {
+                    console.log(res)
                     var blob = new Blob([res.data], {
                         type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
                     });