<template>
  <a-spin :spinning="confirmLoading">
    <j-form-container :disabled="formDisabled">
      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
        <a-row>
          <a-col :span="24">
            <a-form-model-item label="上传服务器名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="serverName">
              <a-input v-model="model.serverName" placeholder="请输入上传服务器名"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="传感器ID" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sensorId">
              <a-input v-model="model.sensorId" placeholder="请输入传感器ID"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="status">
              <a-input-number v-model="model.status" placeholder="请输入状态" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="报警字段名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="statusname">
              <a-textarea v-model="model.statusname" rows="4" placeholder="请输入报警字段名" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体1.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100100">
              <a-input-number v-model="model.dbx100100" placeholder="请输入车体1.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体1.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100101">
              <a-input-number v-model="model.dbx100101" placeholder="请输入车体1.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体2.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100102">
              <a-input-number v-model="model.dbx100102" placeholder="请输入车体2.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体2.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100103">
              <a-input-number v-model="model.dbx100103" placeholder="请输入车体2.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体3.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100104">
              <a-input-number v-model="model.dbx100104" placeholder="请输入车体3.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体3.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100105">
              <a-input-number v-model="model.dbx100105" placeholder="请输入车体3.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体4.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100106">
              <a-input-number v-model="model.dbx100106" placeholder="请输入车体4.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体4.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100107">
              <a-input-number v-model="model.dbx100107" placeholder="请输入车体4.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体5.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100110">
              <a-input-number v-model="model.dbx100110" placeholder="请输入车体5.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体5.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100111">
              <a-input-number v-model="model.dbx100111" placeholder="请输入车体5.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体6.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100112">
              <a-input-number v-model="model.dbx100112" placeholder="请输入车体6.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体6.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100113">
              <a-input-number v-model="model.dbx100113" placeholder="请输入车体6.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体7.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100114">
              <a-input-number v-model="model.dbx100114" placeholder="请输入车体7.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体7.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100115">
              <a-input-number v-model="model.dbx100115" placeholder="请输入车体7.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体8.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100116">
              <a-input-number v-model="model.dbx100116" placeholder="请输入车体8.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体8.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100117">
              <a-input-number v-model="model.dbx100117" placeholder="请输入车体8.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体9.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100120">
              <a-input-number v-model="model.dbx100120" placeholder="请输入车体9.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体9.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100121">
              <a-input-number v-model="model.dbx100121" placeholder="请输入车体9.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体10.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100122">
              <a-input-number v-model="model.dbx100122" placeholder="请输入车体10.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体10.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100123">
              <a-input-number v-model="model.dbx100123" placeholder="请输入车体10.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体11.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100124">
              <a-input-number v-model="model.dbx100124" placeholder="请输入车体11.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体11.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100125">
              <a-input-number v-model="model.dbx100125" placeholder="请输入车体11.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体12.1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100126">
              <a-input-number v-model="model.dbx100126" placeholder="请输入车体12.1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体12.2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100127">
              <a-input-number v-model="model.dbx100127" placeholder="请输入车体12.2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体1.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100140">
              <a-input-number v-model="model.dbx100140" placeholder="请输入车体1.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体1.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100141">
              <a-input-number v-model="model.dbx100141" placeholder="请输入车体1.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体2.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100142">
              <a-input-number v-model="model.dbx100142" placeholder="请输入车体2.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体2.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100143">
              <a-input-number v-model="model.dbx100143" placeholder="请输入车体2.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体3.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100144">
              <a-input-number v-model="model.dbx100144" placeholder="请输入车体3.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体3.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100145">
              <a-input-number v-model="model.dbx100145" placeholder="请输入车体3.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体4.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100146">
              <a-input-number v-model="model.dbx100146" placeholder="请输入车体4.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体4.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100147">
              <a-input-number v-model="model.dbx100147" placeholder="请输入车体4.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体5.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100150">
              <a-input-number v-model="model.dbx100150" placeholder="请输入车体5.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体5.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100151">
              <a-input-number v-model="model.dbx100151" placeholder="请输入车体5.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体6.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100152">
              <a-input-number v-model="model.dbx100152" placeholder="请输入车体6.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体6.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100153">
              <a-input-number v-model="model.dbx100153" placeholder="请输入车体6.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体7.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100154">
              <a-input-number v-model="model.dbx100154" placeholder="请输入车体7.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体7.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100155">
              <a-input-number v-model="model.dbx100155" placeholder="请输入车体7.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体8.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100156">
              <a-input-number v-model="model.dbx100156" placeholder="请输入车体8.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体8.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100157">
              <a-input-number v-model="model.dbx100157" placeholder="请输入车体8.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体9.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100160">
              <a-input-number v-model="model.dbx100160" placeholder="请输入车体9.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体9.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100161">
              <a-input-number v-model="model.dbx100161" placeholder="请输入车体9.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体10.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100162">
              <a-input-number v-model="model.dbx100162" placeholder="请输入车体10.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体10.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100163">
              <a-input-number v-model="model.dbx100163" placeholder="请输入车体10.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体11.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100164">
              <a-input-number v-model="model.dbx100164" placeholder="请输入车体11.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体11.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100165">
              <a-input-number v-model="model.dbx100165" placeholder="请输入车体11.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体12.1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100166">
              <a-input-number v-model="model.dbx100166" placeholder="请输入车体12.1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体12.2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100167">
              <a-input-number v-model="model.dbx100167" placeholder="请输入车体12.2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架1安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100180">
              <a-input-number v-model="model.dbx100180" placeholder="请输入转向架1安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架2安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100181">
              <a-input-number v-model="model.dbx100181" placeholder="请输入转向架2安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架3安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100182">
              <a-input-number v-model="model.dbx100182" placeholder="请输入转向架3安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架4安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100183">
              <a-input-number v-model="model.dbx100183" placeholder="请输入转向架4安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架5安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100184">
              <a-input-number v-model="model.dbx100184" placeholder="请输入转向架5安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架6安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100185">
              <a-input-number v-model="model.dbx100185" placeholder="请输入转向架6安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架7安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100186">
              <a-input-number v-model="model.dbx100186" placeholder="请输入转向架7安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架8安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100187">
              <a-input-number v-model="model.dbx100187" placeholder="请输入转向架8安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架9安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100190">
              <a-input-number v-model="model.dbx100190" placeholder="请输入转向架9安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架10安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100191">
              <a-input-number v-model="model.dbx100191" placeholder="请输入转向架10安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架11安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100192">
              <a-input-number v-model="model.dbx100192" placeholder="请输入转向架11安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架12安全螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx100193">
              <a-input-number v-model="model.dbx100193" placeholder="请输入转向架12安全螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架1工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001100">
              <a-input-number v-model="model.dbx1001100" placeholder="请输入转向架1工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架2工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001101">
              <a-input-number v-model="model.dbx1001101" placeholder="请输入转向架2工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架3工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001102">
              <a-input-number v-model="model.dbx1001102" placeholder="请输入转向架3工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架4工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001103">
              <a-input-number v-model="model.dbx1001103" placeholder="请输入转向架4工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架5工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001104">
              <a-input-number v-model="model.dbx1001104" placeholder="请输入转向架5工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架6工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001105">
              <a-input-number v-model="model.dbx1001105" placeholder="请输入转向架6工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架7工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001106">
              <a-input-number v-model="model.dbx1001106" placeholder="请输入转向架7工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架8工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001107">
              <a-input-number v-model="model.dbx1001107" placeholder="请输入转向架8工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架9工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001110">
              <a-input-number v-model="model.dbx1001110" placeholder="请输入转向架9工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架10工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001111">
              <a-input-number v-model="model.dbx1001111" placeholder="请输入转向架10工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架11工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001112">
              <a-input-number v-model="model.dbx1001112" placeholder="请输入转向架11工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架12工作螺母" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001113">
              <a-input-number v-model="model.dbx1001113" placeholder="请输入转向架12工作螺母" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="车体同步故障" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001200">
              <a-input-number v-model="model.dbx1001200" placeholder="请输入车体同步故障" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="转向架同步故障" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001201">
              <a-input-number v-model="model.dbx1001201" placeholder="请输入转向架同步故障" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="系统上电状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dbx1001203">
              <a-input-number v-model="model.dbx1001203" placeholder="请输入系统上电状态" style="width: 100%" />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>
    </j-form-container>
  </a-spin>
