centaline-data-driven 1.3.98 → 1.3.99

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.98",
3
+ "version": "1.3.99",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -4,23 +4,23 @@
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
15
15
  :searchConditionApi="'/report/monthly/region/layout'"
16
16
  :searchDataApi="'/report/monthly/region/list'">
17
17
  </ct-searchlist> -->
18
18
 
19
- <ct-searchlist
19
+ <!-- <ct-searchlist
20
20
  :searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'"
21
21
  :searchConditionApi="'/PropertyPublishList/getLayoutOfSearchForRET'"
22
22
  :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'">
23
- </ct-searchlist>
23
+ </ct-searchlist> -->
24
24
 
25
25
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
26
26
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
@@ -7,12 +7,12 @@
7
7
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend field-label-div max-input-group" :class="[model.labelClass]">
8
8
  <span>{{model.label}}</span>
9
9
  </div>
10
- <div ref="highlights" v-if="model.firbiddenWords" class="backdrop" :style="{width:firbiddenWordsWidth+'px',height:firbiddenWordsHeight+'px',left:firbiddenWordsLeft+'px',top:firbiddenWordsTop+'px'}">
11
- <div class="highlights" v-html="firbiddenWordsValue"></div>
10
+ <div ref="highlights" v-if="model.forbiddenWords" class="backdrop" :style="{width:forbiddenWordsWidth+'px',height:forbiddenWordsHeight+'px',left:forbiddenWordsLeft+'px',top:forbiddenWordsTop+'px'}">
11
+ <div class="highlights" v-html="forbiddenWordsValue"></div>
12
12
  </div>
13
13
  <el-input ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear();applyHighlights()" @change="changeHandler($event)"
14
- class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'',model.firbiddenWords?'inputHighlights':'']"
15
- :disabled="model.lock" :rows="model.rows"
14
+ class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'',model.forbiddenWords?'inputHighlights':'']"
15
+ :disabled="model.lock" :rows="model.rows" :resize="model.forbiddenWords?'none':'vertical'"
16
16
  :readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
17
17
  @keyup.enter.native="search()" style="z-index: 3;background-color: transparent;">
18
18
  <span slot="suffix" v-if="model.unitName" class="ct-unitname" :class="showClear?'unitName-20':'unitName-0'">{{model.unitName}}</span>
@@ -60,11 +60,11 @@
60
60
  showClear: false,
61
61
  minText:'',
62
62
  minTextLeft:0,
63
- firbiddenWordsValue:'',
64
- firbiddenWordsWidth:0,
65
- firbiddenWordsHeight:0,
66
- firbiddenWordsLeft:0,
67
- firbiddenWordsTop:0,
63
+ forbiddenWordsValue:'',
64
+ forbiddenWordsWidth:0,
65
+ forbiddenWordsHeight:0,
66
+ forbiddenWordsLeft:0,
67
+ forbiddenWordsTop:0,
68
68
  }
69
69
  },
70
70
  created() {
@@ -86,11 +86,11 @@
86
86
  }
87
87
  this.minTextLeft=this.$refs.input.$el.offsetLeft+10;
88
88
  }
89
- if(this.model.firbiddenWords){
90
- this.firbiddenWordsWidth=this.$refs.input.$el.offsetWidth;
91
- this.firbiddenWordsHeight=this.$refs.input.$el.offsetHeight;
92
- this.firbiddenWordsLeft=this.$refs.input.$el.offsetLeft;
93
- this.firbiddenWordsTop=this.$refs.input.$el.offsetTop;
89
+ if(this.model.forbiddenWords){
90
+ this.forbiddenWordsWidth=this.$refs.input.$el.offsetWidth;
91
+ this.forbiddenWordsHeight=this.$refs.input.$el.offsetHeight;
92
+ this.forbiddenWordsLeft=this.$refs.input.$el.offsetLeft;
93
+ this.forbiddenWordsTop=this.$refs.input.$el.offsetTop;
94
94
  this.$refs.input.$el.addEventListener('scroll',this.scrollHandler,true);
95
95
  }
96
96
  },
@@ -155,25 +155,23 @@
155
155
  },
156
156
  scrollHandler() {
157
157
  var scrollTop = this.$refs.input.$el.children[0].scrollTop;
158
- var scrollHeight = this.$refs.input.$el.children[0].scrollHeight;
159
- var offsetHeight = this.$refs.input.$el.children[0].offsetHeight;
160
- // console.log(scrollTop)
161
- // console.log(scrollHeight)
162
- // console.log(offsetHeight)
163
- // if(scrollTop+offsetHeight>=scrollHeight){
164
- // scrollTop=scrollTop-32;
165
- // }
166
158
  this.$refs.highlights.scrollTop=scrollTop;
167
159
  },
