468b9522 by 田浩浩

修改获取正在办理流程参数bug

1 parent e7379727
......@@ -2,7 +2,7 @@ layui.use('element', function () {
let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
});
addTabs('#wssq')
setAcceptFlow(GetQueryString('ywid'),GetQueryString('lclb'));
setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
// form 表单
layui.use('form', function () {
var form = layui.form;
......
var business;
//获取创建的流程业务
function getCreateFlow(ywid, businessno) {
//获取业务配置信息
function getBusinessConfig(ywid, businessno) {
$.ajax({
type: "post", //提交方式
url: portal.api_url + "/portal/ApplyBusinessService/getBusinessFlow",//路径
......@@ -22,15 +22,15 @@ function getCreateFlow(ywid, businessno) {
function getAcceptFlow(bsm_slsq, businessno) {
var data = {
"bsmSlsq": bsm_slsq,
"businessNo": businessno
"businessNo": businessno,
};
$.ajax({
type: "post", //提交方式
contentType: 'application/json',
type: "get", //提交方式
//contentType: 'application/json',
url: portal.api_url + "/portal/ApplyBusinessService/getApplyFlow",//路径
dataType: "json",
async: false,
data: JSON.stringify(data),
data: data,
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200 && result.data != null) {
......@@ -70,7 +70,7 @@ function setArticleSteps() {
//获取业务发起流程方法
function getInitiateFLow(ywid, businessno) {
getCreateFlow(ywid, businessno);
getBusinessConfig(ywid, businessno);
window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self")
}
......@@ -90,7 +90,7 @@ function getWorkBoxFLow(bsm_slsq, businessno) {
//设置首环节页面相关内容
function setFristStepPageFLow(ywid) {
getCreateFlow(ywid);
getBusinessConfig(ywid);
setArticleSteps();
}
......