@@ -616,6 +616,10 @@ export default {
// console.log(res);
this.tableData = res.data.records;
this.total = res.data.total;
+ // 表格中设置ref属性,在数据渲染之后或者updated()之后
+ this.$nextTick(() => {
+ this.$refs.table.doLayout();
+ });
});
}
},
diff --git a/src/views/building/index.vue b/src/views/building/index.vue
index e8545b3..9e753a4 100644
--- a/src/views/building/index.vue
+++ b/src/views/building/index.vue
@@ -152,7 +152,7 @@
-
+
@@ -1161,6 +1161,11 @@ export default {
this.$api.api.zkhousePage(obj).then((res) => {
// console.log(res)
this.tableData = res.data.records;
+
+ // 表格中设置ref属性,在数据渲染之后或者updated()之后
+ this.$nextTick(() => {
+ this.$refs.table.doLayout();
+ });
this.total = res.data.total;
});
},
From b7a2c0e3d951d1527f97471326597e8cc2787534 Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Wed, 10 Aug 2022 14:32:55 +0800
Subject: [PATCH 08/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E7=94=BB=E5=83=8F=E4=BC=A0=E5=8F=82=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 4 +---
src/views/Statistics/Insightintothedetails.vue | 2 +-
src/views/Statistics/index.vue | 8 +++++++-
vue.config.js | 13 ++++++-------
4 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 03e2ef2..bbae2af 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -30,9 +30,7 @@ export default {
background-color: #2671E2 !important;
border-color: #2671E2 !important;
}
-.el-scrollbar__wrap{
- height: 100vh;
-}
+
.el-table__row{
font-size: 14px!important;
}
diff --git a/src/views/Statistics/Insightintothedetails.vue b/src/views/Statistics/Insightintothedetails.vue
index fd28988..f5d2014 100644
--- a/src/views/Statistics/Insightintothedetails.vue
+++ b/src/views/Statistics/Insightintothedetails.vue
@@ -163,7 +163,7 @@ export default {
// 权限
this.sta_idx_download = this.permissions["sta_idx_download"];
var isnull=this.$route.query.flag;
- this.TimetoAhoose=isnull.TimetoAhoose;
+ if (isnull.TimetoAhoose) this.TimetoAhoose=isnull.TimetoAhoose;
this.customtime=isnull.customtime;
this.fromobj.starttime=isnull.starttime;
this.fromobj.endoftime=isnull.endoftime;
diff --git a/src/views/Statistics/index.vue b/src/views/Statistics/index.vue
index 0fd34ba..ff56188 100644
--- a/src/views/Statistics/index.vue
+++ b/src/views/Statistics/index.vue
@@ -335,13 +335,18 @@ export default {
},
Toview(item, index) {
let Userrecord = {
- TimetoAhoose: this.TimetoAhoose,
keywordsId: item.matchKeywords[index].keywordsId,
customtime: this.customtime,
starttime: this.fromobj.starttime,
endoftime: this.fromobj.endoftime,
houseId: this.houseId,
};
+ if (this.TimetoAhoose == 0) {
+ Userrecord.TimetoAhoose = this.TimetoAhoose
+ }
+ if (this.TimetoAhoose == 4) {
+ Userrecord.TimetoAhoose = 2
+ }
this.$router.push({
path: "/Statistics/Insightintothedetails",
query: { flag: Userrecord },
@@ -413,6 +418,7 @@ export default {
this.namelist = [];
this.numlist = [];
this.objlist = [];
+ this.alllist = [];
var dateType = "";
if (this.TimetoAhoose == 7) {
dateType = "";
diff --git a/vue.config.js b/vue.config.js
index 9df20e2..33e6862 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -3,15 +3,14 @@
* https://cli.vuejs.org/zh/config/
*/
// const url = 'http://192.168.31.161:9999' //长龙
-// const url = 'http://192.168.31.211:9999' // 泽明
-// const url = 'http://192.168.31.100:9999' //王笑
-// const url = 'http://62.234.122.43:9999' //正式
-// const url = 'http://81.70.55.170:9999' // 新测试服务器IP
// const url = 'http://192.168.31.149:9999' // 胜浩
-// const url = 'https://zanyong.hfju.com' // 正式域名
// const url = 'http://127.0.0.1:9999' // 本地
-const url = 'http://81.70.55.170:9999' // 新测试
-// const url = 'http://82.156.35.22:9999' // 新正式ip
+
+const url = 'http://81.70.55.170:9999' // 测试服务器
+
+// const url = 'http://62.234.122.43:9999' //正式服务器1
+// const url = 'http://82.156.35.22:9999' // 正式服务器2
+// const url = 'https://zanyong.hfju.com' // 正式域名
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']
module.exports = {
From 458bf77cf1c033a667298ea28799374c6cf00a2a Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Wed, 10 Aug 2022 16:27:39 +0800
Subject: [PATCH 09/13] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=94=BB=E5=83=8F?=
=?UTF-8?q?=E4=BC=A0=E5=8F=82=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Statistics/Insightintothedetails.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/views/Statistics/Insightintothedetails.vue b/src/views/Statistics/Insightintothedetails.vue
index f5d2014..69a85ca 100644
--- a/src/views/Statistics/Insightintothedetails.vue
+++ b/src/views/Statistics/Insightintothedetails.vue
@@ -164,11 +164,14 @@ export default {
this.sta_idx_download = this.permissions["sta_idx_download"];
var isnull=this.$route.query.flag;
if (isnull.TimetoAhoose) this.TimetoAhoose=isnull.TimetoAhoose;
- this.customtime=isnull.customtime;
+ if (isnull.customtime) this.customtime=isnull.customtime;
this.fromobj.starttime=isnull.starttime;
this.fromobj.endoftime=isnull.endoftime;
this.fromobj.projectId=isnull.houseId;
this.fromobj.keywords=isnull.keywordsId;
+ if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) {
+ this.TimetoAhoose = 6
+ }
this.Accesstolevel()
},
computed: {
From 6e695c5fe85684b201258d32fbfa0a6668d858d1 Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Thu, 11 Aug 2022 17:59:42 +0800
Subject: [PATCH 10/13] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81=E5=88=A4=E6=96=AD=20500=20=E4=B9=9F?=
=?UTF-8?q?=E5=8E=BB=E7=99=BB=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/axios.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/router/axios.js b/src/router/axios.js
index d8ecc09..9743413 100644
--- a/src/router/axios.js
+++ b/src/router/axios.js
@@ -64,7 +64,7 @@ axios.interceptors.response.use(res => {
const status = Number(res.status) || 200
const message = res.data.msg || errorCode[status] || errorCode['default']
- if (status === 401) {
+ if (status === 401 || status === 500) {
idx++
if(idx==1){
Message({
From e7362fe992da562a786a656697dd09f1be73235e Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Thu, 11 Aug 2022 18:09:13 +0800
Subject: [PATCH 11/13] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81=E5=88=A4=E6=96=AD=20500=20=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=E6=96=87=E5=AD=97=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/axios.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/router/axios.js b/src/router/axios.js
index 9743413..47ff382 100644
--- a/src/router/axios.js
+++ b/src/router/axios.js
@@ -63,12 +63,11 @@ axios.interceptors.response.use(res => {
NProgress.done()
const status = Number(res.status) || 200
const message = res.data.msg || errorCode[status] || errorCode['default']
-
if (status === 401 || status === 500) {
idx++
if(idx==1){
Message({
- message: message,
+ message: '当前登录状态异常,请重新登录~',
type: 'error'
})
}
From fb5beb2de58044bab36c867be2397abb578cf6bd Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Fri, 12 Aug 2022 14:24:50 +0800
Subject: [PATCH 12/13] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=BB=93?=
=?UTF-8?q?=E6=9D=9F=E6=8E=A5=E5=BE=85=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4?=
=?UTF-8?q?=E9=99=90=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/building/index.vue | 12 +++++++++++-
vue.config.js | 4 ++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/views/building/index.vue b/src/views/building/index.vue
index 9e753a4..d0bfdab 100644
--- a/src/views/building/index.vue
+++ b/src/views/building/index.vue
@@ -656,7 +656,7 @@ export default {
provinceId: "", //省id
cityId: "", //市id
agentId: localStorage.getItem("agentId"),
- closeTime: '', // 接待时长(自动结束)
+ closeTime: '120', // 接待时长(自动结束)
},
ruleForm1: {},
optionsagentId: [],
@@ -933,6 +933,16 @@ export default {
return;
}
this.loadingFlag = true;
+ if (this.ruleForm.closeTime && this.ruleForm.closeTime < 30) {
+ this.$message.error('自动结束接待时长限制最小为30分钟')
+ this.loadingFlag = false;
+ return
+ }
+ if (this.ruleForm.closeTime && this.ruleForm.closeTime > 720) {
+ this.$message.error('自动结束接待时长限制最大为720分钟')
+ this.loadingFlag = false;
+ return
+ }
// 编辑
if (this.editFlag) {
this.$api.api
diff --git a/vue.config.js b/vue.config.js
index 33e6862..24cc19c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -6,11 +6,11 @@
// const url = 'http://192.168.31.149:9999' // 胜浩
// const url = 'http://127.0.0.1:9999' // 本地
-const url = 'http://81.70.55.170:9999' // 测试服务器
+// const url = 'http://81.70.55.170:9999' // 测试服务器
// const url = 'http://62.234.122.43:9999' //正式服务器1
// const url = 'http://82.156.35.22:9999' // 正式服务器2
-// const url = 'https://zanyong.hfju.com' // 正式域名
+const url = 'https://zanyong.hfju.com' // 正式域名
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']
module.exports = {
From 015b99c916e88dbcea1d1b796cb6cb9866d55d3f Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Fri, 12 Aug 2022 16:39:02 +0800
Subject: [PATCH 13/13] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vue.config.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 24cc19c..33e6862 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -6,11 +6,11 @@
// const url = 'http://192.168.31.149:9999' // 胜浩
// const url = 'http://127.0.0.1:9999' // 本地
-// const url = 'http://81.70.55.170:9999' // 测试服务器
+const url = 'http://81.70.55.170:9999' // 测试服务器
// const url = 'http://62.234.122.43:9999' //正式服务器1
// const url = 'http://82.156.35.22:9999' // 正式服务器2
-const url = 'https://zanyong.hfju.com' // 正式域名
+// const url = 'https://zanyong.hfju.com' // 正式域名
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']
module.exports = {