From c75a8ec503d5d0fd24f639c36f3a9115463907d0 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 31 Jan 2023 10:45:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9config=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.cldevelopment | 1 + .env.development | 1 + .env.localdevelopment | 1 + .env.production | 1 + .env.shdevelopment | 1 + package.json | 3 +++ src/App.vue | 1 + src/page/wel.vue | 32 ++++++++++++++--------------- src/views/ReceivingRecords/table.js | 8 ++++++-- vue.config.js | 8 +------- 10 files changed, 32 insertions(+), 25 deletions(-) create mode 100644 .env.cldevelopment create mode 100644 .env.development create mode 100644 .env.localdevelopment create mode 100644 .env.production create mode 100644 .env.shdevelopment diff --git a/.env.cldevelopment b/.env.cldevelopment new file mode 100644 index 0000000..476142a --- /dev/null +++ b/.env.cldevelopment @@ -0,0 +1 @@ +VUE_APP_BASE_API = 'http://192.168.31.160:9999' \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..7992d92 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VUE_APP_BASE_API = 'http://39.97.244.65:9999' \ No newline at end of file diff --git a/.env.localdevelopment b/.env.localdevelopment new file mode 100644 index 0000000..8c86268 --- /dev/null +++ b/.env.localdevelopment @@ -0,0 +1 @@ +VUE_APP_BASE_API = 'http://127.0.0.1:9999' \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..55e1129 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VUE_APP_BASE_API = 'https://www.aihxz.com' \ No newline at end of file diff --git a/.env.shdevelopment b/.env.shdevelopment new file mode 100644 index 0000000..43dd154 --- /dev/null +++ b/.env.shdevelopment @@ -0,0 +1 @@ +VUE_APP_BASE_API = 'http://192.168.31.85:9999' \ No newline at end of file diff --git a/package.json b/package.json index 3c5b76d..ae821f8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/App.vue b/src/App.vue index 6a9f5ad..9a760b9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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: {} } diff --git a/src/page/wel.vue b/src/page/wel.vue index 023cb3a..2c5a530 100644 --- a/src/page/wel.vue +++ b/src/page/wel.vue @@ -490,7 +490,7 @@
- {{ cardlist.datalist.prohibitedZb || 0 }}% + {{ cardlist.datalist.wordFraction || 0 }}%
@@ -505,26 +505,26 @@
- 环比:{{ cardlist.sequential.prohibitedZb || 0 }} - - +{{ cardlist.liftlist.prohibitedZb || 0 }}% + + +{{ cardlist.liftlist.wordFractionHb || 0 }}% - - {{ cardlist.liftlist.prohibitedZb || 0 }}% + + {{ cardlist.liftlist.wordFractionHb || 0 }}% 数据有所增长 数据有所下降
@@ -551,7 +551,7 @@
- {{ cardlist.datalist.prohibitedZb || 0 }}% + {{ cardlist.datalist.wordFinishFraction || 0 }}%
@@ -566,26 +566,26 @@
- 环比:{{ cardlist.sequential.prohibitedZb || 0 }} - - +{{ cardlist.liftlist.prohibitedZb || 0 }}% + + +{{ cardlist.liftlist.wordFinishFractionHb || 0 }}% - - {{ cardlist.liftlist.prohibitedZb || 0 }}% + + {{ cardlist.liftlist.wordFinishFractionHb || 0 }}% 数据有所增长 数据有所下降
diff --git a/src/views/ReceivingRecords/table.js b/src/views/ReceivingRecords/table.js index fe840fc..146a995 100644 --- a/src/views/ReceivingRecords/table.js +++ b/src/views/ReceivingRecords/table.js @@ -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) + '%' + } }, { diff --git a/vue.config.js b/vue.config.js index 498d2a4..59e5876 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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 = {