centaline-data-driven-v3 0.1.32 → 0.1.34

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.32",
3
+ "version": "0.1.34",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -888,6 +888,9 @@ body {
888
888
 
889
889
  .el-select__wrapper .el-select__selection {
890
890
  flex-wrap: nowrap !important;
891
+ }
892
+ .el-select__wrapper .el-select__selection .tagMultiple{
893
+ display: flex;
891
894
  margin-right: 20px;
892
895
  }
893
896
 
@@ -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" :formatter="formatLabel">
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>
@@ -19,11 +19,14 @@
19
19
  <span>{{ model.prefix }}</span>
20
20
  </template>
21
21
  <template #tag>
22
- <template v-for="(v, i) in model.labelValue" :key="i">
23
- <el-tag class="ml-2" type="info" disable-transitions :closable="!v.locked && !model.locked"
24
- @close="closeTag(v.code)">
25
- {{ v.name }}</el-tag>
26
- </template>
22
+ <div class="tagMultiple">
23
+ <template v-for="(v, i) in model.labelValue" :key="i">
24
+ <el-tag class="ml-2" type="info" disable-transitions :closable="!v.locked && !model.locked"
25
+ @close="closeTag(v.code)">
26
+ {{ v.name }}</el-tag>
27
+
28
+ </template>
29
+ </div>
27
30
  </template>
28
31
  </el-select-v2>
29
32
  <template v-if="model.flagaFterText">
@@ -113,7 +116,7 @@ function getOptions(key) {
113
116
  if (item) {
114
117
  v.locked = true
115
118
  }
116
- v.label =v.name
119
+ v.label = v.name
117
120
  v.value = v.code
118
121
  v.disabled = v.locked
119
122
  if (v.options) {
@@ -274,8 +277,8 @@ function closeTag(val) {
274
277
  change(model.value.value)
275
278
  }
276
279
  const formatLabel = (option) => {
277
- console.log('进入 formatter', option); // 测试是否触发
278
- return option.name || option.label;
280
+ console.log('进入 formatter', option); // 测试是否触发
281
+ return option.name || option.label;
279
282
  };
280
283
  defineExpose({
281
284
  model
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <ct-field :vmodel="model">
3
- <template #Control v-if="model.code1">
3
+ <template #Control>
4
4
  <template v-if="model.controlType == Enum.ControlType.HtmlLabel">
5
5
  <span class="ct-html" :class="{ 'cursor-pointer': model.onChanged }" @click="clickHandle"
6
6
  v-html="HtmlReplace(model.value)"></span>
@@ -1,7 +1,7 @@
1
1
  import Enum from '../../utils/Enum';
2
2
  import base from '../index';
3
3
  function getFileNameVal(source) {
4
-
4
+
5
5
  let lst = [];
6
6
  for (var i = 1; i <= 5; i++) {
7
7
  let fieldVal = "";
@@ -23,28 +23,34 @@ const Label = function (source) {
23
23
  let rtn = {
24
24
  flagJson: false,
25
25
  get value() {
26
- if (source.code1) {
27
- try {
28
- let _value = []
29
- var obj = JSON.parse(source.code1)
30
- if (typeof obj == 'object' && obj) {
31
- obj.forEach((v) => {
32
- if (!v.flagDeleted) {
33
- _value.push(v.name);
34
- }
35
- });
36
- rtn.flagJson = true;
37
- return _value;
38
- }
26
+ if (source.name1) {
27
+ return source.name1;
28
+ }
29
+ else {
30
+ if (source.code1) {
31
+ try {
32
+ let _value = []
33
+ var obj = JSON.parse(source.code1)
34
+ if (typeof obj == 'object' && obj) {
35
+ obj.forEach((v) => {
36
+ if (!v.flagDeleted) {
37
+ _value.push(v.name);
38
+ }
39
+ });
40
+ rtn.flagJson = true;
41
+ return _value;
42
+ }
39
43
 
40
- } catch (e) {
44
+ } catch (e) {
41
45
 
46
+ }
42
47
  }
48
+ let _value = [];
49
+ var joinChar = source.joinChar == undefined ? '' : source.joinChar;
50
+ _value = getFileNameVal(source);
51
+ return _value.join(joinChar);
43
52
  }
44
- let _value = [];
45
- var joinChar = source.joinChar == undefined ? '' : source.joinChar;
46
- _value = getFileNameVal(source);
47
- return _value.join(joinChar);
53
+
48
54
  }
49
55
  };
50
56
  rtn = base.copy(source, rtn);
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-1988477363054436352",platform:"WEB"}',
68
+ authobject: '{EmpID:"Token_0e4bedbe-95f9-449f-940b-ce0226207b2b",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_0e4bedbe-95f9-449f-940b-ce0226207b2b",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="'RoleList/getLayoutOfSearch'"
4
- :searchDataApi="'RoleList/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> -->