Sfoglia il codice sorgente

修改发布默认时间

zerp 2 anni fa
parent
commit
5cceccef7b
3 ha cambiato i file con 9 aggiunte e 8 eliminazioni
  1. 1 1
      config/dev.env.js
  2. 6 6
      config/index.js
  3. 2 1
      src/views/bid/index.vue

+ 1 - 1
config/dev.env.js

@@ -1,5 +1,5 @@
 module.exports = {
   NODE_ENV: '"development"',
   ENV_CONFIG: '"dev"',
-  BASE_API: '"/bidding"'
+  BASE_API: '""'
 }

+ 6 - 6
config/index.js

@@ -9,22 +9,22 @@ module.exports = {
         assetsSubDirectory: 'static',
         assetsPublicPath: '/',
         proxyTable: {
-            '/bid2': {
+            '/': {
                 // target: 'http://47.108.151.62:80/pre', //后端接口地址     中间人运营平台
                 // target: 'http://47.108.151.62', //后端接口地址   
-                // target: 'http://192.168.3.12:7001', //后端接口地址   
-                target: 'http://127.0.0.1:28081', //后端接口地址   
-                // target: 'http://47.108.14.99:7001', //后端接口地址   
+                target: 'http://192.168.3.12:7001', //后端接口地址   
+                // target: 'http://127.0.0.1:28081', //后端接口地址   
+                // target: 'http://47.108.14.99:7001/', //后端接口地址   
                 changeOrigin: true, //是否跨域
                 pathRewrite: {
-                    '^/bid2': '/', //重写,
+                    '^/': '/', //重写,
                 }
             }
 
         },
 
         // 本地开发使用   192.168.0.126  localhost
-        host: '192.168.3.5',
+        host: '192.168.3.4',
         // host: '192.168.124.14',
         port: 8081,
         autoOpenBrowser: true,

+ 2 - 1
src/views/bid/index.vue

@@ -378,6 +378,7 @@ ckTender3,
   },
   created() {
     this.getDictData()
+    console.log( process.env.BASE_API+" process.env.BASE_API")
   },
   methods: {
      // 投标详情 向父元素传递数据
@@ -642,7 +643,7 @@ window.open(officeUrl,'_target')
       end.setTime(start.getTime() + 3600 * 1000 * 24 * 1)
       console.log(this.formatDate(end))
       this.form.startTime = this.formatDate(start) + ' 00:00:00'
-      this.form.endTime = this.formatDate(end) + ' 15:00:00'
+      this.form.endTime = this.formatDate(end) + ' 23:59:59'
       this.bidDate = [this.form.startTime, this.form.endTime]
       this.form.fileUrl = null
       this.fileList = []