diff --git a/build/utils.js b/build/utils.js index e5e3bda..50de2b4 100644 --- a/build/utils.js +++ b/build/utils.js @@ -66,7 +66,7 @@ loader: 'sass-resources-loader', options: { // 多个文件时用数组的形式传入,单个文件时可以直接使用 path.resolve(__dirname, '../src/common/style/mixin.scss' - resources: [resolveResource('mixin.scss')] + resources: [resolveResource('mixin.scss')] } } ]; diff --git a/build/utils.js b/build/utils.js index e5e3bda..50de2b4 100644 --- a/build/utils.js +++ b/build/utils.js @@ -66,7 +66,7 @@ loader: 'sass-resources-loader', options: { // 多个文件时用数组的形式传入,单个文件时可以直接使用 path.resolve(__dirname, '../src/common/style/mixin.scss' - resources: [resolveResource('mixin.scss')] + resources: [resolveResource('mixin.scss')] } } ]; diff --git a/config/index.js b/config/index.js index 45fc349..cd4a791 100644 --- a/config/index.js +++ b/config/index.js @@ -79,7 +79,7 @@ }, // Various Dev Server settings - host: "192.168.20.97", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/build/utils.js b/build/utils.js index e5e3bda..50de2b4 100644 --- a/build/utils.js +++ b/build/utils.js @@ -66,7 +66,7 @@ loader: 'sass-resources-loader', options: { // 多个文件时用数组的形式传入,单个文件时可以直接使用 path.resolve(__dirname, '../src/common/style/mixin.scss' - resources: [resolveResource('mixin.scss')] + resources: [resolveResource('mixin.scss')] } } ]; diff --git a/config/index.js b/config/index.js index 45fc349..cd4a791 100644 --- a/config/index.js +++ b/config/index.js @@ -79,7 +79,7 @@ }, // Various Dev Server settings - host: "192.168.20.97", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/ConfigManager/project.vue b/src/components/ConfigManager/project.vue index 0f34fa7..f532b07 100644 --- a/src/components/ConfigManager/project.vue +++ b/src/components/ConfigManager/project.vue @@ -557,16 +557,22 @@ } } } + this.projectFormInfo.rules = this.$initRules(this.projectFormInfo.fieldList); + setTimeout(() => { + this.projectFormInfo.ref.clearValidate(); + }, 0); }else{ this.resetForm(this.dialogInfo.type); if(this.projectFormInfo.ref) { this.projectFormInfo.ref.resetFields(); } + for(let item of this.projectFormInfo.fieldList) { + if(item.value === "endTime" || item.value === "startTime") { + item.show = false; + } + } } - this.projectFormInfo.rules = this.$initRules(this.projectFormInfo.fieldList); - setTimeout(() => { - this.projectFormInfo.ref.clearValidate(); - }, 0); + } }, computed: {