fix: database修复Collect Stop 和Acq.Start参数不正确问题

This commit is contained in:
Xu Zhimeng 2023-11-08 10:08:21 +08:00
parent d273f98264
commit cb8adf6808
2 changed files with 21 additions and 15 deletions

View File

@ -10,7 +10,10 @@
:style="item.style" :style="item.style"
> >
<a-form-model-item :label="item.label" :prop="item.name" :labelCol="item.labelCol"> <a-form-model-item :label="item.label" :prop="item.name" :labelCol="item.labelCol">
<component :is="item.type" v-bind="item.props" v-model="formModel[item.name]" v-on="item.on"></component> <a-checkbox v-if="item.type == 'a-checkbox'" v-model="formModel[item.name]" v-on="item.on">
{{ item.innerLabel }}
</a-checkbox>
<component v-else :is="item.type" v-bind="item.props" v-model="formModel[item.name]" v-on="item.on"></component>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-button class="search-btn" type="primary" @click="onSearch"> <a-button class="search-btn" type="primary" @click="onSearch">

View File

@ -292,7 +292,7 @@ export default {
props: { props: {
allowClear: true, allowClear: true,
style: { style: {
width: '190px', width: '187px',
}, },
}, },
style: { style: {
@ -315,7 +315,7 @@ export default {
filterOption: this.filterOption, filterOption: this.filterOption,
allowClear: true, allowClear: true,
style: { style: {
width: '190px', width: '187px',
}, },
}, },
style: { style: {
@ -338,7 +338,7 @@ export default {
filterOption: this.filterOption, filterOption: this.filterOption,
allowClear: true, allowClear: true,
style: { style: {
width: '190px', width: '187px',
}, },
}, },
style: { style: {
@ -355,7 +355,7 @@ export default {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss',
style: { style: {
minWidth: 'auto', minWidth: 'auto',
width: '282px', width: '279px',
}, },
}, },
style: { style: {
@ -372,7 +372,7 @@ export default {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss',
style: { style: {
minWidth: 'auto', minWidth: 'auto',
width: '282px', width: '279px',
}, },
}, },
style: { style: {
@ -380,16 +380,19 @@ export default {
}, },
}, },
{ {
label: '', type: 'a-checkbox',
type: 'a-checkbox-group', name: 'collectStopCheck',
props: { innerLabel: 'Collect Stop',
options: [
{ label: 'Collect Stop', value: 'collectStop' },
{ label: 'Acq.Start', value: 'acqDotStart' },
],
},
style: { style: {
width: '230px', width: '132px',
},
},
{
type: 'a-checkbox',
name: 'acqDotStartCheck',
innerLabel: 'Acq.Start',
style: {
width: '113px',
}, },
}, },
] ]