centaline-data-driven 1.4.80 → 1.4.82
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/Form.vue +2 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +55 -19
- package/src/centaline/loader/src/ctl/SearchTable.js +4 -3
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/PropertyKey/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
|
|
15
|
+
chanceID: "1560550751669981184", actionType: 2
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
|
@@ -93,23 +93,44 @@
|
|
|
93
93
|
column.fixed === 'right' ? 'right-fixation' : null,
|
|
94
94
|
]" v-bind="column.attrs">
|
|
95
95
|
<!--操作列-->
|
|
96
|
-
<div v-if="column.id === 'operation'" class="div_allinline"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
<div v-if="column.id === 'operation'" class="div_allinline" :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'" style="float: left;">
|
|
97
|
+
<template v-for="(router, rowRouterIndex) in getRowRouterShow(row)" >
|
|
98
|
+
<template v-if="router.isCallTel">
|
|
99
|
+
<component v-if="!router.rightField || !row[router.rightField] || row[router.rightField] == 1"
|
|
100
|
+
:key="rowRouterIndex" :ref="'router'+router.id+rowindex" :rowData="row" :rowindex="rowindex"
|
|
101
|
+
:is="router.is" :vmodel="router" :api="model.optionApi"
|
|
102
|
+
@click="rolRouterClickHandler">
|
|
103
|
+
</component>
|
|
104
|
+
</template>
|
|
105
|
+
<template v-else>
|
|
106
|
+
<ct-tablecurrency v-if="!router.rightField || row[router.rightField] == 1"
|
|
107
|
+
:key="rowRouterIndex" :ref="'router' + router.id + rowindex" :rowData="row" :rowindex="rowindex"
|
|
108
|
+
:isOperationalColumn="true" :router="router" :colValue="router.label"
|
|
109
|
+
@click="rolRouterClickHandler">
|
|
110
|
+
</ct-tablecurrency>
|
|
111
|
+
</template>
|
|
112
|
+
</template>
|
|
103
113
|
<el-popover v-if="getRowRouterDisplay(row).length > 0" :ref="'popover' + rowindex"
|
|
104
114
|
:append-to-table="option.appendId ? option.appendId : ''" class="Stats-popover"
|
|
105
115
|
popper-class="el-popover1" :placement="option.placement ? option.placement : 'left'"
|
|
106
116
|
:trigger="option.trigger ? option.trigger : ''">
|
|
107
|
-
<div class="tab-list" style="border-bottom: none">
|
|
108
|
-
<
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
<div class="tab-list" style="border-bottom: none">
|
|
118
|
+
<template v-for="(router, rowRouterIndex) in getRowRouterDisplay(row)" >
|
|
119
|
+
<template v-if="router.isCallTel">
|
|
120
|
+
<component v-if="!router.rightField || !row[router.rightField] || row[router.rightField] == 1"
|
|
121
|
+
:key="rowRouterIndex" :ref="'router'+router.id+rowindex" :rowData="row" :rowindex="rowindex"
|
|
122
|
+
:is="router.is" :vmodel="router" :api="model.optionApi"
|
|
123
|
+
@click="rolRouterClickHandler">
|
|
124
|
+
</component>
|
|
125
|
+
</template>
|
|
126
|
+
<template v-else>
|
|
127
|
+
<ct-tablecurrency v-if="!router.rightField || row[router.rightField] == 1"
|
|
128
|
+
:key="rowRouterIndex" :ref="'router' + router.id + rowindex" :rowData="row" :rowindex="rowindex"
|
|
129
|
+
:isOperationalColumn="true" :router="router" :colValue="router.label" :isShowImg="false"
|
|
130
|
+
@click="rolRouterClickHandler">
|
|
131
|
+
</ct-tablecurrency>
|
|
132
|
+
</template>
|
|
133
|
+
</template>
|
|
113
134
|
</div>
|
|
114
135
|
<span :slot="getRowRouterDisplay(row).length > 0 ? 'reference' : ''" class="icon-more"></span>
|
|
115
136
|
</el-popover>
|
|
@@ -843,6 +864,7 @@ export default {
|
|
|
843
864
|
this.routerClickHandler(field, submitData, action);
|
|
844
865
|
},
|
|
845
866
|
rolRouterClickHandler(field, rowData, rowindex, visible) {
|
|
867
|
+
field.rowindex=rowindex;
|
|
846
868
|
if (this.$refs["popover" + rowindex]) {
|
|
847
869
|
this.$refs["popover" + rowindex][0].doClose();
|
|
848
870
|
}
|
|
@@ -863,6 +885,10 @@ export default {
|
|
|
863
885
|
submitData["searchFields"] = self.model.getSearchData();
|
|
864
886
|
}
|
|
865
887
|
|
|
888
|
+
if(field.isCallTel){
|
|
889
|
+
submitData.flagHaveAlert=visible||false;
|
|
890
|
+
}
|
|
891
|
+
|
|
866
892
|
let action = field.action;
|
|
867
893
|
if (field.actionField) {
|
|
868
894
|
action = rowData[field.actionField];
|
|
@@ -1216,13 +1242,23 @@ export default {
|
|
|
1216
1242
|
self.operationLoading = true;
|
|
1217
1243
|
field.doAction(submitData, (data) => {
|
|
1218
1244
|
self.operationLoading = false;
|
|
1219
|
-
if (
|
|
1220
|
-
self.model.doAction(
|
|
1221
|
-
self
|
|
1245
|
+
if (field.isCallTel) {
|
|
1246
|
+
// self.model.doAction(data, field);
|
|
1247
|
+
if(self.model.currentCallTel){
|
|
1248
|
+
self.$refs[self.model.currentCallTel][0].closeCallTel()
|
|
1249
|
+
}
|
|
1250
|
+
self.model.currentCallTel='router'+field.id+field.rowindex;
|
|
1251
|
+
self.$refs['router'+field.id+field.rowindex][0].callTelClick(data);
|
|
1252
|
+
}
|
|
1253
|
+
else{
|
|
1254
|
+
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
1255
|
+
self.model.doAction({ responseData: data });
|
|
1256
|
+
self.$emit("refreshRowHandle");
|
|
1257
|
+
}
|
|
1258
|
+
self.$forceUpdate();
|
|
1259
|
+
self.$refs.footer.$forceUpdate();
|
|
1260
|
+
self.updateCurrentRow(field, data);
|
|
1222
1261
|
}
|
|
1223
|
-
self.$forceUpdate();
|
|
1224
|
-
self.$refs.footer.$forceUpdate();
|
|
1225
|
-
self.updateCurrentRow(field, data);
|
|
1226
1262
|
});
|
|
1227
1263
|
}
|
|
1228
1264
|
}
|
|
@@ -347,12 +347,13 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
347
347
|
get actionRouter() {
|
|
348
348
|
if (rtn._actionRouter !== null) {
|
|
349
349
|
return rtn._actionRouter;
|
|
350
|
-
}
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
351
352
|
rtn._actionRouter = [];
|
|
352
353
|
if (source.content.actionRouters) {
|
|
353
354
|
source.content.actionRouters.forEach((v) => {
|
|
354
355
|
var router = Router(v);
|
|
355
|
-
|
|
356
|
+
router.is = "ct-btn";
|
|
356
357
|
//router.attrs = { size: "mini" }
|
|
357
358
|
rtn._actionRouter.push(router);
|
|
358
359
|
});
|
|
@@ -458,7 +459,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
458
459
|
data = data.replace(v1, self[v1.replace('{{', '').replace('}}', '')]);
|
|
459
460
|
});
|
|
460
461
|
}
|
|
461
|
-
if(self.$vue.searchStrat && self.$vue.searchEnd){
|
|
462
|
+
if(self.$vue && self.$vue.searchStrat && self.$vue.searchEnd){
|
|
462
463
|
let searchTotal=self.$vue.searchEnd-self.$vue.searchStrat;
|
|
463
464
|
if(searchTotal>0){
|
|
464
465
|
data=data+" 总耗时 "+searchTotal+" 毫秒";
|
package/src/main.js
CHANGED
|
@@ -48,7 +48,7 @@ Vue.use(centaline, {
|
|
|
48
48
|
getRequestHeaders: function () {
|
|
49
49
|
return {
|
|
50
50
|
oldToken: '3ba3f510-93fd-4103-9249-73c13f3f6fc2',
|
|
51
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
51
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzjsOwjAQRdG9uGYkZz6eGTonJg2LQA5xARUiIIEQeyeIRdCe4r73Cst9CtvgqMmYCYZdT8AlK_SpizAkz5ItY-rlkEYpiKpAOhoMXSRAzAWiFR2pkCeNh8KeDdfSSmsJux1YTxlQ2JhGYVcJm9Ael7DtkkUntyibcKq3H5gQf-G-tOu-Pf9x7nw7fWcJvbZ5Bm9zA56cwGViaGa1qmK1dgzvDwAAAP__.muXO336Qhg1m00cMVrDKHQ7wgHJ_w7JbngtJt-K2r84',
|
|
52
52
|
|
|
53
53
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
54
54
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|