f5e3a1fdf8e28cd2eea676d4417890ba2e9bf57b..36885d9fdc194ec984e257da0950478ebcb33288
2 天以前 dengzedong
mergeItem添加pointId
36885d 对比 | 目录
2 天以前 dengzedong
itemchart
290730 对比 | 目录
已修改2个文件
47 ■■■■ 文件已修改
src/views/model/pre/item/MmPredictItemChart.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/model/pre/item/MmPredictItemForm.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/model/pre/item/MmPredictItemChart.vue
@@ -58,8 +58,8 @@
const message = useMessage() // 消息弹窗
const visible = ref(false);
const chartDomPre = ref(null);
let myChart = null;
const chartDomPre = ref();
let myChart = undefined;
const chartParams = reactive({
  itemId: undefined,
  startTime: undefined,
@@ -131,18 +131,20 @@
      if (data.viewMap) {
        Object.keys(data.viewMap).forEach(key => {
          let viewData = data.viewMap[key]
          seriesData.push({
            name: key + ":" + '真实值',
            type: "line",
            data: viewData.realData,
            showSymbol: false,
            smooth: false,
            lineStyle: {
              normal: {
                width: 1,
          if(viewData.realData) {
            seriesData.push({
              name: key + ":" + '真实值',
              type: "line",
              data: viewData.realData,
              showSymbol: false,
              smooth: false,
              lineStyle: {
                normal: {
                  width: 1,
                },
              },
            },
          })
            })
          }
          seriesData.push({
            name: key + ":" + '预测值',
            type: "line",
@@ -206,6 +208,7 @@
        ],
        series: seriesData,
      };
      myChart.clear()
      myChart.setOption(option);
    } catch (error) {
      console.error(error)
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>
@@ -544,7 +559,8 @@
    num: undefined
  },
  mmModelArithSettingsList: [],
  mmModelParamList: []
  mmModelParamList: [],
  pointId: undefined
})
const formRules = reactive({
  'mmPredictItem.itemname': [{required: true, message: '预测项名不能为空', trigger: 'blur'}],