Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
15f2e239
提交
15f2e239
authored
4月 13, 2021
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
18036 H5------学生或宿管员有待审消息或新审核进度时,模块上红点提示
后台增加系统配置项 mobile_home_todoList {"pageSize": 30} JSON 字符串
上级
59aeec82
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
55 行增加
和
38 行删除
+55
-38
affairModels.js
one_stop_public/models/affairModels.js
+55
-38
没有找到文件。
one_stop_public/models/affairModels.js
浏览文件 @
15f2e239
...
...
@@ -3,7 +3,7 @@
* 2019年9月20日
* 事务相关接口
*/
import
{
uaaRequest
}
from
'../utils/request'
;
import
{
uaaRequest
}
from
'../utils/request'
;
import
{
Base16Encode
}
from
"../Base16/index"
const
api
=
'/UnifiedAppFormApi'
;
...
...
@@ -11,6 +11,7 @@ const myCollect = {
namespace
:
'affair'
,
state
:
{
user
:
{},
// 用户数据
todoListApps
:
[],
},
effects
:
{
/**
...
...
@@ -19,15 +20,25 @@ const myCollect = {
* @param {appId} 应用id
* @param {pageNo} 页码
*/
*
getBacklog
({
payload
,
callback
},
{
call
,
put
})
{
*
getBacklog
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getWaitPage`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
else
{
const
appIds
=
new
Set
();
response
?.
rows
?.
map
((
x
)
=>
{
appIds
.
add
(
x
.
appId
);
return
null
;
});
yield
put
({
type
:
'todoList'
,
payload
:
{
todoListApps
:
Array
.
from
(
appIds
),
},
});
}
if
(
callback
)
{
if
(
callback
&&
typeof
callback
===
'function'
)
{
callback
(
response
);
}
},
...
...
@@ -37,12 +48,12 @@ const myCollect = {
* @param {appId} 应用id
* @param {pageNo} 页码
*/
*
getHaveDone
({
payload
,
callback
},
{
call
,
put
})
{
*
getHaveDone
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getHandledPage`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -55,12 +66,12 @@ const myCollect = {
* @param {appId} 应用id
* @param {pageNo} 页码
*/
*
getDraft
({
payload
,
callback
},
{
call
,
put
})
{
*
getDraft
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getDraftPage`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -73,24 +84,24 @@ const myCollect = {
* @param {appId} 应用id
* @param {pageNo} 页码
*/
*
getApply
({
payload
,
callback
},
{
call
,
put
})
{
*
getApply
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getApplyPage`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
callback
(
response
);
}
},
*
getData
({
payload
,
callback
},
{
call
,
put
})
{
*
getData
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getData`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -102,15 +113,15 @@ const myCollect = {
* @param {taskId} 任务id
* @param {examineMap} 审核内容
*/
*
getExamineProcess
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
taskForm
)
{
*
getExamineProcess
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
taskForm
)
{
payload
.
taskForm
=
Base16Encode
(
payload
.
taskForm
);
}
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/examineProcess`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -121,12 +132,12 @@ const myCollect = {
* 根据id获得表单详情
* @param {id} 表单id
*/
*
getIdFormDetail
({
payload
,
callback
},
{
call
,
put
})
{
*
getIdFormDetail
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getFormDetail`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -137,12 +148,12 @@ const myCollect = {
* 删除草稿
* @param {ids } 表单ids
*/
*
removeDraft
({
payload
,
callback
},
{
call
,
put
})
{
*
removeDraft
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/removeDraft`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -153,12 +164,12 @@ const myCollect = {
* 撤销流程
* @param {id} 表单id
*/
*
revokeProcess
({
payload
,
callback
},
{
call
,
put
})
{
*
revokeProcess
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/revokeProcess`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -172,15 +183,15 @@ const myCollect = {
* @param {content} 表单内容
* @param {title} 表单标题
*/
*
saveDraft
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
content
)
{
*
saveDraft
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
content
)
{
payload
.
content
=
Base16Encode
(
payload
.
content
);
}
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/saveDraft`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -194,45 +205,45 @@ const myCollect = {
* @param {content} 表单内容
* @param {title} 表单标题
*/
*
startProcess
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
content
)
{
*
startProcess
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
content
)
{
payload
.
content
=
Base16Encode
(
payload
.
content
);
}
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/startProcess`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
callback
(
response
);
}
},
*
startProcessByService
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
content
)
{
*
startProcessByService
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
content
)
{
payload
.
content
=
Base16Encode
(
payload
.
content
);
}
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/startProcessByService`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
callback
(
response
);
}
},
*
getHandleUser
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
content
)
{
*
getHandleUser
({
payload
,
callback
},
{
call
,
put
})
{
if
(
payload
.
content
)
{
payload
.
content
=
Base16Encode
(
payload
.
content
);
}
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getHandleUser`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -243,12 +254,12 @@ const myCollect = {
* 获取应用列表字段信息
* @param {id} 表单id
*/
*
getFormTitle
({
payload
,
callback
},
{
call
,
put
})
{
*
getFormTitle
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getFormTitle`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -263,12 +274,12 @@ const myCollect = {
* @param put
* @returns {IterableIterator<*>}
*/
*
getDataTitle
({
payload
,
callback
},
{
call
,
put
})
{
*
getDataTitle
({
payload
,
callback
},
{
call
,
put
})
{
const
response
=
yield
call
(
uaaRequest
,
`
${
api
}
/getDataTitle`
,
{
...
payload
,
});
if
(
response
==
null
)
{
yield
put
({
type
:
'nom'
});
yield
put
({
type
:
'nom'
});
return
;
}
if
(
callback
)
{
...
...
@@ -279,7 +290,13 @@ const myCollect = {
},
reducers
:
{
nom
(
state
,
action
)
{
return
{
...
state
};
return
{...
state
};
},
todoList
(
state
,
{
payload
})
{
return
{
...
state
,
todoListApps
:
payload
.
todoListApps
,
}
},
},
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论