From 34f99d106551b51bf2af3bbd40c64624a3af25eb Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 09 九月 2023 09:43:57 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/plan/plan_more.html |   68 ++++++++++++++++------------------
 1 files changed, 32 insertions(+), 36 deletions(-)

diff --git a/src/main/webapp/views/plan/plan_more.html b/src/main/webapp/views/plan/plan_more.html
index 46972c4..0f4afe5 100644
--- a/src/main/webapp/views/plan/plan_more.html
+++ b/src/main/webapp/views/plan/plan_more.html
@@ -52,27 +52,7 @@
             <div class="layui-card-body" style="padding: 30px 20px">
 
                 <div class="layui-tab layui-steps">
-                    <ul class="layui-tab-title">
-                        <li id="step-1" style="pointer-events: none">
-                            <i class="layui-icon layui-icon-ok">1</i>
-                            <span class="layui-steps-title">寮�濮�</span>
-                            <span class="layui-steps-content">&nbsp;</span>
-                        </li>
-                        <li id="step-2" style="pointer-events: none">
-                            <i class="layui-icon layui-icon-ok">2</i>
-                            <span class="layui-steps-title">鏈粍缁勯暱瀹℃牳</span>
-                            <span class="layui-steps-content">&nbsp;</span>
-                        </li>
-                        <li id="step-3" style="pointer-events: none">
-                            <i class="layui-icon layui-icon-ok">3</i>
-                            <span class="layui-steps-title">鍞墠瑙勫垝</span>
-                            <span class="layui-steps-content">&nbsp;</span>
-                        </li>
-                        <li id="step-4" style="pointer-events: none">
-                            <i class="layui-icon layui-icon-ok">4</i>
-                            <span class="layui-steps-title">瀹℃壒閫氳繃</span>
-                            <span class="layui-steps-content">&nbsp;</span>
-                        </li>
+                    <ul class="layui-tab-title" id="stepBox">
                     </ul>
                 </div>
 
@@ -239,17 +219,17 @@
                     </div>
                 </div>
                 <!-- 璺熻繘浜� -->
-                <div class="layui-card">
-                    <div class="layui-card-header">
-                        <span>璺熻繘浜�</span>
-                        <span lay-filter="followerAdd" lay-submit style="float: right;cursor: pointer;">
-                            <i class="layui-icon" style="font-size: 20px;color: #1890ff;">&#xe61f;</i>
-                        </span>
-                    </div>
-                    <div class="layui-card-body">
-                        <table id="followersTable" lay-filter="followersTable"></table>
-                    </div>
-                </div>
+<!--                <div class="layui-card">-->
+<!--                    <div class="layui-card-header">-->
+<!--                        <span>璺熻繘浜�</span>-->
+<!--                        <span lay-filter="followerAdd" lay-submit style="float: right;cursor: pointer;">-->
+<!--                            <i class="layui-icon" style="font-size: 20px;color: #1890ff;">&#xe61f;</i>-->
+<!--                        </span>-->
+<!--                    </div>-->
+<!--                    <div class="layui-card-body">-->
+<!--                        <table id="followersTable" lay-filter="followersTable"></table>-->
+<!--                    </div>-->
+<!--                </div>-->
             </div>
         </div>
     </div>
@@ -280,6 +260,20 @@
             <button class="layui-btn" lay-filter="followerSubmit" lay-submit>淇濆瓨</button>
         </div>
     </form>
+</script>
+
+<script type="text/template" id="stepTpl">
+    {{#each list}}
+    <li id="step-{{step}}" style="pointer-events: none">
+        <i class="layui-icon layui-icon-ok">{{step}}</i>
+        <span class="layui-steps-title">{{title}}</span>
+        {{# if username}}
+        <span class="layui-steps-content">{{username}}</span>
+        {{ else }}
+        <span class="layui-steps-content">&nbsp;</span>
+        {{/if}}
+    </li>
+    {{/each}}
 </script>
 
 <script type="text/template" id="timelineTpl">
@@ -327,20 +321,22 @@
                     notice.destroy();
                     if (res.code === 200) {
                         let plan = res.data;
-
                         top.planByMore = null;
                         $("#form-name").html(plan.name);
                         // 杩涘害姝ラ鍥�
+                        let template0 = Handlebars.compile($('#stepTpl').html());
+                        $('#stepBox').html(template0({list: JSON.parse(plan.settleMsg)}));
                         $('#step-' + Number(plan.step)).addClass("layui-this");
-                        let template = Handlebars.compile($('#timelineTpl').html());
-                        $('#timelineBox').html(template({list: JSON.parse(plan.settleMsg)}));
+
+                        let template1 = Handlebars.compile($('#timelineTpl').html());
+                        $('#timelineBox').html(template1({list: JSON.parse(plan.settleMsg)}));
                         // 琛ュ厖html
                         $('#customizeBox').html(plan.formHtml);
                         // 璁惧鏄庣粏
                         form.val('formAdvForm', plan);
                         top.convertDisabled($('#formAdvForm :input'), true);
                         // 璺熻繘浜�
-                        initFollowers(plan.id);
+                        // initFollowers(plan.id);
                         layDateRender();
                     } else if (res.code === 403) {
                         top.location.href = baseUrl + "/";

--
Gitblit v1.9.1