wangzhe před 2 roky
rodič
revize
1d4de592cb

+ 31 - 2
mybusiness/src/main/resources/templates/apply/examine/examineDetail.html

@@ -48,10 +48,17 @@
                             </div>
                         </div>
                         <div class="form-group">
+                            <label class="col-sm-2 control-label is-required">接口来源</label>
+                            <div class="col-sm-4">
+                                <label><input name="shareType" type="radio" value="share_type_1" th:field="${intRecord.shareType}" disabled style="cursor: auto;"/>市共享</label>
+                                <label><input name="shareType" type="radio" value="share_type_4" th:field="${intRecord.shareType}" disabled style="cursor: auto;"/>省共享</label>
+                                <!--<input type="input" readonly name="shareType" class="form-control" maxlength="15" th:value="${intRecord.shareType}" required>-->
+                            </div>
+                            <label class="col-sm-2 control-label is-required">接口提供部门</label>
                             <label class="col-sm-2 control-label is-required">接口提供部门</label>
-                            <div class="col-sm-10">
+                            <div class="col-sm-4">
                                 <div class="input-group">
-                                    <input name="provideDeptName" readonly th:value="${intRecord.provideDeptName}" id="treeName" type="text" placeholder="请选择归属部门" class="form-control" required>
+                                    <input name="provideDeptName" readonly th:value="${intRecord.provideDeptName}" id="treeName" type="text" placeholder="请选择提供属部门" class="form-control" required>
                                     <input name="provideDeptId" th:value="${intRecord.provideDeptId}" type="hidden" id="treeId"/>
                                     <span class="input-group-addon"><i class="fa fa-search"></i></span>
                                 </div>
@@ -101,6 +108,28 @@
 <th:block th:include="include :: select2-js" />
 <th:block th:include="include :: bootstrap-fileinput-js" />
 <script th:inline="javascript">
+    $(document).ready(function(){
+        init();
+    })
+    function init() {
+        // let shareType = $("#shareType").val();
+        let shareType = $("input[name='shareType']:checked").val();
+        let data;
+        if(shareType == "share_type_1"){//市共享 4步
+            data = {
+                data: ['开始', '政数局审批', deptName+'审批', '完成'],
+                index: 0 //0是第一步(0~3)
+            };
+        }if(shareType == "share_type_4"){//省共享 3步
+            data = {
+                data: ['开始', '政数局审批', '完成'],
+                index: 0 //0是第一步(0~3)
+            };
+        }
+        let dom = $('#luStep');
+        dom.html("");
+        dom.stepInit(data);
+    }
 
     let prefix = ctx + "system";
     let datas = [[${@dict.getType('share_type')}]];

+ 30 - 2
mybusiness/src/main/resources/templates/applyData/examine/examineDetail.html

@@ -48,10 +48,16 @@
                             </div>
                         </div>
                         <div class="form-group">
+                            <label class="col-sm-2 control-label is-required">数据应用来源</label>
+                            <div class="col-sm-4">
+                                <label><input name="shareType" type="radio" value="share_type_1" th:field="${DataRecord.shareType}" disabled style="cursor: auto;"/>市共享</label>
+                                <label><input name="shareType" type="radio" value="share_type_4" th:field="${DataRecord.shareType}" disabled style="cursor: auto;"/>省共享</label>
+                                <!--<input type="input" readonly name="shareType" class="form-control" maxlength="15" th:value="${intRecord.shareType}" required>-->
+                            </div>
                             <label class="col-sm-2 control-label is-required">接口提供部门</label>
-                            <div class="col-sm-10">
+                            <div class="col-sm-4">
                                 <div class="input-group">
-                                    <input name="provideDeptName" readonly th:value="${intRecord.provideDeptName}" id="treeName" type="text" placeholder="请选择归属部门" class="form-control" required>
+                                    <input name="provideDeptName" readonly th:value="${intRecord.provideDeptName}" id="treeName" type="text" placeholder="请选择提供部门" class="form-control" required>
                                     <input name="provideDeptId" th:value="${intRecord.provideDeptId}" type="hidden" id="treeId"/>
                                     <span class="input-group-addon"><i class="fa fa-search"></i></span>
                                 </div>
@@ -101,6 +107,28 @@
 <th:block th:include="include :: select2-js" />
 <th:block th:include="include :: bootstrap-fileinput-js" />
 <script th:inline="javascript">
+    $(document).ready(function(){
+        init();
+    })
+    function init() {
+        // let shareType = $("#shareType").val();
+        let shareType = $("input[name='shareType']:checked").val();
+        let data;
+        if(shareType == "share_type_1"){//市共享 4步
+            data = {
+                data: ['开始', '政数局审批', deptName+'审批', '完成'],
+                index: 0 //0是第一步(0~3)
+            };
+        }if(shareType == "share_type_4"){//省共享 3步
+            data = {
+                data: ['开始', '政数局审批', '完成'],
+                index: 0 //0是第一步(0~3)
+            };
+        }
+        let dom = $('#luStep');
+        dom.html("");
+        dom.stepInit(data);
+    }
 
     let prefix = ctx + "system";
     let datas = [[${@dict.getType('share_type')}]];