板卡增加程序版本
This commit is contained in:
parent
03250c7d94
commit
6a77de47a8
5431
src/YunDa.Domain/YunDa.ISAS.EntityFrameworkCore/Migrations/20241213031319_update_table_v93.Designer.cs
generated
Normal file
5431
src/YunDa.Domain/YunDa.ISAS.EntityFrameworkCore/Migrations/20241213031319_update_table_v93.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,40 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace YunDa.ISAS.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class update_table_v93 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ProgramVersion",
|
||||
table: "gi_board_card_info",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ProgramVersionCrc",
|
||||
table: "gi_board_card_info",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProgramVersion",
|
||||
table: "gi_board_card_info");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProgramVersionCrc",
|
||||
table: "gi_board_card_info");
|
||||
}
|
||||
}
|
||||
}
|
@ -3402,6 +3402,12 @@ namespace YunDa.ISAS.Migrations
|
||||
b.Property<DateTime?>("ProductionDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<string>("ProgramVersion")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("ProgramVersionCrc")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("ProtectionChecksum")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
|
@ -291,6 +291,18 @@
|
||||
<!-- 其他信息表单 -->
|
||||
<div id="additionalInfo" class="tab-pane">
|
||||
<form class="form-horizontal col-sm-12">
|
||||
<div class="form-group col-sm-6">
|
||||
<label class="col-sm-3 control-label">硬件版本:</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" placeholder="请输入程序版本" v-model="programVersion" name="programVersion">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6">
|
||||
<label class="col-sm-3 control-label">硬件版本:</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" placeholder="请输入程序版本校验码" v-model="programVersionCrc" name="programVersionCrc">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6">
|
||||
<label class="col-sm-3 control-label">硬件版本:</label>
|
||||
<div class="col-sm-9">
|
||||
|
@ -573,6 +573,20 @@ var boardCardInfoList = {
|
||||
valign: 'middle',
|
||||
visible: true
|
||||
},
|
||||
{
|
||||
field: 'programVersion', // 硬件版本
|
||||
title: '程序版本',
|
||||
align: 'center',
|
||||
valign: 'middle',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'programVersionCrc', // 硬件版本
|
||||
title: '程序版本校验码',
|
||||
align: 'center',
|
||||
valign: 'middle',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'hardwareVersion', // 硬件版本
|
||||
title: '硬件版本',
|
||||
@ -752,7 +766,9 @@ var boardCardInfoList = {
|
||||
verificationPerson: '',
|
||||
verificationDate: null,
|
||||
verificationRecords: '',
|
||||
maintenanceRecord:'',
|
||||
maintenanceRecord: '',
|
||||
programVersion: '',
|
||||
programVersionCrc:'',
|
||||
remark: '',
|
||||
isActive: true,
|
||||
format: '',
|
||||
@ -792,6 +808,8 @@ var boardCardInfoList = {
|
||||
isActive: this.isActive,
|
||||
protectionDeviceInfoId: boardCardInfoList.protectionDeviceInfoId,
|
||||
maintenanceRecord: this.maintenanceRecord,
|
||||
programVersionCrc: this.programVersionCrc,
|
||||
programVersion: this.programVersion,
|
||||
};
|
||||
|
||||
isas.ajax({
|
||||
@ -860,6 +878,8 @@ var boardCardInfoList = {
|
||||
boardCardInfoList.editModalVue.isActive = rowData.isActive;
|
||||
boardCardInfoList.editModalVue.protectionDeviceInfoId = rowData.protectionDeviceInfoId;
|
||||
boardCardInfoList.editModalVue.maintenanceRecord = rowData.maintenanceRecord;
|
||||
boardCardInfoList.editModalVue.programVersionCrc = rowData.programVersionCrc;
|
||||
boardCardInfoList.editModalVue.programVersion = rowData.programVersion;
|
||||
}
|
||||
else {
|
||||
boardCardInfoList.editModalVue.id = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user