centaline-data-driven 1.3.57 → 1.3.58
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 +1 -1
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +1 -2
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +4 -18
- package/src/centaline/dynamicFile/src/dynamicFile.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +3 -0
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +9 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +23 -9
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +11 -3
- package/src/main.js +1 -1
- 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
package/src/Detail.vue
CHANGED
|
@@ -40,8 +40,7 @@
|
|
|
40
40
|
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
41
41
|
:icon="model.icon"
|
|
42
42
|
:disabled="model.disabled || model.locked">
|
|
43
|
-
<el-popover
|
|
44
|
-
class="Stats-popover" :popper-class="'el-popoverCallTel'" :placement="option.placement?option.placement:'left'"
|
|
43
|
+
<el-popover class="Stats-popover" :popper-class="'el-popoverCallTel'" :placement="option.placement?option.placement:'left'"
|
|
45
44
|
v-model="visible" :trigger="option.trigger?option.trigger:''">
|
|
46
45
|
<div style="border-bottom:none">
|
|
47
46
|
<div style="color: #388cd3;text-align: center;">{{message}}</div>
|
|
@@ -158,20 +158,10 @@
|
|
|
158
158
|
</div>
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
161
|
-
<div
|
|
162
|
-
v-for="(col, index) in collapse"
|
|
163
|
-
:key="index"
|
|
164
|
-
class="info-conten-b"
|
|
165
|
-
v-show="allInfo"
|
|
166
|
-
>
|
|
161
|
+
<div v-for="(col, index) in collapse" :key="index" class="info-conten-b" v-show="allInfo">
|
|
167
162
|
<div class="info-row mb20">
|
|
168
|
-
<div
|
|
169
|
-
|
|
170
|
-
:key="i"
|
|
171
|
-
:class="c.singleLine === true ? 'row-i100' : 'row-i'"
|
|
172
|
-
>
|
|
173
|
-
<span>{{ c.label }}</span
|
|
174
|
-
><span>{{ c.value }}</span>
|
|
163
|
+
<div v-for="(c, i) in col" :key="i" :class="c.singleLine === true ? 'row-i100' : 'row-i'">
|
|
164
|
+
<span>{{ c.label }}</span><span>{{ c.value }}</span>
|
|
175
165
|
</div>
|
|
176
166
|
</div>
|
|
177
167
|
</div>
|
|
@@ -181,11 +171,7 @@
|
|
|
181
171
|
</div>
|
|
182
172
|
</div>
|
|
183
173
|
<div class="contacts-info base-box">
|
|
184
|
-
<ct-contactList
|
|
185
|
-
v-if="model.contactApiRouter !== null"
|
|
186
|
-
:apiRouter="model.contactApiRouter"
|
|
187
|
-
:key="'contact' + refershKey"
|
|
188
|
-
></ct-contactList>
|
|
174
|
+
<ct-contactList v-if="model.contactApiRouter !== null" :apiRouter="model.contactApiRouter" :key="'contact' + refershKey"></ct-contactList>
|
|
189
175
|
</div>
|
|
190
176
|
<div class="tablist-info base-box">
|
|
191
177
|
<div class="details-tabs-box">
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
</el-dropdown>
|
|
57
57
|
</span>
|
|
58
58
|
</div>
|
|
59
|
-
<el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress"></el-progress>
|
|
59
|
+
<el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress" :width="96" :height="96" style="margin-left: 15px;"></el-progress>
|
|
60
60
|
</div>
|
|
61
61
|
</el-upload>
|
|
62
62
|
</div>
|
|
@@ -193,6 +193,9 @@
|
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
tableLoaded() {
|
|
196
|
+
if (typeof this.$refs.table.model.cellLayout !== "undefined") {
|
|
197
|
+
this.$refs.screen.LoadLayout();
|
|
198
|
+
}
|
|
196
199
|
if(this.$refs.table.model.listData.length>0){
|
|
197
200
|
this.flagSideBarOfData=true;
|
|
198
201
|
this.flagSideBar=this.$refs.table.model.flagSideBar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="st-serach-screen">
|
|
3
3
|
<div v-bind="model.attrs" style="width:100%" v-if="!isLoading">
|
|
4
|
-
<div class="ct-ptb5 max-ptb5" v-if="showScreen">
|
|
4
|
+
<div :class="isLayout === true ? 'ct-ptl0 max-ptb5' : 'ct-ptb5 max-ptb5'" v-if="showScreen">
|
|
5
5
|
<template v-for="(col, index) in model.screen" v-if="col.show !== false">
|
|
6
6
|
<br v-if="col.is === 'ct-linefeed'" />
|
|
7
7
|
<component v-else class="list-field max-list-field" v-bind="col.listBind" :is="col.is" :vmodel="col" :api="model.optionApi" @click="clickHandler(col)"></component>
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
screenRow: [],
|
|
49
49
|
highScreenRow: [],
|
|
50
50
|
highScreen: false,
|
|
51
|
-
showScreen: true
|
|
51
|
+
showScreen: true,
|
|
52
|
+
isLayout: false,
|
|
52
53
|
}
|
|
53
54
|
},
|
|
54
55
|
mounted() {
|
|
@@ -172,6 +173,9 @@
|
|
|
172
173
|
saveShortcut(){
|
|
173
174
|
this.$emit('saveShortcut');
|
|
174
175
|
},
|
|
176
|
+
LoadLayout() {
|
|
177
|
+
this.isLayout = true;
|
|
178
|
+
},
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
</script>
|
|
@@ -198,5 +202,8 @@
|
|
|
198
202
|
.list-field {
|
|
199
203
|
padding: 5px;
|
|
200
204
|
}
|
|
205
|
+
.ct-ptl0 {
|
|
206
|
+
padding: 0 10px 10px 10px;
|
|
207
|
+
}
|
|
201
208
|
|
|
202
209
|
</style>
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
v-bind="column.attrs">
|
|
99
99
|
<!--操作列-->
|
|
100
100
|
<div v-if="column.id === 'operation'" class="div_allinline" :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'">
|
|
101
|
-
<ct-tablecurrency v-for="(router, rowRouterIndex) in getRowRouterShow(row)" :key="rowRouterIndex"
|
|
102
|
-
v-if="!router.rightField || row[router.rightField] == 1" :isOperationalColumn="true"
|
|
101
|
+
<ct-tablecurrency v-for="(router, rowRouterIndex) in getRowRouterShow(row)" :key="rowRouterIndex" :ref="'router' +router.id+ rowindex"
|
|
102
|
+
v-if="!router.rightField || row[router.rightField] == 1" :isOperationalColumn="true" :rowindex="rowindex"
|
|
103
103
|
:router="router" :colValue="router.label" :rowData="row" @click="rolRouterClickHandler">
|
|
104
104
|
</ct-tablecurrency>
|
|
105
105
|
<el-popover v-if="getRowRouterDisplay(row).length > 0" :ref="'popover' + rowindex"
|
|
@@ -118,12 +118,12 @@
|
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
<ct-tablecurrency v-else-if="column.id === 'voice'" :isShowVoice="true"
|
|
121
|
-
:router="column.router" :colValue="column.router.label"
|
|
121
|
+
:router="column.router" :colValue="column.router.label" :rowindex="rowindex"
|
|
122
122
|
:rowData="row" @click="rolRouterClickHandler" :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'">
|
|
123
123
|
</ct-tablecurrency>
|
|
124
124
|
|
|
125
125
|
<!--可点击的列-->
|
|
126
|
-
<ct-tablecurrency v-else-if="column.router"
|
|
126
|
+
<ct-tablecurrency v-else-if="column.router" :ref="'router' +column.router.id+ rowindex" :rowindex="rowindex"
|
|
127
127
|
:align="column.attrs.align" :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'"
|
|
128
128
|
:router="column.router" :colValue="row[column.id]" :rowData="row" @click="rolRouterClickHandler">
|
|
129
129
|
</ct-tablecurrency>
|
|
@@ -630,7 +630,16 @@ export default {
|
|
|
630
630
|
if (this.$parent.$refs.screen) {
|
|
631
631
|
h5 = this.$parent.$refs.screen.$el.offsetHeight | 0;
|
|
632
632
|
}
|
|
633
|
-
|
|
633
|
+
var h6 = 0;
|
|
634
|
+
if (this.$refs.toolbar) {
|
|
635
|
+
h6 = this.$refs.toolbar.$el.offsetHeight | 0;
|
|
636
|
+
}
|
|
637
|
+
var h7 = 0;
|
|
638
|
+
if (this.$refs.listHeader) {
|
|
639
|
+
h7 = this.$refs.listHeader.$el.offsetHeight | 0;
|
|
640
|
+
}
|
|
641
|
+
var h8 = this.$refs.tableStats ? (this.$refs.tableStats.$el.offsetHeight + 7) | 0 : 0;
|
|
642
|
+
let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 - h8- 290;
|
|
634
643
|
if (h2 == 0) {
|
|
635
644
|
tableHeight = tableHeight + 15;
|
|
636
645
|
}
|
|
@@ -793,10 +802,16 @@ export default {
|
|
|
793
802
|
|
|
794
803
|
this.routerClickHandler(field, submitData, action);
|
|
795
804
|
},
|
|
796
|
-
rolRouterClickHandler(field, rowData, rowindex) {
|
|
805
|
+
rolRouterClickHandler(field, rowData, rowindex,visible) {
|
|
797
806
|
if (this.$refs["popover" + rowindex]) {
|
|
798
807
|
this.$refs["popover" + rowindex][0].doClose();
|
|
799
808
|
}
|
|
809
|
+
if(field.isListenVoice){
|
|
810
|
+
if(this.model.currentListenVoice){
|
|
811
|
+
this.$refs[this.model.currentListenVoice][0].closeListenVoice()
|
|
812
|
+
}
|
|
813
|
+
this.model.currentListenVoice=visible?'router'+field.id+rowindex:'';
|
|
814
|
+
}
|
|
800
815
|
|
|
801
816
|
var self = this;
|
|
802
817
|
var submitData = {};
|
|
@@ -1314,8 +1329,7 @@ export default {
|
|
|
1314
1329
|
else {
|
|
1315
1330
|
// let parm={submitData:submitData,field:field}
|
|
1316
1331
|
// self.$common.excuteFunStr.call(self.model.scripts, field.action,parm);
|
|
1317
|
-
let title =
|
|
1318
|
-
field.pageTitle == undefined ? field.label : field.pageTitle;
|
|
1332
|
+
let title = field.pageTitle == undefined ? field.label : field.pageTitle;
|
|
1319
1333
|
submitData.actionType = field.actionType;
|
|
1320
1334
|
var fun = self.$common.getDataDrivenOpts().handler[action];
|
|
1321
1335
|
fun(submitData, title, self.model);
|
|
@@ -1552,7 +1566,7 @@ export default {
|
|
|
1552
1566
|
self.updateCurrentRow(field, data);
|
|
1553
1567
|
}
|
|
1554
1568
|
},
|
|
1555
|
-
|
|
1569
|
+
},
|
|
1556
1570
|
};
|
|
1557
1571
|
</script>
|
|
1558
1572
|
<style>
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
</video>
|
|
8
8
|
</div>
|
|
9
9
|
<div v-else-if="router.isListenVoice">
|
|
10
|
-
<el-popover
|
|
10
|
+
<el-popover class="Stats-popover" :popper-class="'el-listenVoice'" :placement="option.placement?option.placement:'left'"
|
|
11
11
|
v-model="visible" :trigger="option.trigger?option.trigger:''" style="margin:0px;">
|
|
12
12
|
<div class="alert fade in" role="alert" style="padding:0px;border-bottom:none;display: table-caption;">
|
|
13
13
|
<button type="button" class="close el-icon-close" style="right:0px;float:right;margin-bottom: 5px;cursor: pointer;" data-dismiss="alert" aria-label="Close" @click="clickHandler">
|
|
14
14
|
</button>
|
|
15
|
-
<video ref="video" :src="rowData[router.submitFormField]" controls="true" controlslist="nodownload"
|
|
16
|
-
@ended="voiceEndedHandler"
|
|
15
|
+
<video ref="video" :src="rowData[router.submitFormField]" controls="true" controlslist="nodownload"
|
|
16
|
+
@timeupdate="saveVoiceHistoryHandler" @ended="voiceEndedHandler"
|
|
17
17
|
:height="router.dialogHeight?router.dialogHeight:'40'" :width="router.dialogWidth?router.dialogWidth:'100%'">您的浏览器不支持 video 标签。
|
|
18
18
|
</video>
|
|
19
19
|
</div>
|
|
@@ -80,12 +80,20 @@
|
|
|
80
80
|
methods: {
|
|
81
81
|
clickHandler(ev) {
|
|
82
82
|
if(this.router.isListenVoice){
|
|
83
|
+
if(this.visible){
|
|
84
|
+
this.$refs.video.pause();
|
|
85
|
+
}
|
|
83
86
|
this.visible=!this.visible;
|
|
87
|
+
this.$emit('click', this.router, this.rowData,this.rowindex,this.visible);
|
|
84
88
|
}
|
|
85
89
|
else{
|
|
86
90
|
this.$emit('click', this.router, this.rowData,this.rowindex);
|
|
87
91
|
}
|
|
88
92
|
},
|
|
93
|
+
closeListenVoice() {
|
|
94
|
+
this.$refs.video.pause();
|
|
95
|
+
this.visible=false;
|
|
96
|
+
},
|
|
89
97
|
saveVoiceHistoryHandler() {
|
|
90
98
|
var self=this;
|
|
91
99
|
if(self.router.action && (self.visible || self.isShowVoice)){
|
package/src/main.js
CHANGED
|
@@ -42,7 +42,7 @@ Vue.use(centaline, {
|
|
|
42
42
|
getRequestHeaders: function () {
|
|
43
43
|
return {
|
|
44
44
|
oldToken: '77791819-ac7d-4a5d-bd16-5278b9f0b5d7',
|
|
45
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
45
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe8yNZM47OzMLp0u2HgIssKYaGUEEo3x7mqEjt5XvOI1_z9hmI5Qgc7gihbaOIMrWmiJOCpJg9uoCVnYYaAUMLEk3teNS7saCrD7FSoSoeBJmQo45_EXVLz7hmmw28Ee_zh3Gc-f2dhtfHTSofamyJw9BjtlzL2V5kuvTh283gAAAP__.KYZp-VKSbEpaYv2113fqdgRPNzO_IUQt81f-LIw8mXM',
|
|
46
46
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
47
47
|
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
48
48
|
estateId: '20210729104021C49F04B55C50F6AF58',
|