e7379727 by 田浩浩

修改进度条bug

1 parent 8c7fac79
......@@ -20,15 +20,17 @@ function getCreateFlow(ywid, businessno) {
//获取正在办理的流程业务
function getAcceptFlow(bsm_slsq, businessno) {
var data = {
"bsmSlsq": bsm_slsq,
"businessNo": businessno
};
$.ajax({
type: "post", //提交方式
contentType: 'application/json',
url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
dataType: "json",
async: false,
data: {
"bsm_slsq": bsm_slsq,
"businessno": businessno
},
data: JSON.stringify(data),
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
......@@ -46,15 +48,21 @@ function setArticleSteps() {
switch (item.stepState) {
case 0:
ArticleContent.append('<li class="item_proress"><p></p><h5>' + item.stepname + '</h5></li>');
if ((index + 1) < business.stepList.length) {
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="0%"></div></li>');
}
break;
case 1:
ArticleContent.append('<li class="item_proress"><p class="activeing"></p><h5 class="activeingtext">' + item.stepname + '</h5></li>');
if ((index + 1) < business.stepList.length) {
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="50%"></div></li>');
}
break;
case 2:
ArticleContent.append('<li class="item_proress"><p class="active"></p><h5>' + item.stepname + '</h5></li>');
if ((index + 1) < business.stepList.length) {
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="100%"></div></li>');
}
break;
}
});
......