@ebiz/designer-components 0.0.27 → 0.0.28

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/dist/index.mjs CHANGED
@@ -130315,6 +130315,10 @@ const gTt = /* @__PURE__ */ Tt(wAt, [["render", CAt], ["__scopeId", "data-v-d22a
130315
130315
  type: [String, Number, Array],
130316
130316
  default: void 0
130317
130317
  },
130318
+ companyId: {
130319
+ type: Number,
130320
+ default: null
130321
+ },
130318
130322
  placeholder: {
130319
130323
  type: String,
130320
130324
  default: "请选择部门"
@@ -130366,7 +130370,10 @@ const gTt = /* @__PURE__ */ Tt(wAt, [["render", CAt], ["__scopeId", "data-v-d22a
130366
130370
  };
130367
130371
  }), c = async () => {
130368
130372
  try {
130369
- i.value = !0, na.fetch({}, {
130373
+ i.value = !0, na.fetch({
130374
+ companyId: n.companyId
130375
+ }, {
130376
+ apiKey: "deptAllList",
130370
130377
  apiId: 1933,
130371
130378
  apiType: "MULTIPLE_DATA_SEARCH"
130372
130379
  }).then((d) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,4 +37,4 @@
37
37
  "vite": "^6.0.5",
38
38
  "vite-plugin-proxy": "^0.5.0"
39
39
  }
40
- }
40
+ }
@@ -33,6 +33,10 @@ const props = defineProps({
33
33
  type: [String, Number, Array],
34
34
  default: undefined
35
35
  },
36
+ companyId:{
37
+ type: Number,
38
+ default: null,
39
+ },
36
40
  placeholder: {
37
41
  type: String,
38
42
  default: '请选择部门'
@@ -105,7 +109,10 @@ const buildDepartmentTree = (data, parentId = null) => {
105
109
  const loadDepartmentData = async () => {
106
110
  try {
107
111
  loading.value = true;
108
- dataService.fetch({},{
112
+ dataService.fetch({
113
+ companyId: props.companyId,
114
+ },{
115
+ apiKey: 'deptAllList',
109
116
  apiId: 1933,
110
117
  apiType: 'MULTIPLE_DATA_SEARCH'
111
118
  }).then(res => {