Karsa 1 年之前
父节点
当前提交
b32b70ab8e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/datasheet_manage/components/selectTargetValueDia.vue

+ 2 - 1
src/views/datasheet_manage/components/selectTargetValueDia.vue

@@ -84,8 +84,9 @@ export default {
     isShow(nval) {
       if(!nval) return
 
+      console.log(this.info)
       if(this.info.DataType===5) {
-        const valueObj = JSON.parse(this.info.Value);
+        const valueObj = this.info.Value ? JSON.parse(this.info.Value) : {};
         this.dateSelectForm = {
           Type: this.info.DataTime ? 2 : 1,
           MoveForward: valueObj.MoveForward || 0,