</template>

<script>

  import { httpAction, getAction } from '@/api/manage'
  import { validateDuplicateValue } from '@/utils/util'

  export default {
    name: 'BuZyGijcj_6OnlineForm',
    components: {
    },
    props: {
      //表单禁用
      disabled: {
        type: Boolean,
        default: false,
        required: false
      }
    },
    data () {
      return {
        model:{
         },
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },
        confirmLoading: false,
        validatorRules: {
        },
        url: {
          add: "/gijcj/buZyGijcj_6Online/add",
          edit: "/gijcj/buZyGijcj_6Online/edit",
          queryById: "/gijcj/buZyGijcj_6Online/queryById"
        }
      }
    },
    computed: {
      formDisabled(){
        return this.disabled
      },
    },
    created () {
       //备份model原始值
      this.modelDefault = JSON.parse(JSON.stringify(this.model));
    },
    methods: {
      add () {
        this.edit(this.modelDefault);
      },
      edit (record) {
        this.model = Object.assign({}, record);
        this.visible = true;
      },
      submitForm () {
        const that = this;
        // 触发表单验证
        this.$refs.form.validate(valid => {
          if (valid) {
            that.confirmLoading = true;
            let httpurl = '';
            let method = '';
            if(!this.model.id){
              httpurl+=this.url.add;
              method = 'post';
            }else{
              httpurl+=this.url.edit;
               method = 'put';
            }
            httpAction(httpurl,this.model,method).then((res)=>{
              if(res.success){
                that.$message.success(res.message);
                that.$emit('ok');
              }else{
                that.$message.warning(res.message);
              }
            }).finally(() => {
              that.confirmLoading = false;
            })
          }
         
        })
      },
    }
  }
</script>