|
|
|
@ -29,17 +29,17 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">名称</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="system-info-danger-input form-control " type="text" ng-model="tableForm.name" name="orcName" ng-minlength="2" ng-maxlength="20" required="required"/>
|
|
|
|
|
<input class="system-info-danger-input form-control " type="text" ng-model="tableForm.name" name="orcName" ng-minlength="2" ng-maxlength="20" required="required" ng-focus="tableForm.name=''"/>
|
|
|
|
|
<div class="system-info-danger-red-char form-error" ng-show="validForm.orcName.$invalid && submitted">
|
|
|
|
|
<span role="alert" ng-show="validForm.orcName.$error.required">名称不能为空</span>
|
|
|
|
|
<span role="alert" ng-show="!validForm.orcName.$error.required && validForm.orcName.$invalid">请输入输入2-20个字符的数据名称</span>
|
|
|
|
|
<span role="alert" ng-show="!validForm.orcName.$error.required && validForm.orcName.$invalid">请输入2-20个字符的数据名称</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">IP</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.ip" name="orcIP" ng-pattern="/((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))/" required="required"/>
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.ip" name="orcIP" ng-pattern="/((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))/" required="required" ng-focus="tableForm.ip=''"/>
|
|
|
|
|
<div class="system-info-danger-red-char form-error" ng-show="validForm.orcIP.$invalid && submitted">
|
|
|
|
|
<span role="alert" ng-show="validForm.orcIP.$error.required">IP不能为空</span>
|
|
|
|
|
<span role="alert" ng-show="validForm.orcIP.$error.pattern">请输入正确的IP地址</span>
|
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">端口号</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.port" name="orcPort" ng-pattern="/^([1-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/" required="required"/>
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.port" name="orcPort" ng-pattern="/^([1-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/" required="required" ng-focus="tableForm.port=''"/>
|
|
|
|
|
<div class="system-info-danger-red-char form-error" ng-show="validForm.orcPort.$invalid && submitted">
|
|
|
|
|
<span role="alert" ng-show="validForm.orcPort.$error.required">端口号不能为空</span>
|
|
|
|
|
<span role="alert" ng-show="validForm.orcPort.$error.pattern">端口号必须为1~65535的数字</span>
|
|
|
|
@ -59,7 +59,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">用戶名</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.user" name="orcUser" ng-pattern="/^\w{2,15}$/" required="required"/>
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.user" name="orcUser" ng-pattern="/^\w{2,15}$/" required="required" ng-focus="tableForm.user=''"/>
|
|
|
|
|
<div class="system-info-danger-red-char form-error" ng-show="validForm.orcUser.$invalid && submitted">
|
|
|
|
|
<span role="alert" ng-show="validForm.orcUser.$error.required">用户名不能为空</span>
|
|
|
|
|
<span role="alert" ng-show="validForm.orcUser.$error.pattern">用户名必须为2-15个字母、数字或下划线</span>
|
|
|
|
@ -69,7 +69,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">密码</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.password" name="orcPassword" ng-pattern="/^\w{2,15}$/" required="required"/>
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.password" name="orcPassword" ng-pattern="/^\w{2,15}$/" required="required" ng-focus="tableForm.password=''"/>
|
|
|
|
|
<div class="system-info-danger-red-char form-error" ng-show="validForm.orcPassword.$invalid && submitted">
|
|
|
|
|
<span role="alert" ng-show="validForm.orcPassword.$error.required">密码不能为空</span>
|
|
|
|
|
<span role="alert" ng-show="validForm.orcPassword.$error.pattern">密码必须为2-15个字母、数字或下划线</span>
|
|
|
|
@ -79,7 +79,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">服务名</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.databaseName" name="orcService" ng-pattern="/^[a-zA-Z]{1,10}$/" required="required"/>
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.databaseName" name="orcService" ng-pattern="/^[a-zA-Z]{1,10}$/" required="required" ng-focus="tableForm.databaseName=''"/>
|
|
|
|
|
<div class="system-info-danger-red-char form-error" ng-show="validForm.orcService.$invalid && submitted">
|
|
|
|
|
<span role="alert" ng-show="validForm.orcService.$error.required">服务名不能为空</span>
|
|
|
|
|
<span role="alert" ng-show="validForm.orcService.$error.pattern">服务名必须为1-10个字母</span>
|
|
|
|
@ -89,7 +89,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">表空间名</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.tableName" name="orcTable" ng-pattern="/^\w{1,15}$/" required="required"/>
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.tableName" name="orcTable" ng-pattern="/^\w{1,15}$/" required="required" ng-focus="tableForm.tableName=''"/>
|
|
|
|
|
<div class="system-info-danger-red-char form-error" ng-show="validForm.orcTable.$invalid && submitted">
|
|
|
|
|
<span role="alert" ng-show="validForm.orcTable.$error.required">表空间名不能为空</span>
|
|
|
|
|
<span role="alert" ng-show="validForm.orcTable.$error.pattern">表空间名必须为1-15个字母、数字或下划线</span>
|
|
|
|
@ -99,7 +99,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">表后缀名</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.suffix" name="orcSuffix" ng-pattern="/^\w{1,10}$/" required="required"/>
|
|
|
|
|
<input class="system-info-danger-input form-control" type="text" ng-model="tableForm.suffix" name="orcSuffix" ng-pattern="/^\w{1,10}$/" required="required" ng-focus="tableForm.suffix=''"/>
|
|
|
|
|
<div class="system-info-danger-red-char form-error" ng-show="validForm.orcSuffix.$invalid && submitted">
|
|
|
|
|
<span role="alert" ng-show="validForm.orcSuffix.$error.required">表后缀名不能为空</span>
|
|
|
|
|
<span role="alert" ng-show="validForm.orcSuffix.$error.pattern">表后缀名必须为1-10个字母、数字或下划线</span>
|
|
|
|
|