centaline-data-driven 1.3.67 → 1.3.68

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.67",
3
+ "version": "1.3.68",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -11,8 +11,8 @@
11
11
  :searchStatsApi="'/ProfileWorklistList/getListStats'">
12
12
  </ct-searchlist> -->
13
13
 
14
- <ct-searchlist :searchConditionApi="'/api/workflow/layout'"
15
- :searchDataApi="'/api/workflow/list'">
14
+ <ct-searchlist :searchConditionApi="'/PropertyDutyList/getLayoutOfSearch'"
15
+ :searchDataApi="'/PropertyDutyList/getListOfSearchModelForRET'">
16
16
  </ct-searchlist>
17
17
 
18
18
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
@@ -76,4 +76,8 @@
76
76
  .ct-checkbox .ct-radios .el-checkbox {
77
77
  min-width: 0px;
78
78
  }
79
+ .ct-form .ct-checkbox {
80
+ height: 1px;
81
+ min-height: 28px;
82
+ }
79
83
  </style>
@@ -9,7 +9,7 @@
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':model.unitName.length == 1 ? '38%':(model.unitName.length == 3) ?'32%':(model.unitName.length == 5) ?'28%': ''}"
12
+ <div :style="{'width':model.unitName && model.unitName.length == 1 ? '38%':(model.unitName && model.unitName.length == 3) ?'32%':(model.unitName && model.unitName.length == 5) ?'28%': ''}"
13
13
  class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
14
14
  <input style="text-align:left;width:100%" class="el-range-input" :placeholder="model.attrs.placeholder1"
15
15
  v-model="model.value" @change="changeHandler($event)" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value','decimals')"
@@ -22,7 +22,7 @@
22
22
  </span> -->
23
23
  </div>
24
24
  <span style="width:5%" class="el-range-separator">-</span>
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
+ <div :style="{'width':model.unitName && model.unitName.length == 1 ? '45%':(model.unitName && model.unitName.length == 3) ?'50%':(model.unitName && model.unitName.length == 5) ?'60%': ''}" class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
26
26
  <input style="text-align:left;width:100%;" class="el-range-input" :placeholder="model.attrs.placeholder2"
27
27
  v-model="model.value1" @change="changeHandler($event);" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value1','decimals1')"
28
28
  :class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
@@ -141,14 +141,14 @@
141
141
  this.reloadKeyScreen='s'+this.reloadKey;
142
142
  this.reloadKeyTable='t'+this.reloadKey;
143
143
  },
