parsec-libs 0.0.98 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +12 -8
- package/dist/questionnaire/api.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -694,17 +694,24 @@ var useSwitchTableModalVisible = (function () {
|
|
|
694
694
|
title: '分发列表',
|
|
695
695
|
footer: null,
|
|
696
696
|
subTitle: surveyType === SurveyType.测评 && /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6D4B\u8BC4\u603B\u5206\uFF1A", totalScore), /*#__PURE__*/React__default['default'].createElement("span", null, "\u53CA\u683C\u5206\u6570\uFF1A", passScore)),
|
|
697
|
-
children: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(
|
|
697
|
+
children: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, ' ', /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], null, /*#__PURE__*/React__default['default'].createElement(parsecAdmin.DayRangePicker, {
|
|
698
|
+
valueFormat: "YYYY-MM-DD",
|
|
699
|
+
onChange: function onChange(v) {
|
|
700
|
+
return setParams(v);
|
|
701
|
+
}
|
|
702
|
+
}), /*#__PURE__*/React__default['default'].createElement(_Button__default['default'], {
|
|
698
703
|
loading: exportLoading,
|
|
699
704
|
icon: /*#__PURE__*/React__default['default'].createElement(icons.ExportOutlined, null),
|
|
700
705
|
onClick: function onClick() {
|
|
701
|
-
return handleExport(
|
|
706
|
+
return handleExport({
|
|
707
|
+
startDate: params[0],
|
|
708
|
+
endDate: params[1],
|
|
702
709
|
surveyId: surveyId
|
|
703
|
-
})
|
|
710
|
+
}).then(function (data) {
|
|
704
711
|
return fileSaver.saveAs(data, "".concat(title, "\u7B54\u9898\u8BE6\u60C5 ").concat(moment__default['default']().format('YYYY-MM-DD HH时mm分ss秒'), ".xlsx"));
|
|
705
712
|
});
|
|
706
713
|
}
|
|
707
|
-
}, "\u5BFC\u51FA"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(parsecAdmin.TableList, {
|
|
714
|
+
}, "\u5BFC\u51FA")), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(parsecAdmin.TableList, {
|
|
708
715
|
columns: [{
|
|
709
716
|
title: 'ID',
|
|
710
717
|
dataIndex: 'id'
|
|
@@ -713,9 +720,7 @@ var useSwitchTableModalVisible = (function () {
|
|
|
713
720
|
dataIndex: 'surveyAt',
|
|
714
721
|
render: function render(v) {
|
|
715
722
|
return /*#__PURE__*/React__default['default'].createElement(parsecAdmin.DateShow, null, v);
|
|
716
|
-
}
|
|
717
|
-
search: /*#__PURE__*/React__default['default'].createElement(parsecAdmin.DayRangePicker, null),
|
|
718
|
-
searchIndex: ['startDate', 'endDate']
|
|
723
|
+
}
|
|
719
724
|
}, {
|
|
720
725
|
title: '姓名',
|
|
721
726
|
render: function render(_, record) {
|
|
@@ -788,7 +793,6 @@ var useSwitchTableModalVisible = (function () {
|
|
|
788
793
|
_ref3$pagination = _ref3.pagination,
|
|
789
794
|
current = _ref3$pagination.current,
|
|
790
795
|
pageSize = _ref3$pagination.pageSize;
|
|
791
|
-
setParams(params);
|
|
792
796
|
return useApi.查看调查报告.request(_objectSpread2({
|
|
793
797
|
limit: pageSize,
|
|
794
798
|
page: current,
|
|
@@ -314,6 +314,8 @@ declare const _default: {
|
|
|
314
314
|
rightTotal: number;
|
|
315
315
|
passed: boolean;
|
|
316
316
|
answerTotal: number;
|
|
317
|
+
startDate?: string;
|
|
318
|
+
endDate?: string;
|
|
317
319
|
}>>) => {
|
|
318
320
|
request: (p?: ListApiRequestParams & {
|
|
319
321
|
surveyId: number;
|
|
@@ -329,6 +331,8 @@ declare const _default: {
|
|
|
329
331
|
rightTotal: number;
|
|
330
332
|
passed: boolean;
|
|
331
333
|
answerTotal: number;
|
|
334
|
+
startDate?: string;
|
|
335
|
+
endDate?: string;
|
|
332
336
|
}>>;
|
|
333
337
|
data: ListApiResponseData<{
|
|
334
338
|
id: number;
|
|
@@ -342,6 +346,8 @@ declare const _default: {
|
|
|
342
346
|
rightTotal: number;
|
|
343
347
|
passed: boolean;
|
|
344
348
|
answerTotal: number;
|
|
349
|
+
startDate?: string;
|
|
350
|
+
endDate?: string;
|
|
345
351
|
}>;
|
|
346
352
|
loading: boolean;
|
|
347
353
|
error: any;
|
|
@@ -357,6 +363,8 @@ declare const _default: {
|
|
|
357
363
|
rightTotal: number;
|
|
358
364
|
passed: boolean;
|
|
359
365
|
answerTotal: number;
|
|
366
|
+
startDate?: string;
|
|
367
|
+
endDate?: string;
|
|
360
368
|
}>>;
|
|
361
369
|
}) & {
|
|
362
370
|
request: (params?: ListApiRequestParams & {
|
|
@@ -373,6 +381,8 @@ declare const _default: {
|
|
|
373
381
|
rightTotal: number;
|
|
374
382
|
passed: boolean;
|
|
375
383
|
answerTotal: number;
|
|
384
|
+
startDate?: string;
|
|
385
|
+
endDate?: string;
|
|
376
386
|
}>>;
|
|
377
387
|
DataType: ListApiResponseData<{
|
|
378
388
|
id: number;
|
|
@@ -386,6 +396,8 @@ declare const _default: {
|
|
|
386
396
|
rightTotal: number;
|
|
387
397
|
passed: boolean;
|
|
388
398
|
answerTotal: number;
|
|
399
|
+
startDate?: string;
|
|
400
|
+
endDate?: string;
|
|
389
401
|
}>;
|
|
390
402
|
ParamsType: ListApiRequestParams & {
|
|
391
403
|
surveyId: number;
|