centaline-data-driven 1.3.64 → 1.3.67

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",
3
- "version": "1.3.64",
3
+ "version": "1.3.67",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -4,17 +4,17 @@
4
4
 
5
5
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
6
6
 
7
- <ct-searchlist :apiParam="para"
7
+ <!-- <ct-searchlist :apiParam="para"
8
8
  :searchConditionApi="'/ProfileWorklistList/getLayoutOfSearch'"
9
9
  :searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
10
10
  :searchDataApi="'/ProfileWorklistList/getListOfSearchModel'"
11
11
  :searchStatsApi="'/ProfileWorklistList/getListStats'">
12
- </ct-searchlist>
13
-
14
- <!-- <ct-searchlist :searchConditionApi="'/api/agenttrans/transactionList/getLayoutOfSearch'"
15
- :searchDataApi="'/api/agenttrans/transactionList/getTableList'">
16
12
  </ct-searchlist> -->
17
13
 
14
+ <ct-searchlist :searchConditionApi="'/api/workflow/layout'"
15
+ :searchDataApi="'/api/workflow/list'">
16
+ </ct-searchlist>
17
+
18
18
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
19
19
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
20
20
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
@@ -10,7 +10,7 @@
10
10
  <script>
11
11
  import Vue from 'vue'
12
12
  export default {
13
- name: 'Tree',
13
+ name: 'DataDrivenSearchTree',
14
14
  data() {
15
15
  return {
16
16
  isShowSearchlist: false,
@@ -340,6 +340,9 @@ const common = {
340
340
  }
341
341
  else if (parent.$options.name === 'DataDrivendetail') {
342
342
  return parent;
343
+ }
344
+ else if (parent.$options.name === 'DataDrivenSearchTree') {
345
+ return parent;
343
346
  }
344
347
  else {
345
348
  return this.getParentPane(parent);
@@ -625,9 +625,9 @@ export default {
625
625
  if (self.model.tags1 && self.model.tags1[i]) {
626
626
  self.listKey = self.listKey + 1;
627
627
  self.model.searchConditionApiTags1 =
628
- self.model.tags1[i].searchConditionApiUrl || "";
628
+ self.model.tags1[i].searchConditionAction || "";
629
629
  self.model.searchDataApiTags1 =
630
- self.model.tags1[i].searchDataApiUrl || "";
630
+ self.model.tags1[i].searchDataAction || "";
631
631
  self.model.paramDataTags1 = self.model.tags1[i].paramData || "";
632
632
  }
633
633
  }
@@ -732,9 +732,9 @@ export default {
732
732
  if (this.model.tags1 && this.model.tags1[i]) {
733
733
  this.listKey = this.listKey + 1;
734
734
  this.model.searchConditionApiTags1 =
735
- this.model.tags1[i].searchConditionApiUrl || "";
735
+ this.model.tags1[i].searchConditionAction || "";
736
736
  this.model.searchDataApiTags1 =
737
- this.model.tags1[i].searchDataApiUrl || "";
737
+ this.model.tags1[i].searchDataAction || "";
738
738
  this.model.paramDataTags1 = this.model.tags1[i].paramData || "";
739
739
  window.localStorage.setItem("detailtagkey", this.model.tags1[i].appID); //存储
740
740
  }
@@ -746,8 +746,8 @@ export default {
746
746
  this.dropDownSelected = true;
747
747
  if (dropDownData && dropDownData[i]) {
748
748
  this.listKey = this.listKey + 1;
749
- this.model.searchConditionApiTags1 = dropDownData[i].searchConditionApiUrl || "";
750
- this.model.searchDataApiTags1 = dropDownData[i].searchDataApiUrl || "";
749
+ this.model.searchConditionApiTags1 = dropDownData[i].searchConditionAction || "";
750
+ this.model.searchDataApiTags1 = dropDownData[i].searchDataAction || "";
751
751
  this.model.paramDataTags1 = dropDownData[i].paramData || "";
752
752
  window.localStorage.setItem("detailtagkey", dropDownData[i].appID); //存储
753
753
  }
@@ -652,8 +652,8 @@ export default {
652
652
  self.model.activeIndex1 = i.toString();
653
653
  if (self.model.tags1 && self.model.tags1[i]) {
654
654
  self.listKey = self.listKey + 1;
655
- self.model.searchConditionApiTags1 = self.model.tags1[i].searchConditionApiUrl || "";
656
- self.model.searchDataApiTags1 = self.model.tags1[i].searchDataApiUrl || "";
655
+ self.model.searchConditionApiTags1 = self.model.tags1[i].searchConditionAction || "";
656
+ self.model.searchDataApiTags1 = self.model.tags1[i].searchDataAction || "";
657
657
  self.model.paramDataTags1 = self.model.tags1[i].paramData || "";
658
658
  }
659
659
  }
@@ -759,9 +759,9 @@ export default {
759
759
  if (this.model.tags1 && this.model.tags1[i]) {
760
760
  this.listKey = this.listKey + 1;
761
761
  this.model.searchConditionApiTags1 =
762
- this.model.tags1[i].searchConditionApiUrl || "";
762
+ this.model.tags1[i].searchConditionAction || "";
763
763
  this.model.searchDataApiTags1 =
764
- this.model.tags1[i].searchDataApiUrl || "";
764
+ this.model.tags1[i].searchDataAction || "";
765
765
  this.model.paramDataTags1 = this.model.tags1[i].paramData || "";
766
766
  window.localStorage.setItem("detailtagkey", this.model.tags1[i].appID); //存储
767
767
  }
@@ -775,8 +775,8 @@ export default {
775
775
  if (dropDownData && dropDownData[i]) {
776
776
  this.listKey = this.listKey + 1;
777
777
  this.model.searchConditionApiTags1 =
778
- dropDownData[i].searchConditionApiUrl || "";
779
- this.model.searchDataApiTags1 = dropDownData[i].searchDataApiUrl || "";
778
+ dropDownData[i].searchConditionAction || "";
779
+ this.model.searchDataApiTags1 = dropDownData[i].searchDataAction || "";
780
780
  this.model.paramDataTags1 = dropDownData[i].paramData || "";
781
781
  window.localStorage.setItem("detailtagkey", dropDownData[i].appID); //存储
782
782
  }
@@ -51,7 +51,7 @@
51
51
  <div ref="contact" id="contact" style="margin-top: 16px;" v-if="model.contactApiRouter!==null">
52
52
  <ct-contact :key="refreshKey" :apiRouter="model.contactApiRouter" :api="model.contactApiRouter.action" :apiParam="model.contactApiRouter.getSearchPara()"></ct-contact>
53
53
  </div>
54
- <div ref="routers" style="margin-top: 16px;display: flex;">
54
+ <div ref="routers" v-if="model.actionRoutersSimple!==null" style="margin-top: 16px;display: flex;">
55
55
  <component v-for="(router, index) in model.actionRoutersSimple.slice(0,showIndex>0?showIndex:model.actionRoutersSimple.length)" :key="index"
56
56
  :ref="'routers'+index"
57
57
  v-if="!router.rightField || (model.fields1Dic[router.rightField] && model.fields1Dic[router.rightField].value == 1)"
@@ -161,8 +161,8 @@
161
161
  self.model.activeIndex1 = i.toString();
162
162
  if (self.model.tags1 && self.model.tags1[i]) {
163
163
  self.listKey = self.listKey + 1;
164
- self.model.searchConditionApiTags1 = self.model.tags1[i].searchConditionApiUrl || '';
165
- self.model.searchDataApiTags1 = self.model.tags1[i].searchDataApiUrl || '';
164
+ self.model.searchConditionApiTags1 = self.model.tags1[i].searchConditionAction || '';
165
+ self.model.searchDataApiTags1 = self.model.tags1[i].searchDataAction || '';
166
166
  self.model.paramDataTags1 = self.model.tags1[i].paramData || '';
167
167
  }
168
168
  }
@@ -188,18 +188,20 @@
188
188
  if(self.$refs.routers){
189
189
  totalWidth=self.$refs.routers.offsetWidth;
190
190
  }
191
- self.model.actionRoutersSimple.forEach((v,i) => {
192
- if(!v.rightField || (self.model.fields1Dic[v.rightField] && self.model.fields1Dic[v.rightField].value == 1)){
193
- if(self.$refs['routers'+i] && self.$refs['routers'+i].length>0 && self.$refs['routers'+i][0] && self.$refs['routers'+i][0].$el){
194
- if(sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+moreWidth+10>totalWidth && self.showIndex===0){
195
- self.showIndex=i;
196
- }
197
- else{
198
- sumWidth=sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+(i>0?10:0);
191
+ if(self.model.actionRoutersSimple!==null){
192
+ self.model.actionRoutersSimple.forEach((v,i) => {
193
+ if(!v.rightField || (self.model.fields1Dic[v.rightField] && self.model.fields1Dic[v.rightField].value == 1)){
194
+ if(self.$refs['routers'+i] && self.$refs['routers'+i].length>0 && self.$refs['routers'+i][0] && self.$refs['routers'+i][0].$el){
195
+ if(sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+moreWidth+10>totalWidth && self.showIndex===0){
196
+ self.showIndex=i;
197
+ }
198
+ else{
199
+ sumWidth=sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+(i>0?10:0);
200
+ }
199
201
  }
200
202
  }
201
- }
202
- });
203
+ });
204
+ }
203
205
  });
204
206
  },
205
207
  refreshPage(){
@@ -262,8 +264,8 @@
262
264
  this.model.activeIndex1=i;
263
265
  if(this.model.tags1 && this.model.tags1[i]){
264
266
  this.listKey = this.listKey + 1;
265
- this.model.searchConditionApiTags1 = this.model.tags1[i].searchConditionApiUrl || '';
266
- this.model.searchDataApiTags1 = this.model.tags1[i].searchDataApiUrl || '';
267
+ this.model.searchConditionApiTags1 = this.model.tags1[i].searchConditionAction || '';
268
+ this.model.searchDataApiTags1 = this.model.tags1[i].searchDataAction || '';
267
269
  this.model.paramDataTags1 = this.model.tags1[i].paramData || '';
268
270
  window.localStorage.setItem("simpletagkey", this.model.tags1[i].appID);//存储
269
271
  }
@@ -467,8 +469,8 @@
467
469
  if(v.appID=='Follow'){
468
470
  self.model.activeIndex1=i.toString();
469
471
  self.listKey=self.listKey+1;
470
- self.model.searchConditionApiTags1=v.searchConditionApiUrl||'';
471
- self.model.searchDataApiTags1=v.searchDataApiUrl||'';
472
+ self.model.searchConditionApiTags1=v.searchConditionAction||'';
473
+ self.model.searchDataApiTags1=v.searchDataAction||'';
472
474
  self.model.paramDataTags1 = v.paramData || '';
473
475
  }
474
476
  });
@@ -9,7 +9,8 @@
9
9
  v-bind:class="[model.attrs.size?'el-range-editor--'+model.attrs.size:'',
10
10
  model.showLabel?'ct-iti-editor':'',isFocus?'isfocus':'',model.lock ? 'ct-is-disabled' : '']">
11
11
 
12
- <div style="width:39%" class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
12
+ <div :style="{'width':model.unitName.length == 1 ? '38%':(model.unitName.length == 3) ?'32%':(model.unitName.length == 5) ?'28%': ''}"
13
+ class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
13
14
  <input style="text-align:left;width:100%" class="el-range-input" :placeholder="model.attrs.placeholder1"
14
15
  v-model="model.value" @change="changeHandler($event)" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value','decimals')"
15
16
  :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
@@ -21,7 +22,7 @@
21
22
  </span> -->
22
23
  </div>
23
24
  <span style="width:5%" class="el-range-separator">-</span>
24
- <div style="width:39%" class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
25
+ <div :style="{'width':model.unitName.length == 1 ? '45%':( model.unitName.length == 3) ?'50%':(model.unitName.length == 5) ?'60%': ''}" class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
25
26
  <input style="text-align:left;width:100%;" class="el-range-input" :placeholder="model.attrs.placeholder2"
26
27
  v-model="model.value1" @change="changeHandler($event);" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value1','decimals1')"
27
28
  :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
@@ -146,3 +147,14 @@
146
147
  }
147
148
  }
148
149
  </script>
150
+ <style scoped>
151
+ .el-input__suffix {
152
+ right: -4px;
153
+ top:-1px;
154
+ }
155
+
156
+ span.ct-unitname.el-input__suffix.el-input__suffix-inner {
157
+ right: 15px;
158
+ top:0;
159
+ }
160
+ </style>
@@ -825,6 +825,7 @@ export default {
825
825
  let self = this;
826
826
  action = action || field.action;
827
827
  var clickAcion = function () {
828
+ self.$emit('doClosePopoverHandle');
828
829
  //若不是客户端方法,则直接访问接口
829
830
  if (!field.isClientFuntion) {
830
831
  // 外部框架tab页打开
@@ -833,12 +834,10 @@ export default {
833
834
  if (field.pageStyle) {
834
835
  submitData.pageStyle = field.pageStyle;
835
836
  }
836
- self.$emit('doClosePopoverHandle');
837
837
  self.$common.getDataDrivenOpts().handler.openTab(action,submitData,field.pageTitle,self.model,field.dialogWidth);
838
838
  }
839
839
  else if (field.isSearchPageInTab) {// 外部框架tab页打开
840
840
  submitData = field.getActionPara(submitData).para;
841
- self.$emit('doClosePopoverHandle');
842
841
  self.$common.getDataDrivenOpts().handler.openTabSearch(field, submitData);
843
842
  }
844
843
  else if (field.isBrowserNewTab) {// 浏览器打开
@@ -323,7 +323,7 @@ const Detail = function (source, para, callBack) {
323
323
  return rtn._searchConditionApiTags1;
324
324
  }
325
325
  else if (rtn.tags1 && rtn.tags1.length > 0) {
326
- rtn._searchConditionApiTags1 = rtn.tags1[0].searchConditionApiUrl;
326
+ rtn._searchConditionApiTags1 = rtn.tags1[0].searchConditionAction;
327
327
  return rtn._searchConditionApiTags1;
328
328
  }
329
329
  },
@@ -335,7 +335,7 @@ const Detail = function (source, para, callBack) {
335
335
  return rtn._searchDataApiTags1;
336
336
  }
337
337
  else if (rtn.tags1 && rtn.tags1.length > 0) {
338
- rtn._searchDataApiTags1 = rtn.tags1[0].searchDataApiUrl;
338
+ rtn._searchDataApiTags1 = rtn.tags1[0].searchDataAction;
339
339
  return rtn._searchDataApiTags1;
340
340
  }
341
341
  },
@@ -703,49 +703,47 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
703
703
  },
704
704
  //处理必填关联组件
705
705
  requiredHandle(item, update, doMrf) {
706
- if (item.id) {
707
- let field = null;
708
- let value= rtn.getFieldValue(item);
709
- for (var i in rtn.source.fields) {
710
- if (rtn.source.fields[i].requiredRelationField === item.id) {
711
- field = rtn.source.fields[i];
712
- let f = rtn.fieldsDic[field.fieldName1];
713
-
714
- if (field) {
715
- let hiddenValueArr = field.requiredRelationFieldValue.split(',');
716
- if (hiddenValueArr.indexOf(value) > -1) {
717
- field.required = true;
718
- }
719
- else {
720
- field.required = false;
721
- }
722
-
723
- if (f && f.self && f.self.$forceUpdate) {
724
- f.self.$forceUpdate();
725
- }
726
-
727
- if (update && rtn.self) {
728
- rtn.self.$forceUpdate();
729
- }
730
- }
731
- }
732
- }
733
-
734
- if (doMrf !== false) {
735
- rtn.validMrf(item);
736
- }
737
- }
738
- },
739
-
740
- getFieldValue(field)
741
- {
742
- if(field.type==Enum.ControlType.Switch)
743
- {
744
- return field.value?'1':'0';
745
- }
746
- return field.value;
747
- },
706
+ if (item.id) {
707
+ let field = null;
708
+ let value= rtn.getFieldValue(item);
709
+ for (var i in rtn.source.fields) {
710
+ if (rtn.source.fields[i].requiredRelationField === item.id) {
711
+ field = rtn.source.fields[i];
712
+ let f = rtn.fieldsDic[field.fieldName1];
713
+
714
+ if (field) {
715
+ let hiddenValueArr = field.requiredRelationFieldValue.split(',');
716
+ if (hiddenValueArr.indexOf(value) > -1) {
717
+ field.required = true;
718
+ }
719
+ else {
720
+ field.required = false;
721
+ }
722
+
723
+ if (f && f.self && f.self.$forceUpdate) {
724
+ f.self.$forceUpdate();
725
+ }
748
726
 
727
+ if (update && rtn.self) {
728
+ rtn.self.$forceUpdate();
729
+ }
730
+ }
731
+ }
732
+ }
733
+
734
+ if (doMrf !== false) {
735
+ rtn.validMrf(item);
736
+ }
737
+ }
738
+ },
739
+ getFieldValue(field)
740
+ {
741
+ if(field.type==Enum.ControlType.Switch)
742
+ {
743
+ return field.value?'1':'0';
744
+ }
745
+ return field.value;
746
+ },
749
747
  //绑定联动参数组件
750
748
  getRefFieldPara(refFieldNameArr) {
751
749
  let submitData = {};
@@ -1,7 +1,6 @@
1
1
  import base from '../../index';
2
2
  import Base from './Base';
3
3
  import valid from '../../../validate/index';
4
- import Axios from 'axios';
5
4
  import common from '../../../common';
6
5
  import Vue from 'vue';
7
6
  import Enum from './lib/Enum';
@@ -37,12 +36,13 @@ const Tags = function (source, moreActionRouter) {
37
36
  get text() {
38
37
  return source.code1;
39
38
  },
40
- set text(v) {
41
-
39
+ set text(v) {
42
40
  //由于tags存的数据都是json对象 所以如果传进来的数据是string类型则 需要转成对象
43
- if(typeof v=="string")
44
- {
45
- v=JSON.parse(v);
41
+ if(typeof v=="string"){
42
+ v=[];
43
+ if(v.length > 0){
44
+ v=JSON.parse(v);
45
+ }
46
46
  }
47
47
 
48
48
  if (source.code1 !== '') {
@@ -104,8 +104,8 @@ export default {
104
104
  width: 16px;
105
105
  height: 20px;
106
106
  text-align: left;
107
- top: 4px;
108
- right: 6px;
107
+ top: 3px;
108
+ right: 22px;
109
109
  }
110
110
 
111
111
  .my-icon-more {
@@ -321,7 +321,7 @@ const valid = {
321
321
  }
322
322
 
323
323
  for (let x in tempValid) {
324
- rtnValidate[x].valid = rtnValidate[x].action(model, old1, old2);
324
+ rtnValidate[x].valid = rtnValidate[x].action(this, old1, old2);
325
325
  if (!rtnValidate[x].valid) {
326
326
  return rtnValidate[x];
327
327
  }
package/src/main.js CHANGED
@@ -12,11 +12,11 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- baseUrl: "http://10.88.22.13:7070/v1/form/router",
15
+ // baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
16
  // baseUrl: "http://10.88.23.25:9999/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.40:8080/",
18
- // baseUrl: "http://tjcptest.centaline.com.cn/",
19
- // flagRouterSelf: true,
18
+ baseUrl: "http://tjcptest.centaline.com.cn/",
19
+ flagRouterSelf: true,
20
20
  zindex: 999,
21
21
  showRequestSuccessMessage: true,
22
22
  showRequestErrorMessage: true,
@@ -41,8 +41,8 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: 'd3513834-dcd1-4056-b094-53c484d7057f',
45
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe8yNZPsLLOzO3S6YOMhCO5igpURSDTGu6sROnpf8YrX_P-EcT5BBX4BN7TS6gJuaKUlYvUkDe7UR2ThEgPFgJEl8qFuyrivoYD-foWKRCyJU-sLGLrpF4xX9w3z2N-O_eMf5y7T8JkVn3PSzmHuyox8JoOabULjWJMhqyEFeL0BAAD__w.47czHbw7UgnOOWKn9Y0hd1pyImZskX5vJM6iWUy5s20',
44
+ oldToken: '42ccd644-040d-4e01-9521-1623f1884058',
45
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAMRe_iuZZwYtlJN0jLwiGquM1QJkRbCYS4OyC1W3fe8Ia3_P-CaTGoQVdwRxtdXMEdbXREHJWkxWPUhCzsMVAKmFgSn5vWp1MDFZTHDWoScRJUSSsY87yGA_lfWKZyv5TnP85d5_E76_rBheANsxWP3IugiRESDdGci4Ukw_sDAAD__w.3i21j7m3bYLyBiyw3yyRa30Ic2yb8HIJzfCicS6OXXM',
46
46
  originalRequestURL: 'http://10.88.22.67:8080',
47
47
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
48
48
  estateId: '20210729104021C49F04B55C50F6AF58',