From bdb1efdc604fce543e21152b4263a9362f64389f Mon Sep 17 00:00:00 2001
From: minhee <alsdldlfrl@gmail.com>
Date: 목, 10 3월 2022 15:35:19 +0900
Subject: [PATCH] - api 이슈 추가 시 입력한 ip에 속해있는 업체정보를 가진 이슈의 하위로 입력되도록 수정 - issue_company 테이블에 ip 컬럼 추가 및 이슈 추가/수정 시 ip 대역대 항목 추가

---
 src/main/webapp/views/issue/issueAdd.html |   65 ++++++++++++++++++++++++--------
 1 files changed, 49 insertions(+), 16 deletions(-)

diff --git a/src/main/webapp/views/issue/issueAdd.html b/src/main/webapp/views/issue/issueAdd.html
index 4b5fb35..bdc533e 100644
--- a/src/main/webapp/views/issue/issueAdd.html
+++ b/src/main/webapp/views/issue/issueAdd.html
@@ -41,7 +41,6 @@
                                                 source="fn.getProjectList(vm.projectName, vm.form.projects, vm.autoCompletePage.project.page, fn.getProjectListCallBack)"
                                                 page="vm.autoCompletePage.project.page"
                                                 total-page="vm.autoCompletePage.project.totalPage"
-                                                input-disabled="$root.workProject.id !== -1 && vm.form.projects != null ? vm.form.projects.length > 0 : false"
                                                 translation-texts="{ empty : 'common.emptyProject' }"
                                                 extra-settings="{ displayProp : 'name' , idProp : 'id', imageable : false, imagePathProp : '',
                                                 type : '', maxlength : 200, autoResize : false, stopRemoveBodyEvent : true }"></js-autocomplete-single>
@@ -62,7 +61,6 @@
                                         ng-change="fn.getIssueTypeCustomFields()"
                                         ng-style="{ 'color' : fn.getOptionColor(vm.issueTypes, vm.form.issueTypeId) }"
                                         required
-                                        ng-disabled="$root.workProject.id !== -1"
                                         >
                                     <option value="" translate="common.selectTarget" ng-style="{ 'color' : '#353535' }"><span
                                             translate="common.selectTarget">���긽 �꽑�깮</span>
@@ -86,9 +84,9 @@
                                         ng-model="vm.form.priorityId"
                                         ng-style="{ 'color' : fn.getOptionColor(vm.priorities, vm.form.priorityId) }"
                                         required>
-                                    <option value="" translate="common.selectTarget" ng-style="{ 'color' : '#353535' }">
+                                    <!--<option value="" translate="common.selectTarget" ng-style="{ 'color' : '#353535' }">
                                         <span translate="common.selectTarget">���긽 �꽑�깮</span>
-                                    </option>
+                                    </option>-->
                                     <option ng-repeat="priority in vm.priorities"
                                             ng-style="{ 'color' : priority.color, 'font-weight': 600 }"
                                             value="{{priority.id}}"
@@ -108,9 +106,9 @@
                                         ng-model="vm.form.severityId"
                                         ng-style="{ 'color' : fn.getOptionColor(vm.severities, vm.form.severityId) }"
                                         required>
-                                    <option value="" translate="common.selectTarget" ng-style="{ color : '#353535' }">
+                                    <!--<option value="" translate="common.selectTarget" ng-style="{ color : '#353535' }">
                                         <span translate="common.selectTarget">���긽 �꽑�깮</span>
-                                    </option>
+                                    </option>-->
                                     <option ng-repeat="severity in vm.severities"
                                             ng-style="{ color : severity.color, 'font-weight': 600 }"
                                             value="{{severity.id}}"
@@ -241,7 +239,6 @@
                                     <input type="text" class="form-control input-sm"
                                            name="item_{{$index}}"
                                            ng-model="issueCustomField.useValues"
-                                           maxlength="100"
                                            autocomplete="off"
                                            kr-input
                                            ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'">
@@ -487,7 +484,7 @@
                         </div>-->
                     </div>
                 </div>
