Bläddra i källkod

Merge branch 'develop' of gitadmin/tuoheng_pilot_web into release

pull/90/head
zhangtao 1 år sedan
förälder
incheckning
d8f2d0ac16
2 ändrade filer med 5 tillägg och 5 borttagningar
  1. +3
    -3
      src/views/equipment-library/uva-manage/tools/form.js
  2. +2
    -2
      src/views/equipment-library/uva-manage/tools/table.js

+ 3
- 3
src/views/equipment-library/uva-manage/tools/form.js Visa fil

@@ -6,7 +6,7 @@ export const form = reactive({
code: null,
name: null,
powerType: null,
srt_type: null,
srtType: null,
accuracy: null,
manufacturer: null
},
@@ -14,7 +14,7 @@ export const form = reactive({
code: [{ required: true, message: '请输入设备编号', trigger: 'blur' }],
name: [{ required: true, message: '请输入设备名称', type: 'string', trigger: 'blur' }],
powerType: [{ required: true, type: 'number', message: '请选择动力类型', trigger: 'blur' }],
srt_type: [{ required: true, type: 'number', message: '请选择文件类型', trigger: 'blur' }],
srtType: [{ required: true, type: 'number', message: '请选择文件类型', trigger: 'blur' }],
accuracy: [{ required: true, type: 'number', message: '请输入定位精度', trigger: 'blur' }],
manufacturer: [{ required: true, message: '请输入生产厂家', trigger: 'blur' }]
},
@@ -22,7 +22,7 @@ export const form = reactive({
{ type: 'input', key: 'code', label: '设备编号', props: { maxlength: '20', placeholder: '请输入设备编号', clearable: true }},
{ type: 'input', key: 'name', label: '设备名称', props: { maxlength: '20', placeholder: '请输入设备名称', clearable: true }},
{ type: 'select', key: 'powerType', label: '动力类型', props: { options: POWER_TYPE, clearable: true }},
{ type: 'select', key: 'srt_type', label: '文件类型', props: { options: FILE_TYPE, clearable: true }},
{ type: 'select', key: 'srtType', label: '文件类型', props: { options: FILE_TYPE, clearable: true }},
{ type: 'number', key: 'accuracy', label: '定位精度', props: { min: 0, placeholder: '请输入通道编码', showButton: false, clearable: true }, suffix: '米' },
{ type: 'input', key: 'manufacturer', label: '生产厂家', props: { maxlength: '20', placeholder: '请输入生产厂家', clearable: true }}
]

+ 2
- 2
src/views/equipment-library/uva-manage/tools/table.js Visa fil

@@ -72,11 +72,11 @@ const data = reactive({
},
{
title: '文件类型',
key: 'srt_type',
key: 'srtType',
align: 'center',
render(row) {
return h(TableTags, {
data: row.srt_type,
data: row.srtType,
filters: FILE_TYPE
})
}

Laddar…
Avbryt
Spara