cnhis-design-vue 3.1.40-release.2 → 3.1.40-release.4

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.
Files changed (31) hide show
  1. package/es/components/scale-view/index.d.ts +5 -2
  2. package/es/components/scale-view/src/ScaleView.vue.d.ts +8 -2
  3. package/es/components/scale-view/src/ScaleView.vue.js +4 -3
  4. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
  5. package/es/components/scale-view/src/hooks/scaleview-computed.js +76 -31
  6. package/es/components/scale-view/src/hooks/use-evaluate.js +13 -13
  7. package/es/shared/assets/img/failure.js +1 -1
  8. package/es/shared/assets/img/failure.png.js +1 -1
  9. package/es/shared/assets/img/icon-asc.js +1 -1
  10. package/es/shared/assets/img/icon-desc.js +1 -1
  11. package/es/shared/assets/img/no-permission.js +1 -1
  12. package/es/shared/assets/img/no-permission.png.js +1 -1
  13. package/es/shared/assets/img/nodata.js +1 -1
  14. package/es/shared/assets/img/nodata.png.js +1 -1
  15. package/es/shared/assets/img/notfound.js +1 -1
  16. package/es/shared/assets/img/notfound.png.js +1 -1
  17. package/es/shared/assets/img/qr.js +1 -1
  18. package/es/shared/assets/img/qr.png.js +1 -1
  19. package/es/shared/assets/img/success.js +1 -1
  20. package/es/shared/assets/img/success.png.js +1 -1
  21. package/es/shared/assets/img/video.js +1 -1
  22. package/es/shared/assets/img/video.png.js +1 -1
  23. package/es/shared/assets/img/video_default_cover.js +1 -1
  24. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  25. package/es/shared/assets/img/video_hover.js +1 -1
  26. package/es/shared/assets/img/video_play_hover.js +1 -1
  27. package/es/shared/assets/img/xb_big.js +1 -1
  28. package/es/shared/assets/img/xb_big.png.js +1 -1
  29. package/es/shared/assets/img/xb_small.js +1 -1
  30. package/es/shared/assets/img/xb_small.png.js +1 -1
  31. package/package.json +2 -2
@@ -261,9 +261,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
261
261
  onOnCloseSetting?: ((...args: any[]) => any) | undefined;
262
262
  onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
263
263
  onOnSubmit?: ((...args: any[]) => any) | undefined;
264
+ onStartWriteScale?: ((...args: any[]) => any) | undefined;
264
265
  }>>;
265
266
  state: any;
266
- emit: (event: "onCloseSetting" | "submitNoRequest" | "onSubmit", ...args: any[]) => void;
267
+ emit: (event: "onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale", ...args: any[]) => void;
267
268
  dialog: import("naive-ui").DialogApi;
268
269
  message: import("naive-ui").MessageApi;
269
270
  countdownDom: any;
@@ -313,6 +314,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
313
314
  currentTime: any;
314
315
  showEvaluateCountdown: any;
315
316
  }>;
317
+ skipCover: import("vue").ComputedRef<any>;
316
318
  showEvent: (formItem: any, isSubmitCallback?: any) => any;
317
319
  formKey: (item: any) => any;
318
320
  initForm: (data: any) => void;
@@ -1078,7 +1080,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
1078
1080
  readonly showLabel: boolean | undefined;
1079
1081
  readonly ignorePathChange: boolean;
1080
1082
  }>;
