|
|
@@ -20,27 +20,43 @@ export const getNameBySource = (source: Source) => {
|
|
|
|
|
|
// 问题状态
|
|
|
export enum IssueState {
|
|
|
- toAuth = 1,
|
|
|
- toDeal = 2,
|
|
|
- toReview = 3,
|
|
|
- toRetreat = 4,
|
|
|
- hasDone = 5,
|
|
|
+ toAuth0 = 0,
|
|
|
+ toAuth1 = 1,
|
|
|
+ toAuth2 = 2, // 待审核
|
|
|
+ hasRevoke = 3, // 已撤销
|
|
|
+ toDeal4 = 4, // 待处理
|
|
|
+ toDeal6 = 6,
|
|
|
+ toReview = 5, // 待复核
|
|
|
+ hasDone7 = 7,
|
|
|
+ hasDone8 = 8, // 已处理
|
|
|
}
|
|
|
export const issueStateNameMap = {
|
|
|
- [IssueState.toAuth]: '待审核',
|
|
|
- [IssueState.toDeal]: '待处理',
|
|
|
+ [IssueState.toAuth0]: '待审核',
|
|
|
+ [IssueState.toAuth1]: '待审核',
|
|
|
+ [IssueState.toAuth2]: '待审核',
|
|
|
+ [IssueState.hasRevoke]: '已撤销',
|
|
|
+ [IssueState.toDeal4]: '待处理',
|
|
|
+ [IssueState.toDeal6]: '待处理',
|
|
|
[IssueState.toReview]: '待复核',
|
|
|
- [IssueState.toRetreat]: '已退回',
|
|
|
- [IssueState.hasDone]: '已处理',
|
|
|
+ [IssueState.hasDone7]: '已处理',
|
|
|
+ [IssueState.hasDone8]: '已处理',
|
|
|
}
|
|
|
-// 问题状态下拉框选项
|
|
|
+// 问题状态下拉框选项(默认数据——待审核(012) 待处理(46) 待复核(5) 已处理(78) 已撤销(3))
|
|
|
export const issueStateOptions = [
|
|
|
- { label: issueStateNameMap[IssueState.toAuth], value: IssueState.toAuth },
|
|
|
- { label: issueStateNameMap[IssueState.toDeal], value: IssueState.toDeal },
|
|
|
+ { label: issueStateNameMap[IssueState.toAuth0], value: '[0, 1, 2]' },
|
|
|
+ { label: issueStateNameMap[IssueState.toDeal4], value: '[4, 6]' },
|
|
|
+ { label: issueStateNameMap[IssueState.toReview], value: '[5]' },
|
|
|
+ { label: issueStateNameMap[IssueState.hasDone7], value: '[7,8]' },
|
|
|
+ { label: issueStateNameMap[IssueState.hasRevoke], value: '[3]' }
|
|
|
+]
|
|
|
+
|
|
|
+export const issueStateOptionsAdd = [
|
|
|
+ { label: issueStateNameMap[IssueState.toAuth2], value: IssueState.toAuth2 },
|
|
|
+ { label: issueStateNameMap[IssueState.toDeal4], value: IssueState.toDeal4 },
|
|
|
{ label: issueStateNameMap[IssueState.toReview], value: IssueState.toReview },
|
|
|
- { label: issueStateNameMap[IssueState.toRetreat], value: IssueState.toRetreat },
|
|
|
- { label: issueStateNameMap[IssueState.hasDone], value: IssueState.hasDone }
|
|
|
+ { label: issueStateNameMap[IssueState.hasDone8], value: IssueState.hasDone8 },
|
|
|
]
|
|
|
+
|
|
|
// 表格数据-转换value为label
|
|
|
export const getNameByState = (issueState: IssueState) => {
|
|
|
return issueStateNameMap[issueState] || '-'
|