浏览代码

modify relation

haojianlong 5 年之前
父节点
当前提交
7b3b8011a2
共有 2 个文件被更改,包括 445 次插入292 次删除
  1. 404 230
      src/views/point/dynamicdata/addRelation/index.vue
  2. 41 62
      src/views/point/dynamicdata/index.vue

+ 404 - 230
src/views/point/dynamicdata/addRelation/index.vue

@@ -10,23 +10,13 @@
     </div>
     <!-- tab页区域 -->
     <el-tabs v-model="curType">
-      <el-tab-pane
-        v-for="(item) in typeList"
-        :key="item.name"
-        :label="item.title"
-        :name="item.name"
-      ></el-tab-pane>
+      <el-tab-pane v-for="(item) in typeList" :key="item.Name" :label="item.Name" :name="item.Name"></el-tab-pane>
     </el-tabs>
     <!-- 数据字典设备类型 -->
     <el-form>
       <el-form-item label="数据字典设备类型">
-        <el-select v-model="form.source" multiple collapse-tags placeholder="全部" filterable>
-          <el-option
-            v-for="item in options"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value"
-          ></el-option>
+        <el-select v-model="form.SubTypeName" multiple collapse-tags placeholder="全部" filterable>
+          <el-option v-for="item in DynEquipList" :key="item" :label="item" :value="item"></el-option>
         </el-select>
       </el-form-item>
     </el-form>
@@ -44,50 +34,26 @@
           </div>
           <div class="query-item">
             <label>数据源</label>
-            <el-select v-model="form.source" multiple collapse-tags placeholder="全部" filterable>
-              <el-option
-                v-for="item in options"
-                :key="item.value"
-                :label="item.label"
-                :value="item.value"
-              ></el-option>
+            <el-select v-model="form.Datasource" multiple collapse-tags placeholder="全部" filterable>
+              <el-option v-for="item in sourceList" :key="item" :label="item" :value="item"></el-option>
             </el-select>
           </div>
           <div class="query-item">
             <label>位置标签</label>
-            <el-select v-model="form.position" multiple collapse-tags placeholder="全部" filterable>
-              <el-option
-                v-for="item in options"
-                :key="item.value"
-                :label="item.label"
-                :value="item.value"
-              ></el-option>
+            <el-select v-model="form.LocationFlag" multiple collapse-tags placeholder="全部" filterable>
+              <el-option v-for="item in LocFlagList" :key="item" :label="item" :value="item"></el-option>
             </el-select>
           </div>
         </div>
         <!-- 左侧列表 -->
         <div class="table-box" ref="lTableBody">
           <div class="l-custom-table custom-table" v-loading="lTableLoading">
-            <el-table
-              ref="multipleTable1"
-              :data="LtableData"
-              tooltip-effect="dark"
-              style="width: 100%"
-              height="100%"
-              :row-class-name="'transition-box'"
-            >
+            <el-table ref="multipleTable1" :data="LtableData" tooltip-effect="dark" style="width: 100%" height="100%" :row-class-name="'transition-box'">
               <el-table-column label="数据源" align="right">
                 <template slot-scope="scope">{{ scope.row.date }}</template>
               </el-table-column>
               <el-table-column prop="name" label="位置标签" align="right"></el-table-column>
-              <el-table-column
-                prop="address"
-                label="设备标识"
-                show-overflow-tooltip
-                align="right"
-                width="200"
-                class-name="bgf5"
-              ></el-table-column>
+              <el-table-column prop="address" label="设备标识" show-overflow-tooltip align="right" width="200" class-name="bgf5"></el-table-column>
               <el-table-column type="selection" width="35" class-name="bgf5"></el-table-column>
             </el-table>
           </div>
@@ -98,12 +64,7 @@
                 可能对应的设备标识
                 <i class="el-icon-close" @click="leftRecoList=[]"></i>
               </div>
-              <div
-                v-for="(t,i) in leftRecoList"
-                :key="t.id"
-                class="l-ai-recom-item ai-recom-item"
-                @click="selectAI(i,'l')"
-              >
+              <div v-for="(t,i) in leftRecoList" :key="t.id" class="l-ai-recom-item ai-recom-item" @click="selectAI(i,'l')">
                 <p>
                   <el-checkbox v-model="t.checked"></el-checkbox>
                   <span>{{t.name2}}</span>
