|
|
|
@ -5,34 +5,107 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div hawtio-tabs></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container-content " >
|
|
|
|
|
<div class="container-content ">
|
|
|
|
|
<div class="row align-center mb10" ng-hide="model.oracleParam.length">
|
|
|
|
|
<p class="alert alert-info">当前没有配置汇总库信息,请配置,否则汇总操作将不可用!</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row mb10" ng-show="model.oracleParam.length">
|
|
|
|
|
<table class="table table-bordered table-striped sj_content_table" hawtio-simple-table="tableConfig" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" >
|
|
|
|
|
<div >
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div>
|
|
|
|
|
<button class="btn sj_btn_green mb10" style="color:#fff;" ng-click="create()">
|
|
|
|
|
<span class="glyphicon glyphicon-plus"></span> 添加
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr>
|
|
|
|
|
<div class="row " style="padding-top:10px;" ng-show="tableForm.length>=0 && (edit || add)" >
|
|
|
|
|
<h3 class="mb10" ng-show="edit" >编辑汇总库连接信息:</h3>
|
|
|
|
|
<h3 class="mb10" ng-show="add" >添加汇总库信息:</h3>
|
|
|
|
|
<div class="col-md-6 col-md-offset-1 " >
|
|
|
|
|
<form class="form-horizontal" ng-submit="onSubmit(validForm.$valid)" novalidate="novalidate" name="validForm">
|
|
|
|
|
<div class="form-group" ng-repeat="item in tableForm">
|
|
|
|
|
<label class="col-sm-2 control-label">{{item.name}}</label>
|
|
|
|
|
<div class="row " style="padding-top:10px;" ng-show="tableForm && (edit || add)">
|
|
|
|
|
<h3 class="mb10" ng-show="edit">编辑汇总库连接信息:</h3>
|
|
|
|
|
<h3 class="mb10" ng-show="add">添加汇总库信息:</h3>
|
|
|
|
|
<div class="col-md-6 col-md-offset-1 ">
|
|
|
|
|
<form class="form-horizontal" novalidate="novalidate" name="validForm" ng-submit="onSubmit(tableForm)">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">名称</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="form-control " type="text" ng-model="tableForm.name" name="orcName" required="required"/>
|
|
|
|
|
<div class="form-error" ng-show="validForm.orcName.$invalid && submitted">
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcName.$error.required">IP不能为空</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="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"/>
|
|
|
|
|
<div class="form-error" ng-show="validForm.orcIP.$invalid && submitted">
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcIP.$error.required">IP不能为空</span>
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcIP.$error.pattern">请输入正确的IP地址</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">端口号</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="form-control" type="text" ng-model="tableForm.port" name="orcPort" ng-pattern="/^[1-9]$|(^[1-9][0-9]$)|(^[1-9][0-9][0-9]$)|(^[1-9][0-9][0-9][0-9]$)|(^[1-6][0-5][0-5][0-3][0-5]$)/" required="required"/>
|
|
|
|
|
<div class="form-error" ng-show="validForm.orcPort.$invalid && submitted">
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcPort.$error.required">端口号不能为空</span>
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcPort.$error.pattern">端口号必须为1~65535的数字</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">用戶名</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="form-control" type="text" ng-model="tableForm.user" name="orcUser" ng-pattern="/^\w{2,15}$/" required="required"/>
|
|
|
|
|
<div class="form-error" ng-show="validForm.orcUser.$invalid && submitted">
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcUser.$error.required">用户名不能为空</span>
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcUser.$error.pattern">用户名必须为6-18个字母、数字或下划线</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">密码</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="form-control" type="text" ng-model="tableForm.password" name="orcPassword" ng-pattern="/^\w{2,15}$/" required="required"/>
|
|
|
|
|
<div class="form-error" ng-show="validForm.orcPassword.$invalid && submitted">
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcPassword.$error.required">密码不能为空</span>
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcPassword.$error.pattern">密码必须为6-18个字母、数字或下划线</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">服务名</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input type="text " ng-model="item.value">
|
|
|
|
|
<input class="form-control" type="text" ng-model="tableForm.databaseName" name="orcService" ng-pattern="/^[a-zA-Z]{1,10}$/" required="required"/>
|
|
|
|
|
<div class="form-error" ng-show="validForm.orcService.$invalid && submitted">
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcService.$error.required">服务名不能为空</span>
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcService.$error.pattern">服务名必须为1-10个字母</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">表空间名</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="form-control" type="text" ng-model="tableForm.tableName" name="orcTable" ng-pattern="/^\w{2,15}$/" required="required"/>
|
|
|
|
|
<div class="form-error" ng-show="validForm.orcTable.$invalid && submitted">
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcTable.$error.required">表空间名不能为空</span>
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcTable.$error.pattern">表空间名必须为1-10个字母、数字或下划线</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">表后缀名</label>
|
|
|
|
|
<div class="col-sm-10 sj_form_input">
|
|
|
|
|
<input class="form-control" type="text" ng-model="tableForm.suffix" name="orcSuffix" ng-pattern="/^\w{2,15}$/" required="required"/>
|
|
|
|
|
<div class="form-error" ng-show="validForm.orcSuffix.$invalid && submitted">
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcSuffix.$error.required">表后缀名不能为空</span>
|
|
|
|
|
<span class="alert alert-danger" role="alert" ng-show="validForm.orcSuffix.$error.pattern">表后缀名必须为1-10个字母、数字或下划线</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" style="margin-left:140px;">
|
|
|
|
|
<button class="btn sj_btn_blue" type='submit' style="color:#fff;">
|
|
|
|
|
<button class="btn sj_btn_blue" type='submit' style="color:#fff;" >
|
|
|
|
|
<span class="glyphicon glyphicon-save "></span> 保存
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn sj_btn_grey" ng-click='cancel()'>
|
|
|
|
|