dengzedong
6 天以前 932c3ab49ea4e911fb2c2531c29d6609ac5afefd
src/views/model/pre/item/MmPredictItemForm.vue
@@ -110,6 +110,21 @@
              maxlength="5"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="真实数据点">
            <el-select
              v-model="dataForm.pointId"
              filterable
              clearable
              placeholder="请选择">
              <el-option
                v-for="item in pointList"
                :key="item.id"
                :label="item.pointName"
                :value="item.id"/>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-divider content-position="left" v-if="dataForm.itemtypename === 'NormalItem'">模型信息
      </el-divider>
@@ -283,7 +298,7 @@
        <el-table-column prop="valuetype" label="类型" align="center" min-width="150"/>
        <el-table-column prop="" label="值" align="center" min-width="200">
          <template #default="scope">
            <el-input size="mini" v-model="scope.row.value" maxlength="1000"
            <el-input v-model="scope.row.value" maxlength="1000"
                      :disabled="scope.row.key === 'pyFile'"
                      style="width:100%;height:100%"/>
          </template>
@@ -357,14 +372,12 @@
          <template #default="scope">
            <el-button
              @click="addRow(scope.$index, dataForm.mmModelParamList)"
              type="text"
              size="mini">
              type="text">
              添加
            </el-button>
            <el-button
              @click="deleteRow(scope.$index, scope.row, dataForm.mmModelParamList)"
              type="text"
              size="mini">
              type="text">
              删除
            </el-button>
          </template>
@@ -544,7 +557,8 @@
    num: undefined
  },
  mmModelArithSettingsList: [],
  mmModelParamList: []
  mmModelParamList: [],
  pointId: undefined
})
const formRules = reactive({
  'mmPredictItem.itemname': [{required: true, message: '预测项名不能为空', trigger: 'blur'}],