@indfnd/common-mobile 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.15](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.14...v0.0.15) (2024-04-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 修改组件支持选择面板readonly ([a72da9a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/a72da9a62c5da33668d0eafa8a0fc4da7793df0f))
11
+ * 增加登录用户管理单元的store ([a5ff5fa](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/a5ff5faf821b5195891799e966df53bbe0d4b13e))
12
+
13
+ ### [0.0.14](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.13...v0.0.14) (2024-04-03)
14
+
15
+
16
+ ### Features
17
+
18
+ * 样式修改 ([92cca18](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/92cca18e9bf35e3788c06b6d46db5f2ac5000ca3))
19
+
5
20
  ### [0.0.13](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.12...v0.0.13) (2024-03-30)
6
21
 
7
22
 
@@ -1,8 +1,8 @@
1
- import { getQuarterNum, getHalfYearNum, getHalfYear, formatDate, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, useConfig, getLocalStorage, getMenuCollectApi, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, listComTreeApi, config as config$1, getSessionStorage, getToken, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi } from "@indfnd/utils";
1
+ import { getQuarterNum, getHalfYearNum, getHalfYear, formatDate, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, useConfig, getLocalStorage, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, listComTreeApi, config as config$1, getSessionStorage, getToken, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi } from "@indfnd/utils";
2
2
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
3
3
  import Vue$1 from "vue";
4
4
  const name = "@indfnd/common-mobile";
5
- const version$1 = "0.0.12";
5
+ const version$1 = "0.0.14";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -6578,6 +6578,10 @@ var FormImpl = {
6578
6578
  break;
6579
6579
  }
6580
6580
  case "number": {
6581
+ let text = this.form[d.formKey];
6582
+ if (d.scale !== void 0) {
6583
+ text = isNaN(text) || text === null ? text : parseFloat(text).toFixed(d.scale);
6584
+ }
6581
6585
  itemInner = h("Input", {
6582
6586
  ref: d.formKey,
6583
6587
  attrs: {
@@ -43038,6 +43042,9 @@ function dealFieldFormat(s) {
43038
43042
  }
43039
43043
  function renderTable(table) {
43040
43044
  let columnSrc = table.column || [];
43045
+ if (!(columnSrc instanceof Array)) {
43046
+ columnSrc = [columnSrc];
43047
+ }
43041
43048
  columnSrc = columnSrc.map((d) => {
43042
43049
  let rlt = { ...d._attributes };
43043
43050
  rlt.id = dealFieldFormat(rlt.id);
@@ -43902,28 +43909,6 @@ function install$3(_Vue) {
43902
43909
  Vue = _Vue;
43903
43910
  applyMixin(Vue);
43904
43911
  }
43905
- var mapMutations = normalizeNamespace(function(namespace2, mutations) {
43906
- var res = {};
43907
- normalizeMap(mutations).forEach(function(ref) {
43908
- var key = ref.key;
43909
- var val = ref.val;
43910
- res[key] = function mappedMutation() {
43911
- var args = [], len = arguments.length;
43912
- while (len--)
43913
- args[len] = arguments[len];
43914
- var commit2 = this.$store.commit;
43915
- if (namespace2) {
43916
- var module2 = getModuleByNamespace(this.$store, "mapMutations", namespace2);
43917
- if (!module2) {
43918
- return;
43919
- }
43920
- commit2 = module2.context.commit;
43921
- }
43922
- return typeof val === "function" ? val.apply(this, [commit2].concat(args)) : commit2.apply(this.$store, [val].concat(args));
43923
- };
43924
- });
43925
- return res;
43926
- });
43927
43912
  var mapActions = normalizeNamespace(function(namespace2, actions) {
43928
43913
  var res = {};
43929
43914
  normalizeMap(actions).forEach(function(ref) {
@@ -44043,160 +44028,22 @@ var render$k = function() {
44043
44028
  var _vm = this;
44044
44029
  var _h = _vm.$createElement;
44045
44030
  var _c = _vm._self._c || _h;
44046
- return _c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.$route.meta.title, "left-text": "\u8FD4\u56DE", "left-arrow": "" }, on: { "click-left": function($event) {
44031
+ return _c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.$route.meta.title, "left-text": "", "left-arrow": "" }, on: { "click-left": function($event) {
44047
44032
  return _vm.$router.go(-1);
44048
- } } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow", attrs: { "id": "keepalive" } }, [_c("KeepAlive", { attrs: { "include": _vm.cacheList, "exclude": _vm.notCacheName, "max": _vm.$store.state.app.maxTabNum } }, [_c("RouterView", { key: _vm.$route.path })], 1)], 1)], 1);
44033
+ } } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow", attrs: { "id": "keepalive" } }, [_c("KeepAlive", { attrs: { "max": _vm.$store.state.app.maxTabNum } }, [_c("RouterView", { key: _vm.$route.path })], 1)], 1)], 1);
44049
44034
  };
44050
44035
  var staticRenderFns$k = [];
44051
44036
  const __vue2_script$k = {
44052
44037
  name: "IndMBasicLayout",
44053
44038
  data() {
44054
- return {
44055
- isFullscreen: false,
44056
- activeName: "",
44057
- layout: "",
44058
- collapsedState: false,
44059
- collapsed: false,
44060
- mouseState: false
44061
- };
44062
- },
44063
- computed: {
44064
- tagNavList() {
44065
- return this.$store.state.app.tagNavList;
44066
- },
44067
- userName() {
44068
- return this.$store.state.user.userName;
44069
- },
44070
- notCacheName() {
44071
- return [this.$route.meta && this.$route.meta.notCache ? this.$route.name : ""];
44072
- },
44073
- cacheList() {
44074
- const list2 = (this.tagNavList || []).filter((item2) => !(item2.meta && item2.meta.notCache)).map((item2) => item2.name);
44075
- return ["IndEmptyLayout", ...list2];
44076
- },
44077
- menuList() {
44078
- return this.$store.getters.getMenuTreeList;
44079
- },
44080
- getAppInfo() {
44081
- return this.$store.getters.getAppInfo;
44082
- }
44039
+ return {};
44083
44040
  },
44041
+ computed: {},
44084
44042
  created() {
44085
- const { query } = this.$route;
44086
- if (query.layout === "screen") {
44087
- this.layout = "screen";
44088
- }
44089
44043
  },
44090
44044
  mounted() {
44091
- const { name: name2, params, query, meta } = this.$route;
44092
- if (query.layout === "screen") {
44093
- this.layout = "screen";
44094
- }
44095
- if (this.layout === "screen") {
44096
- return;
44097
- }
44098
- this.setTagNavList();
44099
- this.setHomeRoute(this.$router);
44100
- this.getCollectMenu();
44101
- this.addTag({ route: { name: name2, params, query, meta } });
44102
- this.setBreadCrumb(this.$route);
44103
- if (!this.tagNavList.find((item2) => item2.name === this.$route.name)) {
44104
- this.$router.push({
44105
- name: this.$config.homeRouteName
44106
- });
44107
- }
44108
- const crumbs = meta.crumbs;
44109
- if (crumbs) {
44110
- crumbs.forEach((item2) => {
44111
- if (item2.type === 2) {
44112
- this.$nextTick(() => {
44113
- this.activeName = item2.name;
44114
- });
44115
- }
44116
- });
44117
- }
44118
44045
  },
44119
- methods: {
44120
- ...mapMutations([
44121
- "setBreadCrumb",
44122
- "setTagNavList",
44123
- "setActiveName",
44124
- "addTag",
44125
- "setHomeRoute",
44126
- "closeTag",
44127
- "setCollectMenuList",
44128
- "setAppInfo"
44129
- ]),
44130
- ...mapActions(["handleLogin", "addMenuHistory"]),
44131
- turnToPage(route2) {
44132
- let { name: name2, params, query } = {};
44133
- if (typeof route2 === "string") {
44134
- name2 = route2;
44135
- } else {
44136
- name2 = route2.name;
44137
- params = route2.params;
44138
- query = route2.query;
44139
- }
44140
- if (name2.indexOf("isTurnByHref_") > -1) {
44141
- window.open(name2.split("_")[1]);
44142
- return;
44143
- }
44144
- if (name2 === this.$route.name) {
44145
- return;
44146
- }
44147
- this.addMenuHistory({ name: name2, params, query });
44148
- this.$router.push({
44149
- name: name2,
44150
- params,
44151
- query
44152
- });
44153
- },
44154
- handleCloseTag(res, type2, route2) {
44155
- if (type2 !== "others") {
44156
- if (type2 === "all") {
44157
- this.turnToPage(this.$config.homeRouteName);
44158
- } else {
44159
- if (routeEqual(this.$route, route2)) {
44160
- this.closeTag({
44161
- route: route2,
44162
- $router: this.$router
44163
- });
44164
- }
44165
- }
44166
- }
44167
- this.setTagNavList(res);
44168
- },
44169
- getCollectMenu() {
44170
- getMenuCollectApi().then((result) => {
44171
- this.setCollectMenuList(result.data);
44172
- });
44173
- },
44174
- handleClick(item2) {
44175
- if (this.getAppInfo.appId != item2.meta.appId) {
44176
- this.setAppInfo(item2.meta.appId);
44177
- }
44178
- this.turnToPage(item2);
44179
- },
44180
- handleCollapsedChange() {
44181
- this.collapsedState = !this.collapsedState;
44182
- this.changeCollapsed();
44183
- },
44184
- mouseOver() {
44185
- this.mouseState = true;
44186
- this.changeCollapsed();
44187
- },
44188
- mouseLeave() {
44189
- this.mouseState = false;
44190
- this.changeCollapsed();
44191
- },
44192
- changeCollapsed() {
44193
- if (this.collapsedState) {
44194
- this.collapsed = this.collapsedState && !this.mouseState;
44195
- } else {
44196
- this.collapsed = false;
44197
- }
44198
- }
44199
- }
44046
+ methods: {}
44200
44047
  };
44201
44048
  const __cssModules$k = {};
44202
44049
  var __component__$k = /* @__PURE__ */ normalizeComponent(
@@ -44221,7 +44068,7 @@ var render$j = function() {
44221
44068
  var _vm = this;
44222
44069
  var _h = _vm.$createElement;
44223
44070
  var _c = _vm._self._c || _h;
44224
- return _c("KeepAlive", { attrs: { "include": _vm.cacheList, "exclude": _vm.notCacheName } }, [_c("RouterView", { ref: "child" })], 1);
44071
+ return _c("KeepAlive", [_c("RouterView", { ref: "child" })], 1);
44225
44072
  };
44226
44073
  var staticRenderFns$j = [];
44227
44074
  const __vue2_script$j = {
@@ -44808,7 +44655,7 @@ var render$g = function() {
44808
44655
  var _c = _vm._self._c || _h;
44809
44656
  return _c("van-popup", { style: { width: "100%", height: "100vh" }, attrs: { "value": _vm.value, "position": "right", "get-container": "body" }, on: { "input": function($event) {
44810
44657
  return _vm.$emit("input", $event);
44811
- } } }, [_c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.title || _vm.$route.meta.title, "left-text": "\u8FD4\u56DE", "left-arrow": "" }, on: { "click-left": function($event) {
44658
+ } } }, [_c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.title || _vm.$route.meta.title, "left-text": "", "left-arrow": "" }, on: { "click-left": function($event) {
44812
44659
  return _vm.$emit("input", false);
44813
44660
  } } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow" }, [_vm._t("default")], 2)], 1)]);
44814
44661
  };
@@ -63138,7 +62985,7 @@ var render$a = function() {
63138
62985
  var _vm = this;
63139
62986
  var _h = _vm.$createElement;
63140
62987
  var _c = _vm._self._c || _h;
63141
- return _c("van-popup", { style: { width: "100%", height: "100%" }, attrs: { "value": _vm.show, "position": "right", "lazy-render": true, "get-container": "body" }, on: { "opened": _vm.getTableData } }, [_c("div", { staticClass: "ind-select-panel ind-vcenter", class: [_vm.isTree ? "ind-mobile-tree" : "", _vm.showHeader ? "ind-select-panel-widthheader" : ""], staticStyle: { "width": "100%", "height": "100vh" }, style: { paddingBottom: _vm.multiple && !_vm.showHeader ? "20px" : "0" } }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": "\u8BF7\u9009\u62E9" + _vm.title, "left-text": "\u8FD4\u56DE", "left-arrow": "" }, on: { "click-left": _vm.cancel } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow ind-vcenter" }, [_c("van-search", { staticClass: "ind-flex-no-shrink", staticStyle: { "position": "relative", "z-index": "3" }, attrs: { "placeholder": "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD" }, on: { "search": _vm.doSearch }, model: { value: _vm.searchVal, callback: function($$v) {
62988
+ return _c("van-popup", { style: { width: "100%", height: "100%" }, attrs: { "value": _vm.show, "position": "right", "lazy-render": true, "get-container": "body" }, on: { "opened": _vm.getTableData } }, [_c("div", { staticClass: "ind-select-panel ind-vcenter", class: [_vm.isTree ? "ind-mobile-tree" : "", _vm.showHeader ? "ind-select-panel-widthheader" : ""], staticStyle: { "width": "100%", "height": "100vh" }, style: { paddingBottom: _vm.multiple && !_vm.showHeader ? "20px" : "0" } }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": "\u8BF7\u9009\u62E9" + _vm.title, "left-text": "", "left-arrow": "" }, on: { "click-left": _vm.cancel } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow ind-vcenter" }, [_c("van-search", { staticClass: "ind-flex-no-shrink", staticStyle: { "position": "relative", "z-index": "3" }, attrs: { "placeholder": "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD" }, on: { "search": _vm.doSearch }, model: { value: _vm.searchVal, callback: function($$v) {
63142
62989
  _vm.searchVal = $$v;
63143
62990
  }, expression: "searchVal" } }), _c("IndTable", { ref: "table", attrs: { "rowClick": "", "headerHeight": 49, "rowMultiSelectWithClick": _vm.multiple, "isRowSelectable": _vm.isRowSelectable, "groupSelectsChildren": _vm.multiple, "showBottom": false, "dataApi": _vm.selectDataApi, "searchParams": _vm.searchParams, "columns": _vm.columnsData, "rowKey": _vm.selectRowKey, "showTableOption": false, "groupDefaultExpanded": 3, "disablePage": "" }, on: { "on-select-change": _vm.onSelectChange, "on-data-format-load": _vm.setLength } }), _c("div", { staticClass: "ind-bottom-info ind-bottom-btn", style: { position: _vm.showHeader ? "static" : "absolute", bottom: 0 }, attrs: { "slot": "bottom" }, slot: "bottom" }, [_vm.multiple ? _c("div", { staticClass: "ind-flex" }, [_vm._v(" \u5171\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.dataLen))]), _vm._v("\xA0\u6761\u6570\u636E\uFF0C\u5DF2\u9009\u62E9\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.selectedRows.length))]), _vm._v("\xA0\u6761 ")]) : _vm._e(), _c("div", { staticClass: "ind-flex ind-space-between", class: [_vm.multiple ? "ind-mt" : ""] }, [_vm.multiple ? _c("div", { staticClass: "ind-flex ind-flex-no-shrink ind-checkbox-bottom ag-theme-balham ag-theme-balham-dark", staticStyle: { "margin-right": "20px" }, style: { top: _vm.showHeader ? "7px" : "" }, on: { "click": _vm.toggleCheckAll } }, [_c("div", { staticClass: "ag-checkbox-input-wrapper", class: _vm.allCheck ? "ag-checked" : "" }), _vm._v(" \u5168\u9009 ")]) : _vm._e(), _c("div", { staticClass: "ind-flex", staticStyle: { "width": "100%" } }, [_c("IndButton", { attrs: { "bizType": "cancel" }, on: { "click": _vm.cancel } }, [_vm._v("\u53D6\u6D88")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.confirm } }, [_vm._v("\u786E\u8BA4")])], 1)])])], 1)], 1)]);
63144
62991
  };
@@ -63381,7 +63228,7 @@ var render$9 = function() {
63381
63228
  var _h = _vm.$createElement;
63382
63229
  var _c = _vm._self._c || _h;
63383
63230
  return _c("div", { staticClass: "ind-input-select" }, [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "icon": _vm.readonly ? "" : _vm.inputIcon, "placeholder": "\u8BF7\u9009\u62E9", "readonly": "" }, nativeOn: { "click": function($event) {
63384
- _vm.visible = true;
63231
+ return _vm.setVisible.apply(null, arguments);
63385
63232
  } } }), _c("IndMSelectPanel", _vm._b({ attrs: { "defaultVisible": _vm.defaultVisible, "title": _vm.title, "multiple": _vm.showCheckbox || _vm.multiple, "show": _vm.visible, "value": _vm.value, "type": _vm.type, "dataApi": _vm.dataApiComp, "columns": _vm.columnsComp, "rowKey": _vm.rowKeyComp }, on: { "update:show": function($event) {
63386
63233
  _vm.visible = $event;
63387
63234
  }, "input": function($event) {
@@ -63484,9 +63331,17 @@ const __vue2_script$9 = {
63484
63331
  watch: {
63485
63332
  value() {
63486
63333
  this.updateSelectedTitles();
63334
+ },
63335
+ options() {
63336
+ this.updateSelectedTitles();
63487
63337
  }
63488
63338
  },
63489
63339
  methods: {
63340
+ setVisible() {
63341
+ if (!this.readonly) {
63342
+ this.visible = true;
63343
+ }
63344
+ },
63490
63345
  initSelectedTitles(tree, selected) {
63491
63346
  this.updateSelectedTitles(selected);
63492
63347
  this.loading = false;
@@ -68298,9 +68153,9 @@ var render$3 = function() {
68298
68153
  var _vm = this;
68299
68154
  var _h = _vm.$createElement;
68300
68155
  var _c = _vm._self._c || _h;
68301
- return _c("div", { staticClass: "app-page" }, [_c("van-nav-bar", { attrs: { "fixed": true, "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } }), _c("div", { staticClass: "placeholder", style: { height: _vm.offsetTop - 54 + "px" } }), _c("div", { ref: "myapp", staticClass: "myapp", style: { top: 46 + "px", width: "-webkit-fill-available" } }, [_c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(" \u6211\u7684\u5E94\u7528 "), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": this.editButtonName }, on: { "click": _vm.toggleEdit } })], 1)]), _c("draggable", { staticClass: "wrapper", attrs: { "options": { disabled: _vm.disableDraggable } }, model: { value: _vm.list, callback: function($$v) {
68302
- _vm.list = $$v;
68303
- }, expression: "list" } }, [_c("transition-group", { staticClass: "my-app-list", staticStyle: { "display": "flex", "flex-wrap": "wrap" } }, _vm._l(_vm.my_apps, function(item2, idx) {
68156
+ return _c("div", { staticClass: "app-page" }, [_c("van-nav-bar", { attrs: { "fixed": true, "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } }), _c("div", { staticClass: "placeholder", style: { height: _vm.offsetTop - 54 + "px" } }), _c("div", { ref: "myapp", staticClass: "myapp", style: { top: 46 + "px", width: "-webkit-fill-available" } }, [_c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(" \u6211\u7684\u5E94\u7528 "), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": this.editButtonName }, on: { "click": _vm.toggleEdit } })], 1)]), _c("draggable", { staticClass: "wrapper", attrs: { "options": { disabled: _vm.disableDraggable } }, model: { value: _vm.my_apps, callback: function($$v) {
68157
+ _vm.my_apps = $$v;
68158
+ }, expression: "my_apps" } }, [_c("transition-group", { staticClass: "my-app-list", staticStyle: { "display": "flex", "flex-wrap": "wrap" } }, _vm._l(_vm.my_apps, function(item2, idx) {
68304
68159
  return _c("apps-item", { key: idx, staticClass: "item", staticStyle: { "width": "25%", "padding": "16px 8px", "box-sizing": "border-box" }, attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
68305
68160
  }), 1)], 1)], 1)]), _c("van-tabs", { attrs: { "color": "#488aff", "scrollspy": "", "sticky": "", "offset-top": _vm.offsetTop }, model: { value: _vm.active, callback: function($$v) {
68306
68161
  _vm.active = $$v;
@@ -68357,6 +68212,9 @@ const __vue2_script$3 = {
68357
68212
  }, 200);
68358
68213
  }
68359
68214
  },
68215
+ updated() {
68216
+ this.$store.commit("setMyAppsList", this.my_apps);
68217
+ },
68360
68218
  mounted() {
68361
68219
  this.my_apps = this.$store.getters.getMyAppsList;
68362
68220
  let menus = this.$store.getters.getMenuTreeList;
@@ -69150,6 +69008,7 @@ var user = {
69150
69008
  state: {
69151
69009
  userName: "",
69152
69010
  avatarImgPath: "",
69011
+ userManageUnitId: "",
69153
69012
  token: getToken()
69154
69013
  },
69155
69014
  mutations: {
@@ -69159,6 +69018,9 @@ var user = {
69159
69018
  setUserName(state, name2) {
69160
69019
  state.userName = name2;
69161
69020
  },
69021
+ setUserManageUnitId(state, userManageUnitId) {
69022
+ state.userManageUnitId = userManageUnitId;
69023
+ },
69162
69024
  setToken(state, token) {
69163
69025
  state.token = token;
69164
69026
  setToken(token);
@@ -69180,6 +69042,7 @@ var user = {
69180
69042
  await logoutApi(state.token);
69181
69043
  commit2("setToken", "");
69182
69044
  commit2("setUserName", "");
69045
+ commit2("setUserManageUnitId", "");
69183
69046
  setTimeout(() => {
69184
69047
  window.location.reload();
69185
69048
  }, 0);
@@ -69189,11 +69052,13 @@ var user = {
69189
69052
  if (userInfo) {
69190
69053
  commit2("setAvatar", userInfo.userAvater);
69191
69054
  commit2("setUserName", userInfo.userName);
69055
+ commit2("setUserManageUnitId", userInfo.manageUnitId);
69192
69056
  return userInfo;
69193
69057
  }
69194
69058
  const { data: data49 } = await getUserInfoApi();
69195
69059
  commit2("setAvatar", data49.userAvater);
69196
69060
  commit2("setUserName", data49.userName);
69061
+ commit2("setUserManageUnitId", data49.manageUnitId);
69197
69062
  setUserInfoCache(data49);
69198
69063
  return data49;
69199
69064
  }