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] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E6=8E=A5=E5=BE=85=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4=E9=99=90?= =?UTF-8?q?=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 = {