168
160
  applyHighlights() {
169
161
  var self=this;
170
- if(self.model.firbiddenWords){
171
- self.firbiddenWordsValue=self.model.value;
162
+ if(self.model.forbiddenWords){
163
+ self.forbiddenWordsValue=self.model.value;
172
164
  let joinChar=self.model.joinChar || ',';
173
- self.model.firbiddenWords.split(joinChar).forEach(w => {
165
+ self.model.forbiddenWords.split(joinChar).forEach(w => {
174
166
  let reg1=new RegExp(w,'g');
175
- self.firbiddenWordsValue=self.firbiddenWordsValue.replace(reg1,'<span style="background-color: red;color: transparent;">'+w+'</span>');
167
+ self.forbiddenWordsValue=self.forbiddenWordsValue.replace(reg1,'<span style="background-color: red;color: transparent;">'+w+'</span>');
176
168
  });
169
+ let appoint='\n';
170
+ let strat=self.forbiddenWordsValue.length-appoint.length;
171
+ let char=self.forbiddenWordsValue.substr(strat,appoint.length);
172
+ if(char===appoint){
173
+ self.forbiddenWordsValue=self.forbiddenWordsValue+' ';
174
+ }
177
175
  }
178
176
  },
179
177
  },
@@ -211,12 +209,5 @@
211
209
  color: transparent;
212
210
  padding: 5px 15px 5px 15px;
213
211
  line-height: 1.5;
214
- /* overflow-y: auto;
215
- width: 100%;
216
- height: 100%;
217
- border-radius: 4px;
218
- resize: vertical;
219
- box-sizing: border-box;
220
- transition: border-color .2s cubic-bezier(.645,.045,.355,1); */
221
212
  }
222
213
  </style>
@@ -301,9 +301,9 @@ const Base = function (source) {
301
301
  get description() {
302
302
  return source.description;
303
303
  },
304
- // get firbiddenWords() {
305
- // return source.description;
306
- // },
304
+ get forbiddenWords() {
305
+ return source.forbiddenWords;
306
+ },
307
307
  get joinChar() {
308
308
  return source.joinChar;
309
309
  },
@@ -10,7 +10,7 @@ const box = function (source, fileSourceList, router, optionApi) {
10
10
  var init = function (data) {
11
11
  var rtn = {
12
12
  get action() {
13
- return router.action ? router.action : "";//上传完整地址
13
+ return router && router.action ? router.action : "";//上传完整地址
14
14
  },
15
15
  get sourceList() {
16
16
  return fileSourceList;
@@ -295,8 +295,8 @@ const LibFunction = {
295
295
  var files = [];
296
296
  if(source.medias && source.medias.length>0){
297
297
  source.medias.forEach((v, index) => {
298
- if (v.GroupID) {
299
- if (v.GroupID == field.fieldName1) {
298
+ if (v.groupID || v.GroupID) {
299
+ if (v.groupID == field.fieldName1 || v.GroupID == field.fieldName1) {
300
300
  files.push(v);
301
301
  }
302
302
  } else {
package/src/main.js CHANGED
@@ -43,7 +43,7 @@ Vue.use(centaline, {
43
43
  getRequestHeaders: function () {
44
44
  return {
45
45
  oldToken: '854e91e2-3a5e-42af-a522-c51a0f5c09bc',
46
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVbC9rL2pgMnNBwicpxFChXKRwIh7g6IpEvPFFNM894TxrmFEvwCbmilkQXc0EpjDIk3XONBfERichhMDBiJI52q2sVjBQXo_QalYfaWhfe-gD5Nv2CCs98wjzqc9fGPc9ep_8zmJGJDzthaViQVxbQjwtSpdqSOLjbB6w0AAP__.nf7jF3ewbimJ8eNFZ72RKXS7qN0SgN5OnkZ0ZEk82Rc',
46
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOgzAQRO-yNSt57fVn6YIhTQ6BjOyCVFEAKVGUu4co0NHnFaPRa2ZeMC0D1OA38CB2etnAg9jpiVg8uQ5P4iOyY4OBYsDILvK57UxsWqigPG5Qk3OeTWAJFYxp_gljtfqKZSr3S3n-49x1HtdZnYsOLmsUlSwyc0HhsDYaCqlkjM0K3h8AAAD__w.vh8oWP7eMmWyrQ2j2tNgrfOeMdX2ZHDJBbpM_6dfcyw',
47
47
 
48
48
  originalRequestURL: 'http://10.88.22.67:8080',
49
49
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',