1081
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit")[], "onSubmit" | "onCloseSetting" | "submitNoRequest", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1083
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale")[], "onSubmit" | "onCloseSetting" | "submitNoRequest" | "startWriteScale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1082
1084
  ids: {
1083
1085
  type: ObjectConstructor;
1084
1086
  default: () => {
@@ -1195,6 +1197,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
1195
1197
  onOnCloseSetting?: ((...args: any[]) => any) | undefined;
1196
1198
  onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
1197
1199
  onOnSubmit?: ((...args: any[]) => any) | undefined;
1200
+ onStartWriteScale?: ((...args: any[]) => any) | undefined;
1198
1201
  }, {
1199
1202
  params: Record<string, any>;
1200
1203
  type: string;
@@ -260,9 +260,10 @@ declare const _default: import("vue").DefineComponent<{
260
260
  onOnCloseSetting?: ((...args: any[]) => any) | undefined;
261
261
  onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
262
262
  onOnSubmit?: ((...args: any[]) => any) | undefined;
263
+ onStartWriteScale?: ((...args: any[]) => any) | undefined;
263
264
  }>>;
264
265
  state: any;
265
- emit: (event: "onCloseSetting" | "submitNoRequest" | "onSubmit", ...args: any[]) => void;
266
+ emit: (event: "onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale", ...args: any[]) => void;
266
267
  dialog: import("naive-ui").DialogApi;
267
268
  message: import("naive-ui").MessageApi;
268
269
  countdownDom: any;
@@ -312,6 +313,7 @@ declare const _default: import("vue").DefineComponent<{
312
313
  currentTime: any;
313
314
  showEvaluateCountdown: any;
314
315
  }>;
316
+ skipCover: import("vue").ComputedRef<any>;
315
317
  showEvent: (formItem: any, isSubmitCallback?: any) => any;
316
318
  formKey: (item: any) => any;
317
319
  initForm: (data: any) => void;
@@ -497,6 +499,9 @@ declare const _default: import("vue").DefineComponent<{
497
499
  getTotalLen: () => void;
498
500
  countdown: (startTime: any) => void;
499
501
  clearTimer: () => void;
502
+ /**
503
+ * wacth
504
+ */
500
505
  init: () => void;
501
506
  checkType: (val: any) => string;
502
507
  diffAnswered: (form: any) => void;
@@ -1077,7 +1082,7 @@ declare const _default: import("vue").DefineComponent<{
1077
1082
  readonly showLabel: boolean | undefined;
1078
1083
  readonly ignorePathChange: boolean;
1079
1084
  }>;
1080
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit")[], "onSubmit" | "onCloseSetting" | "submitNoRequest", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1085
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale")[], "onSubmit" | "onCloseSetting" | "submitNoRequest" | "startWriteScale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1081
1086
  ids: {
1082
1087
  type: ObjectConstructor;
1083
1088
  default: () => {
@@ -1194,6 +1199,7 @@ declare const _default: import("vue").DefineComponent<{
1194
1199
  onOnCloseSetting?: ((...args: any[]) => any) | undefined;
1195
1200
  onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
1196
1201
  onOnSubmit?: ((...args: any[]) => any) | undefined;
1202
+ onStartWriteScale?: ((...args: any[]) => any) | undefined;
1197
1203
  }, {
1198
1204
  params: Record<string, any>;
1199
1205
  type: string;
@@ -33,7 +33,7 @@ const _hoisted_5 = {
33
33
  const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  __name: "ScaleView",
35
35
  props: ScaleViewProps,
36
- emits: ["onCloseSetting", "submitNoRequest", "onSubmit"],
36
+ emits: ["onCloseSetting", "submitNoRequest", "onSubmit", "startWriteScale"],
37
37
  setup(__props, { expose, emit }) {
38
38
  const props = __props;
39
39
  const { ScaleViewState } = getScaleViewState();
@@ -61,6 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
61
  propsConfig,
62
62
  evaluatePageProps,
63
63
  evaluateCountdownProps,
64
+ skipCover,
64
65
  showEvent,
65
66
  formKey
66
67
  } = ScaleViewComputed(props, state, { query });
@@ -73,7 +74,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
74
  };
74
75
  handleQuery();
75
76
  const init = (configData) => {
76
- console.log("ininin");
77
77
  try {
78
78
  resetNodata();
79
79
  initForm(configData);
@@ -117,6 +117,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
117
  const writeGuage = (showCountdown) => {
118
118
  state.showEvaluateSettingWrap = false;
119
119
  state.showEvaluateCountdown = !!showCountdown;
120
+ emit("startWriteScale");
120
121
  };
121
122
  const closeEvaluateCountdown = () => {
122
123
  console.log("----closeEvaluateCountdown");
@@ -321,7 +322,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
321
322
  noDataImg: unref(noDataState).noDataImg,
322
323
  noDataTip: unref(noDataState).noDataTip
323
324
  }, null, 8, ["noDataImg", "noDataTip"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
324
- unref(showEvaluateEntry) ? (openBlock(), createBlock(EvaluatePage, mergeProps({ key: 0 }, unref(evaluatePageProps), { onWriteGuage: writeGuage }), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
325
+ unref(showEvaluateEntry) && !unref(skipCover) ? (openBlock(), createBlock(EvaluatePage, mergeProps({ key: 0 }, unref(evaluatePageProps), { onWriteGuage: writeGuage }), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
325
326
  unref(showEvaluateCoundownPage) ? (openBlock(), createBlock(EvaluateCountdown, mergeProps({
326
327
  key: 0,
327
328
  ref_key: "countdownDom",
@@ -40,4 +40,5 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
40
40
  currentTime: any;
41
41
  showEvaluateCountdown: any;
42
42
  }>;
43
+ skipCover: import("vue").ComputedRef<any>;
43
44
  };
@@ -5,7 +5,8 @@ import moment from 'moment';
5
5
  import { componentMapStr } from './use-component.js';
6
6
 
7
7
  const ScaleViewComputed = (props, state, config) => {
8
- let { query } = config;
8
+ const { query } = config;
9
+ const cur = new Date().getTime();
9
10
  const queryformBoldOpen = computed(() => {
10
11
  return (query == null ? void 0 : query.formBoldOpen) == 1;
11
12
  });
@@ -15,8 +16,43 @@ const ScaleViewComputed = (props, state, config) => {
15
16
  return false;
16
17
  return (query == null ? void 0 : query.evatip) == 1 || ((_a = props.params) == null ? void 0 : _a.evatip) == 1;
17
18
  });
19
+ const evaluateResultSetting = computed(() => {
20
+ var _a;
21
+ return ((_a = state.config) == null ? void 0 : _a.evaluateResultSetting) || {};
22
+ });
23
+ const getEvaluateTime = computed(() => {
24
+ const { evaluateTime } = evaluateResultSetting.value;
25
+ return +evaluateTime;
26
+ });
27
+ const evaluateStartTime = computed(() => {
28
+ var _a;
29
+ return (_a = evaluateResultSetting.value) == null ? void 0 : _a.evaluateStartTime;
30
+ });
31
+ const getEvaluateStartTime = computed(() => {
32
+ const tempSt = new Date(evaluateStartTime.value);
33
+ const isValidDate = XEUtils.isValidDate(tempSt);
34
+ if (!isValidDate)
35
+ return false;
36
+ return tempSt;
37
+ });
38
+ const evaBanEnd = computed(() => {
39
+ if (!evaluateStartTime.value || !getEvaluateTime.value)
40
+ return false;
41
+ const startTime = getEvaluateStartTime.value;
42
+ if (!startTime)
43
+ return false;
44
+ const endTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
45
+ return cur >= endTime;
46
+ });
47
+ const evaBanStart = computed(() => {
48
+ const startTime = getEvaluateStartTime.value;
49
+ if (!startTime)
50
+ return false;
51
+ const sT = moment(startTime).valueOf();
52
+ return cur < sT;
53
+ });
18
54
  const isFormBoldOpen = computed(() => (item) => {
19
- let res = item.required;
55
+ const res = item.required;
20
56
  if (!props.styleSetting || !Object.keys(props.styleSetting).length || !("formBoldOpen" in props.styleSetting)) {
21
57
  return res && queryformBoldOpen.value;
22
58
  }
@@ -53,15 +89,15 @@ const ScaleViewComputed = (props, state, config) => {
53
89
  });
54
90
  const handleShowQuestionNumber = computed(() => (item) => {
55
91
  var _a;
56
- let { type } = item || {};
57
- let tempTile = ((_a = state.config) == null ? void 0 : _a.autoQuestionNumber) === false ? item.showTitle : `${item.softcode}\u3001${item.showTitle}`;
92
+ const { type } = item || {};
93
+ const tempTile = ((_a = state.config) == null ? void 0 : _a.autoQuestionNumber) === false ? item.showTitle : `${item.softcode}\u3001${item.showTitle}`;
58
94
  if (!isEvaluation(type))
59
95
  return tempTile;
60
- let score = handleEvaluationScore(item);
96
+ const score = handleEvaluationScore(item);
61
97
  return `${tempTile}&nbsp;<span style="color:#2d7aff;" class="score-i">${score}</span>`;
62
98
  });
63
99
  const hasScore = computed(() => {
64
- let { config: config2 } = state;
100
+ const { config: config2 } = state;
65
101
  if (!config2 || !Object.keys(config2).length)
66
102
  return false;
67
103
  if ("totalScore" in config2)
@@ -70,9 +106,17 @@ const ScaleViewComputed = (props, state, config) => {
70
106
  });
71
107
  const isPreviewScale = computed(() => {
72
108
  var _a;
73
- let guage_id = (_a = state.ids) == null ? void 0 : _a.guage_id;
109
+ const guage_id = (_a = props.ids) == null ? void 0 : _a.guage_id;
74
110
  return guage_id && props.noBtn;
75
111
  });
112
+ const skipCover = computed(() => {
113
+ const params = props.params || {};
114
+ if (!("skipCover" in params)) {
115
+ return false;
116
+ }
117
+ const res = params.skipCover && !evaBanStart.value && !evaBanEnd.value;
118
+ return res;
119
+ });
76
120
  const showEvaluateEntry = computed(() => {
77
121
  return !isPreviewScale.value && state.showEvaluatePage && state.showEvaluateSettingWrap && !state.isFinished && !props.noBtn && !props.hideBtn;
78
122
  });
@@ -80,8 +124,8 @@ const ScaleViewComputed = (props, state, config) => {
80
124
  return !isPreviewScale.value && !showEvaluateEntry.value && state.showEvaluateCountdownWrap && !state.isFinished && !props.noBtn && !props.hideBtn;
81
125
  });
82
126
  const hasEvaluateResultSetting = computed(() => {
83
- let { evaluateResultSetting = {} } = state.config;
84
- let valueArr = Object.values(evaluateResultSetting).filter((item) => {
127
+ const { evaluateResultSetting: evaluateResultSetting2 = {} } = state.config;
128
+ const valueArr = Object.values(evaluateResultSetting2).filter((item) => {
85
129
  if (item)
86
130
  return true;
87
131
  }) || [];
@@ -91,11 +135,11 @@ const ScaleViewComputed = (props, state, config) => {
91
135
  return state.paramsEvaluate && Object.keys(state.paramsEvaluate).length;
92
136
  });
93
137
  const hasDefault = computed(() => {
94
- let hash = window.location.search;
138
+ const hash = window.location.search || window.location.hash;
95
139
  if (!hash)
96
140
  return;
97
- let defaultVariable = ["evaname", "evadesc", "evast", "evadur", "evaan"];
98
- let hasDefaultItem = defaultVariable.find((item) => hash.includes(item));
141
+ const defaultVariable = ["evaname", "evadesc", "evast", "evadur", "evaan"];
142
+ const hasDefaultItem = defaultVariable.find((item) => hash.includes(item));
99
143
  return state.paramsEvaluate || hasDefaultItem;
100
144
  });
101
145
  const showSaveBtn = computed(() => {
@@ -111,7 +155,7 @@ const ScaleViewComputed = (props, state, config) => {
111
155
  return !!props.hideBtn || !!props.isLock || state.isFinished;
112
156
  });
113
157
  const showEvaluateLabel = computed(() => (item) => {
114
- let obj = {
158
+ const obj = {
115
159
  EVALUATE_RADIO_BLOCK: "\u5355\u9009\u9898",
116
160
  EVALUATE_CHECKBOX_BLOCK: "\u591A\u9009\u9898"
117
161
  };
@@ -119,17 +163,17 @@ const ScaleViewComputed = (props, state, config) => {
119
163
  });
120
164
  const showAnswerParse = computed(() => (item) => {
121
165
  var _a;
122
- let { evaluateAnswer, checkAnswerMode, evaluateStartTime, evaluateTime } = ((_a = state.config) == null ? void 0 : _a.evaluateResultSetting) || {};
123
- let arr = ["EVALUATE_RADIO_BLOCK", "EVALUATE_CHECKBOX_BLOCK", "EVALUATE_SELECT", "EVALUATE_INPUT"];
124
- let maxScore = (item == null ? void 0 : item.scoreConfigs) || 0;
125
- let isShow = evaluateAnswer && state.isFinished && arr.includes(item.type) && maxScore;
126
- if (!evaluateStartTime || !evaluateTime || checkAnswerMode && checkAnswerMode == 1) {
166
+ const { evaluateAnswer, checkAnswerMode, evaluateStartTime: evaluateStartTime2, evaluateTime } = ((_a = state.config) == null ? void 0 : _a.evaluateResultSetting) || {};
167
+ const arr = ["EVALUATE_RADIO_BLOCK", "EVALUATE_CHECKBOX_BLOCK", "EVALUATE_SELECT", "EVALUATE_INPUT"];
168
+ const maxScore = (item == null ? void 0 : item.scoreConfigs) || 0;
169
+ const isShow = evaluateAnswer && state.isFinished && arr.includes(item.type) && maxScore;
170
+ if (!evaluateStartTime2 || !evaluateTime || checkAnswerMode && checkAnswerMode == 1) {
127
171
  return isShow;
128
172
  }
129
- if (!XEUtils.isValidDate(new Date(evaluateStartTime)))
173
+ if (!XEUtils.isValidDate(new Date(evaluateStartTime2)))
130
174
  return isShow;
131
- let endTime = moment(evaluateStartTime).add(evaluateTime, "minutes");
132
- let isRang = endTime.diff(moment(), "seconds", true);
175
+ const endTime = moment(evaluateStartTime2).add(evaluateTime, "minutes");
176
+ const isRang = endTime.diff(moment(), "seconds", true);
133
177
  return isShow && isRang <= 0;
134
178
  });
135
179
  const tipMsg = computed(() => {
@@ -184,8 +228,8 @@ const ScaleViewComputed = (props, state, config) => {
184
228
  const propsConfig = computed(() => (item, index) => {
185
229
  var _a;
186
230
  const propType = componentMapStr[item.type];
187
- let useProps = comProsMap[propType] || {};
188
- let propsObj = {
231
+ const useProps = comProsMap[propType] || {};
232
+ const propsObj = {
189
233
  form: state.form,
190
234
  item,
191
235
  index,
@@ -232,8 +276,8 @@ const ScaleViewComputed = (props, state, config) => {
232
276
  const { relation_logic_is, condition, relation_logic } = relationLogicObj;
233
277
  if (relation_logic_is) {
234
278
  const results = condition.map((c) => {
235
- let mItem = formArray.filter((f) => f.seq == c.subject_seq)[0];
236
- let key = formKey(mItem);
279
+ const mItem = formArray.filter((f) => f.seq == c.subject_seq)[0];
280
+ const key = formKey(mItem);
237
281
  if (XEUtils.isArray(form[key])) {
238
282
  return form[key].some((v) => c.value.includes(v));
239
283
  } else {
@@ -254,25 +298,25 @@ const ScaleViewComputed = (props, state, config) => {
254
298
  return item.databaseTitle || item.title;
255
299
  };
256
300
  const handleEvaluationScore = (ele) => {
257
- let { minScore = 0, maxScore = 0, scoreType } = ele.scoreConfigs || {};
301
+ const { minScore = 0, maxScore = 0, scoreType } = ele.scoreConfigs || {};
258
302
  return `(${maxScore}\u5206)`;
259
303
  };
260
304
  const evaluatePageProps = computed(() => {
261
- var _a, _b;
305
+ var _a;
262
306
  return {
263
307
  formArray: state.formArray,
264
308
  evaluateResultConfig: ((_a = state.config) == null ? void 0 : _a.evaluateResultConfig) || {},
265
- evaluateResultSetting: ((_b = state.config) == null ? void 0 : _b.evaluateResultSetting) || {},
309
+ evaluateResultSetting: evaluateResultSetting.value,
266
310
  isFinished: state.isFinished,
267
311
  maxScore: state.maxScore
268
312
  };
269
313
  });
270
314
  const evaluateCountdownProps = computed(() => {
271
- var _a, _b;
315
+ var _a;
272
316
  return {
273
317
  formArray: state.formArray,
274
318
  evaluateResultConfig: ((_a = state.config) == null ? void 0 : _a.evaluateResultConfig) || {},
275
- evaluateResultSetting: ((_b = state.config) == null ? void 0 : _b.evaluateResultSetting) || {},
319
+ evaluateResultSetting: evaluateResultSetting.value,
276
320
  form: state.form,
277
321
  isFinished: state.isFinished,
278
322
  currentTime: state.currentTime,
@@ -302,7 +346,8 @@ const ScaleViewComputed = (props, state, config) => {
302
346
  showEvent,
303
347
  formKey,
304
348
  evaluatePageProps,
305
- evaluateCountdownProps
349
+ evaluateCountdownProps,
350
+ skipCover
306
351
  };
307
352
  };
308
353
 
@@ -3,7 +3,7 @@ import moment from 'moment';
3
3
  import XEUtils from 'xe-utils';
4
4
 
5
5
  const useEvaluate = (props, state, config) => {
6
- let { emit } = config;
6
+ const { emit } = config;
7
7
  const evaluateState = reactive({
8
8
  totalLen: 0,
9
9
  timer: null,
@@ -29,22 +29,22 @@ const useEvaluate = (props, state, config) => {
29
29
  return (_a = props.evaluateResultSetting) == null ? void 0 : _a.evaluateStartTime;
30
30
  });
31
31
  const getEvaluateStartTime = computed(() => {
32
- let tempSt = new Date(evaluateStartTime.value);
33
- let isValidDate = XEUtils.isValidDate(tempSt);
32
+ const tempSt = new Date(evaluateStartTime.value);
33
+ const isValidDate = XEUtils.isValidDate(tempSt);
34
34
  if (!isValidDate)
35
35
  return false;
36
36
  return tempSt;
37
37
  });
38
38
  const getEvaluateTime = computed(() => {
39
- let { evaluateTime } = props.evaluateResultSetting;
39
+ const { evaluateTime } = props.evaluateResultSetting;
40
40
  return +evaluateTime;
41
41
  });
42
42
  const getEvaluateEnd = computed(() => {
43
- if (!showRange)
43
+ if (!showRange.value)
44
44
  return false;
45
45
  if (!getEvaluateTime.value)
46
46
  return false;
47
- let rangTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
47
+ const rangTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
48
48
  if (state.curTime >= rangTime)
49
49
  return true;
50
50
  return props.isFinished;
@@ -56,7 +56,7 @@ const useEvaluate = (props, state, config) => {
56
56
  return "\u5F00\u59CB\u6D4B\u8BC4";
57
57
  });
58
58
  const disabledEvaluate = computed(() => {
59
- let res = getEvaluateStartTime.value && !evaluateState.isTimeOut || getEvaluateEnd.value;
59
+ const res = getEvaluateStartTime.value && !evaluateState.isTimeOut || getEvaluateEnd.value;
60
60
  return res;
61
61
  });
62
62
  const showRange = computed(() => {
@@ -71,7 +71,7 @@ const useEvaluate = (props, state, config) => {
71
71
  return false;
72
72
  if (getEvaluateStartTime.value)
73
73
  return true;
74
- let rangTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
74
+ const rangTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
75
75
  return state.curTime < rangTime;
76
76
  });
77
77
  onMounted(() => {
@@ -83,23 +83,23 @@ const useEvaluate = (props, state, config) => {
83
83
  const isBanStart = () => {
84
84
  if (!evaluateStartTime.value || !getEvaluateTime.value)
85
85
  return false;
86
- let startTime = getEvaluateStartTime.value;
86
+ const startTime = getEvaluateStartTime.value;
87
87
  if (!startTime)
88
88
  return false;
89
- let endTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
90
- let cur = new Date().getTime();
89
+ const endTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
90
+ const cur = new Date().getTime();
91
91
  return cur >= endTime;
92
92
  };
93
93
  const getTotalLen = () => {
94
94
  var _a;
95
- let arrList = (_a = props.formArray) == null ? void 0 : _a.filter((item) => !evaluateState.filterArr.includes(item.type) && !item.hide);
95
+ const arrList = (_a = props.formArray) == null ? void 0 : _a.filter((item) => !evaluateState.filterArr.includes(item.type) && !item.hide);
96
96
  if (!arrList || !arrList.length)
97
97
  return;
98
98
  evaluateState.totalLen = arrList.length;
99
99
  };
100
100
  const countdown = (startTime) => {
101
101
  clearTimer();
102
- let msec = startTime - new Date().getTime();
102
+ const msec = startTime - new Date().getTime();
103
103
  if (msec <= 0) {
104
104
  evaluateState.countdownStr = "00:00:00";
105
105
  evaluateState.isTimeOut = true;