centaline-data-driven-v3 0.1.50 → 0.1.52

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.50",
3
+ "version": "0.1.52",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -891,11 +891,11 @@ body {
891
891
  line-height: 22px;
892
892
  }
893
893
 
894
- .el-select__wrapper {
894
+ .serach-screen .el-select__wrapper {
895
895
  height: 28px;
896
896
  }
897
897
 
898
- .el-select__wrapper .el-select__selection {
898
+ .serach-screen .el-select__wrapper .el-select__selection {
899
899
  flex-wrap: nowrap !important;
900
900
  }
901
901
 
@@ -1,7 +1,10 @@
1
1
  <template>
2
2
  <ct-field :vmodel="model">
3
3
  <template #Control>
4
- <div v-if="model.controlType === Enum.ControlType.MultiLineText" style="width: 100%;">
4
+ <template v-if="model.controlType == Enum.ControlType.MultiLineLabel && isEmpty(model.rows)">
5
+ <span class="ct-html" v-html="nl2br(model.code1)"></span>
6
+ </template>
7
+ <div v-else-if="model.controlType === Enum.ControlType.MultiLineText" style="width: 100%;">
5
8
  <el-input :type="model.inputType" v-model="model.code1" v-bind="model.attrs" @input="input()"
6
9
  @change="change()" :disabled="model.locked" :rows="model.rows" :readonly="model.readonly"
7
10
  :show-password="model.inputType == 'password'" autocomplete="on" :maxlength="model.maxValue1"
@@ -15,7 +18,8 @@
15
18
  </div>
16
19
  <el-input v-else :type="model.inputType" v-model="model.code1" v-bind="model.attrs" @input="input()"
17
20
  @change="change()" :disabled="model.locked" :rows="model.rows" :readonly="model.readonly"
18
- :show-password="model.inputType == 'password'" :autocomplete="model.inputType == 'password'? 'new-password' : 'on'"
21
+ :show-password="model.inputType == 'password'"
22
+ :autocomplete="model.inputType == 'password' ? 'new-password' : 'on'"
19
23
  :maxlength="model.controlType !== Enum.ControlType.NumericTextBox ? model.maxValue1 : ''"
20
24
  :show-word-limit="model.showWordLimit" clearable @keyup.enter.native="search()"
21
25
  @keydown.enter.native="handleKeyDown" class="fieldControl">
@@ -95,6 +99,13 @@ function popupSearchListHandle() {
95
99
  let isSingle = model.value.moreActionRouter.isSingle
96
100
  emit('popupSearchList', isSingle, model, model.value.moreActionRouter);
97
101
  }
102
+ function isEmpty(value) {
103
+ return value === undefined || value === null || value === '';
104
+ }
105
+ function nl2br(str) {
106
+ if (!str) return '';
107
+ return str.replace(/\r?\n/g, '<br>')
108
+ }
98
109
  defineExpose({
99
110
  model
100
111
  })
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <render />
2
+ <teleport to="body" v-if="vmodel.appendToBody">
3
+ <render />
4
+ </teleport>
5
+ <render v-else />
3
6
  </template>
4
7
  <script setup>
5
8
  import { h, ref, onActivated, resolveComponent, onBeforeUnmount } from 'vue'
@@ -12,9 +15,9 @@ const contentTop = ref(0)
12
15
  const content = ref()
13
16
  const captionBarButtons = ref([])
14
17
  const modelSelf = ref(null)
15
- const submitCancelData= ref(null)
16
- onBeforeUnmount(()=>{
17
- modelSelf.value=null
18
+ const submitCancelData = ref(null)
19
+ onBeforeUnmount(() => {
20
+ modelSelf.value = null
18
21
  })
19
22
  onActivated(() => {
20
23
  if (contentTop.value && content) {
@@ -33,7 +36,7 @@ function scrollHandle(ev) {
33
36
  ev.stopPropagation();
34
37
  }
35
38
 
36
- const render = () => {
39
+ const render = () => {
37
40
  return h('div', {}, [
38
41
  h('div', {
39
42
  style: {
@@ -49,7 +52,7 @@ const render = () => {
49
52
  'ct-dialog_wrapper'
50
53
  ],
51
54
  style: {
52
- 'z-index': props.zindex,
55
+ 'z-index': props.vmodel.appendToBody ? props.zindex + 1000 : props.zindex,
53
56
  'height': '100%',
54
57
  'width': '100%',
55
58
  }
@@ -184,11 +187,11 @@ const render = () => {
184
187
  item.height = (props.vmodel.pane.clientHeight - 60) + 'px';
185
188
  }
186
189
  if (item.component == 'ct-form') {
187
- if(props.vmodel.pane.clientHeight>window.innerHeight){
190
+ if (props.vmodel.pane.clientHeight > window.innerHeight) {
188
191
  item.documentHeight = (window.innerHeight) + 'px';
189
192
  }
190
- else{
191
- item.documentHeight = (props.vmodel.pane.clientHeight - 60) + 'px';
193
+ else {
194
+ item.documentHeight = (props.vmodel.pane.clientHeight - 60) + 'px';
192
195
  }
193
196
  }
194
197
  }
@@ -106,7 +106,7 @@ const ComboBox = function (source) {
106
106
  }
107
107
 
108
108
  this.labelValue = currentOptions.filter((v) => {
109
- return !v.flagDeleted;
109
+ return v.flagDeleted !== true && v.flagDeleted !== 1;
110
110
  });
111
111
  }
112
112
  else {
@@ -180,7 +180,7 @@ const ComboBox = function (source) {
180
180
  }
181
181
  });
182
182
  }
183
- else{
183
+ else {
184
184
  request.postHandler(common.globalUri(), params).then((response) => {
185
185
  if (response.rtnCode === 200) {
186
186
  if (CallBack) {
package/src/main.js CHANGED
@@ -22,7 +22,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
22
22
 
23
23
  app.use(centaline, {
24
24
  //baseUrl: "http://10.88.22.13:7080/ibs-api/",
25
- baseUrl:"http://10.88.22.69:7080/co-sales-api/",
25
+ baseUrl:"http://10.88.22.66:7080/ibs-api/",
26
26
  //baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
27
27
  //baseUrl: "http://10.88.22.13:6060/onecard-api/",
28
28
  //baseUrl: "http://10.88.22.66/IBS.Mvc/api/",
@@ -67,7 +67,7 @@ app.use(centaline, {
67
67
  return {
68
68
 
69
69
  //AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyaWQiOiIyNTEyMTUxNzQyMTg5QzI4MTgwRDkxRTk0MDhEOTA0QSIsImxvZ2luX3VzZXJfa2V5IjoiN2MzYzNjNjAtNWVjMy00MzdkLWExMDYtOWYxZTMwYjU0Mjg2In0.daG9mS98Gg8KmHSUjYHktMcO2Jk7SVtCcqm2sRB0I8Y2N0TuonIrVUDcHdNdDiuD3v6qO_f010tQWlBsAQ1dqg',
70
- authobject: '{token:"TY002-2031915589290885120",platform:"WEB"}',
70
+ authobject: '{token:"T5067-2038438946182201344",platform:"WEB"}',
71
71
  //authobject: '{EmpID:"Token_946d56e1-7972-4382-9d10-4a72496aab39",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_946d56e1-7972-4382-9d10-4a72496aab39",Platform:"WEB"}',
72
72
  //oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
73
73
  //authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
@@ -4,9 +4,9 @@
4
4
 
5
5
  :searchDataApi="'/ccesmanage/AppUseSummaryList/getList'"></ct-searchlist> -->
6
6
 
7
- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/AttendanceBalanceSettingList/getLayoutOfSearch'"
7
+ <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/PropertyComprehensiveQueryList/getLayoutOfSearch'"
8
8
 
9
- :searchDataApi="'/AttendanceBalanceSettingList/getListOfSearchModel'"></ct-searchlist>
9
+ :searchDataApi="'/PropertyComprehensiveQueryList/getListOfSearchModel'"></ct-searchlist>
10
10
  <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
11
11
  :searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
12
12