@cgboiler/biz-mobile 1.18.23 → 1.18.24

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/es/index.d.ts CHANGED
@@ -7,7 +7,7 @@ declare namespace _default {
7
7
  }
8
8
  export default _default;
9
9
  export function install(app: any): void;
10
- export const version: "1.18.22";
10
+ export const version: "1.18.23";
11
11
  import MdPreview from './md-preview';
12
12
  import OrgPicker from './org-picker';
13
13
  import ProjectSelect from './project-select';
package/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import MdPreview from "./md-preview";
2
2
  import OrgPicker from "./org-picker";
3
3
  import ProjectSelect from "./project-select";
4
- const version = "1.18.22";
4
+ const version = "1.18.23";
5
5
  function install(app) {
6
6
  const components = [
7
7
  MdPreview,
@@ -300,7 +300,7 @@ const useApi = () => {
300
300
  return nameMatch || pyMatch || pinyinMatch;
301
301
  });
302
302
  orgSearchList.value = results.filter(
303
- (item, index, self) => index === self.findIndex((other) => other.id === item.id)
303
+ (item, index, self) => index === self.findIndex((other) => other.id === item.id && other.companyId === item.companyId)
304
304
  );
305
305
  }), 300);
306
306
  const MAX_RECENT_SELECTIONS = 20;
@@ -123,7 +123,7 @@ function useSearch({
123
123
  }, [filteredOrgList.value.length === 0 ? _createVNode(Empty, {
124
124
  "description": "\u672A\u627E\u5230\u76F8\u5173\u4EBA\u5458"
125
125
  }, null) : _createVNode(_Fragment, null, [filteredOrgList.value.map((item) => {
126
- const showCompany = browsedCompanyId.value && item.companyId && item.companyId !== browsedCompanyId.value;
126
+ const showCompany = currentCompanyId.value && item.companyId && item.companyId !== currentCompanyId.value;
127
127
  const companyName = showCompany ? COMPANY_MAP[item.companyId] : "";
128
128
  return _createVNode("div", {
129
129
  "class": ["org-item", isSelected(item) ? "selected" : ""],
package/lib/index.d.ts CHANGED
@@ -7,7 +7,7 @@ declare namespace _default {
7
7
  }
8
8
  export default _default;
9
9
  export function install(app: any): void;
10
- export const version: "1.18.22";
10
+ export const version: "1.18.23";
11
11
  import MdPreview from './md-preview';
12
12
  import OrgPicker from './org-picker';
13
13
  import ProjectSelect from './project-select';
package/lib/index.js CHANGED
@@ -42,7 +42,7 @@ var import_project_select = __toESM(require("./project-select"));
42
42
  __reExport(stdin_exports, require("./md-preview"), module.exports);
43
43
  __reExport(stdin_exports, require("./org-picker"), module.exports);
44
44
  __reExport(stdin_exports, require("./project-select"), module.exports);
45
- const version = "1.18.22";
45
+ const version = "1.18.23";
46
46
  function install(app) {
47
47
  const components = [
48
48
  import_md_preview.default,
@@ -321,7 +321,7 @@ const useApi = () => {
321
321
  return nameMatch || pyMatch || pinyinMatch;
322
322
  });
323
323
  orgSearchList.value = results.filter(
324
- (item, index, self) => index === self.findIndex((other) => other.id === item.id)
324
+ (item, index, self) => index === self.findIndex((other) => other.id === item.id && other.companyId === item.companyId)
325
325
  );
326
326
  }), 300);
327
327
  const MAX_RECENT_SELECTIONS = 20;
@@ -145,7 +145,7 @@ function useSearch({
145
145
  }, [filteredOrgList.value.length === 0 ? (0, import_vue.createVNode)(import_vant.Empty, {
146
146
  "description": "\u672A\u627E\u5230\u76F8\u5173\u4EBA\u5458"
147
147
  }, null) : (0, import_vue.createVNode)(import_vue.Fragment, null, [filteredOrgList.value.map((item) => {
148
- const showCompany = browsedCompanyId.value && item.companyId && item.companyId !== browsedCompanyId.value;
148
+ const showCompany = currentCompanyId.value && item.companyId && item.companyId !== currentCompanyId.value;
149
149
  const companyName = showCompany ? COMPANY_MAP[item.companyId] : "";
150
150
  return (0, import_vue.createVNode)("div", {
151
151
  "class": ["org-item", isSelected(item) ? "selected" : ""],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgboiler/biz-mobile",
3
- "version": "1.18.23",
3
+ "version": "1.18.24",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",