Newer
Older
urbanLifeline_YanAn / src / store / modules / dialogTabs.js
@zhangzhihui zhangzhihui on 22 Oct 760 bytes 燃气安全弹窗
const dialogTabsStore = defineStore('dialogTabs', {
  state: () => {
    return {
      // 燃气值
      RQvalue: {},
      // 全景点位
      pointLocation: [],
      // 类型模块
      moduleType:"" 
    };
  },
  actions: {
    // 添加全景点位
    addPosition(position) {
      this.pointLocation = position;
    },
    // 删除tab全景点位
    deleteDialogTabs() {
      this.pointLocation = [];
    },
    // 添加全景点位
    addRQ(val) {
      this.RQvalue = val;
    },
    // 删除tab全景点位
    deleteRQ() {
      this.RQvalue = {};
    },
    setModuleType(type) {
      this.moduleType = type;
    },
    clear() {
      this.pointLocation = [];
      this.RQvalue = {};
    },
  },
});
export default dialogTabsStore;