Merge branch 'master' of yun.pashanhoo.com:renchao/portalStaticPage
Showing
2 changed files
with
18 additions
and
10 deletions
... | @@ -2,7 +2,7 @@ layui.use('element', function () { | ... | @@ -2,7 +2,7 @@ layui.use('element', function () { |
2 | let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 | 2 | let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 |
3 | }); | 3 | }); |
4 | addTabs('#wssq') | 4 | addTabs('#wssq') |
5 | setAcceptFlow(GetQueryString('ywid'),GetQueryString('lclb')); | 5 | setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno')); |
6 | // form 表单 | 6 | // form 表单 |
7 | layui.use('form', function () { | 7 | layui.use('form', function () { |
8 | var form = layui.form; | 8 | var form = layui.form; | ... | ... |
1 | var business; | 1 | var business; |
2 | //获取创建的流程业务 | 2 | //获取业务配置信息 |
3 | function getCreateFlow(ywid, businessno) { | 3 | function getBusinessConfig(ywid, businessno) { |
4 | $.ajax({ | 4 | $.ajax({ |
5 | type: "post", //提交方式 | 5 | type: "post", //提交方式 |
6 | url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径 | 6 | url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径 |
... | @@ -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: "get", //提交方式 |
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: 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>'); |
51 | if ((index + 1) < business.stepList.length) { | ||
49 | ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="0%"></div></li>'); | 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>'); |
57 | if ((index + 1) < business.stepList.length) { | ||
53 | ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="50%"></div></li>'); | 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>'); |
63 | if ((index + 1) < business.stepList.length) { | ||
57 | ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="100%"></div></li>'); | 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 | }); |
... | @@ -62,7 +70,7 @@ function setArticleSteps() { | ... | @@ -62,7 +70,7 @@ function setArticleSteps() { |
62 | 70 | ||
63 | //获取业务发起流程方法 | 71 | //获取业务发起流程方法 |
64 | function getInitiateFLow(ywid, businessno) { | 72 | function getInitiateFLow(ywid, businessno) { |
65 | getCreateFlow(ywid, businessno); | 73 | getBusinessConfig(ywid, businessno); |
66 | window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self") | 74 | window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self") |
67 | } | 75 | } |
68 | 76 | ||
... | @@ -82,7 +90,7 @@ function getWorkBoxFLow(bsm_slsq, businessno) { | ... | @@ -82,7 +90,7 @@ function getWorkBoxFLow(bsm_slsq, businessno) { |
82 | 90 | ||
83 | //设置首环节页面相关内容 | 91 | //设置首环节页面相关内容 |
84 | function setFristStepPageFLow(ywid) { | 92 | function setFristStepPageFLow(ywid) { |
85 | getCreateFlow(ywid); | 93 | getBusinessConfig(ywid); |
86 | setArticleSteps(); | 94 | setArticleSteps(); |
87 | } | 95 | } |
88 | 96 | ... | ... |
-
Please register or sign in to post a comment