centaline-data-driven 1.4.35 → 1.4.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",
3
- "version": "1.4.35",
3
+ "version": "1.4.37",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -4,12 +4,12 @@
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>
12
+ </ct-searchlist> -->
13
13
 
14
14
  <!-- <ct-searchlist :apiParam="para"
15
15
  :searchConditionApi="'/PropertyTrustList/getLayoutOfSearch'"
@@ -22,11 +22,11 @@
22
22
  :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'">
23
23
  </ct-searchlist> -->
24
24
 
25
- <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
25
+ <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
26
26
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
27
27
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
28
28
  :searchStatsApi="'/PropertyRETList/getListStats'">
29
- </ct-searchlist> -->
29
+ </ct-searchlist>
30
30
 
31
31
  <!-- <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
32
32
  :searchDataApi="'/PropertyOFIList/getListOfSearchModel'"
@@ -112,7 +112,6 @@
112
112
  border-bottom-left-radius: 6px !important;
113
113
  border-bottom-right-radius: 6px !important;
114
114
  -webkit-box-shadow: #cfcece 0px 7px 9px 0px!important;
115
-
116
115
  }
117
116
  .ct-checkbox .ct-checkbox-mian{
118
117
  padding-left: 0!important;
@@ -104,6 +104,9 @@
104
104
  else if (v.show !== false && v.type === 'btn' && v.id === 'btnFilter') {
105
105
  this.filterBtnName = v.label;
106
106
  }
107
+ if(v.type !== 'btn'){
108
+ v.action='search';
109
+ }
107
110
  });
108
111
 
109
112
  },
@@ -2,16 +2,18 @@
2
2
  <div style="padding:0 8px 0 10px">
3
3
  <div v-if="model !== null">
4
4
  <el-table ref="multipleTable" :data="tableData"
5
- highlight-current-row tooltip-effect="dark" size="mini" style="width: 100%;" fit :row-class-name="tableRowClassName"
5
+ highlight-current-row tooltip-effect="dark" size="mini" style="width: 100%;" fit :row-class-name="tableRowClassName"
6
6
  :height="elTableHeight" v-loading="loading"
7
7
  @selection-change="handleSelectionChange"
8
- @current-change="handleCurrentChange">
8
+ @current-change="handleCurrentChange"
9
+ @cell-click="handleCellClick">
9
10
  <el-table-column type="selection" width="55" v-if="!singleSelectio"></el-table-column>
10
11
  <el-table-column v-for="(col, index) in model.columns" v-if="col.show" :key="index"
11
12
  :prop="col.id" :label="col.name" :min-width="col.width">
12
13
  </el-table-column>
13
14
  </el-table>
14
15
  <div style="margin-top: 20px;width: 100%;display: inline-block;height: 30px;margin-bottom: 10px;">
16
+ <span class="ct-table-tip-mini" v-if="!loading && model" v-html="model.footer"></span> <span class="ct-table-tip-mini" v-if="!loading && model" style="color:red;">已勾选 {{selectCount}} 条</span>
15
17
  <el-input v-if="jumpBtnName" size="mini" v-model="jumpStr" placeholder="定位" style="width:150px"></el-input>
16
18
  <el-button v-if="jumpBtnName" size="mini" @click="jumpClickHandler()">{{jumpBtnName}}</el-button>
17
19
  <el-button v-if="filterBtnName" size="mini" @click="filterClickHandler()" style="margin-left: 0px;">{{filterBtnName}}</el-button>
@@ -48,7 +50,8 @@
48
50
  loading: true,
49
51
  jumpStr: '',
50
52
  isBusy:false,
51
- elTableHeight:0,
53
+ elTableHeight: 0,
54
+ selectCount:0
52
55
  }
53
56
  },
54
57
  methods: {
@@ -62,7 +65,6 @@
62
65
  var selectWrap = this.$refs.multipleTable.bodyWrapper;
63
66
  selectWrap.addEventListener('scroll', this.scrollHandle);
64
67
  });
65
-
66
68
  //通知父组件加载完成
67
69
  this.$emit('loaded');
68
70
  },
@@ -101,11 +103,15 @@
101
103
  //当多选项发生变化时会触发该事件
102
104
  handleSelectionChange(val) {
103
105
  this.multipleSelection = val;
106
+ this.selectCount = this.$refs.multipleTable.selection.length;
104
107
  },
105
108
  //当单选项发生变化时会触发该事件
106
109
  handleCurrentChange(val) {
107
110
  this.currentRow = val;
108
111
  },
