centaline-data-driven-v3 0.1.33 → 0.1.35

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": "centaline-data-driven-v3",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -888,7 +888,6 @@ body {
888
888
 
889
889
  .el-select__wrapper .el-select__selection {
890
890
  flex-wrap: nowrap !important;
891
- margin-right: 20px;
892
891
  }
893
892
 
894
893
  .el-select__input-wrapper {
@@ -1087,4 +1086,8 @@ body {
1087
1086
  height: 26px;
1088
1087
  }
1089
1088
 
1089
+ .ct-field .el-select__selected-item {
1090
+ align-items: center !important;
1091
+ }
1092
+
1090
1093
  /*elementPlus样式重置结束*/
@@ -8,7 +8,7 @@
8
8
  :height="300" @click="clickHandler"
9
9
  :class="[model.moreActionRouter ? 'selectmore' : '', open ? 'open' : '']"
10
10
  :filter-method="debouncedRemoteMethod" @compositionstart="handleCompositionStart"
11
- @compositionend="handleCompositionEnd" :formatter="formatLabel">
11
+ @compositionend="handleCompositionEnd">
12
12
  <template #default="{ item }">
13
13
  <el-tooltip :disabled="!item.toolTip" :content="item.toolTip" placement="right">
14
14
  <span v-html="item.displayName || item.name"></span>
@@ -21,6 +21,7 @@
21
21
  <template #tag>
22
22
  <template v-for="(v, i) in model.labelValue" :key="i">
23
23
  <el-tag class="ml-2" type="info" disable-transitions :closable="!v.locked && !model.locked"
24
+ :style="{ marginRight: i+1==model.labelValue.length ? '20px' : '' }"
24
25
  @close="closeTag(v.code)">
25
26
  {{ v.name }}</el-tag>
26
27
  </template>
@@ -113,7 +114,7 @@ function getOptions(key) {
113
114
  if (item) {
114
115
  v.locked = true
115
116
  }
116
- v.label =v.name
117
+ v.label = v.name
117
118
  v.value = v.code
118
119
  v.disabled = v.locked
119
120
  if (v.options) {
@@ -273,10 +274,6 @@ function closeTag(val) {
273
274
  model.value.value.splice(model.value.value.indexOf(val), 1)
274
275
  change(model.value.value)
275
276
  }
276
- const formatLabel = (option) => {
277
- console.log('进入 formatter', option); // 测试是否触发
278
- return option.name || option.label;
279
- };
280
277
  defineExpose({
281
278
  model
282
279
  })
@@ -13,9 +13,9 @@
13
13
  </div>
14
14
  </slot>
15
15
  </div>
16
- <template v-else>
17
- <div class="el-form-item__label" v-if="model.labelPlacement == '1'"></div>
18
- </template>
16
+ <!-- <template v-else>
17
+ <div class="el-form-item__label" v-if="model.labelPlacement == '1'"></div>
18
+ </template> -->
19
19
 
20
20
  <slot name="PreLabel">
21
21
  <div v-if="model.preLabel1" class="preLabel" :style="model.isList ? 'white-space: nowrap' : ''">
@@ -180,7 +180,6 @@ function SearchTree(m) {
180
180
  //节点击点事件
181
181
  function handleNodeClick(data, formType) {
182
182
  closeMenu();
183
-
184
183
  if (data && formType) {
185
184
  refTree.value.setCurrentKey(data.code)
186
185
  }
@@ -198,6 +197,7 @@ function handleNodeClick(data, formType) {
198
197
  if (rowdata) {
199
198
  newdata.rowRouter = rowdata
200
199
  }
200
+ newdata.title = model.value.source?.content?.title || '';
201
201
  emit('loaded', newdata);
202
202
  });
203
203
  }
@@ -105,7 +105,7 @@ function loaded(data) {
105
105
 
106
106
  });
107
107
  }
108
- emit('loaded');
108
+ emit('loaded',data);
109
109
  }
110
110
  function setsearchtreeHeight() {
111
111
  if (refleft.value) {
package/src/main.js CHANGED
@@ -21,7 +21,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
21
21
  }
22
22
 
23
23
  app.use(centaline, {
24
- baseUrl: "http://10.88.22.13:7070/onecard-api/",
24
+ baseUrl: "http://10.88.22.66/IBS.Mvc/api/",
25
25
  //baseUrl:"http://10.88.22.13:7070/onecard-api/",
26
26
  //baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
27
27
  //baseUrl: "http://10.88.22.13:6060/onecard-api/",
@@ -65,7 +65,7 @@ app.use(centaline, {
65
65
  //获取请求头
66
66
  getRequestHeaders: function () {
67
67
  return {
68
- authobject: '{token:"wufw-1988759777316159488",platform:"WEB"}',
68
+ authobject: '{EmpID:"Token_2db5b0a6-7156-462c-bf29-53731a255b32",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_2db5b0a6-7156-462c-bf29-53731a255b32",Platform:"WEB"}',
69
69
  //oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
70
70
  //authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
71
71
  //authObject: '{EmpID:"Token_4e09499b-4b76-46df-9ce5-5498d48ed062",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_4e09499b-4b76-46df-9ce5-5498d48ed062",Platform:"WEB"}',
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="app-search" style="width:100%;height:100%;position: fixed;">
3
- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'PersonHoliday_GuangzhouList/getLayoutOfSearch'"
4
- :searchDataApi="'PersonHoliday_GuangzhouList/getListOfSearchModel'"></ct-searchlist>
3
+ <ct-searchlist :apiParam="apiParam" :searchConditionApi="'AdvancedSearch/GetLayoutOfSearchForPropertyPublish'"
4
+ :searchDataApi="'AdvancedSearch/GetListOfSearchModelForPropertyPublish'"></ct-searchlist>
5
5
 
6
6
  <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
7
7
  :searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->