@@ -129,19 +90,13 @@
           </div>
           <div class="query-item">
             <label>所在位置</label>
-            <el-cascader placeholder="请选择所在位置" :options="options" filterable change-on-select></el-cascader>
+            <el-cascader placeholder="请选择所在位置" :options="LocationList" filterable change-on-select v-model="locationVal"></el-cascader>
           </div>
         </div>
         <!-- 右侧列表 -->
         <div class="table-box">
           <div class="r-custom-table custom-table" v-loading="rTableLoading">
-            <el-table
-              ref="multipleTable2"
-              :data="RtableData"
-              tooltip-effect="dark"
-              style="width: 100%"
-              height="100%"
-            >
+            <el-table ref="multipleTable2" :data="RtableData" tooltip-effect="dark" style="width: 100%" height="100%">
               <el-table-column type="selection" width="35" class-name="bgf5"></el-table-column>
               <el-table-column label="设备实例名称" width="200" class-name="bgf5">
                 <template slot-scope="scope">{{ scope.row.date }}</template>
@@ -158,12 +113,7 @@
                 可能对应的设备实例
                 <i class="el-icon-close" @click="rightRecoList=[]"></i>
               </div>
-              <div
-                v-for="(t,i) in rightRecoList"
-                :key="t.id"
-                class="r-ai-recom-item ai-recom-item"
-                @click="selectAI(i,'r')"
-              >
+              <div v-for="(t,i) in rightRecoList" :key="t.id" class="r-ai-recom-item ai-recom-item" @click="selectAI(i,'r')">
                 <p>
                   <el-checkbox v-model="t.checked"></el-checkbox>
                   <span>{{t.name2}}</span>
@@ -186,176 +136,31 @@
 import tools from "@/utils/tools";
 import historyDialog from "@/components/point/dynamicdata/historyDialog";
 import { mapGetters, mapActions } from "vuex";
