matrix_components 2.0.407 → 2.0.408

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.
@@ -75,7 +75,7 @@
75
75
  import { h, onMounted, reactive, ref } from 'vue'
76
76
  import { cloneDeep } from 'lodash-es'
77
77
  import { nextTick } from 'vue'
78
- import { ElCascader, ElMessage } from 'element-plus'
78
+ import { ElMessage } from 'element-plus'
79
79
 
80
80
  // ------------全局的函数(不需要引入直接使用)------------
81
81
  // import { getAllFormKvData, getAllFormNodeByKey, getAllFormNodeRefByKey } from "matrix_components";
@@ -102,7 +102,7 @@ import { ElCascader, ElMessage } from 'element-plus'
102
102
  const props = defineProps({
103
103
  readOnly: {
104
104
  type: Boolean,
105
- default: true,
105
+ default: false,
106
106
  },
107
107
  row: {
108
108
  type: Object,
@@ -167,88 +167,24 @@ const state = reactive({
167
167
  },
168
168
  },
169
169
  {
170
- key: "stuck_threshold",
171
- label: "所属工程",
172
- value: "",
173
- component: ElCascader,
170
+ key: 'stuck_threshold',
171
+ label: '视频帧卡顿(秒)',
172
+ value: '',
173
+ component: 'ElInput',
174
174
  params: {
175
- props: {
176
- showPrefix: false,
177
- checkStrictly: true,
178
- checkOnClickNode: true,
175
+ 'v-length.range': {
176
+ min: 0,
177
+ max: 1000,
178
+ int: true,
179
+ },
180
+ rules: [
181
+ {
182
+ required: true,
183
+ message: '请输入',
179
184
  },
180
- options: [
181
- {
182
- value: "guide",
183
- label: "Guide",
184
- children: [
185
- {
186
- value: "disciplines",
187
- label: "Disciplines",
188
- children: [
189
- {
190
- value: "consistency",
191
- label: "Consistency",
192
- },
193
- ],
194
- },
195
- {
196
- value: "navigation",
197
- label: "Navigation",
198
- children: [
199
- {
200
- value: "side nav",
201
- label: "Side Navigation",
202
- },
203
- ],
204
- },
205
- ],
206
- },
207
- {
208
- value: "component",
209
- label: "测试",
210
- children: [
211
- {
212
- value: "basic",
213
- label: "Basic",
214
- children: [
215
- {
216
- value: "layout",
217
- label: "Layout",
218
- },
219
- ],
220
- },
221
- {
222
- value: "form",
223
- label: "中文",
224
- children: [
225
- {
226
- value: "radio",
227
- label: "Radio",
228
- },
229
- ],
230
- },
231
- ],
232
- },
233
- {
234
- value: "resource",
235
- label: "Resource",
236
- children: [
237
- {
238
- value: "axure",
239
- label: "Axure Components",
240
- },
241
- ],
242
- },
243
- ],
244
- rules: [
245
- {
246
- required: true,
247
- message: "请选择",
248
- },
249
- ],
185
+ ],
250
186
  },
251
- }
187
+ },
252
188
  ],
253
189
  [
254
190
  {
@@ -556,7 +492,7 @@ async function getDetail() {
556
492
  confidence: 'aaa1',
557
493
  iou: '1',
558
494
  timeInterval: '2',
559
- stuck_threshold: ['component','form'],
495
+ stuck_threshold: '3',
560
496
  max_retries: '4',
561
497
  save_video: true,
562
498
  pre_buffer_second: '5',
@@ -567,16 +503,9 @@ async function getDetail() {
567
503
  single_level_cascader: 'shanghai',
568
504
  }
569
505
  row1Ref.value?.resetForm()
570
- row2Ref.value?.resetForm()
571
- row3Ref.value?.resetForm()
572
- row4Ref.value?.resetForm()
573
506
  setTimeout(() => {
574
507
  row1Ref.value?.setFormData?.(res)
575
- row2Ref.value?.setFormData?.(res)
576
- row3Ref.value?.setFormData?.(res)
577
- row4Ref.value?.setFormData?.(res)
578
508
  }, 10)
579
- return
580
509
  // 特殊处理
581
510
  // if (res.det_area_mode === 'abnormal') {
582
511
  // detAreaModeChange('abnormal')
@@ -588,7 +517,7 @@ async function getDetail() {
588
517
  confidence: 'aaa1',
589
518
  iou: '1',
590
519
  timeInterval: '2',
591
- stuck_threshold: 'component,form',
520
+ stuck_threshold: '3',
592
521
  max_retries: '4',
593
522
  save_video: true,
594
523
  pre_buffer_second: '5',