fuliqi
2024-09-02 8fb7cc0325027caa4ed7574443e24f5bd7a8efb7
src/components/RightToolbar/index.vue
@@ -115,7 +115,9 @@
    }
  },
  created() {
    this.getDyColumn()
    if (this.$route.path.concat("equipment")) {
      this.getDyColumn()
    }
    if (this.showColumnsType == 'transfer') {
      // 显隐列初始默认隐藏列
      for (let item in this.columns) {
@@ -127,15 +129,13 @@
  },
  methods: {
    getDyColumn() {
      if (this.$route.path.concat("equipment")) {
        // 查询动态列
        let params = {
          tableName: 't_monitor'
        }
        getDynamicColumnList(params).then(res => {
          this.dynamicColumnList = res.data
        })
      // 查询动态列
      let params = {
        tableName: 't_monitor'
      }
      getDynamicColumnList(params).then(res => {
        this.dynamicColumnList = res.data
      })
    },
    addDynamicColumn() {
      this.showDynamicColumn = true