centaline-data-driven-v3 0.1.36 → 0.1.37

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.36",
3
+ "version": "0.1.37",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -49,8 +49,11 @@
49
49
  <!--tabs-->
50
50
  <el-tabs v-if="model.isHorizontalLayout" v-model="activeName">
51
51
  <template v-for="(item, index) in model.collapse" :key="index">
52
- <el-tab-pane :label="item.controlLabel" :name="index.toString()" :lazy="item.lazyLoad"
52
+ <el-tab-pane :name="index.toString()" :lazy="item.lazyLoad"
53
53
  v-if="item.show !== false" :key="index">
54
+ <template #label>
55
+ <span v-html="item.controlLabel"></span>
56
+ </template>
54
57
  <el-row>
55
58
  <template v-for="(col, i) in model.collapseFields[index + 1]" :key="i">
56
59
  <div style="display: flex; flex: 0 0 100%;"
@@ -858,7 +858,7 @@ function setTableHeight() {
858
858
  h8 = refPopupButton.value.offsetHeight + 21 | 0;
859
859
  }
860
860
 
861
- let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 - h8 - 16;
861
+ let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 - h8 - 10;
862
862
  model.value.tableHeight = tableHeight < 40 ? 350 : tableHeight;
863
863
  nextTick(() => {
864
864
  getScrollAttr();
@@ -64,7 +64,7 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
64
64
  toolbarKey: 0,
65
65
  downloadUrl: '',
66
66
  _scripts: null,
67
- OriginalColumns:source.content.columns?JSON.parse(JSON.stringify(source.content.columns)):[],
67
+ OriginalColumns: source.content.columns ? JSON.parse(JSON.stringify(source.content.columns)) : [],
68
68
  get scripts() {
69
69
  if (rtn._scripts !== null) {
70
70
  return rtn._scripts;
@@ -107,6 +107,7 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
107
107
  get $rowCount() {
108
108
  return source.page.rowCount;
109
109
  },
110
+ $totalExecutionTime: '',
110
111
  // 表头描述文本(富文本)
111
112
  get listHeader() {
112
113
  return source.content.topText || '';
@@ -169,9 +170,9 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
169
170
  get mainBarWidth() {
170
171
  return source.content.mainBarWidth;
171
172
  },
172
- set mainBarWidth(v) {
173
+ set mainBarWidth(v) {
173
174
  source.content.mainBarWidth = v;
174
- },
175
+ },
175
176
  //用于移动端列表单元格的布局
176
177
  get cellLayout() {
177
178
  return source.content.cellLayout;
@@ -228,28 +229,34 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
228
229
  get footer() {
229
230
  if (typeof source.content.foot !== 'undefined') {
230
231
  var data = source.content.foot;
231
- var objs = data.match(/({{[^}]+}})/g);
232
- if (objs) {
233
- objs.forEach((v1) => {
234
- data = data.replace(v1, this[v1.replace('{{', '').replace('}}', '')]);
235
- });
236
- }
232
+ var searchTotalText = "";
237
233
  if (this.$vue && this.$vue.searchStrat && this.$vue.searchEnd) {
238
234
  let searchTotal = this.$vue.searchEnd - this.$vue.searchStrat;
239
235
  if (searchTotal > 0) {
240
- if (data.indexOf('总耗时') > -1 || data.indexOf('總耗時') > -1) {
241
- data = data + " " + searchTotal + " 毫秒";
236
+ if (data.indexOf("totalExecutionTime") > -1) {
237
+ rtn.$totalExecutionTime = searchTotal;
242
238
  }
243
239
  else {
244
- data = data + " 总耗时 " + searchTotal + " 毫秒";
240
+ if (data.indexOf('总耗时') > -1 || data.indexOf('總耗時') > -1) {
241
+ searchTotalText = " " + searchTotal + " 毫秒";
242
+ }
243
+ else {
244
+ searchTotalText = " 总耗时 " + searchTotal + " 毫秒";
245
+ }
245
246
  }
246
-
247
247
  }
248
248
  }
249
249
  else {
250
250
  data = data.replace("总耗时", "").replace("總耗時", "");
251
251
  }
252
- return data;
252
+ var objs = data.match(/({{[^}]+}})/g);
253
+ if (objs) {
254
+ objs.forEach((v1) => {
255
+ data = data.replace(v1, this[v1.replace('{{', '').replace('}}', '')]);
256
+ });
257
+ }
258
+
259
+ return data + searchTotalText;
253
260
  }
254
261
  else {
255
262
  return '';
@@ -805,7 +812,7 @@ function apiData(model, callback) {
805
812
  model.flagMoreData = response.page.flagMoreData;
806
813
  }
807
814
  if (response.content.updateTableColumns && response.page.pageIndex <= 1
808
- &&JSON.stringify(model.OriginalColumns) !== JSON.stringify(response.content.columns)) {
815
+ && JSON.stringify(model.OriginalColumns) !== JSON.stringify(response.content.columns)) {
809
816
  model.columns = response.content.columns;
810
817
  if (model.template) {
811
818
  // var tempLoader = template.loader(model.template).default;
@@ -1043,7 +1050,7 @@ function getCurrentRowApiData(model, callback, rtnData, router) {
1043
1050
  model.listFooter = response.content.bottomText;
1044
1051
  }
1045
1052
  if (response.content.updateTableColumns && response.page.pageIndex <= 1
1046
- &&JSON.stringify(model.OriginalColumns) !== JSON.stringify(response.content.columns)
1053
+ && JSON.stringify(model.OriginalColumns) !== JSON.stringify(response.content.columns)
1047
1054
  ) {
1048
1055
  model.columns = response.content.columns;
1049
1056
  if (model.template) {
package/src/main.js CHANGED
@@ -65,7 +65,7 @@ app.use(centaline, {
65
65
  //获取请求头
66
66
  getRequestHeaders: function () {
67
67
  return {
68
- authobject: '{EmpID:"Token_2db5b0a6-7156-462c-bf29-53731a255b32",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_2db5b0a6-7156-462c-bf29-53731a255b32",Platform:"WEB"}',
68
+ authobject: '{EmpID:"Token_3d65f2f0-d6a3-432e-9af6-5c378b501b76",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_3d65f2f0-d6a3-432e-9af6-5c378b501b76",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,6 +1,6 @@
1
1
  <template>
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <ct-form :api="'/Employee/readDetail'" :apiParam="apiParam"></ct-form>
3
+ <ct-form :api="'/propertyTender/readDetail'" :apiParam="apiParam"></ct-form>
4
4
  <!-- <ct-textbox :source="source"></ct-textbox> -->
5
5
  <ct-dialoglist ref="dialogList"></ct-dialoglist>
6
6
  </div>
@@ -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="'AdvancedSearch/GetLayoutOfSearchForPropertyPublish'"
4
- :searchDataApi="'AdvancedSearch/GetListOfSearchModelForPropertyPublish'"></ct-searchlist>
3
+ <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/UIResourceList/getLayoutOfSearch'"
4
+ :searchDataApi="'/UIResourceList/getListOfSearchModel'"></ct-searchlist>
5
5
 
6
6
  <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
7
7
  :searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="app-Tree" style="height:100%;position: fixed;width:100%;padding: 10px;">
3
3
  <ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
4
- :searchConditionApi="'/SystemUser/getSystemBusinessCategory'" :searchDataApi="'/SystemUser/getSystemBusinessCategory'"
4
+ :searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'" :searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'"
5
5
  @loaded="loaded"></ct-treelist>
6
6
  <!-- <ct-textbox :source="source"></ct-textbox> -->
7
7
  <ct-dialoglist></ct-dialoglist>