气体检测记录表修改
This commit is contained in:
parent
f9c4b3eff1
commit
41ae3551eb
|
@ -96,6 +96,8 @@ class EcmService:
|
|||
elif ep_blts == ep_acess and i.type == 20:
|
||||
# 触发非法进入事件
|
||||
pass
|
||||
elif i.obj_cate == 'post':
|
||||
pass
|
||||
else:
|
||||
# 触发未知标签进入事件
|
||||
pass
|
|
@ -0,0 +1,38 @@
|
|||
# Generated by Django 3.2.12 on 2022-06-25 09:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('opm', '0003_gascheck_h2s'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='gascheck',
|
||||
name='f5',
|
||||
field=models.CharField(blank=True, max_length=10, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='gascheck',
|
||||
name='co',
|
||||
field=models.PositiveSmallIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='gascheck',
|
||||
name='h2s',
|
||||
field=models.PositiveSmallIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='gascheck',
|
||||
name='lel',
|
||||
field=models.DecimalField(blank=True, decimal_places=1, max_digits=3, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='gascheck',
|
||||
name='o2',
|
||||
field=models.DecimalField(blank=True, decimal_places=1, max_digits=3, null=True),
|
||||
),
|
||||
]
|
|
@ -153,10 +153,11 @@ class GasCheck(CommonADModel):
|
|||
"""
|
||||
check_time = models.DateTimeField('检测时间')
|
||||
check_place = models.CharField('检测部位', max_length=100)
|
||||
o2 = models.DecimalField(decimal_places=1, max_digits=3)
|
||||
co = models.PositiveSmallIntegerField()
|
||||
h2s = models.PositiveSmallIntegerField()
|
||||
lel = models.DecimalField(decimal_places=1, max_digits=3)
|
||||
o2 = models.DecimalField(decimal_places=1, max_digits=3, null=True, blank=True)
|
||||
co = models.PositiveSmallIntegerField(null=True, blank=True)
|
||||
h2s = models.PositiveSmallIntegerField(null=True, blank=True)
|
||||
lel = models.DecimalField(decimal_places=1, max_digits=3, null=True, blank=True)
|
||||
f5 = models.CharField(max_length=10, null=True, blank=True)
|
||||
is_ok = models.BooleanField('是否正常', default=True)
|
||||
checker = models.ForeignKey(User, verbose_name='检测人', on_delete=models.CASCADE)
|
||||
opl = models.ForeignKey(Opl, verbose_name='关联作业许可', on_delete=models.CASCADE)
|
||||
|
|
Loading…
Reference in New Issue