|
@@ -6,10 +6,12 @@ import { ProTable } from "@ant-design/pro-components";
|
6
|
6
|
import { Button, notification } from "antd";
|
7
|
7
|
import { getTaCheck } from '@/service/tacheck';
|
8
|
8
|
import { getTaCheckAnswer, exportTaCheckAnswer } from '@/service/tacheckanswer';
|
|
9
|
+import { getTaIssue } from '@/service/taissue';
|
9
|
10
|
import useBool from '@/utils/hooks/useBool';
|
10
|
11
|
|
11
|
12
|
const getCheck = queryDict(getTaCheck, { labelKey: 'title', valueKey: 'checkId' });
|
12
|
13
|
const getAnswer = queryTable(getTaCheckAnswer);
|
|
14
|
+const getIssue = queryDict(getTaIssue, { labelKey: 'userName', valueKey: 'issueId' });
|
13
|
15
|
|
14
|
16
|
const addOnParams = { itemType: 'survey' };
|
15
|
17
|
|
|
@@ -58,7 +60,13 @@ export default (props) => {
|
58
|
60
|
{
|
59
|
61
|
title: "答题人",
|
60
|
62
|
dataIndex: "userName",
|
61
|
|
- hideInSearch: true,
|
|
63
|
+ valueType: 'select',
|
|
64
|
+ request: getIssue,
|
|
65
|
+ formItemProps: {
|
|
66
|
+ rules: [
|
|
67
|
+ { required: true, message: '请选择答题人' }
|
|
68
|
+ ]
|
|
69
|
+ }
|
62
|
70
|
},
|
63
|
71
|
{
|
64
|
72
|
title: "受访者性别",
|
|
@@ -71,7 +79,7 @@ export default (props) => {
|
71
|
79
|
hideInSearch: true,
|
72
|
80
|
}
|
73
|
81
|
]
|
74
|
|
-
|
|
82
|
+
|
75
|
83
|
const beforeSearchSubmit = (params) => {
|
76
|
84
|
paramsRef.current = params;
|
77
|
85
|
return params;
|