Browse Source

adm:fix> 解决3.9.1 redmine bug

shaun-sheep 4 years ago
parent
commit
13b6d14e7b
2 changed files with 9 additions and 3 deletions
  1. 4 2
      config/prod.env.js
  2. 5 1
      src/components/ledger/lib/excelDialog.vue

+ 4 - 2
config/prod.env.js

@@ -1,13 +1,15 @@
 'use strict'
 module.exports = {
   NODE_ENV: '"production"',
-  BASE_URL: '"http://192.168.64.14:8081"', //测试iframe地址
+  // BASE_URL: '"http://192.168.64.14:8081"', //测试iframe地址
+  BASE_URL: '"http://182.92.126.202:9001"', //龙湖iframe地址
   // SSO_SERVER: '"http://192.168.12.238:8081"', //测试环境
   // BASE_URL: '"http://192.168.20.236"', //(新)测试iframe地址
   // SSO_SERVER: '"http://192.168.20.236:8086"', //(新)测试环境
   // MQTT_SERVICE: '"ws://172.16.42.210:61614/stomp/"' //MQ测试环境地址
   // BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
-  SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
+  // SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
+  SSO_SERVER: '"http://sso.sagacloud.cn"',  //龙湖正式环境
    MQTT_SERVICE: '"ws://adm.sagacloud.cn/stomp/"' //MQ正式环境地址
 }
 

+ 5 - 1
src/components/ledger/lib/excelDialog.vue

@@ -6,7 +6,7 @@
     </p>
     <el-upload
       class="upload-demo"
-      v-loading=loading
+      v-loading='loading'
       drag
       action="/api/datacenter/graphic/import/point"
       :show-file-list='false'
@@ -60,6 +60,10 @@ export default {
         this.loading = false
         this.messageKey = event.Message
         this.$message.success('上传成功')
+      } else {
+        this.loading = false
+        this.messageKey =''
+        this.$message.error('目前只支持.xlsx格式,请重新上传')
       }
     },
     error(event, file, fileList) {