centaline-data-driven 1.3.97 → 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 +1 -1
- package/src/Detail.vue +2 -2
- package/src/SearchList.vue +4 -4
- package/src/centaline/dynamicT/src/dynamicT.vue +24 -33
- package/src/centaline/loader/src/ctl/Base.js +3 -3
- package/src/centaline/loader/src/ctl/File.js +1 -1
- package/src/centaline/loader/src/ctl/SearchTable.js +28 -1
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +2 -2
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Detail.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="appDetail" style="height:100%;">
|
|
3
|
-
<ct-Detail :api="'
|
|
3
|
+
<ct-Detail :api="'PropertyRET/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailRET'"></ct-Detail>
|
|
4
4
|
<ct-dialog-list></ct-dialog-list>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
name: 'DataDrivendetail',
|
|
11
11
|
data() {
|
|
12
12
|
return {
|
|
13
|
-
apiParam: {actionType: 1,chanceID: "
|
|
13
|
+
apiParam: {actionType: 1,chanceID: "1"} ,
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
mounted() {
|
package/src/SearchList.vue
CHANGED
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
|
-
|
|
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.
|
|
11
|
-
<div class="highlights" v-html="
|
|
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.
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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.
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
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.
|
|
171
|
-
self.
|
|
162
|
+
if(self.model.forbiddenWords){
|
|
163
|
+
self.forbiddenWordsValue=self.model.value;
|
|
172
164
|
let joinChar=self.model.joinChar || ',';
|
|
173
|
-
self.model.
|
|
165
|
+
self.model.forbiddenWords.split(joinChar).forEach(w => {
|
|
174
166
|
let reg1=new RegExp(w,'g');
|
|
175
|
-
self.
|
|
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
|
-
|
|
305
|
-
|
|
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;
|
|
@@ -625,7 +625,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
625
625
|
|
|
626
626
|
source.page.rows = source.page.rows + response.content.rows.length;
|
|
627
627
|
rtn.$vue.calculatingRowHeight()
|
|
628
|
-
}
|
|
628
|
+
}
|
|
629
|
+
else {
|
|
629
630
|
response.content.rows.forEach((row) => {
|
|
630
631
|
for (var vkey in row) {
|
|
631
632
|
rtn.dataDictionary[row[rtn.primaryKey]][vkey] = row[vkey];
|
|
@@ -649,6 +650,32 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
649
650
|
if (typeof response.content.bottomText !== 'undefined') {
|
|
650
651
|
self.listFooter = response.content.bottomText;
|
|
651
652
|
}
|
|
653
|
+
if (response.content.updateTableColumns) {
|
|
654
|
+
self.columns = response.content.columns;
|
|
655
|
+
if (self.template) {
|
|
656
|
+
var tempLoader = template.loader(self.template).default;
|
|
657
|
+
tempLoader.init(self);
|
|
658
|
+
}
|
|
659
|
+
else{
|
|
660
|
+
self.$vue.refreshTableColumns(response);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
if(response.content.updateToolButtons){
|
|
664
|
+
if (response.content.toolButtons) {
|
|
665
|
+
self._buttons=[];
|
|
666
|
+
response.content.toolButtons.forEach((v) => {
|
|
667
|
+
var button = Router(v);
|
|
668
|
+
button.is = "ct-btn";
|
|
669
|
+
button.attrs = {
|
|
670
|
+
size: "mini",
|
|
671
|
+
class: 'max-btn-gray'
|
|
672
|
+
}
|
|
673
|
+
self._buttons.push(button);
|
|
674
|
+
});
|
|
675
|
+
self.toolbarKey=self.toolbarKey+1;
|
|
676
|
+
self.$vue.setTableHeight();
|
|
677
|
+
}
|
|
678
|
+
}
|
|
652
679
|
}
|
|
653
680
|
|
|
654
681
|
if (typeof callback !== 'undefined') {
|
|
@@ -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
|
@@ -12,12 +12,12 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
|
|
15
|
+
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.25.10.67:9999/v1/form/router",
|
|
17
17
|
// baseUrl: "http://10.88.22.42:9999/v1/form/router",
|
|
18
18
|
// baseUrl: "http://10.88.22.39:8080/api/",
|
|
19
|
-
baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
20
|
-
flagRouterSelf: true,
|
|
19
|
+
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
20
|
+
// flagRouterSelf: true,
|
|
21
21
|
zindex: 999,
|
|
22
22
|
showRequestSuccessMessage: true,
|
|
23
23
|
showRequestErrorMessage: true,
|
|
@@ -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.
|
|
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"}',
|