liriming
2 天以前 1220f5ca98b10b735a47c37a81fbfc554b01e2fe
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'}],
@@ -651,7 +665,7 @@
    let flag = false
    expressionList.value.forEach((e,index) => {
      if (e.point == undefined || e.point === '' || e.operator == undefined || (e.operator === '' && index != expressionList.value.length - 1)) {
      if (e.point == undefined || e.point === '' || ((e.operator == undefined || e.operator === '') && index != expressionList.value.length - 1)) {
        message.error("表达式数据异常")
        flag = true
        return