|
@@ -195,69 +195,80 @@
|
|
|
controls-position="right"
|
|
controls-position="right"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
v-model="item.params.PCLK"
|
|
v-model="item.params.PCLK"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #suffix>MHz</template>
|
|
|
|
|
+ </input-number>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="HFP" :prop="`screens.${index}.params.HFP`">
|
|
|
|
|
+ <input-number
|
|
|
|
|
+ controls-position="right"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ v-model="item.params.HFP"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="VBP" :prop="`screens.${index}.params.VBP`">
|
|
|
|
|
|
|
+ <el-form-item label="HBP" :prop="`screens.${index}.params.HBP`">
|
|
|
<input-number
|
|
<input-number
|
|
|
controls-position="right"
|
|
controls-position="right"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- v-model="item.params.VBP"
|
|
|
|
|
|
|
+ v-model="item.params.HBP"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="VFP" :prop="`screens.${index}.params.VFP`">
|
|
|
|
|
|
|
+ <el-form-item label="HSW" :prop="`screens.${index}.params.HSW`">
|
|
|
<input-number
|
|
<input-number
|
|
|
controls-position="right"
|
|
controls-position="right"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- v-model="item.params.VFP"
|
|
|
|
|
|
|
+ v-model="item.params.HSW"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="HFP" :prop="`screens.${index}.params.HFP`">
|
|
|
|
|
|
|
+ <el-form-item label="HSPOL" :prop="`screens.${index}.params.HSPOL`">
|
|
|
<input-number
|
|
<input-number
|
|
|
controls-position="right"
|
|
controls-position="right"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- v-model="item.params.HFP"
|
|
|
|
|
|
|
+ v-model="item.params.HSPOL"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="HSYNC" :prop="`screens.${index}.params.HSYNC`">
|
|
|
|
|
|
|
+ <el-form-item label="VFP" :prop="`screens.${index}.params.VFP`">
|
|
|
<input-number
|
|
<input-number
|
|
|
controls-position="right"
|
|
controls-position="right"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- v-model="item.params.HSYNC"
|
|
|
|
|
|
|
+ v-model="item.params.VFP"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="VSYNC" :prop="`screens.${index}.params.VSYNC`">
|
|
|
|
|
|
|
+ <el-form-item label="VBP" :prop="`screens.${index}.params.VBP`">
|
|
|
<input-number
|
|
<input-number
|
|
|
controls-position="right"
|
|
controls-position="right"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- v-model="item.params.VSYNC"
|
|
|
|
|
|
|
+ v-model="item.params.VBP"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="HsyncWidth" :prop="`screens.${index}.params.HsyncWidth`">
|
|
|
|
|
|
|
+ <el-form-item label="VSW" :prop="`screens.${index}.params.VSW`">
|
|
|
<input-number
|
|
<input-number
|
|
|
controls-position="right"
|
|
controls-position="right"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- v-model="item.params.HsyncWidth"
|
|
|
|
|
|
|
+ v-model="item.params.VSW"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="VsyncWidth" :prop="`screens.${index}.params.VsyncWidth`">
|
|
|
|
|
|
|
+ <el-form-item label="VSPOL" :prop="`screens.${index}.params.VSPOL`">
|
|
|
<input-number
|
|
<input-number
|
|
|
controls-position="right"
|
|
controls-position="right"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- v-model="item.params.VsyncWidth"
|
|
|
|
|
|
|
+ v-model="item.params.VSPOL"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -555,14 +566,14 @@ const formData = reactive<
|
|
|
colorFormat: 'BGR',
|
|
colorFormat: 'BGR',
|
|
|
params: {
|
|
params: {
|
|
|
PCLK: undefined,
|
|
PCLK: undefined,
|
|
|
- VBP: undefined,
|
|
|
|
|
- VFP: undefined,
|
|
|
|
|
- HBP: undefined,
|
|
|
|
|
HFP: undefined,
|
|
HFP: undefined,
|
|
|
- HSYNC: undefined,
|
|
|
|
|
- VSYNC: undefined,
|
|
|
|
|
- HsyncWidth: undefined,
|
|
|
|
|
- VsyncWidth: undefined
|
|
|
|
|
|
|
+ HBP: undefined,
|
|
|
|
|
+ HSW: undefined,
|
|
|
|
|
+ HSPOL: undefined,
|
|
|
|
|
+ VFP: undefined,
|
|
|
|
|
+ VBP: undefined,
|
|
|
|
|
+ VSW: undefined,
|
|
|
|
|
+ VSPOL: undefined
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
@@ -637,31 +648,24 @@ const rules = computed(() => {
|
|
|
],
|
|
],
|
|
|
'chip.ram_size.capacity': [{ required: true, message: t('ramIsRequired'), trigger: 'blur' }],
|
|
'chip.ram_size.capacity': [{ required: true, message: t('ramIsRequired'), trigger: 'blur' }],
|
|
|
'screens.0.params.PCLK': [{ required: true, message: t('pclkRequired'), trigger: 'change' }],
|
|
'screens.0.params.PCLK': [{ required: true, message: t('pclkRequired'), trigger: 'change' }],
|
|
|
- 'screens.0.params.VBP': [{ required: true, message: t('VBPRequired'), trigger: 'change' }],
|
|
|
|
|
- 'screens.0.params.VFP': [{ required: true, message: t('VFPRequired'), trigger: 'change' }],
|
|
|
|
|
- 'screens.0.params.HBP': [{ required: true, message: t('HBPRequired'), trigger: 'change' }],
|
|
|
|
|
'screens.0.params.HFP': [{ required: true, message: t('HFPRequired'), trigger: 'change' }],
|
|
'screens.0.params.HFP': [{ required: true, message: t('HFPRequired'), trigger: 'change' }],
|
|
|
- 'screens.0.params.HSYNC': [{ required: true, message: t('HSYNCRequired'), trigger: 'change' }],
|
|
|
|
|
- 'screens.0.params.VSYNC': [{ required: true, message: t('VSYNCRequired'), trigger: 'change' }],
|
|
|
|
|
- 'screens.0.params.HsyncWidth': [
|
|
|
|
|
- { required: true, message: t('HsyncWidthRequired'), trigger: 'change' }
|
|
|
|
|
- ],
|
|
|
|
|
- 'screens.0.params.VsyncWidth': [
|
|
|
|
|
- { required: true, message: t('VsyncWidthRequired'), trigger: 'change' }
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ 'screens.0.params.HBP': [{ required: true, message: t('HBPRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.0.params.HSW': [{ required: true, message: t('HSWRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.0.params.HSPOL': [{ required: true, message: t('HSPOLRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.0.params.VFP': [{ required: true, message: t('VFPRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.0.params.VBP': [{ required: true, message: t('VBPRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.0.params.VSW': [{ required: true, message: t('VSWRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.0.params.VSPOL': [{ required: true, message: t('VSPOLRequired'), trigger: 'change' }],
|
|
|
|
|
+
|
|
|
'screens.1.params.PCLK': [{ required: true, message: t('pclkRequired'), trigger: 'change' }],
|
|
'screens.1.params.PCLK': [{ required: true, message: t('pclkRequired'), trigger: 'change' }],
|
|
|
- 'screens.1.params.VBP': [{ required: true, message: t('VBPRequired'), trigger: 'change' }],
|
|
|
|
|
- 'screens.1.params.VFP': [{ required: true, message: t('VFPRequired'), trigger: 'change' }],
|
|
|
|
|
- 'screens.1.params.HBP': [{ required: true, message: t('HBPRequired'), trigger: 'change' }],
|
|
|
|
|
'screens.1.params.HFP': [{ required: true, message: t('HFPRequired'), trigger: 'change' }],
|
|
'screens.1.params.HFP': [{ required: true, message: t('HFPRequired'), trigger: 'change' }],
|
|
|
- 'screens.1.params.HSYNC': [{ required: true, message: t('HSYNCRequired'), trigger: 'change' }],
|
|
|
|
|
- 'screens.1.params.VSYNC': [{ required: true, message: t('VSYNCRequired'), trigger: 'change' }],
|
|
|
|
|
- 'screens.1.params.HsyncWidth': [
|
|
|
|
|
- { required: true, message: t('HsyncWidthRequired'), trigger: 'change' }
|
|
|
|
|
- ],
|
|
|
|
|
- 'screens.1.params.VsyncWidth': [
|
|
|
|
|
- { required: true, message: t('VsyncWidthRequired'), trigger: 'change' }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ 'screens.1.params.HBP': [{ required: true, message: t('HBPRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.1.params.HSW': [{ required: true, message: t('HSWRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.1.params.HSPOL': [{ required: true, message: t('HSPOLRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.1.params.VFP': [{ required: true, message: t('VFPRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.1.params.VBP': [{ required: true, message: t('VBPRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.1.params.VSW': [{ required: true, message: t('VSWRequired'), trigger: 'change' }],
|
|
|
|
|
+ 'screens.1.params.VSPOL': [{ required: true, message: t('VSPOLRequired'), trigger: 'change' }]
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -812,14 +816,14 @@ const handleChangeScreenTypeByChip = (type: any) => {
|
|
|
// 屏幕参数
|
|
// 屏幕参数
|
|
|
params: {
|
|
params: {
|
|
|
PCLK: resolution?.PCLK,
|
|
PCLK: resolution?.PCLK,
|
|
|
- VBP: resolution?.VBP,
|
|
|
|
|
- VFP: resolution?.VFP,
|
|
|
|
|
- HBP: resolution?.HBP,
|
|
|
|
|
HFP: resolution?.HFP,
|
|
HFP: resolution?.HFP,
|
|
|
- HSYNC: resolution?.HSYNC,
|
|
|
|
|
- VSYNC: resolution?.VSYNC,
|
|
|
|
|
- HsyncWidth: resolution?.HsyncWidth,
|
|
|
|
|
- VsyncWidth: resolution?.VsyncWidth
|
|
|
|
|
|
|
+ HBP: resolution?.HBP,
|
|
|
|
|
+ HSW: resolution?.HSW,
|
|
|
|
|
+ HSPOL: resolution?.HSPOL,
|
|
|
|
|
+ VFP: resolution?.VFP,
|
|
|
|
|
+ VBP: resolution?.VBP,
|
|
|
|
|
+ VSW: resolution?.VSW,
|
|
|
|
|
+ VSPOL: resolution?.VSPOL
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -893,14 +897,14 @@ const handleChangeScreenTypeByBoard = (board: any) => {
|
|
|
screenDirection: screen?.screen_direction?.default,
|
|
screenDirection: screen?.screen_direction?.default,
|
|
|
params: {
|
|
params: {
|
|
|
PCLK: undefined,
|
|
PCLK: undefined,
|
|
|
- VBP: undefined,
|
|
|
|
|
- VFP: undefined,
|
|
|
|
|
- HBP: undefined,
|
|
|
|
|
HFP: undefined,
|
|
HFP: undefined,
|
|
|
- HSYNC: undefined,
|
|
|
|
|
- VSYNC: undefined,
|
|
|
|
|
- HsyncWidth: undefined,
|
|
|
|
|
- VsyncWidth: undefined
|
|
|
|
|
|
|
+ HBP: undefined,
|
|
|
|
|
+ HSW: undefined,
|
|
|
|
|
+ HSPOL: undefined,
|
|
|
|
|
+ VFP: undefined,
|
|
|
|
|
+ VBP: undefined,
|
|
|
|
|
+ VSW: undefined,
|
|
|
|
|
+ VSPOL: undefined
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -945,14 +949,14 @@ const handleChangeScreenTypeByAnalog = (type: any) => {
|
|
|
screenDirection: screen?.screen_direction?.default,
|
|
screenDirection: screen?.screen_direction?.default,
|
|
|
params: {
|
|
params: {
|
|
|
PCLK: undefined,
|
|
PCLK: undefined,
|
|
|
- VBP: undefined,
|
|
|
|
|
- VFP: undefined,
|
|
|
|
|
- HBP: undefined,
|
|
|
|
|
HFP: undefined,
|
|
HFP: undefined,
|
|
|
- HSYNC: undefined,
|
|
|
|
|
- VSYNC: undefined,
|
|
|
|
|
- HsyncWidth: undefined,
|
|
|
|
|
- VsyncWidth: undefined
|
|
|
|
|
|
|
+ HBP: undefined,
|
|
|
|
|
+ HSW: undefined,
|
|
|
|
|
+ HSPOL: undefined,
|
|
|
|
|
+ VFP: undefined,
|
|
|
|
|
+ VBP: undefined,
|
|
|
|
|
+ VSW: undefined,
|
|
|
|
|
+ VSPOL: undefined
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|