+import {
+  dynamicDataSource,
+  dynamicDynEquipList,
+  dynamicLocationList,
+  dynamicPendingobjs,
+  dynamicPendingPoint,
+  dynamicCreateRelation,
+  dynamicDeleteRelation,
+  dynamicLocFlagList,
+  dynamicPointTypeList
+} from "@/api/scan/request";
 export default {
   components: {
     historyDialog
   },
-  computed: {
-    ...mapGetters("layout", ["projectId"])
-  },
   data() {
     return {
       isSwitch: true, //AI辅助
-      curType: "1", //当前所在tab页
-      typeList: [
-        {
-          title: "设备类",
-          name: "1"
-        },
-        {
-          title: "2类",
-          name: "2"
-        }
-      ], //tab页list
-      options: [
-        {
-          value: "选项1",
-          label: "黄金糕"
-        },
-        {
-          value: "选项2",
-          label: "双皮奶"
-        },
-        {
-          value: "选项3",
-          label: "蚵仔煎"
-        },
-        {
-          value: "选项4",
-          label: "龙须面"
-        },
-        {
-          value: "选项5",
-          label: "北京烤鸭"
-        }
-      ], //
-      LtableData: [
-        {
-          id: 1,
-          date: "2016-05-02",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 2,
-          date: "2016-05-04",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 3,
-          date: "2016-05-01",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 4,
-          date: "2016-05-02",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 5,
-          date: "2016-05-04",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 6,
-          date: "2016-05-01",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 7,
-          date: "2016-05-08",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 8,
-          date: "2016-05-06",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 9,
-          date: "2016-05-07",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        }, {
-          id: 1,
-          date: "2016-05-02",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 2,
-          date: "2016-05-04",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 3,
-          date: "2016-05-01",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 4,
-          date: "2016-05-02",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 5,
-          date: "2016-05-04",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 6,
-          date: "2016-05-01",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 7,
-          date: "2016-05-08",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 8,
-          date: "2016-05-06",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        },
-        {
-          id: 9,
-          date: "2016-05-07",
-          name: "王小虎",
-          checked: false,
-          address: "上海市普陀区金沙江路 1518 弄"
-        }
-      ], //列表数据
+      curType: "", //当前所在tab页
+      typeList: [], //tab页list
+      sourceList: [], //数据源
+      DynEquipList: [], //数据字典设备类型
+      LocFlagList: [], //位置标签
+      LocationList: [], //所在位置下拉
+      LtableData: [], //列表数据
       RtableData: [
         {
           id: 1,
@@ -437,11 +242,292 @@ export default {
       num: 0, //记录条数
       timer: null, //函数节流 延时器
       historyList: [], //操作历史
-      lTableLoading: false,
-      rTableLoading: false
+      lTableLoading: false, //loading
+      rTableLoading: false,
+      lPage: {
+        pageNumber: 1,
+        pageSize: 50,
+        total: 0
+      },
+      rPage: {
+        pageNumber: 1,
+        pageSize: 50,
+        total: 0
+      },
+      locationVal: [],
+      options: [
+        {
+          value: "zhinan",
+          label: "指南",
+          children: [
+            {
+              value: "shejiyuanze",
+              label: "设计原则",
+              children: [
+                {
+                  value: "yizhi",
+                  label: "一致"
+                },
+                {
+                  value: "fankui",
+                  label: "反馈"
+                },
+                {
+                  value: "xiaolv",
+                  label: "效率"
+                },
+                {
+                  value: "kekong",
+                  label: "可控"
+                }
+              ]
+            },
+            {
+              value: "daohang",
+              label: "导航",
+              children: [
+                {
+                  value: "cexiangdaohang",
+                  label: "侧向导航"
+                },
+                {
+                  value: "dingbudaohang",
+                  label: "顶部导航"
+                }
+              ]
+            }
+          ]
+        },
+        {
+          value: "zujian",
+          label: "组件",
+          children: [
+            {
+              value: "basic",
+              label: "Basic",
+              children: [
+                {
+                  value: "layout",
+                  label: "Layout 布局"
+                },
+                {
+                  value: "color",
+                  label: "Color 色彩"
+                },
+                {
+                  value: "typography",
+                  label: "Typography 字体"
+                },
+                {
+                  value: "icon",
+                  label: "Icon 图标"
+                },
+                {
+                  value: "button",
+                  label: "Button 按钮"
+                }
+              ]
+            },
+            {
+              value: "form",
+              label: "Form",
+              children: [
+                {
+                  value: "radio",
+                  label: "Radio 单选框"
+                },
+                {
+                  value: "checkbox",
+                  label: "Checkbox 多选框"
+                },
+                {
+                  value: "input",
+                  label: "Input 输入框"
+                },
+                {
+                  value: "input-number",
+                  label: "InputNumber 计数器"
+                },
+                {
+                  value: "select",
+                  label: "Select 选择器"
+                },
+                {
+                  value: "cascader",
+                  label: "Cascader 级联选择器"
+                },
+                {
+                  value: "switch",
+                  label: "Switch 开关"
+                },
+                {
+                  value: "slider",
+                  label: "Slider 滑块"
+                },
+                {
+                  value: "time-picker",
+                  label: "TimePicker 时间选择器"
+                },
+                {
+                  value: "date-picker",
+                  label: "DatePicker 日期选择器"
+                },
+                {
+                  value: "datetime-picker",
+                  label: "DateTimePicker 日期时间选择器"
+                },
+                {
+                  value: "upload",
+                  label: "Upload 上传"
+                },
+                {
+                  value: "rate",
+                  label: "Rate 评分"
+                },
+                {
+                  value: "form",
+                  label: "Form 表单"
+                }
+              ]
+            },
+            {
+              value: "data",
+              label: "Data",
+              children: [
+                {
+                  value: "table",
+                  label: "Table 表格"
+                },
+                {
+                  value: "tag",
+                  label: "Tag 标签"
+                },
+                {
+                  value: "progress",
+                  label: "Progress 进度条"
+                },
+                {
+                  value: "tree",
+                  label: "Tree 树形控件"
+                },
+                {
+                  value: "pagination",
+                  label: "Pagination 分页"
+                },
+                {
+                  value: "badge",
+                  label: "Badge 标记"
+                }
+              ]
+            },
+            {
+              value: "notice",
+              label: "Notice",
+              children: [
+                {
+                  value: "alert",
+                  label: "Alert 警告"
+                },
+                {
+                  value: "loading",
+                  label: "Loading 加载"
+                },
+                {
+                  value: "message",
+                  label: "Message 消息提示"
+                },
+                {
+                  value: "message-box",
+                  label: "MessageBox 弹框"
+                },
+                {
+                  value: "notification",
+                  label: "Notification 通知"
+                }
+              ]
+            },
+            {
+              value: "navigation",
+              label: "Navigation",
+              children: [
+                {
+                  value: "menu",
+                  label: "NavMenu 导航菜单"
+                },
+                {
+                  value: "tabs",
+                  label: "Tabs 标签页"
+                },
+                {
+                  value: "breadcrumb",
+                  label: "Breadcrumb 面包屑"
+                },
+                {
+                  value: "dropdown",
+                  label: "Dropdown 下拉菜单"
+                },
+                {
+                  value: "steps",
+                  label: "Steps 步骤条"
+                }
+              ]
+            },
+            {
+              value: "others",
+              label: "Others",
+              children: [
+                {
+                  value: "dialog",
+                  label: "Dialog 对话框"
+                },
+                {
+                  value: "tooltip",
+                  label: "Tooltip 文字提示"
+                },
+                {
+                  value: "popover",
+                  label: "Popover 弹出框"
+                },
+                {
+                  value: "card",
+                  label: "Card 卡片"
+                },
+                {
+                  value: "carousel",
+                  label: "Carousel 走马灯"
+                },
+                {
+                  value: "collapse",
+                  label: "Collapse 折叠面板"
+                }
+              ]
+            }
+          ]
+        },
+        {
+          value: "ziyuan",
+          label: "资源",
+          children: [
+            {
+              value: "axure",
+              label: "Axure Components"
+            },
+            {
+              value: "sketch",
+              label: "Sketch Templates"
+            },
+            {
+              value: "jiaohu",
+              label: "组件交互文档"
+            }
+          ]
+        }
+      ]
     };
   },
-  created() {},
+  created() {
+    this.init();
+  },
   mounted() {
     let that = this;
     let lTableBody = this.$refs.lTableBody;
@@ -486,11 +572,51 @@ export default {
     // });
   },
   computed: {
+    ...mapGetters("layout", ["projectId"]),
     requestFlag() {
       return this.lArray.length > 0 && this.rArray.length > 0;
     }
   },
   methods: {
+    init() {
+      let param = { Related: false };
+      //对象类型
+      dynamicPointTypeList(param, res => {
+        if (res.Result == "success") {
+          this.typeList = res.Content;
+          if (this.typeList.length) {
+            this.curType = this.typeList[0].Name;
+            this.getLeftData();
+            this.getRightData();
+          } else {
+          }
+        }
+      });
+      //数据源
+      dynamicDataSource(param, res => {
+        if (res.Result == "success") {
+          this.sourceList = res.Content;
+        }
+      });
+      //数据字典
+      dynamicDynEquipList(param, res => {
+        if (res.Result == "success") {
+          this.DynEquipList = res.Content;
+        }
+      });
+      // 位置标签
+      dynamicLocFlagList(param, res => {
+        if (res.Result == "success") {
+          this.LocFlagList = res.Content;
+        }
+      });
+      //所在位置下拉
+      dynamicLocationList(param, res => {
+        if (res.Result == "success") {
+          this.LocationList = res.Content;
+        }
+      });
+    },
     //切换AI辅助
     changeType() {},
     //推荐中的选择事件
@@ -557,9 +683,57 @@ export default {
         this[key].splice(index, 1);
       }
     },
-    getData() {}
+    //获取待关联实例-右侧
+    getLeftData() {
+      let param = {
+        PageNumber: this.rPage.pageNumber,
+        PageSize: this.rPage.pageSize,
+        TypeName: this.curType
+      };
+      //处理查询条件(目前只是单个查,需后台支持)
+      if (this.form.SubTypeName.length) {
+        param.SubTypeName = this.form.SubTypeName.toString();
+      }
+      if (this.form.LocationFlag.length) {
+        param.LocationFlag = this.form.LocationFlag.toString();
+      }
+      if (this.form.Datasource.length) {
+        param.Datasource = this.form.Datasource.toString();
+      }
+      dynamicPendingobjs(param, res => {
+        console.log(res);
+      });
+    },
+    //获取待关联点位-左侧
+    getRightData() {
+      let param = {
+        PageNumber: this.lPage.pageNumber,
+        PageSize: this.lPage.pageSize,
+        TypeName: this.curType
+      };
+      //处理查询条件(目前只是单个查,需后台支持)
+      if (this.form.SubTypeName.length) {
+        param.SubTypeName = this.form.SubTypeName.toString();
+      }
+      if (this.form.LocationFlag.length) {
+        param.LocationFlag = this.form.LocationFlag.toString();
+      }
+      if (this.form.Datasource.length) {
+        param.Datasource = this.form.Datasource.toString();
+      }
+      dynamicPendingPoint(param, res => {
+        if (this.lPage.pageNumber == 1) {
+          this.LtableData = res.Content;
+        } else {
+        }
+      });
+    }
   },
   watch: {
+    projectId(n, o) {
+      console.log(2222222222222);
+      this.init();
+    },
     //判断两边是否均有选中值
     requestFlag(n, o) {
       if (n) {

+ 41 - 62
src/views/point/dynamicdata/index.vue

@@ -2,18 +2,21 @@
   <div id="dynamicdata">
     <!-- 按钮及提示 -->
     <div class="text-right">
-      <span>最后一次执行时间:{{lastUpdateTime}}</span>
+      <span v-if="tipsType==1">最后一次执行时间:{{lastUpdateTime}}</span>
+      <span v-if="tipsType==2" style="color:red;">
+        原始点位变化,部分标识受到影响,请重新执行对应规则
+        <i class="el-icon-right"></i>
+      </span>
+      <span v-if="tipsType==3" style="color:red;">
+        对应规则有更新,记得执行哦
+        <i class="el-icon-right"></i>
+      </span>
       <el-button size="medium" @click="apply">按对应规则自动设定动态参数信息点</el-button>
       <el-button size="medium" type="primary" @click="toAddRelation">填充对应规则</el-button>
     </div>
     <!-- tab分页 -->
     <el-tabs v-model="curType">
-      <el-tab-pane
-        v-for="(item) in typeList"
-        :key="item.Name"
-        :label="item.Name+'('+item.Rcount+'/'+item.Sum+')'"
-        :name="item.Name"
-      ></el-tab-pane>
+      <el-tab-pane v-for="(item) in typeList" :key="item.Name" :label="item.Name+'('+item.Rcount+'/'+item.Sum+')'" :name="item.Name"></el-tab-pane>
     </el-tabs>
     <!-- 查询条件 -->
     <div class="query-area">
@@ -21,53 +24,28 @@
         <el-row>
           <el-col :span="4">
             <el-form-item>
-              <el-input
-                placeholder="请输入设备标识关键字"
-                v-model="form.EquipmentMark"
-                class="input-with-select"
-              >
+              <el-input placeholder="请输入设备标识关键字" v-model="form.EquipmentMark" class="input-with-select">
                 <el-button slot="append" icon="el-icon-search"></el-button>
               </el-input>
             </el-form-item>
           </el-col>
           <el-col :span="5">
             <el-form-item label="数据源">
-              <el-select
-                v-model="form.Datasource"
-                multiple
-                collapse-tags
-                style="margin-left: 10px;"
-                placeholder="全部"
-                filterable
-              >
+              <el-select v-model="form.Datasource" multiple collapse-tags style="margin-left: 10px;" placeholder="全部" filterable>
                 <el-option v-for="item in sourceList" :key="item" :label="item" :value="item"></el-option>
               </el-select>
             </el-form-item>
           </el-col>
           <el-col :span="7">
             <el-form-item label="数字字典设备类型">
-              <el-select
-                v-model="form.SubTypeName"
-                multiple
-                collapse-tags
-                style="margin-left: 10px;"
-                placeholder="全部"
-                filterable
-              >
+              <el-select v-model="form.SubTypeName" multiple collapse-tags style="margin-left: 10px;" placeholder="全部" filterable>
                 <el-option v-for="item in DynEquipList" :key="item" :label="item" :value="item"></el-option>
               </el-select>
             </el-form-item>
           </el-col>
           <el-col :span="6">
             <el-form-item label="位置标签">
-              <el-select
-                v-model="form.LocationFlag"
-                multiple
-                collapse-tags
-                style="margin-left: 10px;"
-                placeholder="全部"
-                filterable
-              >
+              <el-select v-model="form.LocationFlag" multiple collapse-tags style="margin-left: 10px;" placeholder="全部" filterable>
                 <el-option v-for="item in LocFlagList" :key="item" :label="item" :value="item"></el-option>
               </el-select>
             </el-form-item>
@@ -133,29 +111,14 @@
         </el-table-column>
         <el-table-column prop="action" label="操作">
           <template slot-scope="scope">
-            <el-button
-              size="mini"
-              @click="handleDelete(scope.$index, scope.row)"
-              type="danger"
-              plain
-              :disabled="scope.row.Related=='False'"
-            >清除对应</el-button>
+            <el-button size="mini" @click="handleDelete(scope.$index, scope.row)" type="danger" plain :disabled="scope.row.Related=='False'">清除对应</el-button>
           </template>
         </el-table-column>
       </el-table>
     </div>
     <!-- 分页 -->
-    <el-pagination
-      class="fr"
-      v-show="tableData && tableData.length"
-      @size-change="handleSizeChange"
-      @current-change="handleCurrentChange"
-      :current-page="page.pageNumber"
-      :page-sizes="page.pageSizes"
-      :page-size="page.pageSize"
-      layout="total, sizes, prev, pager, next, jumper"
-      :total="page.total"
-    ></el-pagination>
+    <el-pagination class="fr" v-show="tableData && tableData.length" @size-change="handleSizeChange" @current-change="handleCurrentChange"
+      :current-page="page.pageNumber" :page-sizes="page.pageSizes" :page-size="page.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="page.total"></el-pagination>
     <!-- 应用规则弹窗 -->
     <apply-rules-dialog ref="apply"></apply-rules-dialog>
     <!-- 清除对应关系弹窗 -->
@@ -199,7 +162,8 @@ export default {
         total: 0
       },
       form: {}, //查询条件
-      lastUpdateTime: "" //最后更新时间
+      lastUpdateTime: "", //最后更新时间
+      tipsType: 1 //提示信息种类
     };
   },
   components: {
@@ -207,9 +171,6 @@ export default {
     delRelationDialog
   },
   created() {
-    let date = new Date();
-    this.lastUpdateTime = `${date.getFullYear()}-${date.getMonth() +
-      1}-${date.getDate()}  ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`;
     this.init();
   },
   mounted() {},
@@ -224,6 +185,8 @@ export default {
           if (this.typeList.length) {
             this.curType = this.typeList[0].Name;
             this.getTableData();
+          }else{
+            this.tableData = [];
           }
         }
       });
@@ -246,11 +209,27 @@ export default {
         }
       });
       //获取提示信息
-      dynamicPromptmessage({},res=>{
-        if(res.Result == 'success'){
-          
+      dynamicPromptmessage({}, res => {
+        if (res.Result == "success") {
+          if (res.Content.length) {
+            for (let i = 0; i < res.Content.length; i++) {
+              if (res.Content[i].Type == "未执行对应规则") {
+                this.tipsType = 3;
+                return;
+              }
+              if (res.Content[i].Type == "原始点位增删") {
+                this.tipsType = 2;
+                return;
+              }
+              if (res.Content[i].Type == "最后一次执行时间") {
+                this.lastUpdateTime = res.Content[i].Content;
+                this.tipsType = 1;
+                return;
+              }
+            }
+          }
         }
-      })
+      });
     },
     //执行对应结果
     apply() {