•  bs-plugins-images/{ownerId} 业务图片目录

  •  bs-plugins-js/{ownerId} 业务脚本目录

  •  bs-plugins-themes/{ownerId} 业务主题目录

  •  bs-plugins-wechat/{ownerId} 微信目录

  •  bs-plugins-echart/{ownerId}/ app.chart.config.js echart图表配置目录

  •  bs-plugins-map-app/{ownerId}/map.app.provider.js 地图、移动端交互的路口

  •  components-/{ownerId} 业务专属组件目录

  •  bs-plugins-load-script/{ownerId}/load-script.js 动态加载扩展js

  •  关键词 pf-map、pf 平台内置的,特殊情况需要专员修改

  •  关键词:firstLoad:true 是否首次加载,用于控制界面的显示

  •  descriptionEmpty: “数据加载中/暂无数据” 空描述字典

  descriptionEmpty: "数据加载中",
      firstLoad: true,
 <van-empty
      v-if="commodity.data.length === 0"
      slot="empty"
      :image="searchImg"
      :description="descriptionEmpty"
    />
  •  关键词 _fromTerminal 来源终端,使用: window.$appNavs.fromTerminal

//获取当前来至的APP容器/终端,用于对业务进行二次处理

if (window.$bowUtil.requestCurFindParam("_fromTerminal")) {
    window.$appNavs.fromTerminal = window.$bowUtil.requestCurFindParam("_fromTerminal");
    sessionStorage.setItem("_current_from_terminal", window.$appNavs.fromTerminal);
} else if (sessionStorage.getItem("_current_from_terminal")) {
    window.$appNavs.fromTerminal = sessionStorage.getItem("_current_from_terminal");
} else {
    window.$appNavs.fromTerminal = "default";
}
  •  关键词 主题 window.$bowUtil.getTheme()
  theme() {
      return `proj-${this.$appNavs.project.ownerId} sys-${
        this.$appNavs.system.class
      } sys-${this.$appNavs.system.sysId || "0"} area-${
        this.$appNavs.area.areaCode || "0"
      }  theme__${this.$bowUtil.getTheme()} terminal__${window.$appNavs.fromTerminal }`;
    },
  •  关键词:主键数据变更状态
primaryChangeState:null,

:primary-change-state="primaryChangeState"

      //设置主键变更状态,用于通知子数据数据变更
      that.primaryChangeState = that.$verifyGuid.guid();


    //设置主键变更状态,用于通知子数据数据变更
    primaryChangeState: {
      type: String,
      default: () => null,
    },


 watch: {
    primaryChangeState: function (to, from) {
      let that = this;
      if (to && to !== from) {
        //设置逻辑代码
        console.log(to);
      }
    },
  },
  •  关键词:判断当前是否微信环境
window.$bowUtil.isWeiXin()
  •  关键词:_{uuid}RouteSate}路由状态(控制页面变更后数据刷新)uuid为模块简称
 handleToMsgMain() {
      this.$link.toLinkUrl("/msg/main", this, {
        method: "route",
        params: {},
        query: {
          _mmiRouteState: this.$verifyGuid.guid(),
        },
      });
      //  /auth/main-content
    },

  •  关键词: filter{primaryId}CA 控制路由变更后通知跳转页面重新加载数据
  •  filter{primaryId}CA 新增页面
 watch: {
    "$route.params.filterCommIdCA": function (to, from) {
      if (to !== undefined && to !== from) {
        method.loadDetail(this);
      }
    },
  },
  •  filter{primaryId}CV 详情页面
 watch: {
    "$route.params.filterCommIdCV": function (to, from) {
      if (to !== undefined && to !== from) {
        method.loadDetail(this);
      }
    },
  },
  •  filter{primaryId}CE 编辑页面
  watch: {
    "$route.params.filterCommIdCE": function (to, from) {
      if (to !== undefined && to !== from) {
        method.loadDetail(this);
      }
    },
  },

可视化架构图

文档更新时间: 2021-08-03 08:00   作者:admin