144
- search(btn) {
144
+ search() {
145
145
  this.selectIndex=-1;
146
146
  if (this.$refs.table.model) {
147
147
  this.pageDisabled=true;
148
148
  this.$refs.table.getPage(1);
149
149
  }
150
150
  else {
151
- this.$refs.table.searchComplate(this.$refs.screen.model);
151
+ this.$refs.table.searchComplate(this.$refs.screen.model,this.$refs.screen.model.defaultSearch);
152
152
  }
153
153
 
154
154
  this.$refs.table.loadStats();
@@ -1,22 +1,22 @@
1
1
  <template>
2
- <div style="width: 100%" class="ct-searchtable" ref="searchTable" :style="{ 'margin-top': isLayout ? '0' : '', padding: isLayout ? '0' : '' }">
2
+ <div style="width: 100%" class="ct-searchtable" ref="searchTable" :style="{ 'margin-top': isLayout ? '0' : '', padding: isLayout ? '0' : '' }">
3
3
  <ct-tableStats ref="tableStats" class="ct-search-table-list-header"
4
4
  v-if="!isLoading && searchStatsApi" :api="searchStatsApi"
5
5
  @searchStats="searchStats" @setTableHeight="setTableHeight" :searchModel="model.searchModel">
6
6
  </ct-tableStats>
7
7
 
8
- <ct-tabletoolbar ref="toolbar" v-if="!isLoading"
8
+ <ct-tabletoolbar ref="toolbar" v-if="!isLoading && model && model.buttons"
9
9
  :buttons="model.buttons"
10
10
  @click="toolbarClickHandler($event)" @importComplete="importComplete"
11
11
  :optionApi="model.optionApi" :searchModel="model.searchModel">
12
12
  </ct-tabletoolbar>
13
13
 
14
- <ct-tabletip ref="listHeader" class="ct-search-table-list-header" :tip="model.listHeader" v-if="!isLoading"></ct-tabletip>
14
+ <ct-tabletip ref="listHeader" class="ct-search-table-list-header" :tip="model.listHeader" v-if="!isLoading && model"></ct-tabletip>
15
15
 
16
- <div v-loading="tableLoading" v-if="!isLoading" :style="{ height: '0px', top: model.tableHeight * 0.55 + 'px' }"></div>
16
+ <div v-loading="tableLoading" v-if="!isLoading && model" :style="{ height: '0px', top: model.tableHeight * 0.55 + 'px' }"></div>
17
17
  <div v-loading="operationLoading"></div>
18
18
 
19
- <div class="ct-tableParent" ref="tableParent" v-bind="model.attrs" v-if="!isLoading"
19
+ <div class="ct-tableParent" ref="tableParent" v-bind="model.attrs" v-if="!isLoading && model"
20
20
  :style="{ height: from == 'form' ? '100%' : model.tableHeight + 'px','border-bottom': isLayout ? 'none' : '','border-top': isLayout ? 'none' : '',}"
21
21
  @scroll="scrollHandle($event)" :v-focus="model.flagFocus"
22
22
  @keydown.up="rowKeyDownHandle($event, 0)" @keydown.down="rowKeyDownHandle($event, 1)"
@@ -159,8 +159,8 @@
159
159
  </div>
160
160
  </div>
161
161
 
162
- <ct-tabletip ref="listFooter" class="ct-search-table-list-footer" :tip="model.listFooter" v-if="!isLoading && !isLayout"></ct-tabletip>
163
- <ct-tabletip ref="footer" class="ct-search-table-footer" :tip="model.footer" v-if="!isLoading && !isLayout"></ct-tabletip>
162
+ <ct-tabletip ref="listFooter" class="ct-search-table-list-footer" :tip="model.listFooter" v-if="!isLoading && !isLayout && model"></ct-tabletip>
163
+ <ct-tabletip ref="footer" class="ct-search-table-footer" :tip="model.footer" v-if="!isLoading && !isLayout && model"></ct-tabletip>
164
164
  <div v-if="isLoading && searchLoading" v-loading="isLoading" style="top: 30px"></div>
165
165
  </div>
166
166
  </template>
@@ -276,10 +276,7 @@ export default {
276
276
  self.model.searchModel = this.tempSearchModel;
277
277
  }
278
278
  //自动查询 调用合并列
279
- if (
280
- self.model.rowMergedColumns.length > 0 &&
281
- self.model.listData.length > 0
282
- ) {
279
+ if ( self.model.rowMergedColumns.length > 0 && self.model.listData.length > 0) {
283
280
  self.model.setRow(self.model.listData);
284
281
  }
285
282
  self.tableComplate = true;
@@ -758,7 +755,10 @@ export default {
758
755
 
759
756
  this.$nextTick(function () {
760
757
  if (typeof this.api !== "undefined") {
761
- self.loaderObj.SearchTable(self.api, self.load, m, defaultSearch);
758
+ self.loaderObj.SearchTable(self.api, self.load, m, defaultSearch,null,function(){
759
+ self.isLoading = false;
760
+ self.tableLoading = false;
761
+ });
762
762
  }
763
763
  if (typeof this.source !== "undefined") {
764
764
  self.load(self.loaderObj.SearchTable(self.source));
@@ -998,10 +998,10 @@ export default {
998
998
  }
999
999
  }
1000
1000
  if (typeof self.$refs.tableParent !== "undefined") {
1001
- self.$refs.tableParent.scrollTop = 0;
1002
- self.$refs.tableParent.scrollLeft = 0;
1003
- self.scrollTop = 0;
1004
- self.scrollLeft = 0;
1001
+ self.$refs.tableParent.scrollTop = 0;
1002
+ self.$refs.tableParent.scrollLeft = 0;
1003
+ self.scrollTop = 0;
1004
+ self.scrollLeft = 0;
1005
1005
  }
1006
1006
  self.$forceUpdate();
1007
1007
  self.$nextTick(() => {
@@ -110,9 +110,10 @@
110
110
  <!-- <span slot="reference" class="icon-more"></span> -->
111
111
  <span
112
112
  slot="reference"
113
- style="font-family: Comic Sans MS; font-size: 14px"
114
- ><div class="my-icon-more"></div
115
- ></span>
113
+ style="font-family: Comic Sans MS; font-size: 14px">
114
+ <!-- <div class="my-icon-more"></div> -->
115
+ <img :src="iconSort" alt="" width="100%" />
116
+ </span>
116
117
  </el-popover>
117
118
  </template>
118
119
  </div>
@@ -142,6 +143,7 @@ export default {
142
143
  trigger: "hover", //触发方式,传值可查看Popper UI组件trigger属性
143
144
  placement: "bottom-start", //方向,传值可查看Popper UI组件placement属性
144
145
  },
146
+ iconSort: require("../../../assets/sort.png"),
145
147
  };
146
148
  },
147
149
  mounted() {
@@ -354,7 +356,11 @@ export default {
354
356
  }
355
357
  .more-dropdown {
356
358
  position: absolute;
359
+ width: 16px;
360
+ height: 20px;
361
+ text-align: left;
357
362
  top: 2px;
363
+ right: 0px;
358
364
  }
359
365
  .my-icon-more {
360
366
  width: 14px;
@@ -362,8 +362,8 @@ const Detail = function (source, para, callBack) {
362
362
  data.tags2 = v;
363
363
  },
364
364
  getTags2List(i) {
365
- if (rtn.tags2 && rtn.tags2[i] && !rtn.tags2[i].list && rtn.tags2[i].searchDataApiUrl) {
366
- let action = rtn.tags2[i].searchDataApiUrl;
365
+ if (rtn.tags2 && rtn.tags2[i] && !rtn.tags2[i].list && rtn.tags2[i].searchDataAction) {
366
+ let action = rtn.tags2[i].searchDataAction;
367
367
  let para = {};
368
368
  if (rtn.tags2[i].paramData) para = JSON.parse(rtn.tags2[i].paramData);
369
369
  Vue.prototype.$api.postHandler(common.globalUri(), { action: action, para: para }).then(
@@ -906,7 +906,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
906
906
  if (callBack) {
907
907
  callBack(rtn);
908
908
  }
909
- } else {
909
+ }
910
+ else {
910
911
  if (postThenHandler) {
911
912
  postThenHandler();
912
913
  }
@@ -104,7 +104,7 @@ export default {
104
104
  width: 16px;
105
105
  height: 20px;
106
106
  text-align: left;
107
- top: 3px;
107
+ top: 6px;
108
108
  right: 22px;
109
109
  }
110
110
 
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.46: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,
@@ -42,7 +42,7 @@ Vue.use(centaline, {
42
42
  getRequestHeaders: function () {
43
43
  return {
44
44
  oldToken: '42ccd644-040d-4e01-9521-1623f1884058',
45
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAMRe_iuZZwYtlJN0jLwiGquM1QJkRbCYS4OyC1W3fe8Ia3_P-CaTGoQVdwRxtdXMEdbXREHJWkxWPUhCzsMVAKmFgSn5vWp1MDFZTHDWoScRJUSSsY87yGA_lfWKZyv5TnP85d5_E76_rBheANsxWP3IugiRESDdGci4Ukw_sDAAD__w.3i21j7m3bYLyBiyw3yyRa30Ic2yb8HIJzfCicS6OXXM',
45
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgkAQRP9laza55fZ27-jkwMaPIIc5E6yMQKIx_rsYoaP3Fa-YYmZeMM49VKAruKONLqzgjjY6Ig5K0uIhaEQWtugpeowskY9Na2PdQAH5cYOKRGxpSmUpYEjTLyAS-w3mMd9P-fmPc9dpWGYlc--DJQxZDbJLbim7MNqg6pM7G-8Y3h8AAAD__w.8TSDAWjGFDnR0l_C7untDbZTxrfIYNVycj9F33X0v6E',
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',