heimawl
2023-06-21 0db1337e7a7592bedbf9a755d252f04908419902
智能中心页更新
已修改1个文件
13 ■■■■■ 文件已修改
src/views/Intelligentcenter/centercontrol/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Intelligentcenter/centercontrol/index.vue
@@ -143,24 +143,19 @@
      });
      var results = this.editableTabs.some(function (item) {
        if (item.name == "张三") {
        if (item.name == key) {
          //item.name == "王麻子"
          return true; //返回false
        }
      });
      this.editableTabs.push(result);
      if (!results) {
        this.editableTabs.push(result);
      }
      this.editableTabsValue = key;
      console.log(result);
    },
    handleTabsEdit(targetName, action) {
      if (action === "add") {
        let newTabName = ++this.tabIndex + "";
        this.editableTabs.push({
          title: "New Tab",
          name: newTabName,
          content: "New Tab content",
        });
        this.editableTabsValue = newTabName;
      }
      if (action === "remove") {
        let tabs = this.editableTabs;