Browse Source

10.29

master
lichong 5 months ago
parent
commit
6afafa1eda
  1. 8
      src/renderer/src/components/formcomponent.vue
  2. 2
      src/renderer/src/views/chufang.vue

8
src/renderer/src/components/formcomponent.vue

@ -3,7 +3,7 @@
<el-form :model="formData" label-suffix="" :disabled="disabled" @submit.prevent>
<el-row>
<el-col :key="formIndex" v-for="(formItem, formIndex) in formHeader"
:span="['text', 'date', 'textarea'].includes(formItem.type) ? 24 : 12">
:span="['text', 'date', 'textarea'].includes(formItem.type) ? 24 : 24">
<el-form-item :label="formItem.label">
<template v-if="['text', 'textarea'].includes(formItem.type)">
<el-input v-model="formData[formItem.prop]" :type="formItem.type" autosize style="width: 80%;" />
@ -23,7 +23,7 @@
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-col :span="24">
<video :ref="`${formItem.prop}video`"
:style="`width: ${width}px;height: ${height}px;border: 1px solid #ccc;`" autoplay playsinline
v-show="!formData[formItem.prop]"></video>
@ -84,8 +84,8 @@ export default {
return {
_: _,
dayjs: dayjs,
width: 569,
height: 320,
width: 1280,
height: 720,
}
},
methods: {

2
src/renderer/src/views/chufang.vue

@ -42,7 +42,7 @@
@info="info" @del="del" ref="tableComponentRef" @headerSort="headerSort">
</tablecomponent>
</div>
<el-dialog v-model="dialogFrom.visible" :title="dialogFrom.title" width="80%" :close-on-click-modal="false">
<el-dialog v-model="dialogFrom.visible" :title="dialogFrom.title" width="90%" :close-on-click-modal="false">
<formcomponent :formHeader="dialogFrom.formHeader" :formData="dialogFrom.formData"
:disabled="dialogFrom.disabled">
</formcomponent>

Loading…
Cancel
Save