112
+ handleCellClick(row) {
113
+ this.model.selectIndex = row.tableIndex;
114
+ },
109
115
  filterClickHandler() {
110
116
  this.tableData = this.multipleSelection;
111
117
 
@@ -11,14 +11,14 @@
11
11
  <div class="shortcutFollow max-shortcutFollow" style="padding-left: 20px;" v-if="model.shortcutForm">
12
12
  <ct-form :source="model.shortcutForm.code1" @submit="saveShortcut"></ct-form>
13
13
  </div>
14
- <el-popover class="SeachScreenPop max-seachpopper" placement="top" transition="el-zoom-in-top" v-model="highScreen" trigger="click" visible-arrow="false">
14
+ <div class="SeachScreenPop max-seachpopper" placement="top" transition="el-zoom-in-top" v-show="highScreen" trigger="click" visible-arrow="false">
15
15
  <div style="width:100%">
16
16
  <template v-for="(col, index) in highScreenRow" v-if="col.show !== false">
17
17
  <br v-if="col.is === 'ct-linefeed'" />
18
18
  <component v-else class="list-field" v-bind="col.listBind" :is="col.is" :vmodel="col" :api="model.optionApi" @click="clickHandler(col)"></component>
19
19
  </template>
20
20
  </div>
21
- </el-popover>
21
+ </div>
22
22
  </div>
23
23
  <div v-if="isLoading" v-loading="isLoading" style="min-height:100px">
24
24
  </div>
@@ -205,5 +205,15 @@
205
205
  .ct-ptl0 {
206
206
  padding: 0 10px 10px 10px;
207
207
  }
208
-
208
+ .max-seachpopper {
209
+ position: absolute;
210
+ z-index: 9999;
211
+ width: 100%;
212
+ padding: 5px 10px 10px 10px!important;
213
+ background-color: #fff !important;
214
+ margin-top: -5px;
215
+ border-bottom-left-radius: 6px !important;
216
+ border-bottom-right-radius: 6px !important;
217
+ -webkit-box-shadow: #cfcece 0px 7px 9px 0px!important;
218
+ }
209
219
  </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class='mytree' style="overflow:auto">
2
+ <div class='mytree' style="overflow:auto" :style="{height:treeHeight}">
3
3
  <el-tree :data="treeData" class="tree-line" :props="defaultProps" :load="loadNode" :indent="0"
4
4
  :expand-on-click-node="false" @node-click="handleNodeClick" lazy ref="Tree">
5
5
  </el-tree>
@@ -34,9 +34,13 @@ export default {
34
34
  isLeaf: "isLeaf",
35
35
  id: 'code'
36
36
  },
37
+ treeHeight:'100%'
37
38
  };
38
39
  },
39
40
  methods: {
41
+ activated(){
42
+ this.treeHeight='100%';
43
+ },
40
44
  search(m) {
41
45
  this.treeNode.childNodes = [];
42
46
  this.searchComplate(m, undefined, this.treeResolve);
@@ -111,7 +115,8 @@ export default {
111
115
  </script>
112
116
  <style lang="scss">
113
117
  .mytree .is-select {
114
- color: #409eff !important
118
+ color: #409eff !important;
119
+ height: 100%;
115
120
  }
116
121
 
117
122
  .tree-line:first-child div {
package/src/main.js CHANGED
@@ -43,7 +43,7 @@ Vue.use(centaline, {
43
43
  getRequestHeaders: function () {
44
44
  return {
45
45
  oldToken: '9a73e482-db16-4a24-81e7-67daef02b64d',
46
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrsOgkAQRf9laiaZYWdfdLpg40eQFYcEKyOQaIz_rkbo6D3FKU5z7xPG-QQV-AXc0EobF3BDKy2zRM-uwV30CcWJwcApYBKX5FA3Ju1rKEDvV6jYeS5FxJQFDHn6BbaBvmEe9XbUxz_OXabhM2ujNeQ7RSE6o0QizJ0ocu6You-1dxZebwAAAP__.vkp7C4-AbNZcFXOUNh7GhACgGYct_lCq8lYCyLOdfSg',
46
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgkAQRP9laza59fZ27-j0wMaPIAeeCVZGINEY_12M0NH7ildMJpl5wTC1UIIu4IZWmrCAG1ppiDgoSY37oBFZ2KKn6DGyRD5WtY2HCgrIjxuUJHPTiFUtoE_jL3AUwjeYhnw_5ec_zl3Hfp7NZNRll7FN3iBb12G6dIwiGsRx2p07B-8PAAAA__8.znyY_zAn4f_Xdz-2UVSafJIf9z5zDANUKWzpMIPEJdA',
47
47
 
48
48
  originalRequestURL: 'http://10.88.22.67:8080',
49
49
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',