centaline-data-driven 1.4.79 → 1.4.81

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.4.79",
3
+ "version": "1.4.81",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
3
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
4
- <ct-form :api="'/system/menuright/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/PropertyKey/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -12,7 +12,7 @@
12
12
  data() {
13
13
  return {
14
14
  apiParam:{
15
- "menuRightId":"1642779661559795712","actionType":3
15
+ chanceID: "1560550751669981184", actionType: 2
16
16
  },
17
17
  topHeight:10,
18
18
  }
@@ -93,8 +93,7 @@
93
93
  column.fixed === 'right' ? 'right-fixation' : null,
94
94
  ]" v-bind="column.attrs">
95
95
  <!--操作列-->
96
- <div v-if="column.id === 'operation'" class="div_allinline"
97
- :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'">
96
+ <div v-if="column.id === 'operation'" class="div_allinline" :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'">
98
97
  <ct-tablecurrency v-for="(router, rowRouterIndex) in getRowRouterShow(row)" :key="rowRouterIndex"
99
98
  :ref="'router' + router.id + rowindex" v-if="!router.rightField || row[router.rightField] == 1"
100
99
  :isOperationalColumn="true" :rowindex="rowindex" :router="router" :colValue="router.label"
@@ -256,7 +255,8 @@ export default {
256
255
  },
257
256
  downloadUrl:"",
258
257
  disabledStats:false,
259
-
258
+ searchStrat:0,
259
+ searchEnd:0,
260
260
  };
261
261
  },
262
262
  deactivated(){
@@ -335,6 +335,7 @@ export default {
335
335
  self.model.nextPage(next);
336
336
  }
337
337
  else {
338
+ self.searchEnd=Date.now();
338
339
  self.tableLoading = false;
339
340
  self.rowColorChange();
340
341
  self.calculatingRowHeight();
@@ -343,6 +344,7 @@ export default {
343
344
  });
344
345
  }
345
346
  else {
347
+ self.searchEnd=Date.now();
346
348
  self.tableLoading = false;
347
349
  }
348
350
  };
@@ -426,8 +428,7 @@ export default {
426
428
  document.addEventListener("mousemove", MouseMoveHandle, false);
427
429
  }
428
430
  },
429
- getPage(index) {
430
-
431
+ getPage(index) {
431
432
  var self = this;
432
433
  if (typeof self.$refs.tableParent !== "undefined") {
433
434
  self.$refs.tableParent.scrollTop = 0;
@@ -461,7 +462,7 @@ export default {
461
462
  self.$emit("searchComplate", index);
462
463
  };
463
464
  self.tableLoading = true;
464
-
465
+
465
466
  this.model.getPage(index, next);
466
467
  self.$nextTick(() => {
467
468
  self.loadStats();
@@ -796,7 +797,9 @@ export default {
796
797
 
797
798
  this.$nextTick(function () {
798
799
  if (typeof this.api !== "undefined") {
800
+ self.searchStrat=Date.now();
799
801
  self.loaderObj.SearchTable(self.api, self.load, m, defaultSearch, null, function () {
802
+ self.searchEnd=Date.now();
800
803
  self.isLoading = false;
801
804
  self.tableLoading = false;
802
805
  });
@@ -1212,13 +1215,23 @@ export default {
1212
1215
  self.operationLoading = true;
1213
1216
  field.doAction(submitData, (data) => {
1214
1217
  self.operationLoading = false;
1215
- if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
1216
- self.model.doAction({ responseData: data });
1217
- self.$emit("refreshRowHandle");
1218
+ if (field.isCallTel) {
1219
+ // self.model.doAction(data, field);
1220
+ if(self.model.currentCallTel){
1221
+ self.$refs[self.model.currentCallTel][0].closeCallTel()
1222
+ }
1223
+ self.model.currentCallTel='router'+field.id+field.rowindex;
1224
+ self.$refs['router'+field.id+field.rowindex][0].callTelClick(data);
1225
+ }
1226
+ else{
1227
+ if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
1228
+ self.model.doAction({ responseData: data });
1229
+ self.$emit("refreshRowHandle");
1230
+ }
1231
+ self.$forceUpdate();
1232
+ self.$refs.footer.$forceUpdate();
1233
+ self.updateCurrentRow(field, data);
1218
1234
  }
1219
- self.$forceUpdate();
1220
- self.$refs.footer.$forceUpdate();
1221
- self.updateCurrentRow(field, data);
1222
1235
  });
1223
1236
  }
1224
1237
  }
@@ -458,8 +458,15 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
458
458
  data = data.replace(v1, self[v1.replace('{{', '').replace('}}', '')]);
459
459
  });
460
460
  }
461
+ if(self.$vue && self.$vue.searchStrat && self.$vue.searchEnd){
462
+ let searchTotal=self.$vue.searchEnd-self.$vue.searchStrat;
463
+ if(searchTotal>0){
464
+ data=data+" 总耗时 "+searchTotal+" 毫秒";
465
+ }
466
+ }
461
467
  return data;
462
- } else {
468
+ }
469
+ else {
463
470
  return '';
464
471
  }
465
472
  },
@@ -480,6 +487,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
480
487
  },
481
488
  apiData(callback) {
482
489
  var self = this;
490
+ self.$vue.searchStrat=Date.now();
483
491
  this.isLoading = true;
484
492
  if (self.searchModel) {
485
493
  //不需要禁用查询按钮
@@ -497,6 +505,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
497
505
  }
498
506
  })
499
507
  .then(function (response) {
508
+ self.$vue.searchEnd=Date.now();
500
509
  self.isLoading = false;
501
510
  if (response.rtnCode === Enum.ReturnCode.Successful) {
502
511
  if (response.content.rows.length > 0) {
package/src/main.js CHANGED
@@ -48,7 +48,7 @@ Vue.use(centaline, {
48
48
  getRequestHeaders: function () {
49
49
  return {
50
50
  oldToken: '3ba3f510-93fd-4103-9249-73c13f3f6fc2',
51
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjksKwjAURfeScR8kL3mfdJY27cRFlGoj6EhsC4q4dyMuwunhcs59mXU_mtZEFNYQPPRD5yHkJNCxs9BzTJQ0IXc08UgZUQS8jAq9sx4QUwarWUaffWSxUw4xKVZTRdWEbgDtfAKkoMGPFKKQaUx53EzrWC0LIWNjLvP2A6SqX7Cv5X4oz3-cu26XmuX5jEqzgBW0EBYVUJ4Zllh3XIo7cTHvDwAAAP__.4lx6u0EiJkrxVVQIfeqtEHEFeZFzgJEr_ixHVXLr_jM',
51
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzjsOwjAQRdG9uGYkZz6eGTonJg2LQA5xARUiIIEQeyeIRdCe4r73Cst9CtvgqMmYCYZdT8AlK_SpizAkz5ItY-rlkEYpiKpAOhoMXSRAzAWiFR2pkCeNh8KeDdfSSmsJux1YTxlQ2JhGYVcJm9Ael7DtkkUntyibcKq3H5gQf-G-tOu-Pf9x7nw7fWcJvbZ5Bm9zA56cwGViaGa1qmK1dgzvDwAAAP__.muXO336Qhg1m00cMVrDKHQ7wgHJ_w7JbngtJt-K2r84',
52
52
 
53
53
  originalRequestURL: 'http://10.88.22.67:8080',
54
54
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',