yanderong
2026-09-16 7cbe45c103f7415f2d74d29084972d1c23fedd85
feat:增加中台地址验证
1个文件已修改
17 ■■■■■ 已修改文件
ruoyi-ui/src/views/visitor-admin/system/config.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/visitor-admin/system/config.vue
@@ -165,6 +165,10 @@
                <input v-model="form.visitorMachineEntryEnabled" type="checkbox">
                <span class="switch-control" />
              </label>
              <label class="input-field center-path-field">
                <span>中台地址</span>
                <input v-model="form.centerPath" type="text" placeholder="请输入中台地址">
              </label>
            </div>
          </div>
        </section>
@@ -197,7 +201,8 @@
  systemName: '',
  logoUrl: '',
  serviceProvider: '',
  supportPhone: ''
  supportPhone: '',
  centerPath: ''
}
export default {
@@ -273,6 +278,7 @@
        this.form = {
          ...defaultForm,
          ...data,
          centerPath: data.centerPath || '',
          printFields,
          onsiteRegistrationEnabled: this.boolValue(data.onsiteRegistrationEnabled, defaultForm.onsiteRegistrationEnabled),
          appointmentRegistrationEnabled: this.boolValue(data.appointmentRegistrationEnabled, defaultForm.appointmentRegistrationEnabled),
@@ -373,3 +379,12 @@
  }
}
</script>
<style scoped>
.center-path-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  max-width: 520px;
  margin: 20px 0 0 12px;
}
</style>