centaline-data-driven 1.2.59 → 1.2.62
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/centaline/css/ccai.css +4 -0
- package/src/centaline/css/max.css +6 -0
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +5 -5
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +2 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +24 -8
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +4 -4
- package/src/centaline/dynamicSw/src/dynamicSw.vue +1 -1
- package/src/centaline/loader/src/ctl/ContactList.js +4 -1
- package/src/centaline/loader/src/ctl/Detail.js +2 -3
- package/src/centaline/loader/src/ctl/Router.js +3 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<div>{{model.label}}</div>
|
|
35
35
|
<div style="color:red;font-weight:700;">{{model.subText}}</div>
|
|
36
36
|
</el-button>
|
|
37
|
-
<el-button v-else-if="model.isCallTel"
|
|
37
|
+
<el-button v-else-if="model.isCallTel" class="max"
|
|
38
38
|
:type="model.isHyperLink ? 'text' : 'primary'"
|
|
39
39
|
v-bind="model.attrs" @click="clickHandle"
|
|
40
40
|
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
<div style="color: #388cd3;text-align: center;">{{message}}</div>
|
|
48
48
|
<img v-show="qrCode" :src="qrCode" style="margin-top: 5px;" :style="{'width':width+'px','height':height+'px'}" />
|
|
49
49
|
</div>
|
|
50
|
-
<img v-if="model.imgUrl" slot="reference" :title="model.label
|
|
50
|
+
<img v-if="model.imgUrl" slot="reference" :title="model.label" :src="tellImgUrl?tellImgUrl:model.imgUrl" :height="model.buttonHeight+'px'" />
|
|
51
51
|
<span v-else slot="reference">{{model.label}}</span>
|
|
52
52
|
</el-popover>
|
|
53
53
|
</el-button>
|
|
54
|
-
<el-button v-else
|
|
54
|
+
<el-button v-else class="max"
|
|
55
55
|
:type="model.isHyperLink ? 'text' : 'primary'"
|
|
56
56
|
v-bind="model.attrs" @click="$emit('click',model)"
|
|
57
57
|
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
58
58
|
:icon="model.icon"
|
|
59
59
|
:disabled="model.disabled || model.locked">
|
|
60
|
-
<img v-if="model.imgUrl" :title="model.label" :src="model.imgUrl" height="
|
|
61
|
-
|
|
60
|
+
<img v-if="model.imgUrl" :title="model.label" :src="model.imgUrl" :height="model.buttonHeight+'px'"/>
|
|
61
|
+
<span v-else>{{model.label}}</span>
|
|
62
62
|
</el-button>
|
|
63
63
|
</template>
|
|
64
64
|
<script>
|
|
@@ -98,6 +98,8 @@
|
|
|
98
98
|
</component>
|
|
99
99
|
</div>
|
|
100
100
|
<!--正常的列-->
|
|
101
|
+
<div v-else-if="column.flagHtml" v-html="row[column.id]" :class="column.autoRowHeight ? 'lineFeedCell':'cell'" :style="column.style ? column.style:''">
|
|
102
|
+
</div>
|
|
101
103
|
<div v-else-if="typeof column.template === 'undefined'" :class="column.autoRowHeight ? 'lineFeedCell':'cell'">
|
|
102
104
|
{{row.rowHiddenColumns && row.rowHiddenColumns.includes(column.id)?"":row[column.id]}}
|
|
103
105
|
</div>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<component v-if="model.otherTradeActionRouter!==null" v-bind="model.otherTradeActionRouter" class="max-default"
|
|
31
31
|
:is="model.otherTradeActionRouter.is" :vmodel="model.otherTradeActionRouter" :api="model.optionApi" @click="fieldClickHandler(model.otherTradeActionRouter,$event)"></component>
|
|
32
32
|
<img :class="{'domDisabled':parentModel && parentModel.selectIndex<=0}" @click="clickPrevHandler" src="../../../assets/T.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left:11px;cursor: pointer">
|
|
33
|
-
<img :class="{'domDisabled':parentModel && parentModel.listData && parentModel.selectIndex===parentModel.listData.
|
|
33
|
+
<img :class="{'domDisabled':parentModel && parentModel.listData && parentModel.selectIndex===parentModel.listData.length-1}" @click="clickNextHandler" src="../../../assets/B.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left:8px;cursor: pointer">
|
|
34
34
|
</div>
|
|
35
35
|
<div class="mt5">
|
|
36
36
|
<component class="max-report w93" v-if="model.actionRouters!==null && model.actionRouters[0]!==null"
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
</div>
|
|
139
139
|
</div>
|
|
140
140
|
<div class="contacts-info base-box">
|
|
141
|
-
<ct-contactList v-if="model.contactApiRouter!==null" :apiRouter="model.contactApiRouter" ></ct-contactList>
|
|
141
|
+
<ct-contactList v-if="model.contactApiRouter!==null" :apiRouter="model.contactApiRouter" :key="'contact'+refershKey" ></ct-contactList>
|
|
142
142
|
</div>
|
|
143
143
|
<div class="tablist-info base-box">
|
|
144
144
|
<div class="details-tabs-box">
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<el-tab-pane v-for="(col, index) in model.tags1" :key="col.appID"
|
|
147
147
|
:index="index.toString()" :name="index.toString()" :label="col.appName"></el-tab-pane>
|
|
148
148
|
</el-tabs>
|
|
149
|
-
<ct-searchlist v-if="model.searchConditionApiTags1" :key="
|
|
149
|
+
<ct-searchlist v-if="model.searchConditionApiTags1" :key="'list'+listKey.toString()+refershKey"
|
|
150
150
|
:apiParam="model.paramDataTags1" :flagFocus="false"
|
|
151
151
|
:searchConditionApi="model.searchConditionApiTags1"
|
|
152
152
|
:searchDataApi="model.searchDataApiTags1"></ct-searchlist>
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
<div v-if="model.operationList!==null" :key="model.operationKey" class="operation-table base-box">
|
|
176
176
|
<div v-for="(col, index) in model.operationList" :key="index" class="table-box">
|
|
177
177
|
<div class="t-item">
|
|
178
|
-
<span class="i"
|
|
178
|
+
<span class="i" v-html="col.operationName"></span>
|
|
179
179
|
</div>
|
|
180
180
|
<div class="t-item"><span class="i" :class="'operation'+col.flagKey" :style="{color:col.descColor}">{{col.desc}}</span></div>
|
|
181
181
|
<div class="t-item" style="min-height: 50px;">
|
|
@@ -314,7 +314,9 @@
|
|
|
314
314
|
],
|
|
315
315
|
},
|
|
316
316
|
allInfo: false,
|
|
317
|
-
allIn:false,
|
|
317
|
+
allIn:false,
|
|
318
|
+
refershKey:0,
|
|
319
|
+
listKey:0,
|
|
318
320
|
}
|
|
319
321
|
},
|
|
320
322
|
mounted() {
|
|
@@ -341,6 +343,7 @@
|
|
|
341
343
|
var self = this;
|
|
342
344
|
this.model = data;
|
|
343
345
|
this.model.$vue = self;
|
|
346
|
+
this.refershKey=this.refershKey+1;
|
|
344
347
|
this.loadFields();
|
|
345
348
|
if(this.model.tags2 && this.model.tags2[0]){
|
|
346
349
|
this.model.getTags2List(0);
|
|
@@ -430,7 +433,7 @@
|
|
|
430
433
|
let i=key.index;
|
|
431
434
|
this.model.activeIndex1=i;
|
|
432
435
|
if(this.model.tags1 && this.model.tags1[i]){
|
|
433
|
-
this.
|
|
436
|
+
this.listKey=this.listKey+1;
|
|
434
437
|
this.model.searchConditionApiTags1=this.model.tags1[i].searchConditionApiUrl||'';
|
|
435
438
|
this.model.searchDataApiTags1=this.model.tags1[i].searchDataApiUrl||'';
|
|
436
439
|
this.model.paramDataTags1=this.model.tags1[i].paramData||'';
|
|
@@ -593,14 +596,27 @@
|
|
|
593
596
|
}
|
|
594
597
|
},
|
|
595
598
|
clickNextHandler() {
|
|
596
|
-
console.log(this.parentModel);
|
|
597
599
|
if(this.parentModel){
|
|
600
|
+
let oldValue=this.parentModel.listData[this.parentModel.selectIndex][this.parentModel.primaryKey];
|
|
598
601
|
this.parentModel.$vue.rowKeyDownHandle(null,1);
|
|
602
|
+
let newValue=this.parentModel.listData[this.parentModel.selectIndex][this.parentModel.primaryKey];
|
|
603
|
+
if(oldValue!==newValue){
|
|
604
|
+
let parm=this.apiParam;
|
|
605
|
+
parm[this.parentModel.primaryKey]=newValue;
|
|
606
|
+
this.loaderObj.Detail(this.api,parm, this.load);
|
|
607
|
+
}
|
|
599
608
|
}
|
|
600
609
|
},
|
|
601
|
-
clickPrevHandler() {
|
|
610
|
+
clickPrevHandler() {
|
|
602
611
|
if(this.parentModel){
|
|
612
|
+
let oldValue=this.parentModel.listData[this.parentModel.selectIndex][this.parentModel.primaryKey];
|
|
603
613
|
this.parentModel.$vue.rowKeyDownHandle(null,-1);
|
|
614
|
+
let newValue=this.parentModel.listData[this.parentModel.selectIndex][this.parentModel.primaryKey];
|
|
615
|
+
if(oldValue!==newValue){
|
|
616
|
+
let parm=this.apiParam;
|
|
617
|
+
parm[this.parentModel.primaryKey]=newValue;
|
|
618
|
+
this.loaderObj.Detail(this.api,parm, this.load);
|
|
619
|
+
}
|
|
604
620
|
}
|
|
605
621
|
},
|
|
606
622
|
}
|
|
@@ -223,10 +223,10 @@
|
|
|
223
223
|
let i=key.index;
|
|
224
224
|
this.model.activeIndex1=i;
|
|
225
225
|
if(this.model.tags1 && this.model.tags1[i]){
|
|
226
|
-
this.model.searchlistKey=this.model.searchlistKey+1;
|
|
227
|
-
this.model.searchConditionApiTags1=this.model.tags1[i].searchConditionApiUrl||'';
|
|
228
|
-
this.model.searchDataApiTags1=this.model.tags1[i].searchDataApiUrl||'';
|
|
229
|
-
this.model.paramDataTags1=this.model.tags1[i].paramData||'';
|
|
226
|
+
// this.model.searchlistKey=this.model.searchlistKey+1;
|
|
227
|
+
// this.model.searchConditionApiTags1=this.model.tags1[i].searchConditionApiUrl||'';
|
|
228
|
+
// this.model.searchDataApiTags1=this.model.tags1[i].searchDataApiUrl||'';
|
|
229
|
+
// this.model.paramDataTags1=this.model.tags1[i].paramData||'';
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
fieldClickHandler(field) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
|
-
<div v-if="model !== null" class="ct-Sw">
|
|
3
|
+
<div v-if="model !== null" class="ccai ct-Sw">
|
|
4
4
|
<div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
5
5
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
6
6
|
{{model.label}}
|
|
@@ -20,8 +20,7 @@ const Detail = function (source,para ,callBack) {
|
|
|
20
20
|
detailHeight:750,
|
|
21
21
|
midlWidth:1200,
|
|
22
22
|
activeIndex1:'0',
|
|
23
|
-
activeIndex2:'0',
|
|
24
|
-
searchlistKey:0,
|
|
23
|
+
activeIndex2:'0',
|
|
25
24
|
tags2Key:0,
|
|
26
25
|
operationKey:0,
|
|
27
26
|
_searchConditionApiTags1:null,
|
|
@@ -410,7 +409,7 @@ const Detail = function (source,para ,callBack) {
|
|
|
410
409
|
if (typeof source === 'string') {
|
|
411
410
|
Vue.prototype.$api.postHandler(common.globalUri(), { action: source,para:para}).then(
|
|
412
411
|
function (response) {
|
|
413
|
-
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
412
|
+
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
414
413
|
var rtn = init(response.content);
|
|
415
414
|
if (callBack) {
|
|
416
415
|
callBack(rtn);
|