e7379727 by 田浩浩

修改进度条bug

1 parent 8c7fac79
...@@ -20,15 +20,17 @@ function getCreateFlow(ywid, businessno) { ...@@ -20,15 +20,17 @@ function getCreateFlow(ywid, businessno) {
20 20
21 //获取正在办理的流程业务 21 //获取正在办理的流程业务
22 function getAcceptFlow(bsm_slsq, businessno) { 22 function getAcceptFlow(bsm_slsq, businessno) {
23 var data = {
24 "bsmSlsq": bsm_slsq,
25 "businessNo": businessno
26 };
23 $.ajax({ 27 $.ajax({
24 type: "post", //提交方式 28 type: "post", //提交方式
29 contentType: 'application/json',
25 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径 30 url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
26 dataType: "json", 31 dataType: "json",
27 async: false, 32 async: false,
28 data: { 33 data: JSON.stringify(data),
29 "bsm_slsq": bsm_slsq,
30 "businessno": businessno
31 },
32 //数据,这里使用的是Json格式进行传输 34 //数据,这里使用的是Json格式进行传输
33 success: function (result) {//返回数据根据结果进行相应的处理 35 success: function (result) {//返回数据根据结果进行相应的处理
34 if (result.code == 200 && result.data != null) { 36 if (result.code == 200 && result.data != null) {
...@@ -46,15 +48,21 @@ function setArticleSteps() { ...@@ -46,15 +48,21 @@ function setArticleSteps() {
46 switch (item.stepState) { 48 switch (item.stepState) {
47 case 0: 49 case 0:
48 ArticleContent.append('<li class="item_proress"><p></p><h5>' + item.stepname + '</h5></li>'); 50 ArticleContent.append('<li class="item_proress"><p></p><h5>' + item.stepname + '</h5></li>');
49 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="0%"></div></li>'); 51 if ((index + 1) < business.stepList.length) {
52 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="0%"></div></li>');
53 }
50 break; 54 break;
51 case 1: 55 case 1:
52 ArticleContent.append('<li class="item_proress"><p class="activeing"></p><h5 class="activeingtext">' + item.stepname + '</h5></li>'); 56 ArticleContent.append('<li class="item_proress"><p class="activeing"></p><h5 class="activeingtext">' + item.stepname + '</h5></li>');
53 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="50%"></div></li>'); 57 if ((index + 1) < business.stepList.length) {
58 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="50%"></div></li>');
59 }
54 break; 60 break;
55 case 2: 61 case 2:
56 ArticleContent.append('<li class="item_proress"><p class="active"></p><h5>' + item.stepname + '</h5></li>'); 62 ArticleContent.append('<li class="item_proress"><p class="active"></p><h5>' + item.stepname + '</h5></li>');
57 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="100%"></div></li>'); 63 if ((index + 1) < business.stepList.length) {
64 ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="100%"></div></li>');
65 }
58 break; 66 break;
59 } 67 }
60 }); 68 });
......