Browse Source

修改config文件

newStyle
douzhuo 1 year ago
parent
commit
c75a8ec503
10 changed files with 32 additions and 25 deletions
  1. +1
    -0
      .env.cldevelopment
  2. +1
    -0
      .env.development
  3. +1
    -0
      .env.localdevelopment
  4. +1
    -0
      .env.production
  5. +1
    -0
      .env.shdevelopment
  6. +3
    -0
      package.json
  7. +1
    -0
      src/App.vue
  8. +16
    -16
      src/page/wel.vue
  9. +6
    -2
      src/views/ReceivingRecords/table.js
  10. +1
    -7
      vue.config.js

+ 1
- 0
.env.cldevelopment View File

@@ -0,0 +1 @@
VUE_APP_BASE_API = 'http://192.168.31.160:9999'

+ 1
- 0
.env.development View File

@@ -0,0 +1 @@
VUE_APP_BASE_API = 'http://39.97.244.65:9999'

+ 1
- 0
.env.localdevelopment View File

@@ -0,0 +1 @@
VUE_APP_BASE_API = 'http://127.0.0.1:9999'

+ 1
- 0
.env.production View File

@@ -0,0 +1 @@
VUE_APP_BASE_API = 'https://www.aihxz.com'

+ 1
- 0
.env.shdevelopment View File

@@ -0,0 +1 @@
VUE_APP_BASE_API = 'http://192.168.31.85:9999'

+ 3
- 0
package.json View File

@@ -5,6 +5,9 @@
"scripts": {
"pre": "cnpm install || yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org ",
"dev": "vue-cli-service serve",
"cl": "vue-cli-service serve --mode cldevelopment",
"sh": "vue-cli-service serve --mode shdevelopment",
"local": "vue-cli-service serve --mode localdevelopment",
"build": "vue-cli-service build",
"build:docker": "vue-cli-service build --dest=./docker/dist/",
"lint": "vue-cli-service lint",


+ 1
- 0
src/App.vue View File

@@ -13,6 +13,7 @@ export default {
computed: {},
watch: {},
created() {
console.log(process.env.VUE_APP_BASE_API, 'this is process.env.VUE_APP_BASE_API' + process.env.VUE_APP_BASE_API)
},
methods: {}
}


+ 16
- 16
src/page/wel.vue View File

@@ -490,7 +490,7 @@
</el-tooltip>
</div>
<div class="span1">
{{ cardlist.datalist.prohibitedZb || 0 }}%
{{ cardlist.datalist.wordFraction || 0 }}%
</div>
</div>

@@ -505,26 +505,26 @@
<div class="pageboxtitle2 projectColumn">
<div class="span2">
<span class="span2-1">
环比:{{ cardlist.sequential.prohibitedZb || 0 }}</span
环比:{{ cardlist.sequential.wordFractionHb || 0 }}</span
>

<span class="span2-2" v-if="cardlist.liftlist.prohibitedZb > 0">
+{{ cardlist.liftlist.prohibitedZb || 0 }}%
<span class="span2-2" v-if="cardlist.liftlist.wordFractionHb > 0">
+{{ cardlist.liftlist.wordFractionHb || 0 }}%
<i class="up"></i>
</span>
<span class="span2-3" v-if="cardlist.liftlist.prohibitedZb < 0">
{{ cardlist.liftlist.prohibitedZb || 0 }}%
<span class="span2-3" v-if="cardlist.liftlist.wordFractionHb < 0">
{{ cardlist.liftlist.wordFractionHb || 0 }}%
<i class="down"></i>
</span>

<span
style="margin-left: 15px"
v-if="cardlist.liftlist.prohibitedZb > 0"
v-if="cardlist.liftlist.wordFractionHb > 0"
>数据有所增长</span
>
<span
style="margin-left: 15px"
v-if="cardlist.liftlist.prohibitedZb < 0"
v-if="cardlist.liftlist.wordFractionHb < 0"
>数据有所下降</span
>
</div>
@@ -551,7 +551,7 @@
</el-tooltip>
</div>
<div class="span1">
{{ cardlist.datalist.prohibitedZb || 0 }}%
{{ cardlist.datalist.wordFinishFraction || 0 }}%
</div>
</div>

@@ -566,26 +566,26 @@
<div class="pageboxtitle2 projectColumn">
<div class="span2">
<span class="span2-1">
环比:{{ cardlist.sequential.prohibitedZb || 0 }}</span
环比:{{ cardlist.sequential.wordFinishFractionHb || 0 }}</span
>

<span class="span2-2" v-if="cardlist.liftlist.prohibitedZb > 0">
+{{ cardlist.liftlist.prohibitedZb || 0 }}%
<span class="span2-2" v-if="cardlist.liftlist.wordFinishFractionHb > 0">
+{{ cardlist.liftlist.wordFinishFractionHb || 0 }}%
<i class="up"></i>
</span>
<span class="span2-3" v-if="cardlist.liftlist.prohibitedZb < 0">
{{ cardlist.liftlist.prohibitedZb || 0 }}%
<span class="span2-3" v-if="cardlist.liftlist.wordFinishFractionHb < 0">
{{ cardlist.liftlist.wordFinishFractionHb || 0 }}%
<i class="down"></i>
</span>

<span
style="margin-left: 15px"
v-if="cardlist.liftlist.prohibitedZb > 0"
v-if="cardlist.liftlist.wordFinishFractionHb > 0"
>数据有所增长</span
>
<span
style="margin-left: 15px"
v-if="cardlist.liftlist.prohibitedZb < 0"
v-if="cardlist.liftlist.wordFinishFractionHb < 0"
>数据有所下降</span
>
</div>


+ 6
- 2
src/views/ReceivingRecords/table.js View File

@@ -22,6 +22,7 @@ export default {
sortable: true,
label: '接待开始时间',
prop: 'createTime',
overHidden: true,
},
{
label: "顾问",
@@ -106,8 +107,11 @@ export default {

{
sortable: true,
label: "画像标签触达次数",
prop: "total",
label: "挖掘成功率",
prop: "wordFinishFraction",
formatter: data => {
return (data.wordFinishFraction||0) + '%'
}
},

{


+ 1
- 7
vue.config.js View File

@@ -2,14 +2,8 @@
* 配置参考:
* https://cli.vuejs.org/zh/config/
*/
const url = 'http://192.168.31.160:9999' //长龙
// const url = 'http://192.168.31.85:9999' // 胜浩
// const url = 'http://127.0.0.1:9999' // 本地

// const url = 'http://39.97.244.65:9999' // 测试服务器

// const url = 'http://62.234.122.43:9999' //正式服务器1
// const url = 'https://www.aihxz.com' // 正式域名
const url = process.env.VUE_APP_BASE_API // 配置.env文件通过运行命令启动不同调试环境
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']
module.exports = {


Loading…
Cancel
Save