centaline-data-driven 1.3.97 → 1.3.98
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
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() {
|
|
@@ -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') {
|
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,
|