-                <div class="col-lg-4">
+                <div class="col-lg-3-2">
                     <div class="form-group mgb5">
                         <label for="companyFieldUrlAddForm" class="issue-label"><span translate="companyField.url">url</span></label>
                         <input id="companyFieldUrlAddForm"
@@ -498,10 +495,48 @@
                                autocomplete="off"
                                ng-maxlength="200"
                                ng-model="vm.companyUrl"
-                               ng-pattern="/(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/"
                                maxlength="200">
-                        <div ng-show="issueAddForm.companyUrl.$error.pattern" class="help-block form-text text-danger"
+                        <!--<div ng-show="issueAddForm.companyUrl.$error.pattern" class="help-block form-text text-danger"
                              translate="common.invalidUrlFormat">url �삎�떇�씠 留욎� �븡�뒿�땲�떎.
+                        </div>-->
+                    </div>
+                </div>
+                <div class="col-lg-2">
+                    <div class="form-group mgb5">
+                        <label for="companyFieldIpStartAddForm" class="issue-label"><span translate="companyField.ipRange">ip ���뿭��</span></label>
+                        <input id="companyFieldIpStartAddForm"
+                               name="ipStart"
+                               type="text"
+                               class="form-control"
+                               kr-input
+                               ng-pattern="/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/"
+                               placeholder="IP 二쇱냼 �삎�떇留� �엯�젰 媛��뒫�빀�땲�떎."
+                               autocomplete="off"
+                               ng-model="vm.ipStart"
+                        >
+                        <div ng-if="issueAddForm.ipStart.$error.pattern" class="help-block form-text text-danger"
+                             translate="common.invalidipAdressFormat">IP二쇱냼 �삎�떇�씠 留욎� �븡�뒿�땲�떎.
+                        </div>
+                    </div>
+                </div>
+                <div class="mt-30">
+                    <label class="issue-label">~</label>
+                </div>
+                <div class="col-lg-2 mt-1">
+                    <div class="form-group mgb5">
+                        <label for="companyFieldIpEndAddForm"></label>
+                        <input id="companyFieldIpEndAddForm"
+                               name="ipEnd"
+                               type="text"
+                               class="form-control"
+                               kr-input
+                               ng-pattern="/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/"
+                               placeholder="IP 二쇱냼 �삎�떇留� �엯�젰 媛��뒫�빀�땲�떎."
+                               autocomplete="off"
+                               ng-model="vm.ipEnd"
+                        >
+                        <div ng-if="issueAddForm.ipEnd.$error.pattern" class="help-block form-text text-danger"
+                             translate="common.invalidipAdressFormat">IP二쇱냼 �삎�떇�씠 留욎� �븡�뒿�땲�떎.
                         </div>
                     </div>
                 </div>
@@ -727,11 +762,10 @@
                                autocomplete="off"
                                ng-maxlength="200"
                                ng-model="vm.ispUrl"
-                               ng-pattern="/(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/"
                                maxlength="200">
-                        <div ng-show="issueAddForm.ispUrl.$error.pattern" class="help-block form-text text-danger"
+                        <!--<div ng-show="issueAddForm.ispUrl.$error.pattern" class="help-block form-text text-danger"
                              translate="common.invalidUrlFormat">url �삎�떇�씠 留욎� �븡�뒿�땲�떎.
-                        </div>
+                        </div>-->
                     </div>
                 </div>
                 <div class="col-lg-4">
@@ -857,11 +891,10 @@
                                autocomplete="off"
                                ng-maxlength="200"
                                ng-model="vm.hostingUrl"
-                               ng-pattern="/(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/"
                                maxlength="200">
-                        <div ng-show="issueAddForm.hostingUrl.$error.pattern" class="help-block form-text text-danger"
+                        <!--<div ng-show="issueAddForm.hostingUrl.$error.pattern" class="help-block form-text text-danger"
                              translate="common.invalidUrlFormat">url �삎�떇�씠 留욎� �븡�뒿�땲�떎.
-                        </div>
+                        </div>-->
                     </div>
                 </div>
                 <div class="col-lg-4">

--
Gitblit v1.8.0