@yxhl/specter-pui-vtk 1.0.113 → 1.0.116

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yxhl/specter-pui-vtk",
3
- "version": "1.0.113",
3
+ "version": "1.0.116",
4
4
  "description": "雅心互联 Vue 3 + Vuetify3 组件库",
5
5
  "type": "module",
6
6
  "main": "./dist/specter-pui.umd.js",
@@ -4,21 +4,27 @@ const { proxy } = getCurrentInstance();
4
4
  // 获取配置的键名,如果没有配置则使用默认值
5
5
  const userKey = window.VTK_CONFIG?.storageKeys?.user || '_mis_acis_users';
6
6
  const user = JSON.parse(proxy.$vtk.storage.get(userKey));
7
-
8
- console.log('window.VTK_CONFIG=', window.VTK_CONFIG)
9
- console.log('window.VTK_CONFIG?.storageKeys?.user', window.VTK_CONFIG?.storageKeys?.user)
10
- console.log('user', user)
11
7
  const pause = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
12
8
 
13
9
  // 字段命名兼容:不同环境的用户信息 / 接口返回可能是 areacode 或 areaCode
14
10
  const pickAreaCode = (obj) => obj?.areaCode || obj?.areacode || '';
15
11
  const pickAreaName = (obj) => obj?.areaName || obj?.areaname || '';
16
12
 
17
- // 定义 props - 控制是否支持多选
13
+ // 定义 props - 控制是否支持多选、以及部门和人员接口地址
18
14
  const props = defineProps({
19
15
  multiple: {
20
16
  type: Boolean,
21
17
  default: false // 默认单选
18
+ },
19
+ // 部门列表接口地址,不传则使用默认地址
20
+ deptUrl: {
21
+ type: String,
22
+ default: '/bizp/supported/dept/list'
23
+ },
24
+ // 人员列表接口地址,不传则使用默认地址
25
+ userUrl: {
26
+ type: String,
27
+ default: '/bizp/supported/user/list'
22
28
  }
23
29
  });
24
30
 
@@ -105,7 +111,7 @@ const getDeptList = (node) => {
105
111
  const selectAreaCode = node[0].areaCode;
106
112
  const params = { codex: { area: selectAreaCode, type: "0" } };
107
113
  deptData.value = [];
108
- proxy.$vtk.request.postJson('/bizp/supported/dept/list', params).then((res) => {
114
+ proxy.$vtk.request.postJson(props.deptUrl, params).then((res) => {
109
115
  res.data.forEach((it) => {
110
116
  it.children = [];
111
117
  deptData.value.push(it);
@@ -118,7 +124,7 @@ const getDepNextList = async (item) => {
118
124
  const selectAreaCode = item.areaCode;
119
125
  const selectPid = item.id;
120
126
  const params = { codex: { area: selectAreaCode, pid: selectPid } };
121
- proxy.$vtk.request.postJson('/bizp/supported/dept/list', params).then((res) => {
127
+ proxy.$vtk.request.postJson(props.deptUrl, params).then((res) => {
122
128
  if (res && res.data) {
123
129
  res.data.forEach((it) => {
124
130
  it.children = [];
@@ -248,7 +254,7 @@ const getPersonList = (node) => {
248
254
  const selectAreaID = node[0].id;
249
255
  const params = { codex: { dept: selectAreaID } };
250
256
 
251
- proxy.$vtk.request.postJson('/bizp/supported/user/list', params).then((res) => {
257
+ proxy.$vtk.request.postJson(props.userUrl, params).then((res) => {
252
258
  if (res && res.meta.success && res.data.length > 0) {
253
259
  personData.value = res.data
254
260
  } else {
@@ -5,7 +5,7 @@
5
5
  @update:model-value="obtain"
6
6
  location="bottom end"
7
7
  origin="top end"
8
- offset="12"
8
+ offset="4"
9
9
  :close-on-content-click="false"
10
10
  >
11
11
  <template v-slot:activator="{ props }">
@@ -47,7 +47,7 @@
47
47
  </template>
48
48
 
49
49
  <VCard class="search-panel">
50
- <VCardTitle class="pr-3 d-flex justify-space-between align-center pb-5">
50
+ <VCardTitle class="pr-3 d-flex justify-space-between align-center pb-3">
51
51
  <span>高级搜索</span>
52
52
  <VBtn class="mx-0" variant="text" icon @click="close" size="small">
53
53
  <VIcon>mdi-close</VIcon>
@@ -234,7 +234,6 @@ defineExpose({ search, reset });
234
234
 
235
235
  .search-panel {
236
236
  width: 380px;
237
- margin-right: -13px;
238
237
  overflow: visible;
239
238
  }
240
239